- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkFlowConfigureNew.aspx.cs" Inherits="Workflow_WorkFlowConfigureNew" %>
- <!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">
- <base target="_self"/>
- <title>工作流配置器</title>
- <script type="text/javascript">
- var i=0;
- function insert_row()
- {
- var R=TBStart.insertRow();
- var C1=R.insertCell();
- // C1.innerHTML="<input type='text' name='TB_EquipmentName" + i + "'>";
- // document.getElementById("TB_EquipmentName" + i).innerText="TB_EquipmentName"+i;
- // document.getElementById("TB_EquipmentName" + i).style.width="120px";
- // C1.style.width="120px";
- var C2=R.insertCell();
- C2.innerHTML="<input type='text' name='TB_EquipmentSize" + i + "'>";
- document.getElementById("TB_EquipmentSize" + i).innerText="TB_EquipmentSize"+i;
- document.getElementById("TB_EquipmentSize" + i).style.width="120px";
- C2.style.width="120px";
- var C3=R.insertCell();
- C3.innerHTML="<input type='text' name='TB_Model" + i + "'>";
- document.getElementById("TB_Model" + i).innerText="TB_Model"+i;
- document.getElementById("TB_Model" + i).style.width="120px";
- C3.style.width="120px";
- // var C4=R.insertCell();
- // C4.innerHTML="<input type='text' name='TB_UnitName" + i + "'>";
- // document.getElementById("TB_UnitName" + i).innerText="TB_UnitName"+i;
- // document.getElementById("TB_UnitName" + i).style.width="180px";
- // C4.style.width="180px";
- //
- // var C5=R.insertCell();
- // C5.innerHTML="<input type='text' onblur='getSum(this," + document.getElementById("TB_Number" + i) + ", " + i + ");' name='TB_Price" + i + "'>";
- // document.getElementById("TB_Price" + i).innerText=0;
- // document.getElementById("TB_Price" + i).style.width="60px";
- // C5.style.width="60px";
- //
- // var C6=R.insertCell();
- // C6.innerHTML="<input type='text' onblur='load("+ i +");' name='TB_Number" + i + "'>";
- // document.getElementById("TB_Number" + i).innerText=1;
- // document.getElementById("TB_Number" + i).style.width="60px";
- // C6.style.width="60px";
- //
- // var C7=R.insertCell();
- // C7.innerHTML="<input type='text' name='TB_Subtotale" + i + "'>";
- // document.getElementById("TB_Subtotale" + i).innerText=0;
- // document.getElementById("TB_Subtotale" + i).style.width="80px";
- // C7.style.width="80px";
- // var C8=R.insertCell();
- // C8.innerHTML="<input id='Button1' type='image' src='../Images/del.jpg' onclick='delCol()'>";
- // C8.style.width="80px";
- i++;
- return false;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <script type="text/javascript">
- var i=0;
- function insert_box()
- {
- var R=TBStart.insertRow();
- var C1=R.insertCell();
- // C1.innerHTML="<input name='StartWFName2'type='text' id='StartWFName2' />";
- // alert( C1.innerHTML);
- C1.innerHTML="<input name='StartWFName" + i +"' text='StartWFName" +i +"' type='text' id='StartWFName" +i+ "' />";
- alert( C1.innerHTML);
- // document.getElementById("StartWFName" +i).innertext = "StartWFName" + i;
- // alert(document.getElementById("StartWFName" +i).innertext);
- document.getElementById("StartWFName"+i).style.width="120px";
- C1.style.width="120px";
- i++;
- return false;
- }
- </script>
- <div style="font-size:12px;">
- <table border="0" cellpadding="0" cellspacing="0" style="height: 30px" width="100%">
- <tr>
- <td>
- <img alt="" src="image/top_29.jpg" /></td>
- <td style="background-image: url(image/top_32.jpg); width: 100%; height: 14px; background-color: #f7f7f7">
-
- <asp:Label ID="lblTitle" runat="server" BackColor="#F2F2F2" Font-Size="12px">
- <strong>工作流配置器</strong></asp:Label></td>
- <td>
- <img alt="" src="image/top_34.jpg" /></td>
- </tr>
- </table>
- <table>
- <tr style=" background-image:url(image/leftheader.GIF);">
- <td style="border:1;"><asp:Image ImageUrl="image/leftheader.GIF" runat="server" ID="header" /> </td>
- <td style="border:1;"><asp:ImageButton CommandName="SaveActive" ID="ImgSave"
- ImageUrl="image/save.gif" ToolTip="保存活动" runat="server" OnClick="ImgSave_Click"/> </td>
- <td style="border:1;"><asp:ImageButton CommandName="DelActive" ID="ImgDel"
- ImageUrl="image/delete1.gif" ToolTip="删除活动" runat="server"/> </td>
- <td style="border:1;"><asp:ImageButton CommandName="AddActive" ID="AddActive"
- ImageUrl="image/activeStart.GIF" ToolTip="添加开始活动" runat="server" OnClick="AddActive_Click" /></td>
- <td style="border:1;"><asp:ImageButton CommandName="AddOffset" ID="ImgOffset"
- ImageUrl="image/active.GIF" ToolTip="添加分支活动" runat="server" OnClientClick="javascript:return insert_box();" /></td>
- <td><input type="button" name="Submit3" style=" border:0px;" value="新增一行" runat="server" onclick="insert_row()" /></td>
- <td style="border:1;"><asp:ImageButton CommandName="EndActive" ID="ImgEnd"
- ImageUrl="image/activeend.GIF" ToolTip="添加结束活动" runat="server" /></td>
- <td style="border:1;"><asp:ImageButton CommandName="ExitActive" ID="ImgExit"
- ImageUrl="image/exit.GIF" ToolTip="退出" runat="server" OnClientClick="javascript:if(confirm('您确实要退出吗?')) window.close();" /></td>
- </tr>
- </table>
- <table>
- <tr>
- <td><asp:Label ID="StartID" Text="开始活动:" runat="server"></asp:Label></td>
- </tr>
- <tr>
- <td><asp:Label ID="LStartWFName" Text="工作流名称:" runat="server"></asp:Label></td>
- <td><asp:TextBox ID="StartWFName" runat="server"></asp:TextBox></td>
- <td><asp:Label ID="LStartWFOwn" Text="所属工作流:" runat="server"></asp:Label></td>
- <td><asp:DropDownList ID="StartWFOwn" runat="server"></asp:DropDownList></td>
- <td><asp:Label ID="LStartWFDecs" Text="描述:" runat="server"></asp:Label></td>
- <td><asp:TextBox ID="StartWFDecs" runat="server"></asp:TextBox></td>
- <td><asp:Label ID="LStartWFPage" Text="启动页:" runat="server"></asp:Label></td>
- <td><asp:DropDownList ID="StartWFPage" runat="server"></asp:DropDownList></td>
- <%--<td><asp:ListBox ID="暗暗" runat="server" DataTextField=""></asp:ListBox></td>--%>
- </tr>
- </table>
- <table id="TBStart" width ="100%">
- </table>
- </div>
- <asp:Panel ID="Pnl" runat="server" Height="50px" Width="100%">
- </asp:Panel>
- </form>
- </body>
- </html>