<%@ 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">
        function download() {
            var fileid = agent.Eles[document.getElementById("XAttachments1").getAttribute("xform_xele_index")].getValue();
            var type = "seal";
            YZSoft.src.ux.File.download(YZSoft.$url('Oimec/ApiServices/AttachmentAPIHandler.ashx'), {
                method: 'AttachmentDownload',
                fileid: fileid,
                type: type
            });
        }
    </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="--系统自动生成--" Value BackColor="#8AB3DF" ValueToDisplayText XDataBind="DF_NonBusinessContracts.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" 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 />
                    </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" ValueToDisplayText XDataBind="DF_NonBusinessContracts.AppAccount" HiddenInput="True" ReadOnly="True" Min="0" Max="0" BorderColor="Gainsboro" BorderWidth="1px" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td width="411" class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_NonBusinessContracts.AppName" ReadOnly="True" BorderColor="#DCDCDC" BorderWidth="1" Width="70%"></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" BackColor="#E6F1F8" XDataBind="DF_NonBusinessContracts.CreateDate" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="事业部"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_NonBusinessContracts.BU" ReadOnly="True" BorderColor="#DCDCDC" BorderWidth="1" width="70%"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" DataMap="BUName->DF_NonBusinessContracts.BU;Department->DF_NonBusinessContracts.Department" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_NonBusinessContracts.AppAccount" HiddenExpress="1"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label10" runat="server" text="部门"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BackColor="#E6F1F8" XDataBind="DF_NonBusinessContracts.Department" ReadOnly="True" BorderColor="#DCDCDC" BorderWidth="1" width="70%"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label23" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label22" runat="server" text="合同类别"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_NonBusinessContracts.ConditionNumber" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" width="50px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_NonBusinessContracts.TypeName" Width="180px" DataMap="ConditionNumber->DF_NonBusinessContracts.ConditionNumber;Describe->DF_NonBusinessContracts.Describe" XDataSource="TableName:DF_ContractType" PromptText="--请选择--" DisplayColumn="TypeName" ValueColumn="TypeName" DisableExpress='Global.StepName!="申请人发起" '></aspxform:XDropDownList>
                        <aspxform:XLabel id="XLabel1" runat="server" BackColor="#D4E4FE" XDataBind="DF_NonBusinessContracts.Describe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomlabel" colspan="2">
                        <asp:Label id="Label16" runat="server" text="注：系统按所选择的合同类别流转到不同的审批人" forecolor="Black"></asp:Label></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" BorderColor="#DCDCDC" BorderWidth="1" 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" BorderColor="#DCDCDC" BorderWidth="1" 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" BorderColor="#DCDCDC" BorderWidth="1" 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" BackColor="#E6F1F8" XDataBind="DF_NonBusinessContracts.ContractNo" ReadOnly="True" BorderColor="#DCDCDC" BorderWidth="1" width="70%" HiddenExpress='DF_NonBusinessContracts.ContractNo==""'></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> 
                        <br />
                        <aspxform:XButton id="XButton1" runat="server" Text="下载" OnClientClick="download();"></aspxform:XButton>
                    </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 hiddenexpress='DF_NonBusinessContracts.ConditionNumber=="09"'>
                    <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" ReadOnly="True" BorderColor="#DCDCDC" BorderWidth="1" width="70%" Express="DF_NonBusinessContracts.AppName"></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" ValueToDisplayText XDataBind="DF_NonBusinessContracts.SignatoryAccount" HiddenInput="True" ReadOnly="True" Min="0" Max="0" BorderColor="Gainsboro" BorderWidth="1px" Width="20px" Express="DF_NonBusinessContracts.AppAccount"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label24" runat="server" text="需总裁审批"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_NonBusinessContracts.IsZC" DisableExpress='Global.StepName!="法务岗审批" && Global.StepName!="法务岗调度" ' RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" 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" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" TextMode="MultiLine" Rows="5"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <br />
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
            <br />
        </p>
        <p>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ValidationGroup="submit" ForeColor="Red" Display="None" ErrorMessage="请选择合同类别" ControlToValidate="XDropDownList2">请选择合同类别</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="submit" ForeColor="Red" Display="None" ErrorMessage="请填写合同名称" ControlToValidate="XTextBox3">请填写合同名称</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="submit" ForeColor="Red" Display="None" ErrorMessage="请填写合同金额" ControlToValidate="XTextBox5">请填写合同金额</aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="submit" ForeColor="Red" Display="None" ErrorMessage="请填写对方单位名称" ControlToValidate="XTextBox6">请填写对方单位名称</aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="submit" ForeColor="Red" Display="None" ErrorMessage="请上传合同文本及附件" ControlToValidate="XAttachments1">请上传合同文本及附件</aspxform:XRequiredFieldValidator>
            &nbsp;<br />
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="qzr" ForeColor="Blue" Display="None" ErrorMessage="请选择分管总监指定合同签字人" ControlToValidate="XTextBox9">分管总监指定合同签字人</aspxform:XRequiredFieldValidator>
            &nbsp; 
        </p>
        <p>
        </p>
        <p>
        </p>
    </form>
</body>
</html>
