<%@ Page Language="VB" AutoEventWireup="false" Inherits="work_plan_web_deploy.add_cooperation" EnableEventValidation="false" Codebehind="add_cooperation.aspx.vb" %>
<%@ Import namespace="work_plan_web_deploy"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD id="HEAD1" runat="server">
		<title>发起部门协作</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="site_css.css" type="text/css" rel="stylesheet">
         <script type="text/javascript" src="js/DatePicker/WdatePicker.js" language="javascript"></script>
         <script type="text/javascript" src="js/myjs.js" language="javascript"></script>
			<style type="text/css">
			.STYLE1 { COLOR: #999999 }
			.STYLE2 { COLOR: #ff0000 }
			.STYLE4 { COLOR: #ff0000 }
			.STYLE6 { COLOR: #ff0000 }
			.STYLE7 { COLOR: #ff0000 }

			</style>
			<script language="javascript">
			    function setValue(obj) {
			        var d = new Date();
			        var timeStr;
			        var m = (d.getMonth() + 1) + "";
			        if (m.length == 1)
			            m = '0' + m;
			        var _d = (d.getDate()) + "";
			        if (_d.length == 1)
			            _d = '0' + _d;

			        timeStr = d.getYear() + "-" + m + "-" + _d;
			        obj.value = timeStr
			    }

			    function getidate(obj1, obj2) {
			        if (obj2.value.length == 18) {
			            obj1.value = obj2.value.substr(6, 4) + "-" + obj2.value.substr(10, 2) + "-" + obj2.value.substr(12, 2)
			        }
			    }
			    function ResetButton() {
			        var btn = document.getElementById("Button1");
			        if (btn.disabled == true) {
			            btn.disabled = false;
			        }
			    }
			    function disableBtn(btn) {
			        btn.value = '系统正在执行操作...';
			        btn.disabled = 'disabled';
			        __doPostBack("Button1", "OnClick");
			        //doPostBack can now fire serverside event even if button is disabled  
			    }
  
			</script>
	</HEAD>
	<body>
		<form id="Form1" runat="server">
			<div id="title">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td align="center" height="20">部门协作 — 发起部门协作</td>
					</tr>
				</table>
			</div>
			<div id="place">
				<table cellSpacing="0" cellPadding="5" width="100%" border="0">
					<tr>
						<td height="30">您当前的位置：部门协作 &gt;&gt; 发起部门协作</td>
					</tr>
				</table>
			</div>
			<div id="contentdiv">
				<table class="maintable" cellSpacing="0" cellPadding="2" width="100%" border="0">
					<tr>
						<td align="right" width="15%" bgColor="#e0eef5" height="30">编号：</td>
						<td align="left" width="35%" height="30">
                            <span class="STYLE1">系统分配</span></td>
						<td align="right" width="15%" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            协作类别：</SPAN></td>
						<td align="left" width="35%" height="30">
                            <asp:DropDownList ID="classid" runat="server">
                                <asp:ListItem Selected="True" Value="0">请选择</asp:ListItem>
                            </asp:DropDownList>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToValidate="classid" ErrorMessage="所属类型必须选择"
                                Operator="GreaterThan" ValueToCompare="0"></asp:CompareValidator>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            标题：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="bt" runat="server" Width="233px" style="width:233px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                ControlToValidate="bt" ErrorMessage="标题必须填写"></asp:RequiredFieldValidator>
                        </td>
						<td align="right" bgColor="#e0eef5" height="30"><SPAN class="STYLE2">
                            协作部门：</SPAN></td>
						<td align="left" height="30">
                            <asp:TextBox ID="dpmid" onclick="showDIV(this,dwtree);" 
                                    runat="server" ReadOnly="True" Width="118px" style="width:118px;"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                ControlToValidate="dpmid" ErrorMessage="协作部门必须选择"></asp:RequiredFieldValidator>
                        </td>
					</tr>
                    	<tr>
						<td align="right" bgColor="#e0eef5" height="30">短信与邮件自动提醒：</td>
						<td align="left" height="30">
                            <asp:CheckBox ID="sms" runat="server" Checked="True" Text="开启" />
                        </td>
						<td align="right" bgColor="#e0eef5" height="30">自动提醒不带标题：</td>
						<td align="left" height="30">
                            <asp:CheckBox ID="nobt" runat="server" Text="不带标题" />
                            <span class="STYLE1">（需要保密的工作请开启此功能）</span></td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5" height="120">协作详情：</td>
						<td align="left" colSpan="3" height="120">
                            <asp:textbox id="xq" runat="server" 
                                Width="568px" Height="200px" TextMode="MultiLine" style="width:568px;height:200px;"></asp:textbox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                                ControlToValidate="bt" ErrorMessage="协作详情必须填写"></asp:RequiredFieldValidator>
                        </td>
					</tr>
					<tr>
						<td align="right" bgColor="#e0eef5">详情附件：</td>
						<td align="left" colSpan="3">
                        <iframe frameborder="0" scrolling="yes" src="upfiles_add_coop1.aspx?t=c1&tempid=<%=tid.Value %>" width="100%"></iframe>
                        </td>
					</tr>
					</table>
			</div>
			<table cellSpacing="0" cellPadding="0" width="300" align="center" border="0">
				<tr>
					<td vAlign="middle" align="center" height="40">&nbsp;
						<asp:button id="Button1" runat="server" Text="发起(ALT+S)" AccessKey="s" 
                            Width="120px" OnClientClick="disableBtn(this);"></asp:button>&nbsp;
						<asp:button id="Button2" runat="server" Width="120px" Text="清除重录(ALT+C)" 
                            CausesValidation="False" AccessKey="C"></asp:button></td>
				</tr>
			</table>
            <!--隐藏开始-->
			<div class="menudiv" id="dwtree">
            <asp:TreeView ID="fidTreeView" runat="server" ImageSet="XPFileExplorer" 
        NodeIndent="15" ShowLines="True">
            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
            <NodeStyle Font-Names="Tahoma" ForeColor="Black" 
                HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </div>
			<!--隐藏结束-->
		    <asp:HiddenField ID="tid" runat="server" />
		</form>
	</body>
</HTML>