<%@ page language="C#" autoeventwireup="true" inherits="ZoomLa.WebSite.Manage.Content.FlowProcessManager, App_Web_gqexlk3x" enableviewstatemac="false" masterpagefile="~/Manage/I/Default.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<asp:Content runat="server" ContentPlaceHolderID="head">
    <title>流程管理</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
    <asp:ObjectDataSource ID="odsFlowProcess" runat="server"
        SelectMethod="GetProcessByFlowId" TypeName="ZoomLa.BLL.B_Process"
        DeleteMethod="DelProcessById">
        <DeleteParameters>
            <asp:Parameter Name="id" Type="Int32" />
        </DeleteParameters>
        <SelectParameters>
            <asp:QueryStringParameter Name="flowId" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <div>
    </div>
    <ZL:ExGridView ID="EGV" runat="server" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False"
        DataSourceID="odsFlowProcess" RowStyle-HorizontalAlign="Center" class="table table-striped table-bordered table-hover"
        PageSize="20" OnRowDataBound="gwFlowProcess_RowDataBound"  DataKeyNames="id">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" />
            <asp:BoundField DataField="PName" HeaderText="流程步骤名称" />
            <asp:BoundField DataField="PDepcit" HeaderText="流程步骤描述" />
            <asp:BoundField DataField="PPassName" HeaderText="通过操作的操作名" />
            <asp:BoundField DataField="PNoPassName" HeaderText="打回操作的操作名" />
            <asp:TemplateField HeaderText="流程步骤操作 " ShowHeader="False">
                <ItemTemplate>
                    <a href='ModifyProcess.aspx?id=<%#Eval("id") %>&flowId=<%#Eval("PFlowId") %>&flowname=<%=Request.QueryString["name"] %>'>修改流程步骤</a> |  
				<asp:LinkButton ID="lbDel" runat="server" CausesValidation="False" OnClientClick="{return confirm('你确定要将所有选择项删除吗？')}"
                    CommandName="Delete" Text="删除流程步骤"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle HorizontalAlign="Center" Font-Bold="true" />
        <HeaderStyle Height="26px" />
    </ZL:ExGridView>
    <asp:Button runat="server" ID="button1" class="btn btn-primary" Text="添加步骤" OnClick="button1_Click" OnClientClick="order(); return false;" />
    <script type="text/javascript">
        function order() {
            location.href = 'FlowProcess.aspx?id=<%=Request.QueryString["id"] %>&name=<%=Request.QueryString["name"] %>';
        }
    </script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent"></asp:Content>
