WorkFlowConfigureENew.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:8k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Workflow_WorkFlowConfigureENew, App_Web_-rs7x2pk" theme="Normal" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>流程定义</title>
  6.     <link href="style/formbody.css" type="text/css" rel="stylesheet"/>
  7. <script type="text/javascript">
  8. function SelectTable()
  9. {
  10. var i;
  11. var flds=document.all.tname.value.split(',');
  12. var fldcount=flds.length;
  13. document.all.lbTables.options.length=0;
  14. for (i=0;i<fldcount;i++)
  15. {
  16. document.all.lbTables.options.add(new Option(flds[i],flds[i]));
  17. }
  18. }
  19. function  DelAllItem(ListBox2Object)  //删除全部
  20.         {
  21.          var rows=ListBox2Object.options.length;
  22.          for(i=rows-1;i>=0;i--)
  23.            { 
  24.               ListBox2Object.options.remove(i);
  25.            }
  26.         }
  27. function OpenShowWindow()
  28. {
  29. //     var NVale = window.location.href("WorkFlowSelectTable.aspx");
  30.     var NVale=window.showModalDialog("WorkFlowSelectTable.aspx?StrN=E","","help=0;dialogWidth=450px;dialogHeight=350px;status=no;status=no;");
  31.     if (NVale!=undefined)
  32.             {
  33.             
  34.                var Vstr = NVale.split("|");
  35.                var VValue,VText;
  36.                if (Vstr.length==2)
  37.                {    
  38.                     DelAllItem(document.all.lbTables);
  39.                     var i=0;
  40.                     VValue=Vstr[0].split(",");
  41.                     VText=Vstr[1].split(",");
  42.                     for(i=0;i<VValue.length-1;i++)
  43.                     {
  44.                         var oItem=document.createElement("option");
  45.                     oItem.text=VText[i];
  46.                     oItem.value=VValue[i];
  47.                     document.all.lbTables.add(oItem);
  48. //                        document.all.lbTables.options.text=;
  49. //                        document.all.lbTables.options.value=;
  50.                     }
  51.                }
  52.             }
  53.             return false;
  54. }
  55. function CheckNull()
  56. {
  57.     if (form1.WFName.value=="" || form1.WFName.value==null) 
  58.     {
  59.         alert("系统提示:流程名称不能为空!");
  60.         return false;
  61.     }
  62.     if (form1.txtUnit.value=="" || form1.txtUnit.value==null)
  63.     {
  64.         alert("系统提示:单位名称不能为空!");
  65.         return false;
  66.     }
  67.             if (form1.lbTables.options.length <1 )
  68.             {
  69.         alert("系统提示:关联表单不能为空!");
  70.         return false;
  71.     }
  72.     var i=0;
  73.     var svalue
  74.     for (i=0;i<form1.lbTables.options.length;i++)
  75.     {
  76.         if (i==0) 
  77.         {
  78.             svalue = form1.lbTables.options[i].value;
  79.         }
  80.         else 
  81.         {
  82.             svalue = svalue + "|" + form1.lbTables.options[i].value;
  83.          }
  84.     }
  85.     form1.ListValue.value = svalue;
  86. //     alert(document.getElementById("WFName").value);
  87. }
  88. function OKCancel()
  89. {
  90.     if (confirm("系统提示:您确定取消本次操作吗?")) 
  91.     {
  92.         window.location.href("WorkFlowConfigure.aspx");
  93.     }
  94.     return false;
  95. }
  96. function SysHelp()
  97. {
  98.     alert("系统提示:对不起系统未提供应有的帮助!");
  99.     return false;
  100. }
  101. </script>
  102. </head>
  103. <body class="body">
  104.     <form id="form1" runat="server">
  105.     <div>
  106.         <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"/>
  107.         
  108. <table cellspacing="0" cellpadding="0" width="80%" border="0" style="text-align:center;">
  109. <tr>
  110. <td style="height:10;"></td>
  111. </tr>
  112. <tr>
  113. <td>
  114. <fieldset>
  115. <legend style="text-align:left;">
  116. <img alt="流程基本信息" src="image/DateTime.gif" style="text-align:center; border:0;"/>流程基本信息
  117. </legend>
  118. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  119. <tr>
  120. <td style="width:10; height:10;"></td>
  121. <td style="width:100; text-align:left;"></td>
  122. <td style="width:300; text-align:left;"></td>
  123. <td style="width:10;"></td>
  124. </tr>
  125. <tr>
  126. <td style="height:20;"></td>
  127. <td>流程名称:</td>
  128. <td align="left">
  129.     <table cellpadding="0" border="0" cellspacing="0">
  130.     <tr>
  131.     <td><asp:TextBox ID="WFName" runat="server" Height="16px" Width="200" MaxLength="40" CssClass="input"></asp:TextBox>
  132.     </td>
  133.     <td>&nbsp;&nbsp;&nbsp;使用单位:</td>
  134. <td align="left"><asp:textbox id="txtUnit" runat="server" Width="200" Height="16px" MaxLength="100" CssClass="input"></asp:textbox></td>
  135.     </tr>
  136.     </table></td>
  137. <td></td>
  138. </tr>
  139. <tr>
  140. <td style="height:8;"></td>
  141. <td></td>
  142. <td></td>
  143. <td></td>
  144. </tr>
  145. <tr>
  146. <td style="height:20;"></td>
  147. <td>流程状态:</td>
  148. <td align="left">
  149. <table cellpadding="0" border="0" cellspacing="0" style="border-bottom:0;">
  150.     <tr>
  151.     <td><asp:DropDownList ID="txtStatus" runat="server" Width="204" Height="16px" CssClass="input">
  152.                                             <asp:ListItem Value="0">停用</asp:ListItem>
  153.                                             <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
  154.                                         </asp:DropDownList>
  155.     </td>
  156.     <td>&nbsp;&nbsp;&nbsp;流程种类:</td>
  157. <td align="left"><asp:DropDownList ID="txtKind" runat="server" Width="204" Height="16px" CssClass="input"></asp:DropDownList></td>
  158.     </tr>
  159.     </table></td>
  160. <td></td>
  161. </tr>
  162. <tr>
  163. <td style="height:8;"></td>
  164. <td></td>
  165. <td></td>
  166. <td></td>
  167. </tr>
  168. <tr>
  169. <td style="height:20;"></td>
  170. <td id="qd">启动者:</td>
  171. <td align="left">
  172.                                         <asp:DropDownList ID="DLstType" runat="server" Width="204" Height="16px" CssClass="input">
  173.                                         </asp:DropDownList></td>
  174. <td></td>
  175. </tr>
  176. <tr>
  177. <td style="height:8;"></td>
  178. <td></td>
  179. <td></td>
  180. <td></td>
  181. </tr>
  182. <tr>
  183. <td></td>
  184. <td valign="top">关联表单:</td>
  185. <td align="left">
  186. <asp:ListBox id="lbTables" runat="server" Width="205" CssClass="input"></asp:ListBox>
  187. <asp:ImageButton id="ImageButton1" runat="server" ImageUrl="image/ch.gif" OnClientClick="javascript:return OpenShowWindow();"></asp:ImageButton>
  188. </td>
  189. <td></td>
  190. </tr>
  191. <tr>
  192. <td style="height:8;"></td>
  193. <td></td>
  194. <td></td>
  195. <td></td>
  196. </tr>
  197. <tr>
  198. <td style="height:20;"></td>
  199. <td valign="top">流程描述:</td>
  200. <td><asp:textbox id="txtDesc" runat="server" Width="100%" TextMode="MultiLine" Rows="8" MaxLength="200" CssClass="input"></asp:textbox></td>
  201. <td></td>
  202. </tr>
  203. <tr>
  204. <td style="height:10;"></td>
  205. <td></td>
  206. <td></td>
  207. <td></td>
  208. </tr>
  209. <tr>
  210. <td style="height:20;"></td>
  211. <td></td>
  212. <td style="height:22; text-align:right;">
  213. <asp:ImageButton id="ImgSave" runat="server" ImageUrl="image/savebt.gif" OnClientClick ="javascript:return CheckNull();" OnClick="ImgSave_Click"></asp:ImageButton>&nbsp;&nbsp;&nbsp;
  214. <asp:ImageButton id="ImgCancel" runat="server" ImageUrl="image/cancel.gif" OnClientClick="javascript:return OKCancel();"></asp:ImageButton>&nbsp;&nbsp;&nbsp;
  215. <asp:ImageButton id="ImgHelp" runat="server" ImageUrl="image/help.gif" OnClientClick="javascript:return SysHelp();"></asp:ImageButton>
  216. </td>
  217. <td></td>
  218. </tr>
  219. <tr>
  220. <td style="height:10;"></td>
  221. <td></td>
  222. <td></td>
  223. <td></td>
  224. </tr>
  225. </table>
  226. </fieldset>
  227. </td>
  228. </tr>
  229. </table>
  230.     
  231.     </div>
  232.     </form>
  233. </body>
  234. </html>