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

    // Insert page code here
    //

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <title>BPM Form</title>
    <style>
        BODY {
            FONT-SIZE: 12px;
            FONT-FAMILY: verdana;
        }

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

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

        TD {
            padding: 1px;
        }

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

        TEXTAREA {
            FONT-SIZE: 12px;
        }

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

        function GetPlanDeliveryDate(PO) {
            if (PO != "") {
                //agent.Eles[document.getElementById("XDateTimePicker5").getAttribute("xform_xele_index")].setValue("");
                //agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(""); 

                YZSoft.Ajax.request({
                    async: false,
                    url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                    params: {
                        method: 'GetPOInfo',
                        poNumber: PO
                    },
                    success: function (action) {
                        var data = action.result;
                        var PlanDeliveryDate = data.PlanDeliveryDate;
                        if (PlanDeliveryDate != "") {
                            // PlanDeliveryDate = eval(PlanDeliveryDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)"));
                            agent.Eles[document.getElementById("XDateTimePicker5").getAttribute("xform_xele_index")].setValue(PlanDeliveryDate);
                        }
                        if (data.sRows > 0) {
                            var SupplierName = data.SupplierName;
                            agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(SupplierName); //供应商

                        }
                        else {
                            agent.Eles[document.getElementById("XTextBox16").getAttribute("xform_xele_index")].setValue(""); 
                        }
                    },
                    failure: function (response) {
                    }
                });

            }
        }

        //输入SO号时获取第一个SO的销售信息
        function GetSOInfo(SO) {
            var data = SO.split("/"); 
            //agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].setValue(""); 
            //agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(""); 
            //agent.Eles[document.getElementById("XTextBox25").getAttribute("xform_xele_index")].setValue(""); 
            //agent.Eles[document.getElementById("XTextBox18").getAttribute("xform_xele_index")].setValue(""); 
            //agent.Eles[document.getElementById("XTextBox14").getAttribute("xform_xele_index")].setValue("");

            YZSoft.Ajax.request({
                async: false,
                url: YZSoft.$url('Oimec/ApiServices/PurchaseAPIHandler.ashx'),
                params: {
                    method: 'GetSOInfo',
                    SO: data[0]
                },
                success: function (action) {
                    var SOInfo = action.result.SOInfo;
                    agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].setValue(SOInfo.PTPName); //开证单位名称
                    agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(SOInfo.STPName); //最终用户
                    agent.Eles[document.getElementById("XTextBox25").getAttribute("xform_xele_index")].setValue(SOInfo.SalesOrg); //销售组织
                    agent.Eles[document.getElementById("XTextBox18").getAttribute("xform_xele_index")].setValue(SOInfo.PayTerms); //销售合同付款条件
                    agent.Eles[document.getElementById("XTextBox14").getAttribute("xform_xele_index")].setValue(SOInfo.SalesTotalPricesTax); //销售合同总金额
                },
                failure: function (response) {
                }
            });
        }

        //页面加载时触发事件
        Ext.onReady(function () {
            //审批节点为“业务员提交尾款验收报告”时 提示
            var stepName = agent.Eles[document.getElementById('XTextBox23').getAttribute("xform_xele_index")].getValue();//当前流程审批步骤名
            if (stepName == "业务员提交尾款验收报告") {
                alert("请按信用证要求提供用户验收报告，以便议付信用证尾款。");
            }
        }); 
    </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 class="biaoti">
                        <asp:Label id="Label1" runat="server" text="客户信用证管理申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="Label2" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.FormNo" BackColor="#8AB3DF" ValueToDisplayText Value Text="--系统自动生成--"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="973">
                        <asp:Label id="Label51" runat="server" text="标记为*的为申请人发起申请时必填项" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label53" runat="server" text="标记为*的为采购员补充信用证信息时必填项" forecolor="Blue" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label52" runat="server" text="标记为**的为采购员做交单单据时必填项" forecolor="Blue" font-bold="True"></asp:Label></td>
                    <td width="223" align="right">
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        &nbsp;<asp:Label id="Label3" runat="server" text="基本信息"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="Global.StepName" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="16" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label4" runat="server" text="申请人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.AppAccount" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px"></aspxform:XTextBox>
                        <aspxform:XDateTimePicker id="XDateTimePicker7" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.NowDate" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" HiddenExpress="1"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.AppName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label5" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.CreateDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="信用证号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.LCNO" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label8" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label9" runat="server" text="开票公司"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.BillingCompany" Width="200px" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"' PromptText="--请选择--" DisplayColumn="Company" ValueColumn="CompanyCode" XDataSource="TableName:DF_SA_SS_Company"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label10" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label11" runat="server" text="信用证总金额"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.LCTotalMoney" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label47" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label12" runat="server" text="信用证币种"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.LCCurrency" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"' PromptText="--请选择--" DisplayColumn="Name" ValueColumn="Name" XDataSource="TableName:V_DF_SA_SS_SalesCurrency"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label13" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label14" runat="server" text="采购合同号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.PurchaseContractNo" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="采购员补充信用证信息"'></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label16" runat="server" text="销售合同号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SalesContractNo" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="采购员补充信用证信息"'></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label18" runat="server" text="SAP-PO号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%" colspan="3">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.PO" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="采购员补充信用证信息"'></aspxform:XTextBox>
                        <asp:Label id="Label54" runat="server" text='可写多个,以"/"分隔' forecolor="Blue" font-bold="False"></asp:Label>
                        <aspxform:XTextBox id="XTextBox17" runat="server" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" Express="javascript('GetPlanDeliveryDate',DF_MM_LetterCreditApp_Info.PO)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="12" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label31" runat="server" text="* " forecolor="Red"></asp:Label><asp:Label id="Label20" runat="server" text="SAP-SO号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 80%" colspan="3">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SO" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" DisableExpress='Global.StepName!="采购员补充信用证信息"&amp;&amp;Global.StepName!="财务部人员发起收到信用证申请" &amp;&amp; Global.StepName!="财务部人员发起收到信用证申请"'></aspxform:XTextBox>
                        <asp:Label id="Label55" runat="server" text='可写多个,以"/"分隔' forecolor="Blue" font-bold="False"></asp:Label>
                        <aspxform:XTextBox id="XTextBox24" runat="server" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px" Express="javascript('GetSOInfo',DF_MM_LetterCreditApp_Info.SO)"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label21" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label22" runat="server" text="业务员"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SalesMan" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SalesManName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="40px" DisableExpress='Global.StepName!="采购员补充信用证信息"' XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="AttendanceKakaNO->DF_MM_LetterCreditApp_Info.SalesMan;Name->DF_MM_LetterCreditApp_Info.SalesManName" DisplayColumns="AttendanceKakaNO:员工账号;Name:姓名;Department:部门" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label23" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label24" runat="server" text="业务员的助理"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Assistant" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.AssistantName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="40px" DisableExpress='Global.StepName!="采购员补充信用证信息"' XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="AttendanceKakaNO->DF_MM_LetterCreditApp_Info.Assistant;Name->DF_MM_LetterCreditApp_Info.AssistantName" DisplayColumns="AttendanceKakaNO:员工账号;Name:姓名;Department:部门" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="32" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label25" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label26" runat="server" text="信用证是否有尾款"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.IsFinalPayment" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"' RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel3" runat="server" BackColor="#D4E4FE" Text="*" HiddenExpress='DF_MM_LetterCreditApp_Info.IsFinalPayment!="是"' ForeColor="Red"></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel2" runat="server" BackColor="#D4E4FE" Text="尾款是否需要其他单据" HiddenExpress='DF_MM_LetterCreditApp_Info.IsFinalPayment!="是"'></aspxform:XLabel>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.IsOtherBills" HiddenExpress='DF_MM_LetterCreditApp_Info.IsFinalPayment!="是"' DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"' RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem>否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label29" runat="server" text="采购员"></asp:Label>
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Purchaser" HiddenInput="True" BorderColor="#DCDCDC" BorderWidth="1" Width="20px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.PurchaserName" BackColor="#E6F1F8" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Width="192px" Max="0" Min="0" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;&nbsp;<aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.PurchaserName1" ValueToDisplayText HiddenInput="False" BorderColor="Gainsboro" BorderWidth="1px" Width="214px" Max="0" Min="0" DisableExpress='Global.StepName!="采购员补充信用证信息" &amp;&amp;  Global.StepName!="采购员做交单单据" &amp;&amp;  Global.StepName!="采购员提交尾款议付所需单据"'></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" Width="40px" DisableExpress='Global.StepName!="采购员补充信用证信息" &amp;&amp;  Global.StepName!="采购员做交单单据" &amp;&amp;  Global.StepName!="采购员提交尾款议付所需单据"' XDataSource="TableName:V_DF_HR_BasicInfo" DataMap="Name->DF_MM_LetterCreditApp_Info.PurchaserName1" DisplayColumns="AttendanceKakaNO:员工账号;Name:姓名;Department:部门" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label30" runat="server" text="信用证详细信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label32" runat="server" text="开证单位名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.IssuingUnitName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label34" runat="server" text="销售合同总金额"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.ContractTotalMoney" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="16" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label36" runat="server" text="最终用户名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.EndUserName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label37" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label38" runat="server" text="信用证有效期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.LCValidityDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label40" runat="server" text="供应商"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Supplier" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                        &nbsp; 
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label41" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label42" runat="server" text="最迟装运时间"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.LatestShipmentDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="财务部人员发起收到信用证申请"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label44" runat="server" text="销售组织"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SalesOrg" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label27" runat="server" text="计划交货日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.PlantDeliveryDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label46" runat="server" text="销售合同付款条件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.SalesContractPayTerms" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" Width="70%" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label56" runat="server" text="*" forecolor="Blue"></asp:Label><asp:Label id="Label57" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label48" runat="server" text="实际发货日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.DeliveryDate" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="采购员做交单单据"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label59" runat="server" text="采购邮寄单据日"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker6" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.MailBills" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress='Global.StepName!="采购员做交单单据"'></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label49" runat="server" text="上传附件"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 90%">
                        <aspxform:XAttachments id="XAttachments1" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Attachment" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG"></aspxform:XAttachments>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label28" runat="server" text="*" forecolor="Blue"></asp:Label><asp:Label id="Label33" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="Label19" runat="server" text="上传运单、箱单、供应商发票"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments2" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Attachment1" Width="100%" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.jpg;*.GIF;*.PNG"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1">
                        <asp:Label id="Label50" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_MM_LetterCreditApp_Info.Remark" BorderColor="#DCDCDC" BorderWidth="1" Width="100%" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="请填写信用证号" Display="None">请填写信用证号</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择开票公司" Display="None">请选择开票公司</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox3" ErrorMessage="请填写信用证总金额" Display="None">请填写信用证总金额</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator21" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDropDownList2" ErrorMessage="请选择信用证币种" Display="None">请选择信用证币种</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XTextBox7" ErrorMessage="请填写SAP-SO号" Display="None">请填写SAP-SO号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XRadioButtonList1" ErrorMessage="请选择信用证是否有尾款" Display="None">请选择信用证是否有尾款</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" DisableExpress='DF_MM_LetterCreditApp_Info.IsFinalPayment!="是"' ForeColor="Red" ValidationGroup="submit" ControlToValidate="XRadioButtonList2" ErrorMessage="请选择尾款是否需要其他单据" Display="None">请选择尾款是否需要其他单据</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator15" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker2" ErrorMessage="请选择信用证有效期" Display="None">请选择信用证有效期</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator17" runat="server" ForeColor="Red" ValidationGroup="submit" ControlToValidate="XDateTimePicker3" ErrorMessage="请选择最迟装运时间" Display="None">请选择最迟装运时间</aspxform:XRequiredFieldValidator>
        <br />
        &nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ForeColor="Red" ValidationGroup="cgy" ControlToValidate="XTextBox4" ErrorMessage="请填写采购合同号" Display="None">请填写采购合同号</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Red" ValidationGroup="cgy" ControlToValidate="XTextBox5" ErrorMessage="请填写销售合同号" Display="None">请填写销售合同号</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ForeColor="Red" ValidationGroup="cgy" ControlToValidate="XTextBox6" ErrorMessage="请填写SAP-PO号" Display="None">请填写SAP-PO号</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ForeColor="Red" ValidationGroup="cgy" ControlToValidate="XTextBox8" ErrorMessage="请选择业务员" Display="None">请选择业务员</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ForeColor="Red" ValidationGroup="cgy" ControlToValidate="XTextBox9" ErrorMessage="请选择业务员的助理" Display="None">请选择业务员的助理</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;<br />
        &nbsp;&nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator20" runat="server" ForeColor="Red" ValidationGroup="cgy1" ControlToValidate="XDateTimePicker4" ErrorMessage="请选择实际发货日" Display="None">请选择实际发货日</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" ForeColor="Red" ValidationGroup="cgy1" ControlToValidate="XAttachments2" ErrorMessage="请上传运单、箱单、供应商发票" Display="None">请上传运单、箱单、供应商发票</aspxform:XRequiredFieldValidator>
        <br />
        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
    </form>
</body>
</html>
