<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //
    protected void Page_Load(object sender, EventArgs e)
    {
        string mailGroupID = Request.QueryString["mailGroupID"];
        this.XTextBox6.Text = mailGroupID;// 15548 15068
    
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TABLE {
            border-collapse: collapse;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        P {
            PADDING-RIGHT: 0px;
            PADDING-LEFT: 0px;
            PADDING-BOTTOM: 0px;
            MARGIN: 0px;
            PADDING-TOP: 0px;
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

        TD {
            PADDING-RIGHT: 0px;
            PADDING-LEFT: 2px;
            PADDING-BOTTOM: 0px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }

        INPUT {
            HEIGHT: 20px;
        }

            INPUT.UL {
                BORDER-RIGHT: medium none;
                BORDER-TOP: medium none;
                BORDER-LEFT: medium none;
                BORDER-BOTTOM: #33ff33 1px solid;
            }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        .yz-inp-cnt {
            display: inline;
        }
    </style>

</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <!--head-->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 30px">
                        <asp:Label id="XLabel1" runat="server" text="邮件组调整"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" Value ValueToDisplayText XDataBind="DF_OA_MailGroupAdd_Info.FormNo" BackColor="#8AB3DF" Text="-系统自动生成-"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="员工信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.AppAccount" BackColor="#e6f1f8" BorderColor="#DCDCDC" BorderWidth="1" Width="50" DisableBehavior="ReadOnly" CssClass="text" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="54" height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel5" runat="server" text="申请人"></asp:Label></td>
                    <td width="372" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.AppName" BackColor="#e6f1f8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td width="80" class="tsbottomlabel">
                        <asp:Label id="XLabel20" runat="server" text="创建时间"></asp:Label></td>
                    <td width="398" class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.CreateDate" BackColor="#e6f1f8" Width="50%" DisableBehavior="ReadOnly" CssClass="text" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td width="54" height="19" class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label3" runat="server" text="操作类型"></asp:Label></td>
                    <td width="372" class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.OperaType" DisableBehavior="ReadOnly" DisableExpress="Global.StepName!='员工发起申请'" Express="if(varmgID!='','删除',DF_OA_MailGroupAdd_Info.OperaType)">
                            <asp:ListItem Selected="True">新增</asp:ListItem>
                            <asp:ListItem>删除</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td width="80" class="tsbottomlabel">
                    </td>
                    <td width="398" class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="20" class="title1" colspan="4">
                        <asp:Label id="XLabel6" runat="server" text="邮件组信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox6" runat="server" ValueToDisplayText="TableName:DF_IT_MailGroup;FilterColumn:ID;DisplayColumn:ID" XDataBind="varmgID" BackColor="#e6f1f8" BorderColor="#DCDCDC" BorderWidth="1" Width="50" DisableBehavior="ReadOnly" CssClass="text" HiddenInput="true" DataMap="ID->DF_OA_MailGroupAdd_Info.MailGroupID;MaiGroupName->DF_OA_MailGroupAdd_Info.MailGroupName"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="80" height="23" class="tsbottomlabel">
                        <asp:Label id="Label1" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="XLabel13" runat="server" text="组名"></asp:Label>
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.MailGroupID" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" CssClass="text" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td width="341" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox10" runat="server" Value ValueToDisplayText XDataBind="DF_OA_MailGroupAdd_Info.MailGroupName" BorderColor="Gainsboro" BorderWidth="1px" Width="70%" DisableBehavior="ReadOnly" Max="0" Min="0" DisableExpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'" Express="if(DF_OA_MailGroupAdd_Info.OperaType=='新增','',DF_OA_MailGroupAdd_Info.MailGroupName)"></aspxform:XTextBox>
                        &nbsp;&nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" Width="45px" DataMap="ID->DF_OA_MailGroupAdd_Info.MailGroupID;MaiGroupName->DF_OA_MailGroupAdd_Info.MailGroupName" HiddenExpress="DF_OA_MailGroupAdd_Info.OperaType!='删除'" PrintOut="False" Height="22px" XDataSource="TableName:V_DF_IT_MailGroup;Filter:ManagerAccount->DF_OA_MailGroupAdd_Info.AppAccount,ClassType->0" DisplayColumns="ID:编号,50;MaiGroupName:邮件组名称,100;MailGroupAddress:邮件组地址;Describe:描述"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="80" class="tsbottomlabel">
                        <asp:Label id="XLabel8" runat="server" text="邮件组地址" hiddenexpress="Global.StepName!='IT系统管理员添加邮件组'"></asp:Label></td>
                    <td width="393" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.MailGroupAddress" Width="70%" DisableBehavior="ReadOnly" CssClass="text" DisableExpress="Global.StepName!='IT系统管理员添加邮件组'" HiddenExpress="Global.StepName!='IT系统管理员添加邮件组'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'">
                    <td width="80" height="23" class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="Label6" runat="server" text="邮件组属性"></asp:Label></td>
                    <td width="341" align="left" class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.Property" Width="100px" PrintOut="False" RepeatDirection="Horizontal">
                            <asp:ListItem>永久</asp:ListItem>
                            <asp:ListItem>临时</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td width="80" class="tsbottomlabel">
                        <asp:Label id="Label7" runat="server" text="有效期" hiddenexpress="DF_OA_MailGroupAdd_Info.Property!='临时'"></asp:Label></td>
                    <td width="393" class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.VelidityPeriod" BorderColor="#DCDCDC" BorderWidth="1" hiddenexpress="DF_OA_MailGroupAdd_Info.Property!='临时'"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr hiddenexpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'">
                    <td height="22" class="tsbottomlabel">
                        <asp:Label id="XLabel15" runat="server" text="用途描述"></asp:Label></td>
                    <td class="tsbottomtext" style="HEIGHT: 40px" colspan="3">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.Describe" BorderColor="#DCDCDC" BorderWidth="1" Width="98%" CssClass="text" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'">
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label2" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="XLabel10" runat="server" text="负责人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.ManagerAccount" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" CssClass="text" HiddenInput="true" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.Manager" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableBehavior="ReadOnly" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;&nbsp;<aspxform:XSelectUserButton id="XSelectUserButton1" runat="server" Text="查询" XClass="YZSoft.Forms.Field.SelectUserButton" Width="40px" DisableExpress="" DataMap="Account->DF_OA_MailGroupAdd_Info.ManagerAccount;DisplayName->DF_OA_MailGroupAdd_Info.Manager" UseSubmitBehavior="False"></aspxform:XSelectUserButton>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr hiddenexpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'">
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="XLabel9" runat="server" text="组员列表"></asp:Label></td>
                    <td class="tsbottomtext">
                        <table width="100%" align="center" style="HEIGHT: auto" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1" menudock="Rignt">
                            <tbody>
                                <tr>
                                    <td>
                                        <aspxform:XSelectUserButton id="XSelectUserButton2" runat="server" Text="添加员工" Width="91px" DataMap="Account->DF_OA_MailGroupAdd_Detail.Account;DisplayName->DF_OA_MailGroupAdd_Detail.Name" MultiSelect="True"></aspxform:XSelectUserButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tds1">
                                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_OA_MailGroupAdd_Detail.Name" BackColor="#E6F1F8" BorderColor="Gainsboro" Width="90%" ReadOnly="True"></aspxform:XTextBox>
                                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_OA_MailGroupAdd_Detail.Account" BackColor="White" BorderColor="Gainsboro" Width="10" HiddenInput="true"></aspxform:XTextBox>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" class="title1">
                        <asp:Label id="XLabel76" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox67" runat="server" XDataBind="DF_OA_MailGroupAdd_Info.Remark" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Height="50px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox10" ErrorMessage="请输入邮件组名称" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="it" ControlToValidate="XTextBox12" ErrorMessage="请输入邮件组地址" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择操作类型" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'" ValidationGroup="submit" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择邮件组属性" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" DisableExpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'||(DF_OA_MailGroupAdd_Info.OperaType=='新增' &amp;&amp; DF_OA_MailGroupAdd_Info.Property=='永久')" ValidationGroup="submit" ControlToValidate="XDateTimePicker2" ErrorMessage="请填写邮件组有效期" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress="DF_OA_MailGroupAdd_Info.OperaType=='删除'">
            <tbody>
                <tr>
                    <td width="1200" style="FONT-SIZE: 14px; FONT-FAMILY: 微软雅黑">
                        <asp:Label id="labl" runat="server" text="备注：" forecolor="Blue"></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp; <asp:Label id="Label18" runat="server" text="1、5人以上成员方可申请创建邮件组。" forecolor="Blue"></asp:Label>
                        <br />
                        &nbsp;&nbsp;&nbsp; <asp:Label id="Labe" runat="server" text="2、公司组织结构的相关邮件组（如：公司、部门、BU、地区等邮件组）无需申请，系统自动创建。" forecolor="Blue"></asp:Label>
                        <br />
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
