<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebDisc_update.aspx.cs" Inherits="qpoa.MyAffairs.WebDisc_update" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<script>
function chknull()
{
    if(document.getElementById('Name').value=='')
    {
    alert('名称不能为空');
    form1.Name.focus();
    return false;
    }	
    
 
    if(document.getElementById('PxNum').value=='')
    {
    alert('排序号不能为空，如果没有可以填写为0');
    form1.ContractMoney.focus();
    return false;
    }
    if(document.getElementById('PxNum').value!='')
    {    
    var objRe = /^\d+(\.\d+)?$/;
    if(!objRe.test(document.getElementById('PxNum').value))
    {
    alert("排序号只能为正数");
    form1.PxNum.focus();
    return false;
    }

    } 
 
    
    
    if(document.getElementById('Sharing').value=='是')
    {
    
        if(document.getElementById('GxRealname').value==''||document.getElementById('GxRealname').value=='未共享')
        {
        alert('请选择共享人员');
        form1.GxRealname.focus();
        return false;
        }	
    
    }	 
    
    showwait();	
}  
				

</script>


<head id="Head1" runat="server">
    <title>网络办公系统</title>
        <LINK href="../css/public.css" type="text/css" rel="stylesheet">
         <LINK href="../css/style_oa_30.css" type="text/css" rel="stylesheet">
</head>
<body class="newbody">
    <form id="form1" runat="server">
    <!--#include file="../public/pleasewait.htm"-->
    <!--#include file="../public/public.js"-->
    <script language="javascript" src="../public/DateSelect.js"></script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top">
      <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="35">
            <div id="printshow2"> 
            </div>
            <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17">
                        &nbsp;</td>
                    <td valign="top" >
                  
                        <table align="center" class="newtable" border="0" cellpadding="4" cellspacing="1"
                            width="100%">
                            <tr>
                                <td align="right" class="newtd1" height="17" nowrap="nowrap"
                                    width="15%">
                                    文件夹名称：</td>
                                <td class="newtd2" height="17" colspan="3" width="85%">
                                    <asp:TextBox ID="Name" runat="server" Width="90%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="newtd1" height="17" nowrap="nowrap"
                                    width="15%">
                                    排序号：</td>
                                <td class="newtd2" colspan="3" height="17" width="85%">
                                    <asp:TextBox ID="PxNum" runat="server" Width="90%"></asp:TextBox></td>
                            </tr>
                            <tr  id="printshow3">
                                <td align="center" class="newtd2" colspan="4" height="26" width="33%">
                                    	<div align="center"><FONT face="宋体">
                                <asp:Button ID="Button1" runat="server" Text="确 定" CssClass="button_blue" OnClick="Button1_Click" />
                                &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<input id="Button2" class="button_blue" onclick="history.back()"
                                                type="button" value="返 回" /></FONT></div> </td>
                            </tr>
                          
                        </table>
                        
           
                        
                    </td>
                    <td width="17" >
                        &nbsp;</td>
                </tr>
            </table>
            <asp:TextBox ID="GxUsername" runat="server" Width="90%"  style="DISPLAY: none"></asp:TextBox>
              </td>
        </tr>
      </table></td>
  </tr>
</table>

  <SCRIPT>
var  wName_1;  
function  openuser1()  
{  
if(document.getElementById('Sharing').value=='否')
{
alert('请选择共享文件夹');
form1.Sharing.focus();
return false;
}	

var num=Math.random();
var str=""+document.getElementById('GxUsername').value+"";
wName_1=window.showModalDialog("../OpenWindows/open_Username.aspx?tmp="+num+"&requeststr="+str+"","window", "dialogWidth:650px;DialogHeight=580px;status:no;scroll=yes;help:no");                
var arr = wName_1.split("|");
for(var i=0;i<arr.length;i++)
{ 
document.getElementById("GxUsername").value=arr[0]; 
document.getElementById("GxRealname").value=arr[1]; 
}
}




</SCRIPT>   
    
    
    </form>
</body>
</html>