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

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="/Oimec/Script/My97DatePicker/WdatePicker.js"></script>
    <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;
        }
    </style>
    <script type="text/javascript">

    </script>
</head>
<body>
    <form runat="server">
        <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="Label1" runat="server" text="非业务类合同审批表"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" text="--系统自动生成--" XDataBind="DF_NonBusinessContracts.FormNo" ValueToDisplayText BackColor="#8AB3DF" Value></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1062" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="17" colspan="4">
                        <asp:Label id="Label19" runat="server" text="标记*的为申请人发起申请时必填" forecolor="Red"></asp:Label>&nbsp; <asp:Label id="Label20" runat="server" text="标记*的为分管总监必填" forecolor="Blue"></asp:Label>
                        <br />
                        <asp:Label id="Label16" runat="server" text="申请人所在部门必须是如下部门之一：会计信息部、财务管理部、市场管理部、市场发展部、信息技术部、采购部、商务部、物流部、人事行政部、战略发展部、董秘办公室。" forecolor="Black"></asp:Label></td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="116" height="22" class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="创建人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_NonBusinessContracts.AppAccount" ValueToDisplayText Width="20px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" ReadOnly="True" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="411" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_NonBusinessContracts.AppName" ValueToDisplayText BackColor="#E6F1F8" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td width="116" class="tsbottomlabel">
                        <asp:Label id="Label7" runat="server" text="创建日期"></asp:Label></td>
                    <td width="411" class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_NonBusinessContracts.CreateDate" BackColor="#E6F1F8" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td width="116" height="22" class="tsbottomlabel">
                        <asp:Label id="Label22" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_NonBusinessContracts.Account" ValueToDisplayText Width="20px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" ReadOnly="True" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td width="411" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_NonBusinessContracts.Name" ValueToDisplayText BackColor="#E6F1F8" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="40px" HiddenExpress="Global.StepName!='申请人发起'" XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="AttendanceKakaNO->DF_NonBusinessContracts.Account;Name->DF_NonBusinessContracts.Name;BUName->DF_NonBusinessContracts.BU;Department->DF_NonBusinessContracts.Department" Text="查询" DisplayColumns="AttendanceKakaNO:BPM账号,80;Name:姓名,80;BUName:事业部,60;Department:部门,100" PrintOut="False"></aspxform:XDataBrowserButton>
                    </td>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="事业部"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_NonBusinessContracts.BU" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" width="70%"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_NonBusinessContracts.AppAccount" DataMap="BUName->DF_NonBusinessContracts.BU;Department->DF_NonBusinessContracts.Department"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label10" runat="server" text="部门"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_NonBusinessContracts.Department" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" width="70%"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
                <tr>
                    <td height="35" class="tsbottomlabel">
                        &nbsp;</td>
                    <td class="tsbottomtext">
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                        <input id="maxdate" type="text" hidden="true" />&nbsp; 
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label9" runat="server" text="合同名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_NonBusinessContracts.ContractName" BorderWidth="1" BorderColor="#DCDCDC" width="100%" DisableExpress='Global.StepName!="申请人发起" '></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label18" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label6" runat="server" text="合同金额(CNY)"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_NonBusinessContracts.ContractAmount" BorderWidth="1" BorderColor="#DCDCDC" width="70%" DisableExpress='Global.StepName!="申请人发起"' Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label11" runat="server" text="对方单位名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_NonBusinessContracts.UnitName" BorderWidth="1" BorderColor="#DCDCDC" width="100%" DisableExpress='Global.StepName!="申请人发起"'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label12" runat="server" text="合同编号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_NonBusinessContracts.ContractNo" BackColor="#E6F1F8" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" width="70%"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_NonBusinessContracts.ContractNo" BorderWidth="1" BorderColor="#DCDCDC" width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="31" class="tsbottomlabel">
                        <asp:Label id="Label13" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label2" runat="server" text="合同文本及附件"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_NonBusinessContracts.ContractTxtAttachment" width="100%" DisableExpress='Global.StepName!="申请人发起"' FileTypes="*.pdf;*.jpg;*.png;*.doc;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label8" runat="server" text="分管总监指定"></asp:Label> 
                        <br />
                        &nbsp;&nbsp; <asp:Label id="Label21" runat="server" text="合同签字人"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_NonBusinessContracts.Signatory" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" width="70%" Express="DF_NonBusinessContracts.Name"></aspxform:XTextBox>
                        &nbsp;<aspxform:XSelectUserButton id="XSelectUserButton1" runat="server" Width="40px" DataMap="Account->DF_NonBusinessContracts.SignatoryAccount;DisplayName->DF_NonBusinessContracts.Signatory" DisableExpress='&#13;&#10;Global.StepName!="CFO审批1" &amp;&amp; Global.StepName!="CMO审批" &amp;&amp; Global.StepName!="CIO审批" &amp;&amp; Global.StepName!="HRD审批"   &amp;&amp; Global.StepName!="董事会秘书审批"  &amp;&amp; Global.StepName!="战略发展部经理审批" ' Text="查询"></aspxform:XSelectUserButton>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_NonBusinessContracts.SignatoryAccount" ValueToDisplayText Width="20px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" ReadOnly="True" HiddenInput="True" Express="DF_NonBusinessContracts.Account"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200" height="16" class="title1">
                        <asp:Label id="Label83" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_NonBusinessContracts.Remark" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <br />
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
            <br />
        </p>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ControlToValidate="XTextBox3" ErrorMessage="请填写合同名称" Display="None" ForeColor="Red" ValidationGroup="submit">请填写合同名称</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ControlToValidate="XTextBox5" ErrorMessage="请填写合同金额" Display="None" ForeColor="Red" ValidationGroup="submit">请填写合同金额</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ControlToValidate="XTextBox6" ErrorMessage="请填写对方单位名称" Display="None" ForeColor="Red" ValidationGroup="submit">请填写对方单位名称</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ControlToValidate="XAttachments1" ErrorMessage="请上传合同文本及附件" Display="None" ForeColor="Red" ValidationGroup="submit">请上传合同文本及附件</aspxform:XRequiredFieldValidator>
            &nbsp;<br />
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ControlToValidate="XTextBox9" ErrorMessage="请选择分管总监指定合同签字人" Display="None" ForeColor="Blue" ValidationGroup="qzr">分管总监指定合同签字人</aspxform:XRequiredFieldValidator>
        </p>
        <p>
        </p>
        <p>
        </p>
    </form>
</body>
</html>
