<%@ 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 TaskID = Request.QueryString["taskid"];
        this.XTextBox59.Text = TaskID;// 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;
        }

        .tm {
            width: 8%;
        }
    </style>
</head>
<%--折扣计算 参数：ZheKou-折扣，UnitPrice-单价，Number-数量--%>
<script type="text/javascript">
    function CountPurchasePrices(ZheKou, UnitPrice, Number) {
        var Sum = 0;
        if (ZheKou == 0) {
            Sum = UnitPrice * Number;
        }
        else {
            ZheKou = (100 - ZheKou) / 100;
            Sum = UnitPrice * Number * ZheKou;
        }
        return Sum;
    }
</script>

<script type="text/javascript">

    //表单加载时提示,判断是发起采购申请时
    Ext.onReady(function () {
        var tableObj = document.getElementById("tablePrdt");
        if (agent.Eles[document.getElementById('XTextBox59').getAttribute("xform_xele_index")].getValue() != "") {
            for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
                //获取对应行 采购数量与销售数量
                var purchaseNumber = agent.Eles[tableObj.rows[i].cells[10].children[0].getAttribute("xform_xele_index")].getValue();//采购数量
                var salesNumber = agent.Eles[tableObj.rows[i].cells[10].children[1].getAttribute("xform_xele_index")].getValue();//销售数量

                if (purchaseNumber != salesNumber) {
                    alert("此单采购数量与销售数量不符，请再次核对，以免漏下单，谢谢！");
                    return true;
                }
            }
        }
    });

    //表单提交时进行数据及业务逻辑处理
    agent.on('beforeSubmit', function (actname1, actname) {
        //销售合同预付提示
        //XRadioButtonList5_0 XRadioButtonList5_1
        var radio1 = document.getElementById("XRadioButtonList5_0");
        var radio2 = document.getElementById("XRadioButtonList5_1");
        if (radio2.checked == true) {
            alert("请确认预付款已到账方可下单");
        }
        //报供应商最终客户为红旗客户时提示
        var tableObj = document.getElementById("tablePrdt");
        for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
            var isFlage = agent.Eles[tableObj.rows[i].cells[29].children[6].getAttribute("xform_xele_index")].getValue();//获取对应行 红旗客户信息
            if (isFlage == "是") {
                var line = i - 1;
                alert("产品明细第[ " + line + " ]行 报供应商最终客户 为红旗客户,不能提交！");
                return false;
            }
        }
    });


    //删除行项目
    function DeleteBlocks() {
        var table = agent.findGridFromTableName(null, 'DF_MM_PurchaseApp_Detail'); //获取table对象
        var tableObj = document.getElementById("tablePrdt");
        //获取选中的行数
        var count = 0;
        for (var i = 2; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
            var chk = agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue();
            if (chk == "1") {
                count++;
            }
        }
        while (count > 0) {
            for (var i = 2, res = false; i < tableObj.rows.length - 1; i++) {//遍历Table的所有Row //遍历Row中的每一列
                var chk = agent.Eles[tableObj.rows[i].cells[0].children[0].getAttribute("xform_xele_index")].getValue();
                if (chk == "1" && res == false) {
                    //删除选中行
                    table.deleteBlocks(i - 2, 1);
                    count--;
                    res = true;
                }
            }
        }

    }

    //获取关联业务单据表
    function GetRelateForm(InquiryNo) {
        if (InquiryNo != '') {

            YZSoft.Ajax.request({
                url: YZSoft.$url('Oimec/ApiServices/SalesAPIHandler.ashx'),
                method: 'POST',
                params: {
                    method: 'GetRelateFormNo',
                    filed:'Inquiry',
                    value: InquiryNo

                },
                success: function (action) {
                    var data = action.result.Value;
                    //document.getElementById("sp1").innerHTML = "<a  href='../../FormApplication.aspx?md=App&app=30-销售/销售-外币业务单据表&key=" + data.ID + "&formstate=Read' target='_blank' >" + data.SerialNum + "</a>";
                    },
                failure: function (action) {
                    //alert(action.result.Message);
                }
            });
        }
    }

</script>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="10" class="logo">
                    </td>
                    <td class="biaoti" style="PADDING-LEFT: 30px">
                        <asp:Label id="XLabel1" runat="server" text="采购申请单"></asp:Label></td>
                    <td class="formno">
                        <a href="" target="_blank"></a><asp:Label id="XLabel2" runat="server" text="表单号"></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" BackColor="#8AB3DF" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.FormNo" Value Text="--系统自动生成--"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <%--表单抬头信息--%><%--基本信息--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="基本信息" valuetodisplaytext value></asp:Label><%--用于带出抬头信息--%>
                        <aspxform:XTextBox id="XTextBox59" runat="server" ValueToDisplayText XDataBind="cs" Value Width="43px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox58" runat="server" ValueToDisplayText="TableName:V_DF_SA_MarketInquiryReport;FilterColumn:TaskID;DisplayColumn:TaskID" Value Width="57px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DataMap="OFYIJIE->DF_MM_PurchaseApp_Info.IsEasyJet;SalesmanID->DF_MM_PurchaseApp_Info.SaleManID;客户交货期->DF_MM_PurchaseApp_Info.DeliveryDate;IsFlag2->DF_MM_PurchaseApp_Info.IsFlagPC;销售合同币种->DF_MM_PurchaseApp_Info.ContractCurrency;SO号-PR号->DF_MM_PurchaseApp_Info.SOPR;销售组织->DF_MM_PurchaseApp_Info.SalesOrg;红旗客户->DF_MM_PurchaseApp_Info.IsFlagSC;TaskID->DF_MM_PurchaseApp_Info.InquiryTaskID;付款方客户名称->DF_MM_PurchaseApp_Info.PayerCustomerName;事业部->DF_MM_PurchaseApp_Info.BU;产品线->DF_MM_PurchaseApp_Info.BUID;直发的机场->DF_MM_PurchaseApp_Info.NonstopAirport;售达方电话->DF_MM_PurchaseApp_Info.SalesCustomerTel;所属地区->DF_MM_PurchaseApp_Info.Area;售达方客户名称->DF_MM_PurchaseApp_Info.SalesCustomerName;单号->DF_MM_PurchaseApp_Info.InquiryFormNo;售达方地址->DF_MM_PurchaseApp_Info.SalesCustomerAddr;SAP报价单号->DF_MM_PurchaseApp_Info.SapQuotationNo;PaymentFormNo->DF_MM_PurchaseApp_Info.PaymentFormNo;销售合同总金额->DF_MM_PurchaseApp_Info.TotalAmout;备注->DF_MM_PurchaseApp_Info.Remark;IsFlag1->DF_MM_PurchaseApp_Info.IsFlagSC;联系人->DF_MM_PurchaseApp_Info.Contact;税种->DF_MM_PurchaseApp_Info.TaxType;SalesOrganizationCode->DF_MM_PurchaseApp_Info.SalesOrgCode;毛利（不含税）->DF_MM_PurchaseApp_Info.GrossMargin;是否免税->DF_MM_PurchaseApp_Info.IsTaxFree;毛利率->DF_MM_PurchaseApp_Info.GrossProfit;供应商直发信息->DF_MM_PurchaseApp_Info.SupplierRemark;其他附件->DF_MM_PurchaseApp_Info.OtherAttach;免税说明->DF_MM_PurchaseApp_Info.TaxFreeReason;合同附件->DF_MM_PurchaseApp_Info.ContractAttach;业务员->DF_MM_PurchaseApp_Info.SalesMan;付款条件->DF_MM_PurchaseApp_Info.PayItems;销售办公室->DF_MM_PurchaseApp_Info.SalesOffice;销售办公室编号->DF_MM_PurchaseApp_Info.SalesOfficeID;客户交货方式->DF_MM_PurchaseApp_Info.DeliveryMode;发票类型->DF_MM_PurchaseApp_Info.InvoiceType;PaymentTaskID->DF_MM_PurchaseApp_Info.PaymentTaskID;开票公司->DF_MM_PurchaseApp_Info.BillingCpy;ActTermsPayment->DF_MM_PurchaseApp_Info.ActPayItems" Express="cs"></aspxform:XTextBox>
                        <%--隐藏字段--%>
                        <aspxform:XTextBox id="XTextBox60" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.BUID" Value Width="45px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox61" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.SalesOfficeID" Value Width="47px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox64" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.SalesOrgCode" Value Width="47px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox77" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.IsEasyJet" Value Width="47px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                        <%--<aspxform:XTextBox id="XTextBox80" runat="server" Value XDataBind="DF_MM_PurchaseApp_Info.FormLink" ValueToDisplayText HiddenInput="True" Min="0" Max="0" BorderWidth="1px" BorderColor="Gainsboro" Width="47px" Express="javascript('GetRelateForm',DF_MM_PurchaseApp_Info.InquiryFormNo)"></aspxform:XTextBox>--%>
                        <aspxform:XTextBox id="XTextBox81" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.FormLinkID" Value Width="47px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="申请人" valuetodisplaytext value></asp:Label><%--隐藏字段--%>
                        <aspxform:XTextBox id="XTextBox57" runat="server" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_MM_PurchaseApp_Info.AppAccount" Value Width="30px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DataMap="Name->DF_MM_PurchaseApp_Info.DisplayName"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_MM_PurchaseApp_Info.DisplayName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" text="创建日期" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_MM_PurchaseApp_Info.CreateDate" Width="49%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="ts">
                        <asp:Label id="XLabel6" runat="server" text="业务员" valuetodisplaytext value></asp:Label><%--隐藏字段--%>
                        <aspxform:XTextBox id="XTextBox66" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.SaleManID" Value Width="58px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesMan" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel12" runat="server" text="BPM预审单号" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_MM_PurchaseApp_Info.InquiryFormNo" Width="228px" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XHistoryFormLink id="XHistoryFormLink1" runat="server" BackColor="#d4e4fe" XDataBind="DF_MM_PurchaseApp_Info.InquiryTaskID" EmptyText="尚未关联" PopupWndWidth="-1" PopupWndHeight="-1">查看详细</aspxform:XHistoryFormLink>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="ts">
                        <asp:Label id="XLabel7" runat="server" text="事业部" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_MM_PurchaseApp_Info.BU" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel13" runat="server" text="销售办公室" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesOffice" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel8" runat="server" text="开票公司" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_MM_PurchaseApp_Info.BillingCpy" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel14" runat="server" text="销售组织" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesOrg" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="41" class="tsbottomlabel">
                        <asp:Label id="XLabel9" runat="server" text="无合同下单" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_MM_PurchaseApp_Info.IsNoContract" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Selected="True" Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                        <aspxform:XRequiredFieldValidator id="请上传合同附件" runat="server" DisableExpress="DF_MM_PurchaseApp_Info.IsNoContract=='是'" ValidationGroup="submit" ControlToValidate="XAttachments1" ErrorMessage="请上传合同附件" Display="None"></aspxform:XRequiredFieldValidator>
                    </td>
                    <td class="tsbottomlabel">
                        <aspxform:XLabel id="XLabel69" runat="server" BackColor="#d4e4fe" ValueToDisplayText Value Text="无合同下单单号" HiddenExpress="DF_MM_PurchaseApp_Info.IsNoContract=='否'"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_MM_PurchaseApp_Info.NoContractFormNo" Width="220px" HiddenExpress="DF_MM_PurchaseApp_Info.IsNoContract=='否'" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="查询" XClass="Oimec.Dialogs.GetOrderWithoutContractButton" Width="40px" HiddenExpress="DF_MM_PurchaseApp_Info.IsNoContract=='否'" DataMap="TaskID->DF_MM_PurchaseApp_Info.NoContractTaskID;FormNo->DF_MM_PurchaseApp_Info.NoContractFormNo" Filter="SalesManID->DF_MM_PurchaseApp_Info.SaleManID" Height="25px"></aspxform:XCustomBrowserButton>
                        <aspxform:XTextBox id="XTextBox70" runat="server" XDataBind="DF_MM_PurchaseApp_Info.NoContractTaskID" Width="40px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" DisableExpress="DF_MM_PurchaseApp_Info.IsNoContract=='否'" ValidationGroup="submit" ControlToValidate="XTextBox23" ErrorMessage="请填写无合同下单单号"></aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="唛头" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox82" runat="server" XDataBind="DF_MM_PurchaseApp_Info.Marks" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel10" runat="server" text="SO-PR号" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SOPR" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" Height="50px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel70" runat="server" text="SAP报价单号" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox65" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.SapQuotationNo" Value Width="70%" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel71" runat="server" text="所属地区" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox33" runat="server" XDataBind="DF_MM_PurchaseApp_Info.Area" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label1" runat="server" text="预付款申请单号" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox73" runat="server" XDataBind="DF_MM_PurchaseApp_Info.PaymentFormNo" Width="228px" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                        <aspxform:XHistoryFormLink id="XHistoryFormLink2" runat="server" BackColor="#d4e4fe" XDataBind="DF_MM_PurchaseApp_Info.PaymentTaskID" EmptyText="尚未关联" PopupWndWidth="-1" PopupWndHeight="-1">查看详细</aspxform:XHistoryFormLink>
                        &nbsp;</td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress="DF_MM_PurchaseApp_Info.IsNoContract=='是'" ValidationGroup="submit" ControlToValidate="XTextBox5" ErrorMessage="请填写SO-PR号"></aspxform:XRequiredFieldValidator>
        <br />
        <%--售达方信息--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel15" runat="server" text="售达方信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="售达方客户名称" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesCustomerName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                    </td>
                    <td class="ts1">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel17" runat="server" text="售达方地址" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesCustomerAddr" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel19" runat="server" text="红旗客户" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_MM_PurchaseApp_Info.IsFlagSC" DisableExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel18" runat="server" text="售达方电话" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SalesCustomerTel" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel20" runat="server" text="联系人" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_MM_PurchaseApp_Info.Contact" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <%--付款方信息--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="300" class="title1" colspan="4">
                        <asp:Label id="XLabel21" runat="server" text="付款方信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel22" runat="server" text="付款方客户名称" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_MM_PurchaseApp_Info.PayerCustomerName" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel23" runat="server" text="红旗客户" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_MM_PurchaseApp_Info.IsFlagPC" DisableExpress="1" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
        <%--交易信息--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="300" height="16" class="title1" colspan="4">
                        <asp:Label id="XLabel24" runat="server" text="交易信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="20" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel25" runat="server" text="付款条件" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_MM_PurchaseApp_Info.PayItems" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel32" runat="server" text="销售合同币种" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox47" runat="server" XDataBind="DF_MM_PurchaseApp_Info.ContractCurrency" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="ts" style="WIDTH: 10%">
                        <asp:Label id="Label2" runat="server" text="合同实际付款条件" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox78" runat="server" XDataBind="DF_MM_PurchaseApp_Info.ActPayItems" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1" Rows="3" TextMode="MultiLine" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label3" runat="server" text="此销售合同是否有预付" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList5" runat="server" XDataBind="DF_MM_PurchaseApp_Info.IsAdvancePay" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0">无需预付</asp:ListItem>
                            <asp:ListItem Value="1">有预付</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="12" class="ts">
                        <asp:Label id="XLabel26" runat="server" text="税种" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_MM_PurchaseApp_Info.TaxType" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel33" runat="server" text="销售合同总金额" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox48" runat="server" XDataBind="DF_MM_PurchaseApp_Info.TotalAmout" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="12" class="ts">
                        <asp:Label id="XLabel31" runat="server" text="发票类型" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox46" runat="server" XDataBind="DF_MM_PurchaseApp_Info.InvoiceType" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel34" runat="server" text="客户交货期" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_MM_PurchaseApp_Info.DeliveryDate" Width="49%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="1"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="ts">
                        <asp:Label id="XLabel28" runat="server" text="直发机场" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_MM_PurchaseApp_Info.NonstopAirport" Width="70%" BorderColor="InactiveCaption" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel35" runat="server" text="是否免税" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList4" runat="server" XDataBind="DF_MM_PurchaseApp_Info.IsTaxFree" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts">
                        <asp:Label id="XLabel29" runat="server" text="免税说明" valuetodisplaytext value></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_MM_PurchaseApp_Info.TaxFreeReason" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel30" runat="server" text="毛利（不含税）" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_MM_PurchaseApp_Info.GrossProfit" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="1" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel27" runat="server" text="客户交货方式" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 25%">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_MM_PurchaseApp_Info.DeliveryMode" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel37" runat="server" text="毛利率" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox50" runat="server" ValueToDisplayText XDataBind="DF_MM_PurchaseApp_Info.GrossMargin" Value Width="150" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False" CssClass="text" DisableExpress="1" TextAlign="Right"></aspxform:XTextBox>
                        %</td>
                </tr>
            </tbody>
        </table>
        <br />
        <%--表单行项目--%> 
        <div style="TEXT-ALIGN: center" runat="server">
            <div class="scrollDiv" style="HEIGHT: 430px">
                <table width="3600" align="center" class="scrolltable" id="tablePrdt" border="0" cellspacing="0" cellpadding="3" runat="server" menudock="Left" xdatasource="TableName:V_DF_SA_MarketInquiryApparatusListReport;Filter:TaskID->cs" datamap="产品型号->DF_MM_PurchaseApp_Detail.ProductModel;产品名称->DF_MM_PurchaseApp_Detail.ProductName;生产厂商->DF_MM_PurchaseApp_Detail.Manufacturer;采购数量->DF_MM_PurchaseApp_Detail.PruchaseNumber;采购币种->DF_MM_PurchaseApp_Detail.PurchaseCurrency;采购单价->DF_MM_PurchaseApp_Detail.PurchasePrice;折扣->DF_MM_PurchaseApp_Detail.PurchaseDiscount;含税采购总价->DF_MM_PurchaseApp_Detail.PurchaseTotalAmount;采购模式->DF_MM_PurchaseApp_Detail.PurchasingPattern;供货期->DF_MM_PurchaseApp_Detail.SupplierDelivery;发票税点->DF_MM_PurchaseApp_Detail.PurchaseInvoiceTaxPoint;运保费率->DF_MM_PurchaseApp_Detail.InternationCIFRate;运保费->DF_MM_PurchaseApp_Detail.InternationCIFRMB;关税税率->DF_MM_PurchaseApp_Detail.TariffRate;供应商->DF_MM_PurchaseApp_Detail.InquirySupplier;联系人->DF_MM_PurchaseApp_Detail.SupplierContact;电话->DF_MM_PurchaseApp_Detail.SupplierTel;客户保修期->DF_MM_PurchaseApp_Detail.WarrantyPeriod;采购付款方式->DF_MM_PurchaseApp_Detail.PurchasePayType;物料号->DF_MM_PurchaseApp_Detail.ProductSAPID;数量->SalesNumber;业务分类->DF_MM_PurchaseApp_Detail.BusinessClass;SupplierCustomerName->DF_MM_PurchaseApp_Detail.CustomerName;CustomsFees->DF_MM_PurchaseApp_Detail.CustomsFees;ItemID->DF_MM_PurchaseApp_Detail.IID;ManufacturerID->DF_MM_PurchaseApp_Detail.ManufacturerID;物料类型->DF_MM_PurchaseApp_Detail.MaterialType;TSType->DF_MM_PurchaseApp_Detail.TSType;IsSupplierSend->DF_MM_PurchaseApp_Detail.IsSupplierSend;SupplierSendReason->DF_MM_PurchaseApp_Detail.SupplierSendReason;IsFlag->DF_MM_PurchaseApp_Detail.IsFlag;SupplierCustomerSAPID->DF_MM_PurchaseApp_Detail.CustomerSAPID;PDSellingPriceRMB->DF_MM_PurchaseApp_Detail.SellingTotalvalueRMB;IncreaseTariff->DF_MM_PurchaseApp_Detail.IncreaseTariff" dynamicarea="2,1">
                    <tbody>
                        <tr class="scrollColThead">
                            <th height="29" align="left" class="scrollRowThead scrollCR" colspan="30">
                                <asp:Label id="XLabel38" runat="server" text="产品明细" valuetodisplaytext value textalign="left"></asp:Label>
                                <aspxform:XButton id="XButton1" runat="server" Text="批量删除" OnClientClick="DeleteBlocks();"></aspxform:XButton>
                            </th>
                        </tr>
                        <tr class="scrollColThead">
                            <th width="30" align="center" class="tds" xclass="Oimec.Dialogs.PurchaseAppSelectChange">
                                <aspxform:XCheckBox id="XCheckBox1" runat="server" Width="30px"></aspxform:XCheckBox>
                            </th>
                            <th width="52" height="60" class="tds">
                                <asp:Label id="XLabel39" runat="server" text="序号" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="103" class="tds">
                                <asp:Label id="XLabel40" runat="server" text="业务分类" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="116" class="tds">
                                <asp:Label id="XLabel41" runat="server" text="技术服务协议" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="101" class="tds">
                                <asp:Label id="XLabel42" runat="server" text="物料类型" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="111" class="tds">
                                <asp:Label id="XLabel43" runat="server" text="产品型号" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="112" class="tds">
                                <asp:Label id="XLabel44" runat="server" text="厂商名称" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="114" class="tds">
                                <asp:Label id="XLabel45" runat="server" text="采购模式" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="114" class="tds">
                                <asp:Label id="XLabel72" runat="server" text="供应商直发" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="114" class="tds">
                                <asp:Label id="XLabel73" runat="server" text="直发原因" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="114" class="tds">
                                <asp:Label id="XLabel46" runat="server" text="采购数量" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="118" class="tds">
                                <asp:Label id="XLabel47" runat="server" text="采购币种" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="110" class="tds">
                                <asp:Label id="XLabel48" runat="server" text="含税采购单价（采购币种）" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="127" class="tds">
                                <asp:Label id="XLabel49" runat="server" text="采购折扣%" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="96" class="tds">
                                <asp:Label id="XLabel50" runat="server" text="含税采购总价（采购币种）" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="112" class="tds">
                                <asp:Label id="XLabel51" runat="server" text="供应商货期" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="150" class="tds">
                                <asp:Label id="XLabel52" runat="server" text="采购发票税点" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="111" class="tds">
                                <asp:Label id="XLabel53" runat="server" text="预审供应商" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="115" class="tds">
                                <asp:Label id="XLabel54" runat="server" text="实际供应商" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel55" runat="server" text="采购付款方式" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="109" class="tds">
                                <asp:Label id="XLabel56" runat="server" text="国际运保费率" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="98" class="tds">
                                <asp:Label id="XLabel57" runat="server" text="国际运保费（采购币种）" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="99" class="tds">
                                <asp:Label id="XLabel58" runat="server" text="国际运保费（人民币）" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="105" class="tds">
                                <asp:Label id="XLabel59" runat="server" text="报关杂费（人民币）" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="122" class="tds">
                                <asp:Label id="XLabel60" runat="server" text="关税税率" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="122" class="tds">
                                <asp:Label id="Label6" runat="server" text="加征关税%" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="82" class="tds">
                                <asp:Label id="XLabel61" runat="server" text="供应商联系人" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="102" class="tds">
                                <asp:Label id="XLabel62" runat="server" text="供应商电话" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="131" class="tds">
                                <asp:Label id="XLabel63" runat="server" text="客户保修期" valuetodisplaytext value></asp:Label>
                            </th>
                            <th width="219" class="tds">
                                <asp:Label id="XLabel64" runat="server" text="报供应商最终客户名称" valuetodisplaytext value></asp:Label>
                            </th>
                        </tr>
                        <tr>
                            <td class="tds1" style="TEXT-ALIGN: center">
                                <aspxform:XCheckBox id="XCheckBox2" runat="server" Width="30px"></aspxform:XCheckBox>
                            </td>
                            <td height="49" class="tds1" style="TEXT-ALIGN: center">
                                <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" XDataBind="DF_MM_PurchaseApp_Detail.LineNumber" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                                <aspxform:XTextBox id="XTextBox79" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.SellingTotalvalueRMB" Width="100%" BorderColor="Gainsboro" BorderWidth="1" HiddenInput="true"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.BusinessClass" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.TSType" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox68" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.ProductSAPID" Width="10px" HiddenExpress="1" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox69" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.ProductName" Width="1px" HiddenExpress="1" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.MaterialType" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.ProductModel" Value Width="100%" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox67" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.ManufacturerID" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.Manufacturer" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchasingPattern" Width="100%" BorderColor="Gainsboro" BorderWidth="1" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox71" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.IsSupplierSend" Width="100%" BorderColor="Gainsboro" BorderWidth="1" DisableExpress="1" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox72" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.SupplierSendReason" Width="100%" BorderColor="Gainsboro" BorderWidth="1" DisableExpress="1" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox27" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PruchaseNumber" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Format="type:number;.0" TextAlign="Center"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox76" runat="server" XDataBind="SalesNumber" Width="100%" BorderColor="Gainsboro" BorderWidth="1" HiddenInput="True" Format="type:number;.0" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="varCurrency" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True" Express="if(DF_MM_PurchaseApp_Detail.PurchaseCurrency=='CNY','人民币','外币')" Height="20px"></aspxform:XTextBox>
                                <aspxform:XDropDownList id="XDropDownList9" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchaseCurrency" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" XDataSource="TableName:V_DF_SA_SS_PurchasingCurrency;Filter:BufferType:RuntimeUpdate">
                                    <asp:ListItem>未绑定</asp:ListItem>
                                </aspxform:XDropDownList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox29" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchasePrice" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox30" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchaseDiscount" Value Width="90px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                %</td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox31" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchaseTotalAmount" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Express="javascript('CountPurchasePrices',DF_MM_PurchaseApp_Detail.PurchaseDiscount,DF_MM_PurchaseApp_Detail.PurchasePrice,DF_MM_PurchaseApp_Detail.PruchaseNumber)" DisableExpress="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox32" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.SupplierDelivery" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchaseInvoiceTaxPoint" Width="100%" DisplayColumn="Name" ValueColumn="Name" XDataSource="TableName:V_DF_SA_SS_PurchaseInvoice">
                                    <asp:ListItem>未绑定</asp:ListItem>
                                </aspxform:XDropDownList>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.InquirySupplier" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox35" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.Supplier" Value Width="69px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DisableExpress="1"></aspxform:XTextBox>
                                <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="..." Width="25px" DataMap="Manufacturer->DF_MM_PurchaseApp_Detail.Supplier" PopupWndWidth="-1" PopupWndHeight="-1" XDataSource="TableName:DF_MM_Purchase_Manufacturer" UseSubmitBehavior="False" DisplayColumns="ItemID:序号,;Manufacturer:供应商名称,"></aspxform:XDataBrowserButton>
                                &nbsp; 
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.PurchasePayType" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.InternationCIFRate" Value Width="81px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                %</td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.InternationCIF" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox39" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.InternationCIFRMB" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox40" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.CustomsFees" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox41" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.TariffRate" Value Width="92px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                %</td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox80" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.IncreaseTariff" Value Width="92px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                                %</td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox42" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.SupplierContact" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox43" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.SupplierTel" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox44" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.WarrantyPeriod" Width="100%" BorderColor="Gainsboro" BorderWidth="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <p>
                                    <aspxform:XTextBox id="XTextBox45" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.CustomerName" Value Width="182px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" ReadOnly="True"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox62" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.IID" Value Width="20px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DisableExpress="1" Height="20px"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox49" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.ItemID" Value Width="21px" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" DisableExpress="1" Height="22px"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox63" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.HandlerAccount" Value Width="50px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="true" DisableExpress="1" Height="20px"></aspxform:XTextBox>
                                    <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Width="21px" DataMap="CustomerNameCH->DF_MM_PurchaseApp_Detail.CustomerName;CustomerSAPID->DF_MM_PurchaseApp_Detail.CustomerSAPID;IsFlag->DF_MM_PurchaseApp_Detail.IsFlag" XDataSource="TableName:V_DF_MasterData_Customer" DisplayColumns="CustomerID:客户编号;CustomerNameCH:客户名称;CustomerSAPID:SAPID;IsFlag:红旗客户;CusLeavel:客户等级"></aspxform:XDataBrowserButton>
                                    <aspxform:XTextBox id="XTextBox74" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.IsFlag" Value Width="20px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" DisableExpress="1" Height="20px"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox75" runat="server" XDataBind="DF_MM_PurchaseApp_Detail.CustomerSAPID" Value Width="20px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" DisableExpress="1" Height="20px"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="varResult" Width="20px" HiddenExpress="1" DataMap="HandlerAccount->DF_MM_PurchaseApp_Detail.HandlerAccount" DisplayColumn="HandlerAccount" ValueColumn="HandlerAccount" XDataSource="ProcedureName:PROC_DF_MM_PurchaserConfirm;Filter:@Currency->varCurrency,@BusinessClass->DF_MM_PurchaseApp_Detail.BusinessClass,@VendorName->DF_MM_PurchaseApp_Detail.Supplier,@BU->DF_MM_PurchaseApp_Info.BUID,@District->DF_MM_PurchaseApp_Info.Area,@CompanyCode->DF_MM_PurchaseApp_Info.BillingCpy,@IsEasyJet->DF_MM_PurchaseApp_Info.IsEasyJet" PrintOut="False"></aspxform:XDropDownList>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td height="25">
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tds">
                                <asp:Label id="XLabel36" runat="server" text="合计" valuetodisplaytext value width="100%"></asp:Label></td>
                            <td class="tds1q">
                                <aspxform:XTextBox id="XTextBox51" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Express="sum(DF_MM_PurchaseApp_Detail.PurchaseTotalAmount)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                             <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox52" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Express="sum(DF_MM_PurchaseApp_Detail.InternationCIF)" Format="type:number;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox53" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Express="sum(DF_MM_PurchaseApp_Detail.InternationCIFRMB)" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td class="tds1q">
                                <aspxform:XTextBox id="XTextBox54" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1" Express="sum(DF_MM_PurchaseApp_Detail.CustomsFees)" Format="type:currency;pfx:￥;.2" TextAlign="Right"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                           
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td width="1200" class="td1">
                        <asp:Label id="XLabel65" runat="server" text="上传合同附件" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="14">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_MM_PurchaseApp_Info.ContractAttach" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td width="1200" class="td1">
                        <asp:Label id="Label4" runat="server" text="外币业务单据表" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td width="1200" class="td1">
                        <asp:Label id="XLabel66" runat="server" text="上传其他附件" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_MM_PurchaseApp_Info.OtherAttach" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG;*.msg;*.eml"></aspxform:XAttachments>
                    </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="XLabel67" runat="server" text="备注" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox55" runat="server" XDataBind="DF_MM_PurchaseApp_Info.Remark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="60px" TextMode="MultiLine"></aspxform:XTextBox>
                    </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">
                        <aspxform:XLabel id="XLabel68" runat="server" BackColor="#d4e4fe" ValueToDisplayText Value Text="外币直发客户中英文信息（内容：公司名称、地址、电话、联系人）" HiddenExpress="DF_MM_PurchaseApp_Info.ContractCurrency=='CNY'"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel74" runat="server" BackColor="#d4e4fe" ValueToDisplayText Value Text="直发客户中文信息（内容：公司名称、地址、电话、联系人）" HiddenExpress="DF_MM_PurchaseApp_Info.ContractCurrency!='CNY'"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox56" runat="server" XDataBind="DF_MM_PurchaseApp_Info.SupplierRemark" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" Height="60px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" Width="361px" PositionSelectVisible="False" SaveButtonVisible="False" SaveAsTemplateButtonVisible="False"></aspxform:XProcessButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="submit" ControlToValidate="XRadioButtonList5" ErrorMessage="请选择销售合同是否有预付" ForeColor="Red"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择实际供应商" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox35" ErrorMessage="请选择实际供应商" Display="None"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress="DF_MM_PurchaseApp_Info.ContractCurrency=='CNY'" ValidationGroup="submit" ControlToValidate="XTextBox56" ErrorMessage="直发客户信息必填"></aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
