<%@ Page language="c#" Codebehind="mypane.aspx.cs" AutoEventWireup="True" Inherits="Webdisk.mypane" %>
<%@ Import Namespace="System.Data" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register Src="~/usertop_out.ascx" TagPrefix="uc1" TagName="usertop_out" %>


<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><%=title%></title>

    <!-- Plugin styles -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/atlantis.css">
    <link href="css/daterangepicker.min.css" rel="stylesheet">
</head>
<body>
    <div class="wrapper">
        <uc1:usertop_out runat="server" ID="usertop_out" />
    <!-- end::navigation -->
   <div class="main-panel main-panel1">

        <div class="content">
            <div class="page-inner">

            <div class="row app-block">
				 <div class="col-md app-content">
                    <div class="app-content-overlay"></div>

                    <h6 class="mb-3">当前位置:
                         <a href="javascript:void(0)" onclick="window.location='myPane.aspx?GoRoot=1&path='+getUrlParam('path');"> <img src="pics/tools3.png" width="15px" title="根目录"></a> | 
                         <a href="javascript:void(0)" onclick="window.location='myPane.aspx?UpBtn=1&path='+getUrlParam('path');"><img src="pics/tools1.png" width="15px" title="上一级"></a> | 
                        <a href="javascript:void(0)" onclick="window.location='myPane.aspx?path='+getUrlParam('path');"><img src="pics/tools2.png" width="15px" title="刷新"></a>
                       <%=Postion%></h6>
  <div class="app-action">
                        <div class="row mb-3">
                            <div class="col-12 col-xl-7">
                                 <div class="list-inline-item mb-0" id="Panel1" runat="server">
                                </div>
                                    <div class="list-inline-item mb-0">
                                    <a id="menu1" href="javascript:void(0)" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">
                                       <img src="pics/upload.png" width="15" /><span class="hidden-xs">&nbsp;
                                        上传</span>
                                    </a>
                                    <div class="dropdown-menu">
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="uploadfile('');"><img src="pics/upload.png" width="15" />&nbsp;&nbsp;上传多文件</a>
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="uploadfile('1');"><img src="pics/upload.png" width="15" />&nbsp;&nbsp;上传文件夹</a>
                                         <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="uploadfile('2');"><img src="pics/button1.png" width="15" />&nbsp;&nbsp;链接网址</a>
                                        <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="uploadfile('3');"><img src="pics/button2.png" width="15" />&nbsp;&nbsp;外部下载</a>
                                    </div>
                                </div>
                                  <div class="list-inline-item mb-0">
                                    <a id="menu0" href="javascript:void(0)" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">
                                       <img src="pics/button3.png" width="15" /><span class="hidden-xs">&nbsp;
                                        新建</span>
                                    </a>
                                    <div class="dropdown-menu">
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="newdirbox2();$('#menu0').click();"><img src="pics/button5.png" width="15" />&nbsp;&nbsp;新建文件夹</a>
                                        <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="javascript:void(0)" onclick="newfile2();$('#menu0').click();"><img src="pics/button4.png" width="15" />&nbsp;&nbsp;新建文本文件</a>
                                   </div>
                                </div>
                                 <div class="list-inline-item mb-0">
                                   <div class="action-right">
                       <marquee onmouseover=stop() onmouseout=start() scrollAmount=4 scrollDelay=150>
                                      <asp:Label ID="gg" runat="server"></asp:Label></marquee>
                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-xl-5 text-right">
                                 <div class="list-inline-item mb-0"  style="padding-right:10px;vertical-align:middle">
												<div class="input-icon">
                                                     <form id="form" name="form" action="mypane.aspx" method="post" onSubmit="return save_onclick()">
													<input type="text" name="txtname" id="txtname" class="form-control p-2" placeholder="搜索..." value="<%if (Request.Form["txtname"]!=null) Response.Write(Request.Form["txtname"].ToString());%>">
                                                    <span class="input-icon-addon">
														 <a id="searchadv" class="btn-sm btn-light dropdown-toggle" style="float:right;height:28px" title="高级搜索" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a>
														<ul id="menulist" class="dropdown-menu notif-box p-2 animated" aria-labelledby="notifDropdown">
								                            
                                                                <li class="form-group form-inline mt-3">
												                    <label class="p-2" style="font-size:11px">搜索范围</label>
												                    <div class="selectgroup">
													                    <label class="selectgroup-item p-0">
														                    <input id="search1" type="radio" name="searchtype" value="1" class="selectgroup-input">
														                    <span class="selectgroup-button" style="font-size:11px">全部文件夹</span>
													                    </label>
													                    <label class="selectgroup-item p-0">
														                    <input id="search2" type="radio" name="searchtype" value="2" class="selectgroup-input" checked="">
														                    <span class="selectgroup-button" style="font-size:11px">当前文件夹</span>
													                    </label>
												                    </div>
											                    </li>
                                                                   <li class="form-group form-inline">
												                    <label for="inlineinput" class="col-form-label p-2">时间范围</label>
												                    <div class="p-0 form-inline">
													                    <input type="text" name="txttime1" id="txttime1"  class="form-control form-control-sm" style="width:100px;" placeholder="不限" > - <input type="text" name="txttime2" id="txttime2"  class="form-control form-control-sm" style="width:100px;" placeholder="不限">
												                    </div>
											                    </li>
                                                                   <li class="form-group form-inline">
												                    <label for="inlineinput" class="col-form-label p-2">文件大小</label>
												                    <div class="p-0 form-inline">
													                    <input type="text" id="txtsize1" name="txtsize1" class="form-control form-control-sm" style="width:100px" placeholder="不限" runat="server">M - <input type="text" id="txtsize2" name="txtsize2" class="form-control form-control-sm" style="width:100px" placeholder="不限" runat="server">M
												                    </div>
											                    </li>
                                                                <li class="form-group form-inline">
												                    <label for="inlineinput" class="col-form-label p-2">文件类型</label>
												                    <div class="p-0">
													                    <input type="text" class="form-control form-control-sm" id="txttype" name="txttype" placeholder="不限" style="width:90%" >
                                                                        <div style="font-size:10px;color:darkgray">输入扩展名，用半角,分隔，不填为不限</div>
												                    </div>
											                    </li>
                                                               <li class="form-group form-inline">
												                    <label for="inlineinput" class="col-form-label p-2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注释</label>
												                    <div class="p-0">
													                    <input type="text" class="form-control form-control-sm" id="txtnote" name="txtnote" placeholder="不限" style="width:90%" >
												                    </div>
											                    </li>
                                                                <li class="form-group form-inline">
												                    <label for="inputEmail3" class="col-form-label p-2"></label>
                                                                    <div class="p-0">
                                                                            <div class="custom-control custom-checkbox">
												                        <input type="checkbox" class="custom-control-input" id="zi" value="1" checked name="zi" runat="server">
												                        <label class="custom-control-label" for="zi">搜索子目录</label>
											                        </div>
                                                                    </div>
											                    </li>
                                                                  
                                                                 <input id="path" type="hidden" size="4" name="path" value="<%if (Request["path"]!=null) Response.Write(Request["path"].ToString());%>">
                                                                <input id="toFind" type="hidden" size="2" value="1" name="toFind">
									                            <li align="center" class="justify-content-center m-3"><input class="btn-sm btn-primary" id="Button3" type="submit" value=" 搜 索 " name="Button3"></li>
								                           
							                         
                                                        </ul>
                                                         <a class="btn-sm btn-light" style="float:right;height:28px;margin-right:1px" onclick="$('#form').submit();"> <i class="fa fa-search"></i></a>
                                                       
													</span>
                                                    	  </form>
												</div>
                                      </div>
                                
                                   <div class="list-inline-item mb-0">
                                    <a href="javascript:void(0)" class="btn btn-outline-light" onclick="javascript:if ($('#sltxt').text()=='缩略图') document.cookie='showtype3=1'; else document.cookie='showtype3=0';window.location.reload();">
                                        <img src="pics/list1.png" width="13" id="pic" runat="server"> <span id="sltxt" runat="server" style="display:none">缩略图</span>
                                    </a>
                                </div>
                                  <div class="list-inline-item mb-0">
                                    <a href="javascript:void(0)" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">
                                        <img src="pics/sort.png" width="15" />
                                    </a>
                                    <div class="dropdown-menu">
                                        <a class="dropdown-item" href="myPane.aspx?type=pic%20asc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>" ><%=sortstr1 %>类型升序</a>
                                        <a class="dropdown-item" href="myPane.aspx?type=pic%20desc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr2 %>类型降序</a>
                                        <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="myPane.aspx?type=name%20asc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr3 %>名称升序</a>
                                        <a class="dropdown-item" href="myPane.aspx?type=name%20desc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr4 %>名称降序</a>
                                        <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="myPane.aspx?type=size%20asc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr5 %>从小到大</a>
                                        <a class="dropdown-item" href="myPane.aspx?type=size%20desc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr6 %>从大到小</a>
                                        <div class="dropdown-divider"></div>
                                        <a class="dropdown-item" href="myPane.aspx?type=update%20asc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr7 %>时间从远到近</a>
                                        <a class="dropdown-item" href="myPane.aspx?type=update%20desc&path=<%if (Request["path"] != null) Response.Write(Request["path"].ToString());%>"><%=sortstr8 %>时间从近到远</a>
                                    </div>
                                </div>
                              </div>
                        </div>
                       
                    </div>
<div class="card card-body">
                        <form id="Form2" method="post" runat="server">
                            <div class="<%=Webdisk.DAL.Config.IsMobile %>"><asp:datagrid id="DataGrid" runat="server" Width="98%" CssClass="table-hover" EnableViewState="False"
					AutoGenerateColumns="False" AllowSorting="True" PageSize="2" AllowPaging="True" BorderStyle="None" BorderWidth="0px" GridLines="None" AlternatingItemStyle-CssClass="GridMove">
					<ItemStyle CssClass="GridItem"></ItemStyle>
                                    <HeaderStyle CssClass="GridHead"></HeaderStyle>
					<Columns>
						<asp:TemplateColumn HeaderText="类">
							<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<%=headico%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# DataBinder.Eval(Container, "DataItem.pic") %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="名称">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<HeaderTemplate>
								<%=headname%>
							</HeaderTemplate>
							<ItemTemplate>
								<div class='filelist'> <%# DataBinder.Eval(Container, "DataItem.name") %><span><%# DataBinder.Eval(Container, "DataItem.float")  %></span></div>
                                                <%# DataBinder.Eval(Container, "DataItem.notetxt")  %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn SortExpression="size" HeaderText="大小">
							<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Right"></ItemStyle>
							<HeaderTemplate>
								<%=headsize%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# ShowSize(Convert.ToInt64(DataBinder.Eval(Container, "DataItem.size"))) %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="最后更新">
							<HeaderStyle HorizontalAlign="Center" Width="17%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<%=headupdate%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# DataBinder.Eval(Container, "DataItem.update") %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="下载次数">
							<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<%=headcount%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# DataBinder.Eval(Container, "DataItem.downcount") %>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF"
						Mode="NumericPages"></PagerStyle>
				</asp:datagrid></div> <asp:panel id="Panel3" runat="server" Visible="False">
					<TABLE class="tableborder1" style="WIDTH: 100%; WORD-BREAK: break-all" cellSpacing="1"
						cellPadding="2">
						<TR>
							<TD class="tablebody1" vAlign="middle" align="center" width="100%" height="130">没有任何文件</TD>
						</TR>
					</TABLE>
				</asp:panel><table width="100%" border="0" align="center">
					<tr>
						<td><div id="content"><asp:repeater id="DataList" runat="server" EnableViewState="False">
									<ItemTemplate>
										<div style="width:140px;height:170px;margin-right:3px;float:left;" class="p-1">
<div class="card app-file-list" id="b<%# Container.ItemIndex %>">
                                    <div class="app-file-icon flex text-center">
                                        <div class="thumbnail-img"><%# ((DataRowView)Container.DataItem)["link"] %></div>
                                    </div>
                                    <div class="p-2 small">
                                       <div class="filelistname" data-toggle='popover' data-html='true' data-trigger='hover' data-placement="bottom" data-content='<%# ((DataRowView)Container.DataItem)["tipinfo"] %>'><%# ((DataRowView)Container.DataItem)["newname"] %></div>
                                    </div>
                                </div>

											
										</div>
									</ItemTemplate>
								</asp:repeater><input name="checkbox" type="checkbox" style="DISPLAY:none"></div>
						</td>
					</tr>
				</table>
			  <div class="hidden-sm hidden-md hidden-lg text-center"><%=sjinfo %><p></div>
			 <webdiyer:aspnetpager CssClass="paginator" CurrentPageButtonClass="cpb" PagingButtonSpacing="0" id="Pager" UrlPaging="True" runat="server" PageSize="20" ShowBoxThreshold="21" NumericButtonCount="15"
												ShowCustomInfoSection="Left" AlwaysShow="True" HorizontalAlign="Right" FirstPageText="|<" PrevPageText="<" NextPageText=">" LastPageText=">|" Height="20px" CustomInfoTextAlign="Left"></webdiyer:aspnetpager>
			<INPUT id="HdnSelectedValues" type="hidden" size="1" name="HdnSelectedValues" runat="server"><br><br>
			<INPUT id="cmd" type="hidden" size="1" runat="server"><INPUT id="pathurl" type="hidden" size="1" runat="server">
			<INPUT id="temp" type="hidden" size="1" runat="server"><INPUT id="txttmp" type="hidden" size="1" runat="server"><INPUT id="txttmp1" type="hidden" size="1"><INPUT id="hidpath" type="hidden" size="1" runat="server"><INPUT id="hidpathutf8" type="hidden" size="1" runat="server">
			<div align="center"><%=adv6%></div>
			</form>
                    </div>
			 

                </div>
            </div>

        </div></div></div>
        <!-- end::main content -->

        <!-- begin::footer -->
        <!-- end::footer -->
    </div>
     <!--登录 -->
    <div class="modal fade" id="userlogin" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">用户登录</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <i class="ti-close"></i>
                    </button>
                </div>
                <div class="modal-body">
                        <div class="form-group">
                            <label for="recipient-name" class="col-form-label">输入密码</label>
                            <input type="password" class="form-control" id="pass">
                        </div>
                        <div class="form-group" id="modalshow3" runat="server">
                            <label for="message-text" class="col-form-label" id="ModalText3">验证码</label>
                            <div class="row">&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" class="form-control w-25"  id="ValidateCode" runat="server">&nbsp;&nbsp;<img src="../ValidateCode.aspx" style="cursor:pointer" onclick="this.src='../ValidateCode.aspx?time=' + new Date()"></div>
                        </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                    <button id="butlogin" type="button" class="btn btn-primary"> <span id="loading2" style="display:none" class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>确定</button>
                </div>
            </div>
        </div>
    </div>
     <!-- 新文件夹 -->
    <div class="modal fade" id="newdir" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="ModalLabel">新建文件夹</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <i class="ti-close"></i>
                    </button>
                </div>
                <div class="modal-body">
                        <div class="form-group" id="modalshow1">
                            <label for="recipient-name" class="col-form-label" id="ModalText1">输入新名称</label>
                            <input type="text" class="form-control" id="text1" onchange="document.all.txttmp.value=document.all.text1.value;">
                        </div>
                        <div class="form-group" id="modalshow2">
                            <label for="message-text" class="col-form-label" id="ModalText2">目录描述</label>
                            <textarea class="form-control" id="text2" placeholder="(可选)" onchange="document.all.txttmp1.value=document.all.text2.value;"></textarea>
                        </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                    <button id="butnewdir" type="button" class="btn btn-primary"> <span id="loading" style="display:none" class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>确定</button>
                </div>
            </div>
        </div>
    </div>
<div id="loadingModal" class="spinner-border text-primary" style="width: 3rem; height: 3rem;position:fixed;margin: auto;top: 0px;left: 0px;right: 0px;bottom: 0px;z-index:9999;display:none" role="status">
  <span class="sr-only">Loading...</span>
</div>
    <script src="js/ContentPane.js"></script>
    	<script src="js/jquery.3.2.1.min.js"></script>
	<script src="js/popper.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/jquery.ui.touch-punch.min.js"></script>
	<script src="js/sweetalert.min.js"></script>
	<!-- jQuery Scrollbar -->
	<script src="js/jquery.scrollbar.min.js"></script>
	<!-- Atlantis JS -->
    <script src="js/webfont.min.js"></script>
	<script src="js/atlantis.js"></script>
    <script src="js/moment.min.js"></script>
    <script src="js/daterangepicker.min.js"></script>
	</body>
</HTML>
<script>

    function checkDate(theDate) {
        var reg = /^\d{4}-((0{0,1}[1-9]{1})|(1[0-2]{1}))-((0{0,1}[1-9]{1})|([1-2]{1}[0-9]{1})|(3[0-1]{1}))$/;
        var result = true;
        if (!reg.test(theDate))
            result = false;
        else {
            var arr_hd = theDate.split("-");
            var dateTmp;
            dateTmp = new Date(arr_hd[0], parseFloat(arr_hd[1]) - 1, parseFloat(arr_hd[2]));
            if (dateTmp.getFullYear() != parseFloat(arr_hd[0])
                || dateTmp.getMonth() != parseFloat(arr_hd[1]) - 1
                || dateTmp.getDate() != parseFloat(arr_hd[2])) {
                result = false
            }
        }
        return result;
    }
    function save_onclick() {
        var strTemp = document.form.txtsize1.value;
        if ((strTemp.length > 0) && (isNaN(strTemp))) {
            alert("文件大小请输入数字！");
            document.form.txtsize1.focus();
            return false;
        }
        var strTemp = document.form.txtsize2.value;
        if ((strTemp.length > 0) && (isNaN(strTemp))) {
            alert("文件大小请输入数字！");
            document.form.txtsize2.focus();
            return false;
        }
        if ((document.getElementById("txttime1").value != "") && (!checkDate(document.getElementById("txttime1").value))) {
            alert('请输入正确的日期！');
            document.form.txttime1.focus();
            return false;
        }
        if ((document.getElementById("txttime2").value != "") && (!checkDate(document.getElementById("txttime2").value))) {
            alert('请输入正确的日期！');
            document.form.txttime2.focus();
            return false;
        }
        if ((document.getElementById("txtname").value == "") && (document.getElementById("txtsize1").value == "") && (document.getElementById("txtsize2").value == "") && (document.getElementById("txttime1").value == "") && (document.getElementById("txttime2").value == "") && (document.getElementById("txttype").value == "") && (document.getElementById("txtnote").value == "")) {
            if (getUrlParam('path') == "") window.location = 'mypane.aspx'; else window.location = 'mypane.aspx?path=' + getUrlParam('path');
            return false;
        }
        else return true;
    }

    $("#searchadv").click(function () {
        var day_length = 1;
        // $('#startdate').on("focus",function(){
        $('#txttime1').daterangepicker({
            singleDatePicker: true,
            format: 'YYYY-MM-DD', //控件中from和to 显示的日期格式
            separator: 'to',
            // startDate:moment().startOf('day'),
            // endDate: moment().add(1, "days"),
            minDate: moment(),
            locale: {
                format: "YYYY-MM-DD",
                applyLabel: "确定",
                cancelLabel: "取消",
                fromLabel: "起始时间",
                // toLabel : "结束时间",
                customRangeLabel: "自定义",
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
                    '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            },

        }).on('hide.daterangepicker', function () {
            var s1 = $('#txttime1').val();
            s1 = new Date(s1.replace(/-/g, "/"));
            var s2 = new Date();
            var days = s1.getTime() - s2.getTime();
            var time = parseInt(days / (1000 * 60 * 60 * 24));
            if (s1.getTime() - s2.getTime() < 0) {
                day_length = time + parseInt(1)
            } else {
                day_length = time + parseInt(2)
            }
            useLast()
            $('#txttime2').focus()

        })
        // });

        function useLast() {
            $('#txttime2').daterangepicker({
                singleDatePicker: true,
                format: 'YYYY-MM-DD', //控件中from和to 显示的日期格式
                separator: 'to',
                // startDate:moment().startOf(1,'day'),
                // endDate: moment().add(1, "days"),
                minDate: moment().add(day_length, "days"),
                locale: {
                    format: "YYYY-MM-DD",
                    applyLabel: "确定",
                    cancelLabel: "取消",
                    // fromLabel : "起始时间",
                    toLabel: "结束时间",
                    customRangeLabel: "自定义",
                    daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                    monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
                        '七月', '八月', '九月', '十月', '十一月', '十二月'],
                    firstDay: 1
                }
            })
        }
        useLast();
        $('#txttime1').val(""); $('#txttime2').val("");
    });
    $("#menulist").on("click", function (e) {
        e.stopPropagation();
    })
    $("#DataGrid tr").hover(function () {
        $(this).find("span").show();
    }, function () {
        $(this).find("span").hide();
    })
</script>
