<%@ page language="C#" autoeventwireup="true" inherits="Plan_PlanStepIntro, App_Web_dy1ncacz" theme="Themes" stylesheettheme="Themes" %>

<!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>
    <style type="text/css">
        html 
        {
            overflow-x:hidden;
            
            }
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 334px;
        }
    </style>
     <script type="text/javascript" src="../Js/jquery.js"></script>
    <link rel="stylesheet" href="../css/form-field-tooltip.css" media="screen" type="text/css">

    <script type="text/javascript" src="../js/rounded-corners.js"></script>

    <script type="text/javascript" src="../js/form-field-tooltip.js"></script>
    <script type="text/javascript" src="../js/iframe_noscroll.js"></script>

  <%--  <link id="artDialogSkin" href="../js/skin/default.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/artDialog.js"></script>
--%>

  <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <script type="text/javascript">
        //artDialog js的完美弹出层
        function showEditCon(url) {
            var sURL = url;
//            art.dialog({ id: 'myDialogNote', title: '编辑条件', iframe: sURL, width: '550', height: '280', lock: true }).close(function() {
//                document.getElementById("btnBindData").click();
//            });

            art.dialog.open(sURL, { id: 'myDialogNote', title: '编辑条件', width: '550px', height: '280px', lock: true, closeFn: function() { document.getElementById("btnBindData").click(); } });
            return false;
        };

  
  
    </script>

</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="r_top_box margintop5" style="background-color:White;">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td>
                            请选择流程类型：<asp:RadioButton ID="rbtnFool" runat="server" GroupName="a" OnCheckedChanged="rbtnFool_CheckedChanged"
                                AutoPostBack="True" Text="松散型" />
                            <asp:RadioButton ID="rbtnSingle" runat="server" GroupName="a" OnCheckedChanged="rbtnFool_CheckedChanged"
                                Text="线型" AutoPostBack="True" />
                            <asp:RadioButton ID="rbtnMuti" runat="server" GroupName="a" OnCheckedChanged="rbtnFool_CheckedChanged"
                                Text="自定义型" AutoPostBack="True" Visible="False" />
                            <asp:Image ID="Image3" runat="server" ImageUrl="../images/helpnew.gif" CssClass="img_style"
                                tooltipText="提示：<br><b>松散型:</b><br>指流程中的活动不需要严格的先后顺序，只需设置计划的完成条件。<br><b>线型:</b><br>指流程中的活动按照先后顺序排列，必须依次进行。" Height="16px" Width="16px" />
                            
                            <asp:Button ID="btnBindData" runat="server" OnClick="btnBindData_Click" Text="Button" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" style="background-color:White;">
                            <asp:Panel ID="PanelStep" runat="server" Height="100%" Width="100%">
                                <asp:Panel ID="PaneldlStep" runat="server" Width="100%">
                                    <asp:DataList ID="dlStep" Width="90%" runat="server" SkinID="90" DataKeyField="id" OnItemDataBound="dlStep_ItemDataBound"
                                        OnItemCommand="dlStep_ItemCommand" ItemStyle-BackColor="White" 
                                        AlternatingItemStyle-BackColor="White" EditItemStyle-BackColor="White">
                                        <EditItemStyle BackColor="White" />
                                        <ItemTemplate>
                                            <table cellpadding="5" cellspacing="0" 
                                                style="border:solid 1px #f5f5f5; background-color:White;" width="100%">
                                                <tr>
                                                    <td align="center" colspan="2" style="background-color:#f9fcfe;">
                                                        <asp:Label ID="lblActName" runat="server" Font-Bold="False" Font-Names="微软雅黑" 
                                                            Font-Size="15pt" Text='<%# Eval("name") %>'></asp:Label>
                                                        <asp:Label ID="lblActivityType" runat="server" 
                                                            Text='<%# Eval("ActivityType") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lblGreaterEqual" runat="server" 
                                                            Text='<%# Eval("GreaterEqual") %>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lblLessThan" runat="server" Text='<%# Eval("LessThan") %>' 
                                                            Visible="false"></asp:Label>
                                                        <asp:Label ID="lblStepNum" runat="server" Text='<%# Eval("sort") %>' 
                                                            Visible="false"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <asp:Panel ID="Panel1" runat="server" BackColor="#ffffff" BorderStyle="dotted" 
                                                            BorderWidth="1px" Width="500px" BorderColor="#3a84c1">
                                                            <table cellpadding="6px" width="500px">
                                                                <tr>
                                                                    <td align="center" class="style3">
                                                                        <asp:Label ID="lblCon" runat="server" ForeColor="#1c65a8" Font-Names="微软雅黑" Font-Size="13px"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnEditCon" runat="server" 
                                                            CommandArgument='<%# Eval("conid") %>' CommandName="editcon" SkinID="big_btn" 
                                                            Text="编辑通过条件" />
                                                        <asp:Button ID="btnUp" runat="server" CommandArgument='<%# Eval("id") %>' 
                                                            CommandName="up" Text="上移" />
                                                        <asp:Button ID="btnDown" runat="server" CommandArgument='<%# Eval("id") %>' 
                                                            CommandName="down" Text="下移" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <table cellpadding="5" cellspacing="0" width="100%" align="center" style="background-color:White;">
                                                <tr>
                                                    <td align="center">
                                                        <asp:Image ID="imgStepImg" runat="server" ImageUrl="../images/024.png" CssClass="png" Width="42px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </asp:Panel>
                                <asp:Panel ID="PanelFinishCon" runat="server" HorizontalAlign="Center">
                                    <table class="style2" style="background-color:#f9f9f9; text-align:center;" align="center">
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Image ID="Image1" runat="server" ImageUrl="../images/lightbulb.gif" CssClass="img_style" />
                                                说明：在松散型的流程中，计划内的活动没有严格的先后顺序，只需要制定某些活动为计划的完成条件就可以。
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    <table cellpadding="0" cellspacing="0" width="98%">
                                        <tr><td> &nbsp;</td></tr>
                                        <tr>
                                            <td><asp:Button ID="btnAddPlanFinishCon" runat="server" SkinID="big_btn" Text="添加计划完成条件" OnClick="btnAddPlanFinishCon_Click" /></td>
                                        </tr>
                                        <tr><td> &nbsp;</td></tr>
                                        <tr>
                                            <td><asp:DataList ID="dlFinishCon" runat="server" OnItemCommand="dlFinishCon_ItemCommand">
                                        <ItemTemplate>
                                            <table class="style2" cellpadding="10" cellspacing="0" >
                                                <tr>
                                                    <td style="height:30px;">
                                                        <asp:Label ID="lblConDsc" runat="server" BackColor="#ffffff" Text='<%# Eval("Filter") %>'
                                                            BorderStyle="dotted" BorderWidth="1px" BorderColor="#3a84c1" Font-Names="微软雅黑" Font-Size="13px" ForeColor="#1c65a8" ></asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnRemoveFinishCon" CommandName="removefinishcon" CommandArgument='<%# Eval("ID") %>'
                                                            runat="server" Text="移除" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList></td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>

    <script type="text/javascript">
	
　　        var tooltipObj = new DHTMLgoodies_formTooltip();
        tooltipObj.setTooltipWidth('240');
        tooltipObj.setTooltipPosition('right');
        tooltipObj.setPageBgColor('#EEE');
        tooltipObj.setCloseMessage('');
        tooltipObj.initFormFieldTooltip();

    </script>
         <script type="text/javascript">
     $("#loading").fadeOut()
</script>
</body>
</html>
