<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="workflowdetailmanager.aspx.cs" Inherits="Us.Web.Extend.admin.workflow.workflowdetailmanager" %>


<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <title>工作流详细配置管理</title>

    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
    <%=ImportScriptStr %>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>

    <script language="javascript" type="text/javascript">
        function opJsTreeRole(txt, txtValue) {
            var para = "/admin/workflow/treeroleselect.aspx?para=2&list=" + $("#" + txtValue).val() + "";
            CareffArtOpen4(para, '角色选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
               

            });
        }
        function opJsTreeUser(txt, txtValue, txtRole) {
            var role = $("#" + txtRole).val()
            var para = "/admin/workflow/treeuserselect.aspx?para=2&list=" + $("#" + txtValue).val() + "&role=" + role;
            CareffArtOpen4(para, '人员选择', 300, 500, function (path) {
                //alert(path);
                if (path == null) { return false; }
                var strs = path.split("#")
                var m = $id(txt)
                m.value = strs[1];
                var m1 = $id(txtValue)
                m1.value = strs[0];
                

            });
        }

    </script>
     <script language="javascript" type="text/javascript">
         KindEditor.ready(function (K) {
             K.create('#txtFDetailInfo');
         });
</script>

</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">

        <div id="tbMain">
            <div class="divTbg">
                <div class="divTbgL">
                </div>
                <div class="divTbgInfo">
                    <div class="divTbgTitle">
                        工作流详细配置管理
                    </div>
                </div>
            </div>
            <div class="divTbgF">
            </div>
            <div class="divTNavBG" id="topURL">
                <ul id="topURLul">
                    <li class="divURLed" id="div1">
                        <div>
                            <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                            基本信息
                        </div>
                    </li>
                </ul>
            </div>
            <div id="mypanel">
                <div class="divInfoContext">
                    <div class="divInfo">
                        <div class="divInfoblack">
                            <div class="divInfoTopList">
                                <div class="listLeft">
                                    <div class="navtitle">
                                        工作流详细配置管理
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="divInfo">
                        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist" onmouseover="changeto()" onmouseout="changeback()">
                            <tr class="tablisttr">
                                <td class="tablisttitle">工作流编号<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFlowID" runat="server" ToolTip="工作流编号" Text="" CssClass="1" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="tablisttitle">工作流名称</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFlowName" runat="server" ToolTip="工作流编号" Text="" CssClass="1" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">节点编号<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFDetailID" runat="server" ToolTip="节点编号" Text="" CssClass="1" Enabled="false"></asp:TextBox>
                                </td>
                                <td class="tablisttitle">节点名称<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtFDetailName" runat="server" ToolTip="节点名称" Text="" CssClass="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">上级节点<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtParentID" runat="server" ToolTip="上级节点" Text="0" CssClass="1"></asp:TextBox>
                                    <br />
                                    (开始节点请填0)</td>
                                <td class="tablisttitle">显示顺序<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtShowID" runat="server" ToolTip="显示顺序" Text="1" CssClass="2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">&nbsp;</td>
                                <td class="tabmanagertr">&nbsp;</td>
                                <td class="tablisttitle">&nbsp;</td>
                                <td class="tabmanagertr">&nbsp;</td>
                            </tr>
                            <tr class="tablisttr" style="display:none">
                                <td class="tablisttitle">发起角色<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                   
                                    <asp:TextBox ID="txtRoleName" runat="server" ToolTip="发起角色" Text=""></asp:TextBox>
                                    <div style="display:none;"> <asp:TextBox ID="txtRoleID" runat="server" ToolTip="发起角色" Text=""></asp:TextBox></div>
                                    <a href="javascript:opJsTreeRole('txtRoleName','txtRoleID');">[选择角色]</a>

                                </td>
                                <td class="tablisttitle">发起人员</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtUserName" runat="server" ToolTip="发起人员" Text=""></asp:TextBox>
                                    <div style="display:none;"> <asp:TextBox ID="txtUserID" runat="server" ToolTip="发起人员" Text=""></asp:TextBox></div>
                                     <a href="javascript:opJsTreeUser('txtUserName','txtUserID','txtRoleID');">[选择人员]</a>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">审批角色<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtToRoleName" runat="server" ToolTip="审批角色" Text="" CssClass="1"></asp:TextBox>
                                    <div style="display:none;"> <asp:TextBox ID="txtToRoleID" runat="server" ToolTip="发起角色" Text=""></asp:TextBox></div>
                                    <a href="javascript:opJsTreeRole('txtToRoleName','txtToRoleID');">[选择角色]</a></td>
                                <td class="tablisttitle">审批人员</td>
                                <td class="tabmanagertr">
                                    <asp:TextBox ID="txtToUserName" runat="server" ToolTip="审批人员" Text=""></asp:TextBox>
                                    <div style="display:none;"> <asp:TextBox ID="txtToUserID" runat="server" ToolTip="审批人员" Text=""></asp:TextBox></div>
                                     <a href="javascript:opJsTreeUser('txtToUserName','txtToUserID','txtToRoleID');">[选择人员]</a>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">节点生效</td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpFDetailState" ToolTip="节点生效">
                                        <asp:ListItem Value="CodeYesNo" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td class="tablisttitle">节点类型<span class="fStar">*</span></td>
                                <td class="tabmanagertr">
                                    <asp:DropDownList runat="server" ID="drpFDetailType" ToolTip="节点类型" CssClass="1">
                                        <asp:ListItem Value="FDetailType" Text="codeno"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">执行命令</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtFDSQL" runat="server" ToolTip="执行命令" Width="98%"></asp:TextBox></td>
                            </tr>
                            <tr class="tablisttr">
                                <td class="tablisttitle">节点说明</td>
                                <td class="tabmanagertr" colspan="3">
                                    <asp:TextBox ID="txtFDetailInfo" runat="server" ToolTip="节点说明"
                                        TextMode="MultiLine" Height="150px" Width="98%"
                                       ></asp:TextBox>
                                </td>
                            </tr>
                        </table>

                        

                        <div class="divSave">
                            <asp:Button ID="btnSubmit" runat="server" Text="保存(S)"
                                CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                            <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus"
                                OnClick="btnSubmit_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>
</body>
</html>
