<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WfStep.aspx.cs" Inherits="TotCms.Web.Office.Workflow.WfStep" %>
<!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 id="Head1" runat="server">
    <title>步骤管理</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/common.js"></script>
    <script type="text/javascript">
    function AddStepWin(id){
        var ret=window.showModalDialog('Step_Edit.aspx?id='+id+'&flowid='+<%=GetFlowId() %>,'','dialogHeight:400px;dialogWidth:500px;help:no;status:no;scroll:no');
        window.location.reload(); 
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="border">
      <tr class="suphead">
        <td colspan="5">
          <asp:Literal ID="liTitle" runat="server"></asp:Literal>
          -步骤管理</td>
    </tr>
    <tr>
      <td colspan="5" height="24" style="padding-left:5px;"><a href="javascript:AddStepWin(0)">添加=&gt;</a></td>
    </tr>
    <asp:Repeater ID="rpList" runat="server" onitemcommand="Repeater1_ItemCommand">
    <HeaderTemplate>
    <tr class="suphead">
      <td align="center">
        步骤
      </td>
      <td align="center">
        名称
      </td>
      <td align="center">
        类型
      </td>
      <td align="center">
        执行人
      </td>
      <td align="center">
        操作
      </td>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr class="lines">
      <td align="center">
        <%# Eval("StepId")%>
      </td>
      <td align="center">
        <%# Eval("Title")%>
      </td>
      <td align="center">
        <%# Eval("StepType")%>
      </td>
      <td align="center">
        <%# Eval("RunBy")%>
      </td>
      <td align="center">
        <a href='javascript:AddStepWin(<%# Eval("id")%>)'>编辑</a>
				|
				<asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton>
			
      </td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
    
    <tr>
      <td align="center" colspan="5">
        <input id="Button2" type="reset" value="返 回" 
          onclick="javascript:history.back();" /></td>
    </tr>
  </table>
    </form>
</body>
</html>

