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

    // Insert page code here
    //

</script>
<script>
  function sn(a,b) {
    var value=0;
    var state=request("formstate");
    var id=request("key");
    if(a!=""&&b!="")
      {
        YZSoft.Ajax.RFC({
            url: 'DFJC/UserTimeDataProviderActivity.ashx',
            params: { Method1: a,Method2: b,state:state,id:id },
            sync: true,
            success: function (action) {
                var result = action.responseText;
                 value=action.result.token;
                return value;


            },
            failure: function (action) {
                alert(action.result.errorMessage);
            }
        });
        }
        return value;
    }

      function request(paras){
     var url = location.href;
     var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");
     var paraObj = {};
      for(i=0; j=paraString[i]; i++)
      {
       paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);
      }
       var returnValue = paraObj[paras.toLowerCase()];
       if(typeof(returnValue)=="undefined")
       {  return "";  }
       else
       {  return returnValue; }
      }



</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <link href="../../../../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 runat="server">
        <table class="head" border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <aspxform:XLabel id="XLabel2" runat="server" text="产品主数据" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td class="formno">
                        <%--  <aspxform:XLabel id="XLabel93" runat="server" text="表单号：" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel94" runat="server" text="----自动生成------" ValueToDisplayText Value></aspxform:XLabel>--%></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" align="center">
            <tbody>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel19" runat="server" text="创建用户" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox20" runat="server" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" ReadOnly="True" backColor="#e6f1f8" CssClass="text" Width="53%" XDataBind="DF_PRODUCTS.CreateName"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst3">
                        <aspxform:XLabel id="XLabel49" runat="server" text="创建日期" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basictextfirst3">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" backColor="#e6f1f8" CssClass="text" Width="46%" XDataBind="DF_PRODUCTS.CreateDate" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" align="center">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <aspxform:XLabel id="XLabel1" runat="server" text="基本信息" ValueToDisplayText Value></aspxform:XLabel>
                        <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText Value BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" width="53px" Express="javascript('sn',DF_PRODUCTS.PrdtModelNo,DF_PRODUCTS.PrdtName)"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText Value Width="67px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True">0</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel5" runat="server" text="产品ID" ValueToDisplayText Value ForeColor="Black"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox10" runat="server" ReadOnly="True" backColor="#e6f1f8" CssClass="text" Width="100px" XDataBind="DF_PRODUCTS.PrdtID" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel4" runat="server" text="SAP产品ID" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox6" runat="server" backColor="#e6f1f8" CssClass="text" Width="100px" XDataBind="DF_PRODUCTS.SapID" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox9" runat="server" ReadOnly="True" backColor="#e6f1f8" CssClass="text" Width="50%" XDataBind="DF_PRODUCTS.State" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True">3</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel12" runat="server" text="厂商" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList10" runat="server" Width="50%" XDataBind="DF_PRODUCTS.Manufacturer" PromptText="--请选择--" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DataSourceList_changshang">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel13" runat="server" text="产品状态" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList9" runat="server" Width="30%" XDataBind="DF_PRODUCTS.PrdtStatus" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DataSourceList_chanpingzhuangtai;Filter:LdValue->DF_PRODUCTS.State">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel8" runat="server" text="产品型号" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox11" runat="server" Width="50%" XDataBind="DF_PRODUCTS.PrdtModelNo" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel3" runat="server" text="产品型号" ValueToDisplayText Value HiddenExpress="1"></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox8" runat="server" Width="50%" XDataBind="DF_PRODUCTS.PrdtModelNos" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel6" runat="server" text="产品中文名称" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox2" runat="server" Width="80%" XDataBind="DF_PRODUCTS.PrdtName" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel9" runat="server" text="大类" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" Width="50%" XDataBind="DF_PRODUCTS.Type1" PromptText="--请选择--" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DF_DataSourceList_dalei" DataMap="ItemID->da">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText Value XDataBind="da" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" width="95px" BorderStyle="Dotted"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel7" runat="server" text="产品英文名称" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox7" runat="server" Width="80%" XDataBind="DF_PRODUCTS.PrdtEngDes" BorderColor="#DCDCDC" BorderWidth="1"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel10" runat="server" text="中类" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" Width="50%" XDataBind="DF_PRODUCTS.Type2" PromptText="--请选择--" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DF_DataSourceList_zhonglei;Filter:LdType->da" DataMap="ItemID->zhong">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox5" runat="server" ValueToDisplayText Value XDataBind="zhong" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" HiddenInput="True" width="95px" BorderStyle="Dotted"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel100" runat="server" text="产品类别" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList8" runat="server" Width="30%" XDataBind="DF_PRODUCTS.PrdtCategory" PromptText="--请选择--" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DataSourceList_chanpingleibei">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <aspxform:XLabel id="XLabel11" runat="server" text="自定义分类" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" Width="50%" XDataBind="DF_PRODUCTS.Type4" PromptText="--请选择--" ValueColumn="ItemID" DisplayColumn="Name" XDataSource="TableName:V_DF_DataSourceList_chanpinfenleiqita">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table class="table" width="1200" align="center">
            <tbody>
                <tr>
                    <td class="title1">
                        <aspxform:XLabel id="XLabel22" runat="server" text="备注" ValueToDisplayText Value></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td style="TEXT-ALIGN: center; BORDER-RIGHT: #93a1ae 1px solid" class="tds1">
                        <aspxform:XTextBox id="XTextBox18" runat="server" ValueToDisplayText Value CssClass="text" Width="100%" XDataBind="DF_PRODUCTS.Remark" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" Height="76px" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
            <tbody>
                <tr>
                    <td height="22">
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ErrorMessage="数据库已存在！" ControlToCompare="XTextBox3" ControlToValidate="XTextBox1" ValidationGroup="YZZ11"></aspxform:XCompareValidator>
                    </td>
                    <td>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
