<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkFlowEdit.aspx.cs" Inherits="InfoPath.WorkFlow.WorkFlowEdit" %>
<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc1" %>

<%@ Register src="../Include/TableSelect.ascx" tagname="TableSelect" tagprefix="uc2" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
<div>
        <uc1:Css ID="Css1" runat="server" />
    <table width="100%">
  <tr class="WsdnOrgTitle1">
	<td>
	<asp:Button class="buttons" ID="btnSubmit" runat="server" Text="" onclick="btnSubmit_Click" />
	<asp:Button class="buttons" ID="btnBack" runat="server" Text="Button" onclick="btnBack_Click" />

	<asp:label id="Msg" runat="server" ForeColor="Red"></asp:label>
	</td>
  </tr>
  <tr class="WsdnOrgTitle">
	<td><b>
        <asp:Label ID="titAddWorkFlow" runat="server" Text=""></asp:Label></b>
        
    </td>
  </tr>
  <tr>
	<td>
	<TABLE width="100%">
  <tr class="WsdnOrgInfo">
	<td>
        <asp:Label ID="lblWorkFlowName" runat="server" ></asp:Label>
        </td>
	<td>
        <asp:TextBox ID="WorkFlowName" runat="server" Width=350 ></asp:TextBox>
        </td>
        </tr>
  <tr class="WsdnOrgInfo1">
	<td>
	        <asp:Label ID="lblBeginURL" runat="server" ></asp:Label>

	</td>
	<td>
        <uc2:TableSelect ID="TableSelect1" runat="server" />
        <asp:Button class="buttons" ID="Button1" runat="server" onclick="Button1_Click" 
            Text="&gt;&gt;&gt;" />
        <br />
        <asp:TextBox ID="BeginURL" runat="server" Width=350></asp:TextBox>
	
	</td>
  </tr>
  
  <TR class="WsdnOrgInfo">
	<TD><asp:Label ID="lblEditURL" runat="server" ></asp:Label></TD>
	<TD><asp:TextBox ID="EditURL" runat="server" Width=350></asp:TextBox></TD>
	</tr>
  <TR class="WsdnOrgInfo1">
	<TD><asp:Label ID="lblCreateDate" runat="server" ></asp:Label></TD>
	<TD><asp:TextBox ID="CreateDate" runat="server" Enabled=false Width=350></asp:TextBox></TD>
	</tr>

  <tr>
	<TD colspan=2>
	<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
            onrowediting="GridView1_RowEditing" 
            onpageindexchanged="GridView1_PageIndexChanged" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowdeleted="GridView1_RowDeleted" onrowupdated="GridView1_RowUpdated" 
            DataKeyNames="NodeName,NodeID" onrowcommand="GridView1_RowCommand" 
            onrowdeleting="GridView1_RowDeleting" onrowupdating="GridView1_RowUpdating" OnRowDataBound="GridView_RowDataBound"
>
        <Columns >
            <asp:TemplateField>
                <EditItemTemplate>
                    <asp:TextBox ID="tbNodeName" runat="server" Text='<%# Bind("NodeName") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("NodeName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <EditItemTemplate>
            <asp:DropDownList ID="ddlAuditorType" DataValueField="AuditorType"  SelectedValue=' <%# Eval("AuditorType")%>' runat="server">
            <asp:ListItem>总公司经理</asp:ListItem>
            <asp:ListItem>公司经理</asp:ListItem>
            <asp:ListItem>部门经理</asp:ListItem>
            <asp:ListItem>直接上级</asp:ListItem>
            <asp:ListItem>指定人</asp:ListItem>
        </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("AuditorType") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <EditItemTemplate>
                    <asp:TextBox ID="tbAuditor" runat="server" Text='<%# Bind("Auditor") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Auditor") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Position" />
            <asp:CommandField ShowEditButton="True" />
<asp:TemplateField HeaderText="操作">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="delete" CommandArgument="postId" OnClientClick="return confirm('确定删除吗')" >删除</asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
        </Columns>
        <RowStyle CssClass="WsdnOrgInfo" ForeColor="#000000" />
        <FooterStyle CssClass="WsdnOrgInfo1" ForeColor="White" Font-Bold="True" />
        <PagerStyle CssClass="WsdnOrgInfo1" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle CssClass="WsdnOrgInfo1" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle CssClass="WsdnOrgTitle" Font-Bold="True" HorizontalAlign="Left" />
        <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
	</TD>
  </TR>
        
  </TABLE>
	
</td>
  </tr>
  <tr class="WsdnOrgTitle1">
	<td>	<asp:Button class="buttons" ID="btnSubmit1" runat="server" Text="" 
            onclick="btnSubmit1_Click" />
            <asp:Button class="buttons" ID="btnBack1" runat="server" Text="Button" 
            onclick="btnBack1_Click" />
</td>
  </tr>
  </TABLE>
    </div>
    </form>
</body>
</html>
