- <%@ page language="C#" autoeventwireup="true" inherits="Workflow_WorkFlowConfigureENew, 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">
- <title>流程定义</title>
- <link href="style/formbody.css" type="text/css" rel="stylesheet"/>
- <script type="text/javascript">
- function SelectTable()
- {
- var i;
- var flds=document.all.tname.value.split(',');
- var fldcount=flds.length;
- document.all.lbTables.options.length=0;
- for (i=0;i<fldcount;i++)
- {
- document.all.lbTables.options.add(new Option(flds[i],flds[i]));
- }
- }
- function DelAllItem(ListBox2Object) //删除全部
- {
- var rows=ListBox2Object.options.length;
- for(i=rows-1;i>=0;i--)
- {
- ListBox2Object.options.remove(i);
- }
- }
- function OpenShowWindow()
- {
- // var NVale = window.location.href("WorkFlowSelectTable.aspx");
- var NVale=window.showModalDialog("WorkFlowSelectTable.aspx?StrN=E","","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.lbTables);
- 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.lbTables.add(oItem);
- // document.all.lbTables.options.text=;
- // document.all.lbTables.options.value=;
- }
- }
- }
- return false;
- }
- function CheckNull()
- {
- if (form1.WFName.value=="" || form1.WFName.value==null)
- {
- alert("系统提示:流程名称不能为空!");
- return false;
- }
- if (form1.txtUnit.value=="" || form1.txtUnit.value==null)
- {
- alert("系统提示:单位名称不能为空!");
- return false;
- }
- if (form1.lbTables.options.length <1 )
- {
- alert("系统提示:关联表单不能为空!");
- return false;
- }
- var i=0;
- var svalue
- for (i=0;i<form1.lbTables.options.length;i++)
- {
- if (i==0)
- {
- svalue = form1.lbTables.options[i].value;
- }
- else
- {
- svalue = svalue + "|" + form1.lbTables.options[i].value;
- }
- }
- form1.ListValue.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 class="body">
- <form id="form1" runat="server">
- <div>
- <input id="tname" type="hidden" name="tname" runat="server"/> <input id="tid" type="hidden" name="tid" runat="server"/><input id="ListValue" type="hidden" name="tid" runat="server"/>
- <table cellspacing="0" cellpadding="0" width="80%" border="0" style="text-align:center;">
- <tr>
- <td style="height:10;"></td>
- </tr>
- <tr>
- <td>
- <fieldset>
- <legend style="text-align:left;">
- <img alt="流程基本信息" src="image/DateTime.gif" style="text-align:center; border:0;"/>流程基本信息
- </legend>
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr>
- <td style="width:10; height:10;"></td>
- <td style="width:100; text-align:left;"></td>
- <td style="width:300; text-align:left;"></td>
- <td style="width:10;"></td>
- </tr>
- <tr>
- <td style="height:20;"></td>
- <td>流程名称:</td>
- <td align="left">
- <table cellpadding="0" border="0" cellspacing="0">
- <tr>
- <td><asp:TextBox ID="WFName" runat="server" Height="16px" Width="200" MaxLength="40" CssClass="input"></asp:TextBox>
- </td>
- <td> 使用单位:</td>
- <td align="left"><asp:textbox id="txtUnit" runat="server" Width="200" Height="16px" MaxLength="100" CssClass="input"></asp:textbox></td>
- </tr>
- </table></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:8;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:20;"></td>
- <td>流程状态:</td>
- <td align="left">
- <table cellpadding="0" border="0" cellspacing="0" style="border-bottom:0;">
- <tr>
- <td><asp:DropDownList ID="txtStatus" runat="server" Width="204" Height="16px" CssClass="input">
- <asp:ListItem Value="0">停用</asp:ListItem>
- <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
- </asp:DropDownList>
- </td>
- <td> 流程种类:</td>
- <td align="left"><asp:DropDownList ID="txtKind" runat="server" Width="204" Height="16px" CssClass="input"></asp:DropDownList></td>
- </tr>
- </table></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:8;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:20;"></td>
- <td id="qd">启动者:</td>
- <td align="left">
- <asp:DropDownList ID="DLstType" runat="server" Width="204" Height="16px" CssClass="input">
- </asp:DropDownList></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:8;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td></td>
- <td valign="top">关联表单:</td>
- <td align="left">
- <asp:ListBox id="lbTables" runat="server" Width="205" CssClass="input"></asp:ListBox>
- <asp:ImageButton id="ImageButton1" runat="server" ImageUrl="image/ch.gif" OnClientClick="javascript:return OpenShowWindow();"></asp:ImageButton>
- </td>
- <td></td>
- </tr>
- <tr>
- <td style="height:8;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:20;"></td>
- <td valign="top">流程描述:</td>
- <td><asp:textbox id="txtDesc" runat="server" Width="100%" TextMode="MultiLine" Rows="8" MaxLength="200" CssClass="input"></asp:textbox></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:10;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td style="height:20;"></td>
- <td></td>
- <td style="height:22; text-align:right;">
- <asp:ImageButton id="ImgSave" runat="server" ImageUrl="image/savebt.gif" OnClientClick ="javascript:return CheckNull();" OnClick="ImgSave_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>
- <td></td>
- </tr>
- <tr>
- <td style="height:10;"></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </table>
- </fieldset>
- </td>
- </tr>
- </table>
- </div>
- </form>
- </body>
- </html>