<%@ 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">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <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: 1px;
        }

            TD.NoPadding {
                PADDING-RIGHT: 0px;
                PADDING-LEFT: 0px;
                PADDING-BOTTOM: 0px;
                PADDING-TOP: 0px;
            }
        /*INPUT {height: 15px}*/
        INPUT.UL {
            BORDER-RIGHT: medium none;
            BORDER-TOP: medium none;
            BORDER-LEFT: medium none;
            BORDER-BOTTOM: #33ff33 1px solid;
        }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        input {
            vertical-align: middle; /*margin-right:-3px*/
        }
    </style>
    <script type="text/javascript">

        //获取信息
        function GetInfo() {
            var type = agent.Eles[document.getElementById("XDropDownList2").getAttribute("xform_xele_index")].getValue();
            if (type == '') {
                alert("请选择豁免类型！");
                return false;
            }
            var VBTYP;
            if (type == "01") { VBTYP = "J"; }
            if (type == "02" || type == "03") { VBTYP = "C"; }
            var VBELN = agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")].getValue();
            if (VBELN == '') {
                alert("请输入凭证号！");
                return false;
            }
            //获取SAP信息先进行清空
            //豁免原因 豁免金额 豁免天数 豁免开始日期 合同号 合同总金额 付款方客户名称 付款条件 超期30天以上 超期90天以上
            var strValue = "";
            agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue(strValue);//30天
            agent.Eles[document.getElementById("XTextBox14").getAttribute("xform_xele_index")].setValue(strValue);//90天
            agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].setValue(strValue);//豁免金额
            agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].setValue(strValue);
            agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].setValue(strValue);//豁免天数
            agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].setValue(strValue);//合同号
            agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].setValue(strValue);//合同总金额
            agent.Eles[document.getElementById("XTextBox10").getAttribute("xform_xele_index")].setValue(strValue);//付款方客户
            agent.Eles[document.getElementById("XTextBox11").getAttribute("xform_xele_index")].setValue(strValue);//付款条件
            agent.Eles[document.getElementById("XDateTimePicker2").getAttribute("xform_xele_index")].setValue(strValue);//豁免开始日期
            agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].setValue(strValue);//豁免原因
            agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(strValue);//SO
            YZSoft.Ajax.request({
                async: false,
                url: YZSoft.$url('Oimec/ApiServices/FICOAPIHandler.ashx'),
                params: {
                    method: 'GetVoucherInfoToExempt',
                    VBELN: VBELN,
                    VBTYP: VBTYP,
                },
                success: function (action) {
                    var data = action.result;
                    if (data.Code == 0) {
                        //获取创建日期
                        var CDate = agent.Eles[document.getElementById("XDateTimePicker1").getAttribute("xform_xele_index")].getValue();
                        var cdate = new Date(CDate);

                        var val = data.FHGZDate;
                        var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10));//发货日期
                        //date = "2018-03-26";

                        var Edate = new Date(date);//豁免开始日期
                        Edate.setDate(date.getDate() + 7);//豁免开始日期=发货日期+7
                        var Eday;//豁免天数

                        //申请日期年月小于豁免日期年月
                        if (cdate.getTime() < Edate.getTime() && ((cdate.getFullYear() == Edate.getFullYear() && cdate.getMonth() + 1 != Edate.getMonth() + 1) || (cdate.getFullYear() != Edate.getFullYear()))) {
                            Eday = 0;
                        }
                            //申请豁免月份为发货当月，则豁免日期为 发货日期+7，否则为豁免月天数
                        else if (cdate.getFullYear() == Edate.getFullYear() && cdate.getMonth() + 1 == Edate.getMonth() + 1) {
                            var LastDay = MonthDays(Edate);
                            Eday = LastDay - Edate.getDate();
                        }
                            //申请豁免年月 大于豁免年月
                        else {
                            //获取申请年月的天数
                            var LastDay = MonthDays(cdate);
                            Eday = LastDay;
                        }

                        if (type == "03") {
                            agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue(data.CQ31);
                            agent.Eles[document.getElementById("XTextBox14").getAttribute("xform_xele_index")].setValue(data.CQ91);
                        }
                        else {
                            agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].setValue(data.Total);
                        }

                        agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")].setValue(data.SalesID);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox12").getAttribute("xform_xele_index")]);
                        agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].setValue(Eday);
                        agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].setValue(Eday);//豁免天数
                        //豁免开始日期
                        agent.Eles[document.getElementById("XDateTimePicker2").getAttribute("xform_xele_index")].setValue(Edate);
                        //agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].setValue(data.FHGZDate);
                        //XDateTimePicker2  豁免开始日期
                        agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].setValue(data.ContactNo);//合同号
                        agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].setValue(data.ContactAmount);//合同总金额
                        agent.Eles[document.getElementById("XTextBox10").getAttribute("xform_xele_index")].setValue(data.PayerName);//付款方客户
                        agent.Eles[document.getElementById("XTextBox11").getAttribute("xform_xele_index")].setValue(data.Payment);//付款条件
                        agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(data.SO);//SO
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")]);
                        XFormOnChange(agent.Eles[document.getElementById("XTextBox1").getAttribute("xform_xele_index")]);
                        //alert(data.SO);

                    }
                    else {
                        alert(data.Message);
                    }
                },
                failure: function (response) {
                }
            })


            function MonthDays(Edate) {
                var year = Edate.getFullYear();
                var month = Edate.getMonth();
                var new_year = year; //取当前的年份
                var new_month = month + 1;//取下一个月的第一天，方便计算（最后一天不固定）
                if (new_month > 12) {//如果当前大于12月，则年份转到下一年
                    new_month -= 12; //月份减
                    new_year++; //年份增
                }
                var new_date = new Date(new_year, new_month, 1); //取当年当月中的第一天
                var LastDay = new Date(new_date.getTime() - 1000 * 60 * 60 * 24).getDate();//获取当月最后一天日期
                return LastDay;
            }

        }


        //提交事件
        agent.on('beforeSubmit', function () {
            //豁免类型为发出商品，且豁免天数等于0则提示
            var type = agent.Eles[document.getElementById("XDropDownList2").getAttribute("xform_xele_index")].getValue();
            var days = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();//豁免天数
            if (type == "01" && days == 0) {
                alert("本月已豁免，无需申请！");
                return false;
            }

        });

    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td width="1300" class="biaoti">
                        <asp:Label id="Label11" runat="server" text="豁免申请单"></asp:Label></td>
                    <td width="400" class="formno">
                        <asp:Label id="Label12" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel1" runat="server" Value ValueToDisplayText BackColor="#8AB3DF" XDataBind="DF_FI_ExemptApp_Info.FormNo" Text="--系统自动生成--"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div align="left"><asp:Label id="Label18" runat="server" text="标记 * 的为申请人必填项" forecolor="Red"></asp:Label>
        </div>
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label1" runat="server" text="创建用户"></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" BackColor="#D4E4FE" XDataBind="DF_FI_ExemptApp_Info.AppAccount" Width="100px" HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.AppName" Width="70%" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label2" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.CreateDate" Width="150px" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label3" runat="server" text="业务员"></asp:Label>
                        <aspxform:XLabel id="XLabel5" runat="server" BackColor="#D4E4FE" XDataBind="DF_FI_ExemptApp_Info.SalesmanID" Width="100px" HiddenExpress="1"></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox12" runat="server" ValueToDisplayText XDataBind="DF_FI_ExemptApp_Info.SalesSAPID" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.SalesmanName" Width="70%" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" HiddenExpress="1" DataMap="StaffID->DF_FI_ExemptApp_Info.SalesmanID;StaffName->DF_FI_ExemptApp_Info.SalesmanName" XDataSource="TableName:DF_SA_SS_SalesPersonnel;Filter:StaffSAPNumber->DF_FI_ExemptApp_Info.SalesSAPID"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label5" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label4" runat="server" text="豁免类型"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%" xclass="Oimec.ControlEvent.ExemptTypeChange">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_FI_ExemptApp_Info.AppType" Width="200px" XDataSource='TableName:DF_DataSourceList;Filter:Type->"ExemptType"' PromptText="----请选择----" DisplayColumn="Name" ValueColumn="Value" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1192" align="center" class="table" border="0" cellspacing="0" cellpadding="0" hiddenexpress=' DF_FI_ExemptApp_Info.AppType==""'>
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label22" runat="server" text="豁免信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="130" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<aspxform:XLabel id="XLabel2" runat="server" BackColor="#D4E4FE" Text="SAP交货单号" HiddenExpress='DF_FI_ExemptApp_Info.AppType!="01"  &amp;&amp; DF_FI_ExemptApp_Info.AppType!="" '></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel4" runat="server" BackColor="#D4E4FE" Text="SAP-SO号" HiddenExpress='DF_FI_ExemptApp_Info.AppType!="02" &amp;&amp; DF_FI_ExemptApp_Info.AppType!="03"'></aspxform:XLabel>
                    </td>
                    <td width="550" class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_FI_ExemptApp_Info.OrderNumber" Width="200px" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XButton id="XButton1" runat="server" Text="获取SAP信息" DisableExpress='Global.StepName!="申请人发起申请"' OnClientClick="GetInfo()"></aspxform:XButton>
                    </td>
                    <td width="85" class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel15" runat="server" BackColor="#D4E4FE" Text="SAP-SO号" HiddenExpress='DF_FI_ExemptApp_Info.AppType!="01"  &amp;&amp; DF_FI_ExemptApp_Info.AppType!="" '></aspxform:XLabel>
                    </td>
                    <td width="462" class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox16" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.SO" Width="100px" HiddenExpress='DF_FI_ExemptApp_Info.AppType!="01"  &amp;&amp; DF_FI_ExemptApp_Info.AppType!="" ' ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="false"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="豁免原因"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptCause" Width="200px" HiddenExpress='DF_FI_ExemptApp_Info.AppType=="03"' XDataSource='TableName:DF_DataSourceList;Filter:Type->"ExemptCause",Value1->DF_FI_ExemptApp_Info.AppType' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Value" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XDropDownList>
                        <br />
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptCause1" Width="100%" HiddenExpress='DF_FI_ExemptApp_Info.AppType!="03"' BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel14" runat="server" ValueToDisplayText BackColor="#D4E4FE" Text="豁免原因说明" HiddenExpress='DF_FI_ExemptApp_Info.AppType=="03"'></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptCauseRemark" Width="100%" HiddenExpress='DF_FI_ExemptApp_Info.AppType=="03"' BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XTextBox>
                    </td>
                </tr>
                <tr height="30" hiddenexpress=' DF_FI_ExemptApp_Info.AppType=="03"'>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel6" runat="server" BackColor="#D4E4FE" Text="SAP交货单豁免金额(CNY)" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01" '></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel7" runat="server" BackColor="#D4E4FE" Text="SAP-SO豁免金额(CNY)" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="02" '></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptAmount" Width="200px" HiddenExpress='DF_FI_ExemptApp_Info.AppType=="03"' ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress='Global.StepName!="信控岗审批2" &amp;&amp; Global.StepName!="信控岗审批3"' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel13" runat="server" ValueToDisplayText BackColor="#D4E4FE" Text="*" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"' ForeColor="Red"></aspxform:XLabel>
                        &nbsp;<aspxform:XLabel id="XLabel12" runat="server" ValueToDisplayText BackColor="#D4E4FE" Text="豁免天数" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"'></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox13" runat="server" ValueToDisplayText XDataBind="DF_FI_ExemptApp_Info.Days" Width="40px" HiddenExpress="1" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptDays" Width="100px" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"' BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress='Global.StepName!="申请人发起申请" ' TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress=' DF_FI_ExemptApp_Info.AppType!="03" '>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel8" runat="server" BackColor="#D4E4FE" Text="豁免当月超期31天及以上金额(CNY)"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_FI_ExemptApp_Info.CQ31" Width="200px" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress='Global.StepName!="信控岗审批2" &amp;&amp; Global.StepName!="信控岗审批3"' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel9" runat="server" BackColor="#D4E4FE" Text="豁免当月超期91天及以上金额(CNY)"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_FI_ExemptApp_Info.CQ91" Width="200px" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress='Global.StepName!="信控岗审批2" &amp;&amp; Global.StepName!="信控岗审批3"' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label23" runat="server" text="销售合同号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox8" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.ContractNo" Width="70%" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel11" runat="server" ValueToDisplayText BackColor="#D4E4FE" Text="*" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"' ForeColor="Red"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel10" runat="server" ValueToDisplayText BackColor="#D4E4FE" Text="豁免开始日期" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"'></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_FI_ExemptApp_Info.ExemptDate" Width="200px" HiddenExpress=' DF_FI_ExemptApp_Info.AppType!="01"' BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="申请人发起申请"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label id="Label24" runat="server" text="销售合同总金额(CNY)"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox9" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.ContractAmount" Width="200px" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label25" runat="server" text="付款方客户名称"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox10" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.PayingCustomer" Width="100%" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label id="Label8" runat="server" text="付款条件"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox11" runat="server" BackColor="#E6F1F8" XDataBind="DF_FI_ExemptApp_Info.TermsPayment" Width="70%" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False"></aspxform:XTextBox>
                    </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 height="20" class="title1" colspan="2">
                        <asp:Label id="Label43" runat="server" text="附件信息"></asp:Label></td>
                </tr>--%>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        &nbsp;<asp:Label id="Label44" runat="server" text="上传附件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_FI_ExemptApp_Info.Attachment" Width="100%" DisableExpress="Global.StepName!='申请人发起申请'" FileTypes="*.pdf;*.jpg;*.png;*.doc;*.docx;*.xls;*.xlsx"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList2" ErrorMessage="请选择豁免类型" Display="None">请选择豁免类型</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox1" ErrorMessage="请输入SAP交货单号/SAP-SO号" Display="None">请输入SAP交货单号/SAP-SO号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress='DF_FI_ExemptApp_Info.AppType=="03"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList3" ErrorMessage="请选择豁免原因" Display="None">请选择豁免原因</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress='DF_FI_ExemptApp_Info.AppType!="03"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox6" ErrorMessage="请填写豁免原因" Display="None">请填写豁免原因</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress=' DF_FI_ExemptApp_Info.AppType!="01"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker2" ErrorMessage="请选择豁免开始日期" Display="None">请选择豁免开始日期</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" DisableExpress='DF_FI_ExemptApp_Info.AppType=="03"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="豁免金额不能为空" Display="None">豁免金额不能为空</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress=' DF_FI_ExemptApp_Info.AppType!="01"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="请输入豁免天数" Display="None">请输入豁免天数</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="豁免天数不能大于当月可豁免天数" Display="None" ControlToCompare="XTextBox13" Operator="LessThanEqual" ValueToCompareExpress=' DF_FI_ExemptApp_Info.AppType!="01"'>豁免天数不能大于当月可豁免天数</aspxform:XCompareValidator>
        <br />
        <div align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
        </div>
    </form>
</body>
</html>
