<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Step_Edit.aspx.cs" Inherits="TotCms.Web.Office.Workflow.Step_Edit" %>

<!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>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/common.js"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(function () {
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 450,
          modal: true,
          buttons: {
            "关闭窗口": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });
      });
      function CloseFrame() {
        $("#dialog-win").dialog("close");
      }
      function ReturnValue(v, t,b) {
        $('#tbStaffs').val(t);
        $('#tbStaffId').val(v);
        $('#tbAssignBy').val(b);
        CloseFrame();
      }
    </script>
</head>
<base target="_self" />
<body>
    <form id="form1" runat="server">
    <div id="dialog-win" title="选择员工">
	    <iframe src="../Staff/Staff_WfSelectRun.aspx" width="400" height="350" frameborder="0" scrolling="auto"></iframe>	
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="border">
      <tr class="suphead">        
        <td colspan="2"><asp:Literal ID="liTitle" runat="server"></asp:Literal>步骤
        </td>
    </tr>
    <tr>
      <td class="fields_text">
          步骤名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbTitle" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="tbTitle" ErrorMessage="名称不能为空" SetFocusOnError="True"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
          步骤类型：</td>
      <td class="fields_input">
          <asp:DropDownList ID="ddStepType" runat="server">
            <asp:ListItem>执行</asp:ListItem>
            <asp:ListItem>审核</asp:ListItem>
            <asp:ListItem>知会</asp:ListItem>
            <asp:ListItem>存档</asp:ListItem>
          </asp:DropDownList>
      </td>
    </tr>
    <tr>
      <td class="fields_text">
          动作控制：</td>
      <td class="fields_input">
          <asp:DropDownList ID="ddActionRun" runat="server">
            <asp:ListItem Value="1">① 任一执行人同意或否定即流转到下一步</asp:ListItem>
            <asp:ListItem Value="2">② 根据所有执行人的同意决定流转</asp:ListItem>
            <asp:ListItem Value="3">③ 由审批人指定下一步执行人员</asp:ListItem>
          </asp:DropDownList>
      </td>
    </tr>
    
    <tr>
      <td class="fields_text">
          执行人：</td>
      <td class="fields_input">
          <asp:TextBox ID="tbStaffs" runat="server" CssClass="input_middle"></asp:TextBox>
          <asp:TextBox ID="tbStaffId" runat="server" CssClass="hidden"></asp:TextBox>
          <asp:TextBox ID="tbAssignBy" runat="server" CssClass="hidden">1</asp:TextBox>
          <input id="selclass" name="selclass" type="button" value="请选择" class="selclass" />
      </td>
    </tr>
    
    <tr>
      <td class="fields_text">
          过期设置：</td>
      <td class="fields_input">
          <asp:DropDownList ID="ddDays" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>15</asp:ListItem>
            <asp:ListItem>30</asp:ListItem>
          </asp:DropDownList>
          天<asp:DropDownList ID="ddHour" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
            <asp:ListItem>10</asp:ListItem>
            <asp:ListItem>11</asp:ListItem>
            <asp:ListItem>12</asp:ListItem>
          </asp:DropDownList>
          小时</td>
    </tr>
    
    <tr>
      <td class="fields_text">
          可以查看他人意见：</td>
      <td class="fields_input">
          <asp:CheckBox ID="cbCanViewOther" runat="server" />
      </td>
    </tr>
    
    <tr>
      <td class="fields_text">
          是否可以编辑：</td>
      <td class="fields_input">
          <asp:CheckBox ID="cbCanEdit" runat="server" />
      </td>
    </tr>
    
    <tr>
      <td colspan="2" align="center">
        <asp:Button ID="Button1" runat="server" Text="确 定" onclick="Button1_Click" />
        <input id="Button2" type="reset" value="关 闭" 
          onclick="javascript:window.close();" /></td>
    </tr>
  </table>
    </form>
</body>
</html>
