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

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="Workflow_WorkFlowConfigureNew, 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.     <base target="_self"/>
  6.     <title>工作流配置器</title>
  7.      <script type="text/javascript">     
  8.     var i=0;
  9.     function   insert_row()
  10.     { 
  11.       
  12.       var R=TBStart.insertRow();
  13.       var C1=R.insertCell();
  14. //      C1.innerHTML="<input type='text' name='TB_EquipmentName"   +   i   +   "'>";     
  15. //      document.getElementById("TB_EquipmentName" + i).innerText="TB_EquipmentName"+i;
  16. //      document.getElementById("TB_EquipmentName" + i).style.width="120px";
  17. //      C1.style.width="120px";
  18.       
  19.      var C2=R.insertCell();   
  20.        C2.innerHTML="<input   type='text'   name='TB_EquipmentSize"   +   i   +   "'>";   
  21.      document.getElementById("TB_EquipmentSize" + i).innerText="TB_EquipmentSize"+i;    
  22.       document.getElementById("TB_EquipmentSize" + i).style.width="120px";
  23.        C2.style.width="120px";
  24.      
  25.     var  C3=R.insertCell();   
  26.        C3.innerHTML="<input   type='text'   name='TB_Model"   +   i   +   "'>";    
  27.        document.getElementById("TB_Model" + i).innerText="TB_Model"+i;   
  28.        document.getElementById("TB_Model" + i).style.width="120px";
  29.       C3.style.width="120px";
  30.     
  31. //     var  C4=R.insertCell();   
  32. //      C4.innerHTML="<input   type='text'   name='TB_UnitName"   +   i   +   "'>";    
  33. //      document.getElementById("TB_UnitName" + i).innerText="TB_UnitName"+i;    
  34. //       document.getElementById("TB_UnitName" + i).style.width="180px"; 
  35. //       C4.style.width="180px";
  36. //    
  37. //     var  C5=R.insertCell();   
  38. //      C5.innerHTML="<input   type='text'  onblur='getSum(this," + document.getElementById("TB_Number" + i) + ", " + i + ");'  name='TB_Price"   +   i   +   "'>";    
  39. //      document.getElementById("TB_Price" + i).innerText=0;     
  40. //        document.getElementById("TB_Price" + i).style.width="60px"; 
  41. //        C5.style.width="60px";
  42. //      
  43. //       var  C6=R.insertCell();   
  44. //      C6.innerHTML="<input   type='text' onblur='load("+ i +");'   name='TB_Number"   +   i   +   "'>";    
  45. //      document.getElementById("TB_Number" + i).innerText=1;     
  46. //        document.getElementById("TB_Number" + i).style.width="60px"; 
  47. //        C6.style.width="60px";
  48. //      
  49. //       var  C7=R.insertCell();   
  50. //      C7.innerHTML="<input   type='text'   name='TB_Subtotale"   +   i   +   "'>";   
  51. //      document.getElementById("TB_Subtotale" + i).innerText=0;    
  52. //      document.getElementById("TB_Subtotale" + i).style.width="80px"; 
  53. //      C7.style.width="80px";
  54.    
  55. //      var  C8=R.insertCell();  
  56. //      C8.innerHTML="<input  id='Button1' type='image'  src='../Images/del.jpg' onclick='delCol()'>";  
  57. //      C8.style.width="80px";
  58.       i++; 
  59.       return false;
  60.     }  
  61.     </script>
  62. </head>
  63. <body>
  64.     <form id="form1" runat="server">
  65.     <script type="text/javascript">
  66.         var i=0;
  67.         function insert_box()
  68.         {
  69.           var R=TBStart.insertRow();
  70.           var C1=R.insertCell();
  71. //          C1.innerHTML="<input name='StartWFName2'type='text' id='StartWFName2' />";
  72. //          alert( C1.innerHTML);
  73.           C1.innerHTML="<input name='StartWFName" + i +"' text='StartWFName" +i +"' type='text' id='StartWFName" +i+ "' />";
  74.           alert( C1.innerHTML);
  75. //          document.getElementById("StartWFName" +i).innertext = "StartWFName" + i;
  76. //          alert(document.getElementById("StartWFName" +i).innertext);
  77.           document.getElementById("StartWFName"+i).style.width="120px";
  78.           C1.style.width="120px";
  79.           i++;
  80.           return false;
  81.         }
  82.     </script>
  83.     <div style="font-size:12px;">
  84.          <table border="0" cellpadding="0" cellspacing="0" style="height: 30px" width="100%">
  85.             <tr>
  86.                 <td>
  87.                     <img alt="" src="image/top_29.jpg" /></td>
  88.                 <td style="background-image: url(image/top_32.jpg); width: 100%; height: 14px; background-color: #f7f7f7">
  89.                     &nbsp;
  90.                     <asp:Label ID="lblTitle" runat="server" BackColor="#F2F2F2" Font-Size="12px">
  91. <strong>工作流配置器</strong></asp:Label></td>
  92.                 <td>
  93.                     <img alt="" src="image/top_34.jpg" /></td>
  94.             </tr>
  95.         </table>
  96.             
  97.         <table>
  98.             <tr style=" background-image:url(image/leftheader.GIF);">
  99.                 <td style="border:1;"><asp:Image ImageUrl="image/leftheader.GIF" runat="server" ID="header" /> </td>
  100.                 <td style="border:1;"><asp:ImageButton CommandName="SaveActive" ID="ImgSave" 
  101.                 ImageUrl="image/save.gif" ToolTip="保存活动" runat="server" OnClick="ImgSave_Click"/>  </td>
  102.                 <td style="border:1;"><asp:ImageButton CommandName="DelActive" ID="ImgDel" 
  103.                 ImageUrl="image/delete1.gif" ToolTip="删除活动" runat="server"/>  </td>
  104.                 <td style="border:1;"><asp:ImageButton CommandName="AddActive" ID="AddActive"
  105.                 ImageUrl="image/activeStart.GIF" ToolTip="添加开始活动" runat="server" OnClick="AddActive_Click" /></td>
  106.                 <td style="border:1;"><asp:ImageButton CommandName="AddOffset" ID="ImgOffset"
  107.                 ImageUrl="image/active.GIF" ToolTip="添加分支活动" runat="server" OnClientClick="javascript:return insert_box();" /></td>
  108.                 <td><input type="button" name="Submit3" style=" border:0px;" value="新增一行" runat="server" onclick="insert_row()" /></td>
  109.                 <td style="border:1;"><asp:ImageButton CommandName="EndActive" ID="ImgEnd"
  110.                 ImageUrl="image/activeend.GIF" ToolTip="添加结束活动" runat="server" /></td>
  111.                 <td style="border:1;"><asp:ImageButton CommandName="ExitActive" ID="ImgExit"
  112.                 ImageUrl="image/exit.GIF" ToolTip="退出" runat="server" OnClientClick="javascript:if(confirm('您确实要退出吗?')) window.close();" /></td>
  113.             </tr>
  114.         </table>
  115.         <table>
  116.             
  117.             <tr>
  118.             <td><asp:Label ID="StartID" Text="开始活动:" runat="server"></asp:Label></td>
  119.             </tr>
  120.             <tr>
  121.             <td><asp:Label ID="LStartWFName" Text="工作流名称:" runat="server"></asp:Label></td>
  122.             <td><asp:TextBox ID="StartWFName" runat="server"></asp:TextBox></td>
  123.             <td><asp:Label ID="LStartWFOwn" Text="所属工作流:" runat="server"></asp:Label></td>
  124.             <td><asp:DropDownList ID="StartWFOwn" runat="server"></asp:DropDownList></td>
  125.             <td><asp:Label ID="LStartWFDecs" Text="描述:" runat="server"></asp:Label></td>
  126.             <td><asp:TextBox ID="StartWFDecs" runat="server"></asp:TextBox></td>
  127.             <td><asp:Label ID="LStartWFPage" Text="启动页:" runat="server"></asp:Label></td>
  128.             <td><asp:DropDownList ID="StartWFPage" runat="server"></asp:DropDownList></td>
  129.             <%--<td><asp:ListBox ID="暗暗" runat="server" DataTextField=""></asp:ListBox></td>--%>
  130.             </tr>
  131.         </table>
  132.         <table id="TBStart" width ="100%">
  133.             
  134.         </table>
  135.     </div>
  136.         <asp:Panel ID="Pnl" runat="server" Height="50px" Width="100%">
  137.         </asp:Panel>
  138.         
  139.     </form>
  140. </body>
  141. </html>