<%@ 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)
    {
        this.XRadioButtonList1.Attributes.Add("onchange ", "clear()");
    }

</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;
        }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        .yz-inp-cnt {
            display: inline;
        }

        #td1 {
        border-right:#b2bcc6 1px solid;
        }
       
    </style>
    <script type="text/javascript"> 
        //退货依据更改事件
        function clear() {
            var basis = '', formNo, so;
            var radio1 = document.getElementById("XRadioButtonList1_0");
            var radio2 = document.getElementById("XRadioButtonList1_1");
            if (radio1.checked == true) {
                basis = radio1.value;
            }
            if (radio2.checked == true) {
                basis = radio2.value;
            }
            if (basis == 'BPM预审单') {
                agent.Eles[document.getElementById("XTextBox8").getAttribute("xform_xele_index")].setValue("");
            }
            if (basis == 'SAP-SO') {
                agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].setValue("");
            }
        }
    </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" style="PADDING-LEFT: 30px">
                        <asp:Label id="XLabel1" runat="server" text="退货申请单" valuetodisplaytext value></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号：" valuetodisplaytext value></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" Text="-系统自动生成-" ValueToDisplayText Value XDataBind="DF_SD_ReturnGoods_Info.FormNo" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="13" align="left" colspan="3">
                        <asp:Label id="XLabel46" runat="server" text="标记*为发起人必填项" valuetodisplaytext value font-bold="true" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel47" runat="server" text="标记*为地区助理必填项" valuetodisplaytext value font-bold="true" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel35" runat="server" text="标记*为库管员必填项" valuetodisplaytext value font-bold="true" forecolor="Black"></asp:Label></td>
                </tr>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel10" runat="server" text="基本信息" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox114" runat="server" ValueToDisplayText="TableName:V_DF_SA_BPMSysOUs;FilterColumn:Account;DisplayColumn:Account" XDataBind="varSalesManID" DataMap="UserAccount->DF_SD_ReturnGoods_Info.AssistantID" Express="DF_SD_ReturnGoods_Info.SalesManID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox111" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.AssistantID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" text="创建用户" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" style="DISPLAY: none" runat="server" XDataBind="DF_SD_ReturnGoods_Info.AppAccount" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_SD_ReturnGoods_Info.AppName" BackColor="#e6f1f8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="创建日期" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_SD_ReturnGoods_Info.CreateDate" BackColor="#e6f1f8" Width="50%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel37" runat="server" text="*" valuetodisplaytext value forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel42" runat="server" text="业务员" valuetodisplaytext value></asp:Label> 
                        <aspxform:XTextBox id="XTextBox35" runat="server" ValueToDisplayText="TableName:DF_SA_SS_SalesPersonnel;FilterColumn:StaffID;DisplayColumn:StaffID" XDataBind="DF_SD_ReturnGoods_Info.SalesManID" DataMap="StaffName->DF_SD_ReturnGoods_Info.SalesMan;ProductLine->BU;Region->DF_SD_ReturnGoods_Info.District" Width="20%" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox40" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.SalesMan" BackColor="#E6F1F8" Width="220px" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton4" runat="server" Text="查询" DataMap="StaffID->DF_SD_ReturnGoods_Info.SalesManID;StaffName->DF_SD_ReturnGoods_Info.SalesMan;ProductLine->BU;Region->DF_SD_ReturnGoods_Info.District" Width="40px" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px" XDataSource="TableName:DF_SA_SS_SalesPersonnel;BufferType:RuntimeUpdate" DisplayColumns="StaffID:编号,;StaffName:业务员,"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts">
                    </td>
                    <td class="ts1">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="HEIGHT: 25px">
                        <asp:Label id="XLabel44" runat="server" text="事业部"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList34" runat="server" DataMap="Name->DF_SD_ReturnGoods_Info.BU" HiddenExpress="1" XDataSource="TableName:V_DF_SA_SS_ProductLine;Filter:Value->BU" ValueColumn="Name" DisplayColumn="Value">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox128" runat="server" XDataBind="BU" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox42" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.BU" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel45" runat="server" text="所属地区" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox41" runat="server" XDataBind="DF_SD_ReturnGoods_Info.District" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="True"></aspxform:XTextBox>
                    </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="4">
                        <asp:Label id="XLabel6" runat="server" text="合同信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel61" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel49" runat="server" text="退货依据"></asp:Label></td>
                    <td align="left" class="ts" disableexpress="Global.StepName!='申请人发起申请'" xclass="Oimec.Dialogs.ReturnGoodsClearButton" datamap="prdtModel->DF_SD_ReturnGoods_Detail.ProductModel;so->DF_SD_ReturnGoods_Detail.SO;number->DF_SD_ReturnGoods_Detail.ReturnNumber;vendor->DF_SD_ReturnGoods_Detail.Manufacturer;companyCode->varCompany;cost->DF_SD_ReturnGoods_Detail.TotalCost;sapID->DF_SD_ReturnGoods_Detail.PrdtMaterialID;vendorId->DF_SD_ReturnGoods_Detail.ManufacturerID;type->DF_SD_ReturnGoods_Detail.PurchaseMode;prdtLine->varPrdtLine;price->varPrice;prdtName->DF_SD_ReturnGoods_Detail.ProductName;plant->DF_SD_ReturnGoods_Detail.ReturnFactory" appendmode="ClearAndAppend">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_SD_ReturnGoods_Info.DataBasis" DisableExpress="Global.StepName!='申请人发起申请'" CellSpacing="0" CellPadding="0" RepeatDirection="Horizontal">
                            <asp:ListItem Value="BPM预审单">BPM预审单</asp:ListItem>
                            <asp:ListItem Value="SAP-SO">SAP-SO</asp:ListItem>
                        </aspxform:XRadioButtonList>
                        <aspxform:XTextBox id="XTextBox17" runat="server" ValueToDisplayText Value Express="javascript('clear',DF_SD_ReturnGoods_Info.DataBasis)" Width="56px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" colspan="2">
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="获取数据" XClass="Oimec.Dialogs.ReturnGoodsOrderInfoButton" DataMap="so->DF_SD_ReturnGoods_Detail.SO;plant->DF_SD_ReturnGoods_Detail.ReturnFactory;sapID->DF_SD_ReturnGoods_Detail.PrdtMaterialID;prdtName->DF_SD_ReturnGoods_Detail.ProductName;prdtModel->DF_SD_ReturnGoods_Detail.ProductModel;number->DF_SD_ReturnGoods_Detail.ReturnNumber;price->varPrice;cost->DF_SD_ReturnGoods_Detail.TotalCost;vendor->DF_SD_ReturnGoods_Detail.Manufacturer;vendorId->DF_SD_ReturnGoods_Detail.ManufacturerID;type->DF_SD_ReturnGoods_Detail.PurchaseMode;companyCode->varCompany;prdtLine->varPrdtLine;invoiceNum->DF_SD_ReturnGoods_Detail.InvoiceNum;soRowNum->DF_SD_ReturnGoods_Detail.SoRowNumber" Width="65px"  Height="26px" UseSubmitBehavior="False" AppendMode="ClearAndAppend"></aspxform:XCustomBrowserButton>
                        </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="BPM预审单号" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox class="text" id="XTextBox32" runat="server" XDataBind="DF_SD_ReturnGoods_Info.InquiryTaskID" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="true"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox7" runat="server" XDataBind="DF_SD_ReturnGoods_Info.InquiryFormNo" BackColor="#E6F1F8" Width="220px" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="查询" DataMap="TaskID->DF_SD_ReturnGoods_Info.InquiryTaskID;FormNo->DF_SD_ReturnGoods_Info.InquiryFormNo;GrossProfitRate->DF_SD_ReturnGoods_Info.GrossMargin2" Width="40px" DisableExpress="Global.StepName!='申请人发起申请'" Height="25px" XDataSource="TableName:V_DF_InquiryQuery;Filter:SalesmanID->DF_SD_ReturnGoods_Info.SalesManID;BufferType:RuntimeUpdate" DisplayColumns="FormNo:表单号,160;SalesOpportunities:销售机会名称,180;PTPName:付款方客户名称,150"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="SAP-SO号" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox8" runat="server" XDataBind="DF_SD_ReturnGoods_Info.SapSO" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='申请人发起申请'||DF_SD_ReturnGoods_Info.DataBasis=='BPM预审单'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="付款方客户名称" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox5" runat="server" XDataBind="DF_SD_ReturnGoods_Info.PayerName" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" text="付款方客户号" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox6" runat="server" XDataBind="DF_SD_ReturnGoods_Info.PayerSAPID" BackColor="#E6F1F8" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel17" runat="server" text="*" valuetodisplaytext value forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel13" runat="server" text="退货库存地" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_SD_ReturnGoods_Info.ReturnStore" DisableExpress="Global.StepName!='申请人发起申请'" XDataSource="TableName:DF_SD_ExchangeStore;BufferType:RuntimeUpdate" ValueColumn="Storage" DisplayColumn="Storage" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel24" runat="server" text="*" valuetodisplaytext value forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel16" runat="server" text="整单毛利率%" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox class="text" id="XTextBox11" runat="server" XDataBind="DF_SD_ReturnGoods_Info.GrossMargin2" BackColor="#E6F1F8" Width="120" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='地区助理填写相关内容'  ||DF_SD_ReturnGoods_Info.DataBasis=='BPM预审单'" TextAlign="Right"></aspxform:XTextBox>
                        % 
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ErrorMessage="请选择退货依据" ControlToValidate="XRadioButtonList1" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" DisableExpress="DF_SD_ReturnGoods_Info.DataBasis!='BPM预审单'" ErrorMessage="请选择预审单" ControlToValidate="XTextBox7" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress="DF_SD_ReturnGoods_Info.DataBasis!='SAP-SO'" ErrorMessage="请输入SAP-SO号" ControlToValidate="XTextBox8" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ErrorMessage="请选择退货库存地" ControlToValidate="XDropDownList1" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ErrorMessage="请填写整单毛利率" ControlToValidate="XTextBox11" ValidationGroup="zhuli"></aspxform:XRequiredFieldValidator>
        <br />
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <div class="scrollDiv">
                <table width="1600" align="center" class="scrolltable" id="tablenew" cellspacing="0" cellpadding="0" menudock="Left" dynamicarea="2,1">
                    <tbody>
                        <tr>
                            <td class="title1" bgcolor="#c1d7ec" colspan="14">
                                <asp:Label id="XLabel36" runat="server" text="产品明细" valuetodisplaytext value></asp:Label></td>
                        </tr>
                        <tr>
                            <td width="45" height="31" align="center" class="tds">
                                <asp:Label id="XLabel23" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                            <td width="100" height="31" align="center" class="tds">
                                <asp:Label id="XLabel18" runat="server" text="SAP-SO号" valuetodisplaytext value></asp:Label></td>
                            <td width="100" height="31" align="center" class="tds">
                                <asp:Label id="Label1" runat="server" text="SAP-SO行号" valuetodisplaytext value></asp:Label></td>
                            <td width="100" height="31" align="center" class="tds">
                                <asp:Label id="XLabel19" runat="server" text="SO退货工厂" valuetodisplaytext value></asp:Label></td>
                            <td width="120" height="31" align="center" class="tds">
                                <asp:Label id="XLabel20" runat="server" text="产品型号" valuetodisplaytext value></asp:Label></td>
                            <td width="150" height="31" align="center" class="tds">
                                <asp:Label id="XLabel21" runat="server" text="产品名称" valuetodisplaytext value></asp:Label></td>
                            <td width="100" height="31" align="center" class="tds">
                                <asp:Label id="XLabel22" runat="server" text="SAP物料号" valuetodisplaytext value></asp:Label></td>
                            <td width="100" height="31" align="center" class="tds">
                                <asp:Label id="Label2" runat="server" text="已开票数量" valuetodisplaytext value></asp:Label></td>
                            <td width="100" align="center" class="tds">
                                <asp:Label id="XLabel38" runat="server" text="*" valuetodisplaytext value forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel26" runat="server" text="退货数量" valuetodisplaytext value></asp:Label></td>
                            <td width="150" align="center" class="tds">
                                <asp:Label id="XLabel25" runat="server" text="含税销售总价(人民币)" valuetodisplaytext value></asp:Label></td>
                            <td width="170" align="center" class="tds">
                                <asp:Label id="XLabel27" runat="server" text="不含税发货过账成本单价（人民币）" valuetodisplaytext value></asp:Label></td>
                            <td width="100" align="center" class="tds">
                                <asp:Label id="XLabel28" runat="server" text="厂商编号" valuetodisplaytext value></asp:Label></td>
                            <td width="150" align="center" class="tds">
                                <asp:Label id="XLabel29" runat="server" text="厂商名称" valuetodisplaytext value></asp:Label></td>
                            <td width="120" align="center" class="tds">
                                <asp:Label id="XLabel43" runat="server" text="SO行项目类别" valuetodisplaytext value></asp:Label></td>
                        </tr>
                        <tr>
                            <td class="tds1" style="TEXT-ALIGN: center">
                                <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.LineNumber" BackColor="Transparent" Width="20" BorderColor="#DCDCDC" BorderWidth="1" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                                <%--<aspxform:XTextBox id="XTextBox34" runat="server" XDataBind="varPlant" Width="5" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>--%>
                                <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="varPrdtLine" Width="5" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="varCompany" Width="5" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                                <aspxform:XTextBox id="XTextBox33" runat="server" XDataBind="varPrice" Width="5" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.SO" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox37" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.SoRowNumber" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <%--<aspxform:XDropDownList id="XDropDownList38" runat="server" XDataBind="varFactory" DataMap="ExchangeGoodsPlant->DF_SD_ReturnGoods_Detail.ReturnFactory" HiddenExpress="1" XDataSource="ProcedureName:PROC_DF_SD_ReturnGoodsPlant;Filter:@prdtLine->varPrdtLine,@companyCode->varCompany" ValueColumn="ExchangeGoodsPlant" DisplayColumn="ExchangeGoodsPlant">
                                    <asp:ListItem>未绑定</asp:ListItem>
                                </aspxform:XDropDownList>--%>
                                <aspxform:XTextBox id="XTextBox36" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.ReturnFactory" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.ProductModel" BackColor="#E6F1F8" Width="130" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.ProductName" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.PrdtMaterialID" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XTextBox id="XTextBox38" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.InvoiceNum" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td align="center" class="tds1">
                                <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.ReturnNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="Global.StepName!='申请人发起申请'" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.TotalSalePrice" BackColor="#E6F1F8" Express="varPrice*DF_SD_ReturnGoods_Detail.ReturnNumber" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.TotalCost" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.ManufacturerID" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.Manufacturer" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                            <td class="tds1" style="BORDER-RIGHT-WIDTH: 1px; BORDER-TOP-WIDTH: 1px">
                                <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_SD_ReturnGoods_Detail.PurchaseMode" BackColor="#E6F1F8" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" ReadOnly="true" TextAlign="Center"></aspxform:XTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="23">
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td class="tds">
                                <asp:Label id="XLabel30" runat="server" text="合计" valuetodisplaytext value></asp:Label></td>
                            <td class="tds1">
                                <aspxform:XTextBox id="XTextBox22" runat="server" BackColor="#E6F1F8" Express="sum(DF_SD_ReturnGoods_Detail.TotalSalePrice)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            </td>
                            <td class="tds2">
                                <aspxform:XTextBox id="XTextBox23" runat="server" BackColor="#E6F1F8" Express="sum(DF_SD_ReturnGoods_Detail.TotalCost)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" ReadOnly="true" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <br />
        <table align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1">
                        <asp:Label id="XLabel12" runat="server" text="*" valuetodisplaytext value forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel14" runat="server" text="退货理由" valuetodisplaytext value font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SD_ReturnGoods_Info.ReturnGoodsReason" Width="1200px" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="Global.StepName!='申请人发起申请'" Height="40px" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ErrorMessage="请填写退货理由" ControlToValidate="XTextBox9" ValidationGroup="submit"></aspxform:XRequiredFieldValidator>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" style="WIDTH: 120px" colspan="4">
                        <asp:Label id="XLabel32" runat="server" text="货物目前情况" valuetodisplaytext value font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel34" runat="server" text="*" valuetodisplaytext value forecolor="Black"></asp:Label>&nbsp;<asp:Label id="XLabel31" runat="server" text="外观"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.GoodsLooks" Width="70%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='销售入库管理员填写相关内容'"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 180px">
                        <%--<aspxform:XLabel id="XLabel35" runat="server" Text="*" ForeColor="Black"></aspxform:XLabel>--%><asp:Label id="XLabel33" runat="server" text="相关附件是否齐全" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList3" runat="server" XDataBind="DF_SD_ReturnGoods_Info.IsComplete" DisableExpress="Global.StepName!='销售入库管理员填写相关内容'" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel39" runat="server" text="说明" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.Illustration" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='销售入库管理员填写相关内容'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ErrorMessage="请填写货物外观" ControlToValidate="XTextBox3" ValidationGroup="kuguan"></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ErrorMessage="请填写附件是否齐全" ControlToValidate="XRadioButtonList3" ValidationGroup="kuguan"></aspxform:XRequiredFieldValidator>
        <br />
        <table align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" style="WIDTH: 150px">
                        <asp:Label id="XLabel41" runat="server" text="地区经理意见" valuetodisplaytext value font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_SD_ReturnGoods_Info.RegionManagerOpinion" Width="1200px" BorderColor="#DCDCDC" BorderWidth="1" CssClass="text" DisableExpress="Global.StepName!='地区经理审批'" Height="40px" Rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" style="WIDTH: 150px" colspan="4">
                        <asp:Label id="XLabel40" runat="server" text="本BU经理意见" valuetodisplaytext value font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel50" runat="server" text="扣除综合奖励分数" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox27" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.DeductPoint" Width="150px" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='本BU经理审批'" TextAlign="Right" Format="type:number;.0"></aspxform:XTextBox>
                        分 
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel51" runat="server" text="罚款人民币" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox28" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.Fine" Width="150px" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='本BU经理审批'" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        元 
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel53" runat="server" text="其他意见"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox29" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.BUManagerOpinion" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='本BU经理审批'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ErrorMessage="请填写扣除综合奖励分数" ControlToValidate="XTextBox27" ValidationGroup="bu"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ErrorMessage="请填写罚款人民币" ControlToValidate="XTextBox28" ValidationGroup="bu"></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="XLabel52" runat="server" text="跨BU经理意见" valuetodisplaytext value font-bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 180px">
                        <asp:Label id="XLabel54" runat="server" text="按原含税采购总价转备货" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_SD_ReturnGoods_Info.IsTransferStocking" DisableExpress="Global.StepName!='跨BU经理审批'" RepeatDirection="Horizontal">
                            <asp:ListItem Value="是">是</asp:ListItem>
                            <asp:ListItem Value="否">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel55" runat="server" text="扣除分利" valuetodisplaytext value></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox31" style="WIDTH: 100px" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.DeductProfit" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='跨BU经理审批'" TextAlign="Right" Format="type:currency;pfx:￥;.2"></aspxform:XTextBox>
                        元 
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel56" runat="server" text="其他意见"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox30" runat="server" ValueToDisplayText XDataBind="DF_SD_ReturnGoods_Info.OtherOpinion" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='跨BU经理审批'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" ErrorMessage="请选择是否按原含税采购总价转备货" ControlToValidate="XRadioButtonList2" ValidationGroup="kuabu"></aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress="DF_SD_ReturnGoods_Info.IsTransferStocking=='是'" ErrorMessage="请输入扣除分利" ControlToValidate="XTextBox31" ValidationGroup="kuabu"></aspxform:XRequiredFieldValidator>
        <br />
        <%-- <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" style="WIDTH: 100px">
                        <asp:Label id="XLabel15" runat="server" value valuetodisplaytext font-bold="True" height="10px" width="83px">审批意见</asp:Label></td>
                </tr>
                <tr>
                    <td class="td1">
                        <aspxform:XCommentsTextBox id="XCommentsTextBox1" runat="server" BorderWidth="1" BorderColor="#DCDCDC" Width="1200px" CssClass="text" TextMode="MultiLine" Rows="3"></aspxform:XCommentsTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />--%> 
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" SaveButtonVisible="False" SaveAsTemplateButtonVisible="False" PositionSelectVisible="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>
    </form>
</body>
</html>
