<%@ 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>
</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_SD_AllotApp_Info.FormNo" Text="--系统自动生成--" 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 colspan="2">
                        <asp:Label id="Label10" runat="server" text="标记*的为申请人必填项" forecolor="Red" font-bold="True"></asp:Label>&nbsp; <asp:Label id="Label36" runat="server" text="标记*的为物资出库审核员必填项" forecolor="Black" font-bold="True"></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" runat="server" XDataBind="ProductTotal" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenInput="True" Express="DF_SD_AllotApp_Info.ProductTotal"></aspxform:XTextBox>
                    </td>
                    <td align="right" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td height="17" class="title1" colspan="4">
                        <asp:Label id="Label3" runat="server" text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td height="25" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label4" runat="server" text="创建用户"></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_SD_AllotApp_Info.CreateAccount" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenExpress="1" DataMap="DisplayName->DF_SD_AllotApp_Info.CreateName" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:Account"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_SD_AllotApp_Info.CreateName" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="70%" DisableBehavior="ReadOnly"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="创建日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="DF_SD_AllotApp_Info.CreateDate" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True" Width="70%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label5" runat="server" text="收货库存地"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveStore" DataMap="StorageID->StorageID" Width="100px" PromptText="----请选择----" ValueColumn="StorageName" DisplayColumn="StorageName" XDataSource='TableName:DF_Logistics_Storage;Filter:Status->"0"' DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="StorageID" BorderColor="Gainsboro" BorderWidth="1px" width="20px" HiddenInput="False" Max="0" Min="0" HiddenExpress="1" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label22" runat="server" text="*" forecolor="Red" font-bold="True"></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_SD_AllotApp_Info.ReceiveCompanyName" BorderColor="#DCDCDC" BorderWidth="1" width="70%" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" DataMap="CompanyName->DF_SD_AllotApp_Info.ReceiveCompanyName;Address->DF_SD_AllotApp_Info.ReceiveAddr;Code->DF_SD_AllotApp_Info.ReceiveCode;province->DF_SD_AllotApp_Info.province;city->DF_SD_AllotApp_Info.city" Width="46px" XDataSource="TableName:DF_Logistics_StorageAddress;Filter:StorageID->StorageID" DisableExpress="Global.StepName!='申请人发起调拨申请'" DisplayColumns="CompanyName:公司名称;Address:地址;Code:邮编" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False" Height="22px"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label23" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label17" runat="server" text="收货联系人"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveContact" BorderColor="#DCDCDC" BorderWidth="1" width="70%" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Text="查询" XClass="YZSoft.Forms.Field.DataBrowserButton" DataMap="ContactName->DF_SD_AllotApp_Info.ReceiveContact;ContactTelPhone->DF_SD_AllotApp_Info.ReceiveContactPhone;ContactMobile->DF_SD_AllotApp_Info.ReceiveContactMobile" Width="46px" XDataSource="TableName:DF_Logistics_StorageContact;Filter:StorageID->StorageID" DisableExpress="Global.StepName!='申请人发起调拨申请'" DisplayColumns="ContactName:联系人;ContactTelPhone:联系人电话;ContactMobile:联系人手机" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False" Height="22px"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label26" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label18" runat="server" text="地址"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="ProvinceID" BorderColor="Gainsboro" BorderWidth="1px" HiddenInput="True" Max="0" Min="0" ValueToDisplayText Width="25px"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList19" runat="server" XDataBind="DF_SD_AllotApp_Info.province" DataMap="ProvinceID->ProvinceID" PromptText="----请选择----" ValueColumn="ProvinceName" DisplayColumn="ProvinceName" XDataSource="TableName:DF_Comm_Province" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" XDataBind="DF_SD_AllotApp_Info.city" PromptText="----请选择----" ValueColumn="CityName" DisplayColumn="CityName" XDataSource="TableName:DF_Comm_City;Filter:ProvinceID->ProvinceID" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveAddr" BorderColor="Gainsboro" BorderWidth="1px" width="247px" HiddenInput="False" Max="0" Min="0" ValueToDisplayText DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label24" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label19" runat="server" text="联系电话"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveContactPhone" 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="Label37" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label20" runat="server" text="邮编"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveCode" BorderColor="#DCDCDC" BorderWidth="1" width="70%" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label25" runat="server" text="*" forecolor="Red" font-bold="True"></asp:Label>&nbsp;<asp:Label id="Label21" runat="server" text="联系人手机"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SD_AllotApp_Info.ReceiveContactMobile" BorderColor="#DCDCDC" BorderWidth="1" width="70%" DisableExpress="Global.StepName!='申请人发起调拨申请'"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1">
            <tbody>
                <tr align="center">
                    <td width="45" height="21" class="tds">
                        <asp:Label id="Label27" runat="server" text="序号"></asp:Label></td>
                    <td width="134" class="tds">
                        <asp:Label id="Label28" runat="server" text="销售产品SAPID"></asp:Label></td>
                    <td width="231" class="tds">
                        <asp:Label id="Label7" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label29" runat="server" text="产品型号"></asp:Label></td>
                    <td width="200" class="tds">
                        <asp:Label id="Label30" runat="server" text="产品名称"></asp:Label></td>
                    <td width="100" class="tds">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_SD_AllotApp_Info.ProductTotal" BorderColor="#DCDCDC" BorderWidth="1" width="20px" HiddenInput="True"></aspxform:XTextBox>
                        <asp:Label id="Label8" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label31" runat="server" text="数量"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label9" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label32" runat="server" text="特殊库存"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label12" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label33" runat="server" text="调拨用途"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label13" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label34" runat="server" text="SAP-SO号"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label14" runat="server" text="*" forecolor="Black"></asp:Label>&nbsp;<asp:Label id="Label15" runat="server" text="发货库存地"></asp:Label></td>
                </tr>
                <tr align="center">
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" XDataBind="DF_SD_AllotApp_Detail.SerialNum" BorderWidth="1" Width="100%" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_SD_AllotApp_Detail.PrdtSAPID" BackColor="#E6F1F8" BorderColor="#DCDCDC" BorderWidth="1" width="100%" DisableBehavior="ReadOnly" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" XDataBind="DF_SD_AllotApp_Detail.ProductModel" BorderColor="#DCDCDC" BorderWidth="1" width="100%"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_SD_AllotApp_Detail.ProductName" BackColor="#E6F1F8" BorderColor="Gainsboro" BorderWidth="1px" width="80%" HiddenInput="False" Max="0" Min="0" DisableBehavior="ReadOnly" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" DataMap="PrdtName->DF_SD_AllotApp_Detail.ProductName;PrdtModelNo->DF_SD_AllotApp_Detail.ProductModel;SalesSapID->DF_SD_AllotApp_Detail.PrdtSAPID" Width="21px" XDataSource="TableName:V_DF_PRODUCTS_ProductManagement" DisableExpress="Global.StepName!='申请人发起调拨申请'" DisplayColumns="PrdtName:产品名称;PrdtModelNo:产品型号;ManufacturerName:厂商名称;SalesSapID:销售产品SAPID"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_SD_AllotApp_Detail.Number" BorderColor="#DCDCDC" BorderWidth="1" width="100%" Express="sum(DF_SD_AllotApp_Detail.Number)" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SD_AllotApp_Detail.SpecialStock" Width="100%" PromptText="----请选择----">
                            <asp:ListItem>备货库存</asp:ListItem>
                            <asp:ListItem>单对单库存</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_SD_AllotApp_Detail.AllotUse" Width="100%" PromptText="----请选择----">
                            <asp:ListItem>备货</asp:ListItem>
                            <asp:ListItem>销售</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_SD_AllotApp_Detail.SO" BorderColor="#DCDCDC" BorderWidth="1" width="100%" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_SD_AllotApp_Detail.SendGoodsStore" DataMap="StorageID->DF_SD_AllotApp_Detail.SendGoodsStoreID" Width="100%" PromptText="----请选择----" ValueColumn="StorageName" DisplayColumn="StorageName" XDataSource="TableName:DF_Logistics_Storage" DisableExpress="Global.StepName!='物资出库审核员审核'"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_SD_AllotApp_Detail.SendGoodsStoreID" BorderColor="#DCDCDC" BorderWidth="1" width="100%" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td height="14" class="td1">
                        <asp:Label id="Label35" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_SD_AllotApp_Info.Remark" BorderColor="#DCDCDC" BorderWidth="1" width="100%" rows="5" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择收货库存地！" ValidationGroup="submit" ControlToValidate="XDropDownList1">请选择收货库存地！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写收货单位名称！" ValidationGroup="submit" ControlToValidate="XTextBox5">请填写收货单位名称！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写收货联系人！" ValidationGroup="submit" ControlToValidate="XTextBox8">请填写收货联系人！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写地址！" ValidationGroup="submit" ControlToValidate="XTextBox6">请填写地址！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写联系人电话！" ValidationGroup="submit" ControlToValidate="XTextBox9">请填写联系人电话！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator13" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写邮编！" ValidationGroup="submit" ControlToValidate="XTextBox7">请填写邮编！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写联系人手机！" ValidationGroup="submit" ControlToValidate="XTextBox10">请填写联系人手机！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写产品型号！" ValidationGroup="submit" ControlToValidate="XTextBox4">请填写产品型号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写数量！" ValidationGroup="submit" ControlToValidate="XTextBox13">请填写数量！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择特殊库存！" ValidationGroup="submit" ControlToValidate="XDropDownList2">请选择特殊库存！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择调拨用途！" ValidationGroup="submit" ControlToValidate="XDropDownList3">请选择调拨用途！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress='DF_SD_AllotApp_Detail.AllotUse!="销售"' Display="None" ForeColor="Red" ErrorMessage="请填写SAP-SO号！" ValidationGroup="submit" ControlToValidate="XTextBox16">请填写SAP-SO号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写发货库存地!" ValidationGroup="kushy" ControlToValidate="XDropDownList4">请填写发货库存地!</aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
