WorkFlowTaskEdit.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:11k
- <%@ page language="C#" autoeventwireup="true" inherits="Workflow_WorkFlowTaskEdit, App_Web_4afs73eh" theme="Normal" %>
- <!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" >
- <head runat="server">
- <link type="text/css" href="style/formbody.css" rel="stylesheet" />
- <title>任务流定义</title>
- <script type="text/javascript" >
-
- function DelAllItem(ListBox2Object) //删除全部
- {
- var rows=ListBox2Object.options.length;
- for(i=rows-1;i>=0;i--)
- {
- ListBox2Object.options.remove(i);
- }
- }
- function OpenShowWindow()
- {
- var NUrl ="WorkFlowSelectTable.aspx?StrN=T&StrM=" + form1.WFValue.value + "&strT=" + form1.DTaskMode.value;
- var NVale=window.showModalDialog(NUrl,"","help=0;dialogWidth=450px;dialogHeight=350px;status=no;status=no;");
- if (NVale!=undefined)
- {
- var Vstr = NVale.split("|");
- var VValue,VText;
- if (Vstr.length==2)
- {
- DelAllItem(document.all.lbParentTask);
- var i=0;
- VValue=Vstr[0].split(",");
- VText=Vstr[1].split(",");
- for(i=0;i<VValue.length-1;i++)
- {
- var oItem=document.createElement("option");
- oItem.text=VText[i];
- oItem.value=VValue[i];
- document.all.lbParentTask.add(oItem);
- }
- }
- }
- return false;
- }
-
- function ReplaceBacksLash(sDoc)
- {
- var a= sDoc.split('^');
- for (var i=0;i<a.length;i++)
- {
- if (i==0)
- {
- sDoc = a[i];
- }
- else
- {
- sDoc = sDoc + "\\" + a[i];
- }
- }
- // alert(sDoc);
- return sDoc;
- }
-
- function OpenShowWindowDoc()
- {
- var NUrl ="WorkFlowSelectDoc.aspx?StrN=T&StrM=" + form1.HAct.value;
- var NVale=window.showModalDialog(NUrl,"","help=0;dialogWidth=600px;dialogHeight=450px;status=no;status=no;");
- if (NVale!=undefined)
- {
- // alert(NVale);
- var Vstr = NVale.split("|");
- var VValue,VText;
- if (Vstr.length==2)
- {
- DelAllItem(document.all.LstDoc);
- var i=0;
- VValue=Vstr[0].split(",");
- VText=Vstr[1].split(",");
- for(i=0;i<VValue.length-1;i++)
- {
- var oItem=document.createElement("option");
- oItem.text=VText[i];
- oItem.value=ReplaceBacksLash(VValue[i]);
- document.all.LstDoc.add(oItem);
- }
- }
- }
- return false;
- }
-
- function CheckNull()
- {
- if (form1.TxtTaskName.value=="" || form1.TxtTaskName.value==null)
- {
- alert("系统提示:任务名称不能为空!");
- return false;
- }
- // if (form1.TTaskUnit.value=="" || form1.TTaskUnit.value==null)
- // {
- // alert("系统提示:使用单位名称不能为空!");
- // return false;
- // }
- if (form1.lbParentTask.options.length <1 )
- {
- alert("系统提示:上级任务不能为空!");
- return false;
- }
- var i=0;
- var svalue
- for (i=0;i<form1.lbParentTask.options.length;i++)
- {
- if (i==0)
- {
- svalue = form1.lbParentTask.options[i].value;
- }
- else
- {
- svalue = svalue + "|" + form1.lbParentTask.options[i].value;
- }
- }
- form1.ListValue.value = svalue;
- svalue="";
- for (j=0;j<form1.LstDoc.options.length;j++)
- {
- if (j==0)
- {
- svalue = form1.LstDoc.options[j].value;
- }
- else
- {
- svalue = svalue + "|" + form1.LstDoc.options[j].value;
- }
- }
- form1.ListDoc.value = svalue;
- // alert(document.getElementById("WFName").value);
- }
- function OKCancel()
- {
- if (confirm("系统提示:您确定放弃本次操作吗?"))
- {
- window.location.href("WorkFlowConfigure.aspx");
- }
- return false;
- }
- function SysHelp()
- {
- alert("系统提示:对不起系统未提供应有的帮助!");
- return false;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <input id="FldsID" type="hidden" name="FldsID" runat="server"/> <input id="UsrsID" type="hidden" name="UsrsID" runat="server"/>
- <input id="WFValue" type="hidden" name="WFValue" runat="server"/><input id="ListValue" type="hidden" name="tid" runat="server"/>
- <input id="ListDoc" type="hidden" name="ListDoc" runat="server"/><input id ="HAct" type="hidden" name="HAct" runat="server" />
- <table cellspacing="0" cellpadding="0" width="82%" border="0" style="text-align:center;" >
- <tr>
- <td>
- <fieldset>
- <legend style="text-align:left;">
- <img alt="任务基本信息" src="image/DateTime.gif" style="text-align:center; border:0;"/>任务基本信息
- </legend>
- <table>
- <tr>
- <td style="height:10; width:10;"></td>
- <td align="left" style="width:400;"></td>
- </tr>
- <tr style="height:18;">
- <td style="height:18;">
- <table>
- <tr>
- <td>任务名称:</td>
- <td><asp:TextBox ID="TxtTaskName" runat="server" CssClass="input" Width="196" Height="16px" MaxLength="200"></asp:TextBox></td>
- <td> 使用单位:</td>
- <td><asp:TextBox ID="TTaskUnit" runat="server" CssClass="input" Width="196" Height="16px" MaxLength="200"></asp:TextBox></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table>
- <tr>
- <td>使用角色:</td>
- <td><asp:DropDownList ID="DTaskRoleName" runat="server" Width="200" Height="16px" CssClass="input"></asp:DropDownList></td>
- <td> 任务种类:</td>
- <td><asp:DropDownList ID="DTaskSort" runat="server" Width="200" Height="16px" CssClass="input" AutoPostBack="true" OnSelectedIndexChanged="DTaskSort_SelectedIndexChanged"></asp:DropDownList></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table>
- <tr>
- <td>阻塞方式:</td>
- <td><asp:DropDownList ID="DTaskBlock" runat="server" Width="200" Height="16px" CssClass="input"></asp:DropDownList></td>
- <td> 协调方式:</td>
- <td><asp:DropDownList ID="DTaskMode" runat="server" Width="200" Height="16px" CssClass="input" AutoPostBack="true" OnSelectedIndexChanged="DTaskMode_SelectedIndexChanged"></asp:DropDownList></td>
-
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table>
- <tr>
- <td>分流方式:</td>
- <td><asp:DropDownList ID="DTaskShunt" runat="server" Width="200" Height="16px" CssClass="input" AutoPostBack="true" OnSelectedIndexChanged="DTaskShunt_SelectedIndexChanged"></asp:DropDownList></td>
- <td> 使用页面:</td>
- <td><asp:DropDownList ID="DTaskPage" runat="server" Width="200" Height="16px" CssClass="input"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="text-align:left;">
- <table>
- <tr>
- <td valign="top">上级任务:</td>
- <td align="left" valign="bottom">
- <asp:ListBox id="lbParentTask" runat="server" Width="200" CssClass="input"></asp:ListBox>
- <asp:ImageButton id="ImgSelect" runat="server" ImageUrl="image/ch.gif" OnClientClick="javascript:return OpenShowWindow();"></asp:ImageButton></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td style="text-align:left;">
- <table>
- <tr>
- <td valign="top">所属文挡:</td>
- <td align="left" valign="bottom">
- <asp:ListBox id="LstDoc" runat="server" Width="200" CssClass="input"></asp:ListBox>
- <asp:ImageButton id="ImgDoc" runat="server" ImageUrl="image/ch.gif" OnClientClick="javascript:return OpenShowWindowDoc();"></asp:ImageButton></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr style="height:10;">
- <td style="height:10;"></td>
- </tr>
- <tr>
- <td style="height:20" align="right">
- <asp:imagebutton id="ImgOK" runat="server" ImageUrl="image/confirm.gif" OnClientClick="javascript:return CheckNull();" OnClick="ImgOK_Click"></asp:imagebutton>
- <asp:imagebutton id="ImgCancel" runat="server" ImageUrl="image/cancel.gif" OnClientClick="javascript:return OKCancel();"></asp:imagebutton>
- <asp:imagebutton id="ImgHelp" runat="server" ImageUrl="image/help.gif" OnClientClick="javascript:return SysHelp();"></asp:imagebutton>
- </td>
- </tr>
- </table>
- </fieldset>
- </td>
- </tr>
- </table>
- <%-- <script type="text/javascript">
- OnDeadLineHandler();
- OnFieldTypeHandler();
- OnUserTypeHandler();
- OnTaskTypeHandler();
- </script>--%>
- </div>
-
- </form>
- </body>
- </html>