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

    // Insert page code here
          //
    protected void Page_Load(object sender, EventArgs e)
     {
       string PrdtID = Request.QueryString["itemid"];
          this.XTextBox1.Text= PrdtID;
    
     }

</script>
<html xmlns:xform="xmlns:xform">
<head id="Head1" runat="server">
    <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-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    </style>
</head>
<body>
    <form id="Form1" runat="server">
        <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="XLabel2" runat="server" text="SAP物料主数据申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" text="----自动生成------" BackColor="#8AB3DF" XDataBind="DF_SAPPRODUCTS.FormNo" Value ValueToDisplayText></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel19" runat="server" text="创建用户"></asp:Label></td>
                    <td class="basictextfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_SAPPRODUCTS.CreateName" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" Width="53%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst3" style="WIDTH: 10%">
                        <asp:Label id="XLabel49" runat="server" text="创建日期"></asp:Label></td>
                    <td class="basictextfirst3" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_SAPPRODUCTS.CreateDate" Width="46%" CssClass="text" backColor="#e6f1f8" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel1" runat="server" text="基本信息"> </asp:Label></td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="产品ID" forecolor="Black"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <p>
                            <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtID" ValueToDisplayText="TableName:V_DF_PRODUCTS_ProductManagement;FilterColumn:PrdtID;DisplayColumn:PrdtID" Width="50%" CssClass="text" backColor="#e6f1f8" ReadOnly="True" BorderWidth="1" BorderColor="#DCDCDC" Express="varPrdtID" DataMap="PrdtName->DF_SAPPRODUCTS.PrdtName2;SapID->DF_SAPPRODUCTS.SapID;PrdtStatusID->DF_SAPPRODUCTS.PrdtStatus;ManufacturerID->DF_SAPPRODUCTS.Manufacturer2;PrdtModelNo->DF_SAPPRODUCTS.PrdtModel;CreateAccount->DF_SAPPRODUCTS.CreateName;Type1ID->DF_SAPPRODUCTS.Type1;Type2ID->type2;ProprietarySapID->DF_SAPPRODUCTS.ProprietarySapID;ServicesSapID->DF_SAPPRODUCTS.ServicesSapID;SalesSapID->DF_SAPPRODUCTS.SalesSapID;OtherManufacturer->DF_SAPPRODUCTS.OtherManufacturer2;PrdtSAPID->DF_SAPPRODUCTS.PrdtSAPID;Type4ID->DF_SAPPRODUCTS.Type4"></aspxform:XTextBox>
                            <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="varPrdtID" BorderWidth="1" BorderColor="#DCDCDC" width="100%" HiddenInput="True"></aspxform:XTextBox>
                        </p>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel12" runat="server" text="厂商"></asp:Label>
                        <aspxform:XTextBox id="XTextBox8" runat="server" XDataBind="DF_SAPPRODUCTS.ManufacturerID2" Width="8px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList10" runat="server" XDataBind="DF_SAPPRODUCTS.Manufacturer2" Width="50%" DataMap="Value->DF_SAPPRODUCTS.ManufacturerID2" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'" XDataSource="TableName:V_DF_DataSourceList_changshang;OrderBy:OrderID" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_SAPPRODUCTS.OtherManufacturer2" Value ValueToDisplayText Max="0" Min="0" BorderWidth="1px" BorderColor="Gainsboro" width="135px" HiddenInput="False" HiddenExpress="DF_SAPPRODUCTS.Manufacturer!='773'" Height="24px"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="25" class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="产品型号"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtModel" Width="50%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="25" class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="产品中文名称"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtName2" Width="80%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel100" runat="server" text="产品类别"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList8" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtCategory" Width="30%" XDataSource="TableName:V_DF_DataSourceList_chanpingleibei" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" class="table" hiddenexpress="Global.StepName=='1.业务员发起主数据申请'">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel14" runat="server" text="主数据信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel16" runat="server" text="SAP产品ID"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_SAPPRODUCTS.SapID" Width="50%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName=="1.业务员发起主数据申请"' HiddenExpress="DF_SAPPRODUCTS.PrdtCategory!=244"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_SAPPRODUCTS.SalesSapID" Width="50%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress='Global.StepName=="1.业务员发起主数据申请"' HiddenExpress="DF_SAPPRODUCTS.PrdtCategory!=245"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_SAPPRODUCTS.ServicesSapID" Width="50%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName=="1.业务员发起主数据申请"' HiddenExpress="DF_SAPPRODUCTS.PrdtCategory!=246"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" XDataBind="DF_SAPPRODUCTS.ProprietarySapID" BorderWidth="1" BorderColor="#DCDCDC" width="50%" DisableExpress='Global.StepName=="1.业务员发起主数据申请"' HiddenExpress="DF_SAPPRODUCTS.PrdtCategory!=1605"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <aspxform:XLabel id="XLabel21" runat="server" text="主物料编号" BackColor="#d4e4fe" Value ValueToDisplayText HiddenExpress="Global.StepName!='2.主数据岗在SAP中创建主数据'"></aspxform:XLabel>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox24" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtSAPID" Width="50%" CssClass="text" backColor="#e6f1f8" ReadOnly="True" DisableBehavior="ReadOnly" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="False" DisableExpress="1" HiddenExpress="Global.StepName!='2.主数据岗在SAP中创建主数据'"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="21px" DataMap="PrdtID->DF_SAPPRODUCTS.PrdtSAPID" XDataSource="TableName:V_DF_PRODUCTS_ProductManagement;Filter:PrdtStatus->'公共可用'" HiddenExpress="DF_SAPPRODUCTS.PrdtSAPID!=''" DisplayColumns="PrdtID:产品ID,100;PrdtName:产品名称,120;PrdtModelNo:产品型号,120;ManufacturerName:厂商,150;PrdtStatus:产品状态,80"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel17" runat="server" text="厂商"></asp:Label>
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_SAPPRODUCTS.ManufacturerID" Width="8px" BorderWidth="1" BorderColor="#DCDCDC" Express="DF_SAPPRODUCTS.ManufacturerID2" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_SAPPRODUCTS.Manufacturer" Width="50%" Express="DF_SAPPRODUCTS.Manufacturer2" DataMap="Value->DF_SAPPRODUCTS.ManufacturerID" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'" XDataSource="TableName:V_DF_DataSourceList_changshang;OrderBy:OrderID" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox22" runat="server" XDataBind="DF_SAPPRODUCTS.OtherManufacturer" Value ValueToDisplayText Max="0" Min="0" BorderWidth="1px" BorderColor="Gainsboro" Express="DF_SAPPRODUCTS.OtherManufacturer2" width="135px" HiddenInput="False" HiddenExpress="DF_SAPPRODUCTS.Manufacturer!='773'" Height="24px"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel18" runat="server" text="产品状态"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtStatus" DisableExpress="1" XDataSource="TableName:V_DF_DataSourceList_chanpingzhuangtai" DisplayColumn="Name" ValueColumn="ItemID">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel20" runat="server" text="产品型号"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox23" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtModelNo" Width="50%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" Express="DF_SAPPRODUCTS.PrdtModel" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel24" runat="server" text="大类"></asp:Label>
                        <aspxform:XTextBox id="XTextBox26" runat="server" XDataBind="DF_SAPPRODUCTS.type1ID" Width="8px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_SAPPRODUCTS.Type1" Width="50%" DataMap="Value->DF_SAPPRODUCTS.type1ID" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'" XDataSource="TableName:V_DF_DF_DataSourceList_dalei;BufferType:RuntimeUpdate" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel23" runat="server" text="产品中文名称"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox25" runat="server" XDataBind="DF_SAPPRODUCTS.PrdtName" Width="80%" CssClass="text" BorderWidth="1" BorderColor="#DCDCDC" Express="DF_SAPPRODUCTS.PrdtName2" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel26" runat="server" text="中类"></asp:Label>
                        <aspxform:XTextBox id="XTextBox28" runat="server" XDataBind="DF_SAPPRODUCTS.type2ID" Width="8px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList7" runat="server" XDataBind="DF_SAPPRODUCTS.Type2" Width="50%" Express="type2" DataMap="Value->DF_SAPPRODUCTS.type2ID" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'" XDataSource="TableName:V_DF_DF_DataSourceList_zhonglei;Filter:LdType->DF_SAPPRODUCTS.Type1" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="type2" BorderWidth="1" BorderColor="#DCDCDC" width="30px" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                    </td>
                    <td class="basiclblfirst" style="WIDTH: 10%">
                        <asp:Label id="XLabel28" runat="server" text="自定义分类"></asp:Label></td>
                    <td class="basiclblfirst" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList12" runat="server" XDataBind="DF_SAPPRODUCTS.Type4" Width="50%" DisableExpress="DF_SAPPRODUCTS.PrdtStatus=='248'" XDataSource="TableName:V_DF_DataSourceList_chanpinfenleiqita" DisplayColumn="Name" ValueColumn="ItemID" PromptText="--请选择--">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1">
                        <asp:Label id="XLabel22" runat="server" text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox18" runat="server" XDataBind="DF_SAPPRODUCTS.Remark" Value ValueToDisplayText Width="100%" CssClass="text" Max="0" Min="0" BorderWidth="1px" HiddenInput="False" Height="76px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList10" ErrorMessage="请选择厂商"></aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox11" ErrorMessage="请填写产品型号"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox2" ErrorMessage="请填写产品名称"></aspxform:XRequiredFieldValidator>
            &nbsp; 
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" DisableExpress="DF_SAPPRODUCTS.Manufacturer2!='773'||DF_SAPPRODUCTS.OtherManufacturer2!=''" ValidationGroup="submit" ControlToValidate="XTextBox22" ErrorMessage="请填写具体厂商"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList8" ErrorMessage="请选择产品类别"></aspxform:XRequiredFieldValidator>
            &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" DisableExpress="DF_SAPPRODUCTS.Manufacturer!='773'||DF_SAPPRODUCTS.OtherManufacturer!=''" ValidationGroup="SAP ID" ControlToValidate="XTextBox9" ErrorMessage="请填写具体厂商"></aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="SAP ID" ControlToValidate="XDropDownList3" ErrorMessage="请选择大类"></aspxform:XRequiredFieldValidator>
            <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="SAP ID" ControlToValidate="XDropDownList7" ErrorMessage="请选择中类"></aspxform:XRequiredFieldValidator>
            &nbsp; 
        </p>
    </form>
</body>
</html>
