<%@ 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)
    {
        if (!IsPostBack)
        { //首次加载
            string formart = Request.QueryString["formstate"];
    
            string key = Request.QueryString["taskid"];//处理单TASKID
            string PTPName = Request.QueryString["PTPName"];
            string ActTermsPayment = Request.QueryString["ActTermsPayment"];
            string CustomerDeliveryDate = Request.QueryString["CustomerDeliveryDate"];
            string state = Request.QueryString["state"];//当前节点状态0：采购主管/直接采购岗，1：采购岗谈判
            string strid = Request.QueryString["strid"];
            this.taskid.Text = key;
            this.PTPName.Text = PTPName;
            this.ActTermsPayment.Text = ActTermsPayment;
            this.ExpectedDeliveryDate.Text = CustomerDeliveryDate;
            this.state.Text = state;
            this.strID.Text = strid;
        }
    
    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../../../../Oimec/Script/jquery-3.2.1.js"></script>
    <script src="../../../../Oimec/Script/jquery-3.2.1.min.js"></script>

    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

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

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

        TD {
            padding: 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*/
        }

        /*.trp {
            height:
        }*/
        /*.trp td {
        height:50px
        }*/

        .trp {
            height: 20px;
        }

            .trp td {
                height: 20px;
            }
    </style>

    <script type="text/javascript">

        Ext.onReady(function () {
            //获取采购处理单产品信息
            //XFormOnChange(agent.Eles[document.getElementById('taskid').getAttribute("xform_xele_index")]);
            //谈判产品信息
            negotiationPrdtInfo();
        });


        //谈判产品信息
        function negotiationPrdtInfo() {
            var taskid = agent.Eles[document.getElementById("taskid").getAttribute("xform_xele_index")].getValue();
            var strID = agent.Eles[document.getElementById("strID").getAttribute("xform_xele_index")].getValue();

            var url = YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx');
            var params = { method: 'GetNegotiationPrdtInfo', TaskID: taskid, strID: strID };

            YZSoft.Ajax.request({
                async: false,
                url: url,
                params: params,
                success: function (action) {
                    var result = action.result;

                    if (result != null) {
                        var count = result.length;

                        var tab = "list_table";
                        addRow(count, tab);
                        var dec = Number("0.00");
                        for (var i = 0; i < result.length; i++) {
                            var item = result[i];
                            //alert(JSON.stringify(item));

                            //alert(item.BusinessClass);
                            //显示到产品明细中

                            var tableObj1 = document.getElementById(tab);

                            tableObj1.rows[i + 2].cells[0].innerHTML = i + 1;
                            tableObj1.rows[i + 2].cells[1].innerHTML = item.BusinessClass;
                            tableObj1.rows[i + 2].cells[2].innerHTML = item.InquirySupplier;
                            tableObj1.rows[i + 2].cells[3].innerHTML = item.InitProductModel;
                            tableObj1.rows[i + 2].cells[4].innerHTML = item.InitPruchaseNumber;
                            tableObj1.rows[i + 2].cells[5].innerHTML = item.InitPurchasePrice;
                            tableObj1.rows[i + 2].cells[6].innerHTML = item.PurchasePrice;
                            tableObj1.rows[i + 2].cells[7].innerHTML = item.PurchaseCurrency;
                            tableObj1.rows[i + 2].cells[8].innerHTML = item.PurchaseInvoiceTaxPoint;
                            tableObj1.rows[i + 2].cells[9].innerHTML = item.TotalDiscountIncludingTax;
                            tableObj1.rows[i + 2].cells[10].innerHTML = item.ContractDeliveryDateTr;
                            if (item.SupplierDeliveryDateUnit == "[object HTMLCollection]") {
                                tableObj1.rows[i + 2].cells[11].innerHTML = item.InitSupplierDelivery;
                            } else { tableObj1.rows[i + 2].cells[11].innerHTML = item.InitSupplierDelivery + item.SupplierDeliveryDateUnit; }
                            tableObj1.rows[i + 2].cells[12].innerHTML = item.IsSupplierSend;
                            var t = Number(item.TotalDiscountIncludingTax);
                            dec += t

                            if (i == 0) {
                                //alert(item.PartnerSAPID);
                                //供应商
                                var idSupplierTel = getElementId("SupplierPhone", i, "input");
                                document.getElementById(idSupplierTel).value = item.SupplierTel;
                                var idSupplierContact = getElementId("SupplierContact", i, "input");
                                document.getElementById(idSupplierContact).value = item.SupplierContact;
                                var idSupplierSAPID = getElementId("SupplierSAPID", i, "input");
                                document.getElementById(idSupplierSAPID).value = item.PartnerSAPID;
                                var idSupplierName = getElementId("SupplierName", i, "input");
                                document.getElementById(idSupplierName).value = item.ZSupplier;
                                var idSupplierProperties = getElementId("SupplierProperties", i, "select");
                                document.getElementById(idSupplierProperties).value = item.PurchasingPattern;

                                agent.Eles[document.getElementById("txtSupplierSAPID").getAttribute("xform_xele_index")].setValue(item.PartnerSAPID);
                                XFormOnChange(agent.Eles[document.getElementById("txtSupplierSAPID").getAttribute("xform_xele_index")]);

                            }
                        }

                        agent.Eles[document.getElementById("XLabel1").getAttribute("xform_xele_index")].setValue(dec);

                    }


                }
            });

        }

        //添加行
        function addRow(count, table) {

            var obj = document.getElementById(table);
            var row = obj.rows.length;
            if (row > 2) {
                var oTr = obj.rows[2].cloneNode(true);
                if (count > row - 2) {
                    var c = count - (row - 2);
                    for (var i = 0; i < c; i++) {
                        oTr = obj.rows[2 + i].cloneNode(true);
                        obj.appendChild(oTr);
                    }
                }
            }

        }

        //获取cookie值
        function getCookie(name) {
            var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
            if (arr = document.cookie.match(reg))
                return unescape(arr[2]);
            else
                return null;
        };

        //cookie中存值：
        function setCookie(name, value) {
            if (value) {
                //var Days = 365
                //var exp = new Date()
                //exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000)
                //document.cookie = name + '=' + escape(value) + ';expires=' + exp.toGMTString()
                document.cookie = name + '=' + escape(value) + ';'
            }
        };

        //清除指定cookie值：
        function delCookie(name) {
            var cval = setCookie(name)
            //if (cval && cval != null) {
            //    document.cookie = name + '=' + cval + ';'
            //}
            if (cval && cval != null) {
                var v = "";
                document.cookie = name + '=' + v + ';'
            }
        };

        //清除全部cookie值：
        function clearCookie() {
            var keys = document.cookie.match(/[^ =;]+(?=\=)/g)
            if (keys) {
                for (var i = keys.length; i--;) {
                    document.cookie = keys[i] + '=0;'
                }
            }
        };

        /*   注**：这是一个公共的方法
       **  获取行项目table对应标签控件元素id
       **  参数说明：name(控件name)，i(行索引)，htmltag(要获取控件div中对应的标签名)
       **  示例：获取第1行行项目文本框name="txtname",参数：txtname,0,input
       */
        function getElementId(name, i, htmltag) {
            var divs = document.getElementsByName(name);
            var div = divs[i];
            var id = div.getElementsByTagName(htmltag)[0].id;
            return id;

        }

    </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="1000" class="biaoti">
                        <asp:Label id="Label1" runat="server" text="谈判信息表"></asp:Label></td>
                    <td width="400" class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        基本信息 
                        <aspxform:XTextBox id="XTextBox24" runat="server" Express="taskid" XDataBind="DF_MM_Negotiation_Info.HTaskID" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInpu="true" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="taskid" runat="server" XDataBind="taskid" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="state" runat="server" XDataBind="state" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="strID" runat="server" XDataBind="strID" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" HiddenExpress="1" XDataSource="TableName:DF_MM_NewPurchase_Info;Filter:TaskID->taskid" DataMap="Remark->Remark"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="splict" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true">,</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <span>付款方客户</span> 
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XLabel id="PTPName" runat="server" XDataBind="DF_MM_Negotiation_Info.PTPName" BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomlabel">
                        客户实际付款条件</td>
                    <td class="tsbottomtext">
                        <aspxform:XLabel id="ActTermsPayment" runat="server" XDataBind="DF_MM_Negotiation_Info.ActTermsPayment" BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        客户期望交货期</td>
                    <td class="tsbottomtext">
                        <aspxform:XLabel id="ExpectedDeliveryDate" runat="server" XDataBind="DF_MM_Negotiation_Info.ExpectedDeliveryDate" BackColor="#d4e4fe"></aspxform:XLabel>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        &nbsp;<%--<table width="1200" id="list_table" align="center" class="scrolltable" border="0" cellspacing="0" cellpadding="3" runat="server" xdatasource="TableName:DF_MM_NewPurchase_Detail;Filter:TaskID->DF_MM_Negotiation_Info.HTaskID" datamap="LineNumber->LineNumber;BusinessClass->BusinessClass;InitProductModel->InitProductModel;InitPruchaseNumber->InitPruchaseNumber;PurchaseCurrency->PurchaseCurrency;InitPurchasePrice->InitPurchasePrice;PurchasePrice->PurchasePrice;InitSupplierDelivery->InitSupplierDelivery;PurchaseInvoiceTaxPoint->PurchaseInvoiceTaxPoint;InquirySupplier->InquirySupplier;IsSupplierSend->IsSupplierSend;TotalDiscountIncludingTax->TotalDiscountIncludingTax;ContractDeliveryDateTr->ContractDeliveryDateTr" dynamicarea="2,1" menudock="Left">--%> 
        <div class="scrollDiv" id="idscrollDiv" style="HEIGHT: auto; WIDTH: 1200px; MARGIN: 0px auto; MAX-HEIGHT: 400px"><%--<div class="scrollDiv" style="height: 600px; width: 1200px; margin: 0px auto">--%> 
            <table width="1200" align="center" class="scrolltable" id="list_table" border="0" cellspacing="0" cellpadding="3" runat="server" menudock="Left">
                <tbody>
                    <tr>
                        <td class="title1" colspan="13">
                            产品明细</td>
                    </tr>
                    <tr>
                        <td class="tds" style="WIDTH: 4%">
                            行号</td>
                        <td class="tds" style="WIDTH: 6%">
                            业务分类</td>
                        <td class="tds" style="WIDTH: 10%">
                            销售合同供应商</td>
                        <td class="tds" style="WIDTH: 6%">
                            销售合同产品型号</td>
                        <td class="tds" style="WIDTH: 6%">
                            销售合同采购数量</td>
                        <td class="tds" style="WIDTH: 10%">
                            销售合同含税采购单价(采购币种)</td>
                        <td class="tds" style="WIDTH: 10%">
                            采购单价(采购币种)</td>
                        <td class="tds" style="WIDTH: 6%">
                            采购币种</td>
                        <td class="tds" style="WIDTH: 6%">
                            采购发票税点</td>
                        <td class="tds" style="WIDTH: 6%">
                            采购总价</td>
                        <td class="tds" style="WIDTH: 10%">
                            客户纸面合同货期</td>
                        <td class="tds" style="WIDTH: 6%">
                            预计供应商货期</td>
                        <td class="tds" style="WIDTH: 6%">
                            供应商直发</td>
                    </tr>
                    <tr>
                        <td height="24" class="tds1">
                            <aspxform:XLabel id="XLabel36" runat="server" XDataBind="LineNumber" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XLabel id="Label2" runat="server" XDataBind="BusinessClass" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XLabel id="Label3" runat="server" XDataBind="InquirySupplier" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XLabel id="Label4" runat="server" XDataBind="InitProductModel" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="center" class="tds1">
                            <aspxform:XLabel id="Label5" runat="server" XDataBind="InitPruchaseNumber" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="right" class="tds1">
                            <aspxform:XLabel id="Label6" runat="server" XDataBind="InitPurchasePrice" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="right" class="tds1">
                            <aspxform:XLabel id="Label7" runat="server" XDataBind="PurchasePrice" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="center" class="tds1">
                            <aspxform:XLabel id="Label8" runat="server" XDataBind="PurchaseCurrency" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="center" class="tds1">
                            <aspxform:XLabel id="Label9" runat="server" XDataBind="PurchaseInvoiceTaxPoint" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="right" class="tds1">
                            <aspxform:XLabel id="Label10" runat="server" XDataBind="TotalDiscountIncludingTax" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XLabel id="Label11" runat="server" XDataBind="ContractDeliveryDateTr" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td align="center" class="tds1">
                            <aspxform:XLabel id="Label12" runat="server" XDataBind="InitSupplierDelivery" BackColor="#e9f1f4"></aspxform:XLabel>
                        </td>
                        <td class="tds1">
                            <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="IsSupplierSend" DisableExpress="1" RepeatDirection="Horizontal">
                                <asp:ListItem>非直发</asp:ListItem>
                                <asp:ListItem>直发</asp:ListItem>
                            </aspxform:XRadioButtonList>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table width="1200" align="center" class="scrolltable" border="0" cellspacing="0" cellpadding="3" runat="server">
                <tbody>
                    <tr>
                        <td class="tds1" style="WIDTH: 58%" colspan="8">
                        </td>
                        <td align="right" class="tds1" style="WIDTH: 6%">
                            合计</td>
                        <td align="right" class="tds1" style="WIDTH: 6%">
                            <aspxform:XLabel id="XLabel1" runat="server" BackColor="#e9f1f4" Text="Label" al></aspxform:XLabel>
                        </td>
                        <td class="tds1" style="WIDTH: 22%" colspan="3">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1">
                        备注</td>
                </tr>
                <tr>
                    <td>
                        <aspxform:XLabel id="XLabel2" runat="server" XDataBind="Remark" BackColor="#D4E4FE"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="2">
                        下单前与销售沟通内容</td>
                </tr>
                <tr>
                    <td width="131" class="ts">
                        分类</td>
                    <td width="1065" class="ts1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_MM_Negotiation_Info.Type" Width="151px" XDataSource DisableExpress="state!=1" PromptText="--请选择--">
                            <asp:ListItem>清洁订单问题</asp:ListItem>
                            <asp:ListItem>供方情况变化</asp:ListItem>
                            <asp:ListItem>需方情况变化</asp:ListItem>
                            <asp:ListItem>特殊业务</asp:ListItem>
                            <asp:ListItem>其他</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_MM_Negotiation_Info.TypeText" Width="900px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="False" DisableExpress="state!=1" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="center" style="HEIGHT: auto; WIDTH: 1200px">
            <aspxform:XTextBox id="txtSupplierSAPID" runat="server" XDataBind="SupplierSAPID" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XTextBox id="txtSupplierName" runat="server" XDataBind="SupplierName" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="SupplierProperties" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="SupplierContact" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="SupplierPhone" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XDropDownList id="XDropDownList6" runat="server" HiddenExpress="1" XDataSource="TableName:V_DF_Partner_ContactZK;Filter:ContactType->'供应商',PartnerSAPID->SupplierSAPID" DataMap="ContactName->SysSupplierContact;ContactMobile->SysSupplierPhone"></aspxform:XDropDownList>
            <aspxform:XTextBox id="txtSysSupplierContact" runat="server" XDataBind="SysSupplierContact" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <aspxform:XTextBox id="txtSysSupplierPhone" runat="server" XDataBind="SysSupplierPhone" Width="39px" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" HiddenInput="true" ValueToDisplayText></aspxform:XTextBox>
            <br />
        </div>
        <table width="1200" align="center" class="scrolltable" border="0" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="0,1">
            <tbody>
                <tr>
                    <td>
                        <table width="1195" class="table" id="infotable" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td height="25" class="title1" colspan="4">
                                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_MM_NegotiationSupplier_Info.LineNumber" Width="5px" BorderWidth="1" BackColor="#c1d7ec" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                                        <aspxform:XLabel id="XLabel4" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1,"谈判内容-业务员推荐","谈判内容-主管岗推荐")' BackColor="#c1d7ec"></aspxform:XLabel>
                                        <aspxform:XCheckBox id="IsSelect" runat="server" XDataBind="DF_MM_NegotiationSupplier_Info.IsSelect" Width="100px" DisableExpress=" state==0" Text="选择此供应商" Font-Bold="True" ForeColor="Blue" align="right" Height="25px"></aspxform:XCheckBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="420" height="20" class="ts">
                                        供应商名称<aspxform:XTextBox id="SupplierSAPID" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1 &amp;&amp; DF_MM_NegotiationSupplier_Info.SupplierSAPID=="" ,SupplierSAPID,DF_MM_NegotiationSupplier_Info.SupplierSAPID)' XDataBind="DF_MM_NegotiationSupplier_Info.SupplierSAPID" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" name="SupplierSAPID"></aspxform:XTextBox>
                                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="20px" XClass="YZSoft.Forms.Field.DataBrowserButton" XDataSource="TableName:V_DF_MSupplier_ZK;" DataMap="SupplierName->DF_MM_NegotiationSupplier_Info.SupplierName;PartnerSAPID->DF_MM_NegotiationSupplier_Info.SupplierSAPID" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" Text="..." UseSubmitBehavior="False" PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="SupplierName:供应商名称,300;PartnerSAPID:供应商SAPID"></aspxform:XDataBrowserButton>
                                    </td>
                                    <td width="282" class="ts1">
                                        <aspxform:XTextBox id="SupplierName" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1 &amp;&amp; DF_MM_NegotiationSupplier_Info.SupplierName=="" ,SupplierName,DF_MM_NegotiationSupplier_Info.SupplierName)' XDataBind="DF_MM_NegotiationSupplier_Info.SupplierName" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="1" Height="100%" name="SupplierName"></aspxform:XTextBox>
                                    </td>
                                    <td width="119" class="ts">
                                        供应商属性</td>
                                    <td width="374" class="ts1">
                                        <aspxform:XDropDownList id="SupplierProperties" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1 &amp;&amp; DF_MM_NegotiationSupplier_Info.SupplierProperties=="" ,SupplierProperties,DF_MM_NegotiationSupplier_Info.SupplierProperties)' XDataBind="DF_MM_NegotiationSupplier_Info.SupplierProperties" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" PromptText="--请选择--" Height="100%" name="SupplierProperties">
                                            <asp:ListItem Value="原厂采购">原厂</asp:ListItem>
                                            <asp:ListItem Value="非原厂采购">非原厂</asp:ListItem>
                                        </aspxform:XDropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" class="ts">
                                        供应商联系人</td>
                                    <td class="ts1">
                                        <aspxform:XTextBox id="SupplierContact" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1 &amp;&amp; DF_MM_NegotiationSupplier_Info.SupplierContact=="" ,SupplierContact,DF_MM_NegotiationSupplier_Info.SupplierContact)' XDataBind="DF_MM_NegotiationSupplier_Info.SupplierContact" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" Height="100%" name="SupplierContact"></aspxform:XTextBox>
                                    </td>
                                    <td class="ts">
                                        供应商电话</td>
                                    <td class="ts1">
                                        <aspxform:XTextBox id="SupplierPhone" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1 &amp;&amp; DF_MM_NegotiationSupplier_Info.SupplierPhone=="" ,SupplierPhone,DF_MM_NegotiationSupplier_Info.SupplierPhone)' XDataBind="DF_MM_NegotiationSupplier_Info.SupplierPhone" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" Height="100%" name="SupplierPhone"></aspxform:XTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" class="ts">
                                        系统联系人</td>
                                    <td class="ts1">
                                        <%--&amp;&amp; DF_MM_NegotiationSupplier_Info.SysSupplierPhone==""--%> 
                                        <aspxform:XTextBox id="XTextBox3" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1,SysSupplierContact,DF_MM_NegotiationSupplier_Info.SysSupplierContact)' XDataBind="DF_MM_NegotiationSupplier_Info.SysSupplierContact" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" Height="100%"></aspxform:XTextBox>
                                    </td>
                                    <td class="ts">
                                        联系电话</td>
                                    <td class="ts1">
                                        <aspxform:XTextBox id="XTextBox5" runat="server" Express='if(DF_MM_NegotiationSupplier_Info.LineNumber==1,SysSupplierPhone,DF_MM_NegotiationSupplier_Info.SysSupplierPhone)' XDataBind="DF_MM_NegotiationSupplier_Info.SysSupplierPhone" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_MM_NegotiationSupplier_Info.LineNumber==1 || state==1" Height="100%"></aspxform:XTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" class="ts">
                                        供应商历史评价</td>
                                    <td class="ts1" colspan="3">
                                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_MM_NegotiationSupplier_Info.HistoricalEvaluation" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1" Height="100%"></aspxform:XTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" class="ts">
                                        其他注意事项</td>
                                    <td class="ts1" colspan="3">
                                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_MM_NegotiationSupplier_Info.OtherNotes" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1" Height="100%"></aspxform:XTextBox>
                                    </td>
                                </tr>
                                <tr style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px">
                                    <td height="38" colspan="4">
                                        <%--<div class="scrollDiv" style="height: auto;max-height:400px; width: 1200px; margin: 0px auto">--%> 
                                        <div class="scrollDiv" style="HEIGHT: auto; WIDTH: 1200px; MARGIN: 0px auto">
                                            <table width="2400" class="scrolltable" id="prdtTable" border="0" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="1,1" datamap="ItemID->DF_MM_NegotiationSupplier_Detail.HItemID;ProductName->DF_MM_NegotiationSupplier_Detail.ProductName;InitProductModel->DF_MM_NegotiationSupplier_Detail.ProductModel;PurchaseInvoiceTaxPointCode->DF_MM_NegotiationSupplier_Detail.PurchaseInvoiceTaxPoint1" xdatasource="ProcedureName:Proc_DF_MM_NegotiationPrdtList;Filter:@strID->strID,@taskid->DF_MM_Negotiation_Info.HTaskID,@split->splict">
                                                <tbody>
                                                    <tr>
                                                        <td width="5%" class="tds">
                                                            产品名称</td>
                                                        <td width="7%" class="tds">
                                                            产品型号</td>
                                                        <td width="4%" class="tds">
                                                            历史成交价格</td>
                                                        <td width="2%" class="tds">
                                                            数量</td>
                                                        <td width="6%" class="tds">
                                                            采购发票税点</td>
                                                        <td width="5%" class="tds">
                                                            采购时间</td>
                                                        <td width="14%" class="tds">
                                                            付款条件</td>
                                                        <td width="5%" class="tds">
                                                            货期</td>
                                                        <td width="5%" class="tds">
                                                            联系人</td>
                                                        <td width="7%" class="tds">
                                                            联系电话</td>
                                                        <td width="5%" class="tds">
                                                            谈判价格</td>
                                                        <td width="5%" class="tds">
                                                            货期</td>
                                                        <td width="14%" class="tds">
                                                            付款条件</td>
                                                        <td width="10%" class="tds">
                                                            实际付款条件 
                                                        </td>
                                                        <td width="10%" class="tds">
                                                            采购发票税点</td>
                                                    </tr>
                                                    <tr class="trp">
                                                        <td class="tds1">
                                                            <aspxform:XLabel id="XLabel5" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.ProductName" BackColor="#e9f1f4"></aspxform:XLabel>
                                                            <aspxform:XLabel id="XLabel6" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.HItemID" HiddenExpress="1" BackColor="#e9f1f4"></aspxform:XLabel>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XLabel id="XLabel7" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.ProductModel" BackColor="#e9f1f4"></aspxform:XLabel>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.HistoryPurchasePrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.Number" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1" TextAlign="Center" Format="type:number;.0"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.PurchaseInvoiceTaxPoint" Width="100%" XDataSource="TableName:V_DF_SA_SS_PurchaseInvoice;Filter:BufferType:RuntimeUpdate;OrderBy:OrderID" DisableExpress="state==1" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name">
                                                                <asp:ListItem>未绑定</asp:ListItem>
                                                            </aspxform:XDropDownList>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.PurchaseDate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1"></aspxform:XDateTimePicker>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDropDownList id="PurchasePaymentTerms" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.PaymentTerms" Width="100%" XDataSource="TableName:V_DF_DataSource_PayItems" DisableExpress="state==1" PromptText="----请选择----" DisplayColumn="Name" ValueColumn="Value"></aspxform:XDropDownList>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.DeliveryDate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.Contact" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.Phone" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==1"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.NegotiatedPrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==0" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDropDownList id="DeliveryDate1" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.DeliveryDate1" Width="100%" DisableExpress="state==0" PromptText="----请选择----">
                                                                <asp:ListItem>无现货</asp:ListItem>
                                                                <asp:ListItem>现货</asp:ListItem>
                                                                <asp:ListItem>1周</asp:ListItem>
                                                                <asp:ListItem>2周</asp:ListItem>
                                                                <asp:ListItem>3周</asp:ListItem>
                                                                <asp:ListItem>4周</asp:ListItem>
                                                                <asp:ListItem>5周</asp:ListItem>
                                                                <asp:ListItem>6周</asp:ListItem>
                                                                <asp:ListItem>7周</asp:ListItem>
                                                                <asp:ListItem>8周</asp:ListItem>
                                                                <asp:ListItem>10周</asp:ListItem>
                                                                <asp:ListItem>12周</asp:ListItem>
                                                            </aspxform:XDropDownList>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.PaymentTerms1" Width="100%" XDataSource="TableName:V_DF_DataSource_PayItems" DisableExpress="state==0" PromptText="----请选择----" DisplayColumn="Name" ValueColumn="Value"></aspxform:XDropDownList>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.ActualPaymentTerms1" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==0"></aspxform:XTextBox>
                                                        </td>
                                                        <td class="tds1">
                                                            <aspxform:XDropDownList id="PurchaseInvoiceTaxPointCode" runat="server" XDataBind="DF_MM_NegotiationSupplier_Detail.PurchaseInvoiceTaxPoint1" Width="100%" XDataSource="TableName:V_DF_SA_SS_PurchaseInvoice;Filter:BufferType:RuntimeUpdate;OrderBy:OrderID" DisableExpress="state==0" PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name">
                                                                <asp:ListItem>未绑定</asp:ListItem>
                                                            </aspxform:XDropDownList>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="14" class="ts" colspan="4">
                                        谈判内容描述 
                                    </td>
                                </tr>
                                <tr>
                                    <td height="49" class="ts1" colspan="4">
                                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_MM_NegotiationSupplier_Info.NegotiationContent" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="state==0" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress="state==1" ForeColor="Red" ControlToValidate="SupplierName" ErrorMessage="请选择供应商" Display="None">请选择供应商</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" DisableExpress="state==1" ForeColor="Red" ControlToValidate="SupplierProperties" ErrorMessage="请选择供应商属性" Display="None">请选择供应商属性</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress="state==1" ForeColor="Red" ControlToValidate="SupplierContact" ErrorMessage="请填写供应商联系人" Display="None">请填写供应商联系人</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress="state==1" ForeColor="Red" ControlToValidate="SupplierPhone" ErrorMessage="请填写供应商电话" Display="None">请填写供应商电话</aspxform:XRequiredFieldValidator>
        <br />
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XTextBox9" ErrorMessage="请填写历史成交价格" Display="None">请填写历史成交价格</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XTextBox10" ErrorMessage="请填写数量" Display="None">请填写数量</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XDropDownList1" ErrorMessage="请选择采购发票税点" Display="None">请选择采购发票税点</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XDateTimePicker1" ErrorMessage="请选择采购时间" Display="None">请选择采购时间</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="PurchasePaymentTerms" ErrorMessage="请选择付款条件" Display="None">请选择付款条件</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XTextBox11" ErrorMessage="请填写货期" Display="None">请填写货期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XTextBox12" ErrorMessage="请填写联系人" Display="None">请填写联系人</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress="1" ForeColor="Red" ControlToValidate="XTextBox13" ErrorMessage="请填写联系电话" Display="None">请填写联系电话</aspxform:XRequiredFieldValidator>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" DisableExpress="state==0" ForeColor="Red" ControlToValidate="XTextBox14" ErrorMessage="请填写谈判价格" Display="None">请填写谈判价格</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator14" runat="server" DisableExpress="state==0" ForeColor="Red" ControlToValidate="DeliveryDate1" ErrorMessage="请选择货期" Display="None">请选择货期</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" DisableExpress="state==0" ForeColor="Red" ControlToValidate="XDropDownList2" ErrorMessage="请选择付款条件" Display="None">请选择付款条件</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator16" runat="server" DisableExpress="state==0" ForeColor="Red" ControlToValidate="PurchaseInvoiceTaxPointCode" ErrorMessage="请选择发票税点" Display="None">请选择发票税点</aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
