<%@ 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">
    <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;
        }

            INPUT.UL {
                BORDER-RIGHT: medium none;
                BORDER-TOP: medium none;
                BORDER-LEFT: medium none;
                BORDER-BOTTOM: #33ff33 1px solid;
            }

        TEXTAREA {
            FONT-SIZE: 12px;
        }

        .yz-inp-cnt {
            display: inline;
        }
    </style>
    <script type="text/javascript">

        //页面加载时获取SAP固定资产号、首次购置日期 购买价值
        Ext.onReady(function () {
            var table = document.getElementById('tablenew');
            var row;
            for (var i = 2; i < table.rows.length; i++) {
                var ProprietarySapID = agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();
                var SerialNo = agent.Eles[table.rows[i].cells[7].children[0].getAttribute("xform_xele_index")].getValue();
                row = i;
                if (ProprietarySapID != "" && SerialNo != "") {
                    YZSoft.Ajax.request({
                        url: YZSoft.$url('Oimec/ApiServices/RentAPIHandler.ashx'),
                        method: 'POST',
                        async: false,
                        disableCaching: true,
                        params: {
                            method: 'GetSAPAssetsNo',
                            ProprietarySapID: ProprietarySapID,
                            SerialNo: SerialNo
                        },
                        success: function (action) {
                            var item = action.result.Value;
                            if (action.result.Code == 0) {
                                agent.Eles[table.rows[row].cells[12].children[0].getAttribute("xform_xele_index")].setValue(item.FixedAssetNo);
                                XFormOnChange(agent.Eles[table.rows[row].cells[12].children[0].getAttribute("xform_xele_index")]);
                                //eval(item.PurchaseDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)"));
                                //if (item.PurchaseDate != "0000-00-00") {
                                  //  alert(eval(item.PurchaseDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)")));
                                    //agent.Eles[table.rows[row].cells[15].children[0].getAttribute("xform_xele_index")].setValue(eval(item.PurchaseDate.replace(/\/Date\((\d+)\)\//gi, "new Date($1)")));
                                    agent.Eles[table.rows[row].cells[16].children[0].getAttribute("xform_xele_index")].setValue(item.PurchaseDate);

                                //}
                                agent.Eles[table.rows[row].cells[17].children[0].getAttribute("xform_xele_index")].setValue(item.BuyValue);

                                //判断重置价格是否为空，为空则等于购买价值
                                if (agent.Eles[table.rows[row].cells[22].children[0].getAttribute("xform_xele_index")].getValue() == 0) {
                                    agent.Eles[table.rows[row].cells[22].children[0].getAttribute("xform_xele_index")].setValue(item.BuyValue);
                                }
                            }
                        },
                        failure: function (action) {
                            alert(action.result.Message);
                        }
                    });
                }
            }
        });

        //根据销售产品SAPID获取产品ID
        function GetProductID(SalesSapID, row) {
            var table = document.getElementById('tablenew');
            if (SalesSapID != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/MDAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetProductInfo',
                        SalesSapID: SalesSapID
                    },
                    success: function (action) {
                        var data = action.result;
                        var res = data.list;
                        var i = row + 1;

                        if (data.Rows > 0) {
                            agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].setValue(res[0].PrdtID);
                        }
                    },
                    failure: function (action) {
                        alert(action.result.Message);
                    }
                });
            }
        }

        //复制首行库存地
        function CopyStorage() {
            var table = document.getElementById('tablenew');
            var storage = agent.Eles[table.rows[2].cells[11].children[0].getAttribute("xform_xele_index")].getValue();  //首行库存地
            
            if (storage != null && storage != '' && storage != '--请选择--') {
                for (var i = 3; i < table.rows.length ; i++) {
                    agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")].setValue(storage);
                    XFormOnChange(agent.Eles[table.rows[i].cells[11].children[0].getAttribute("xform_xele_index")]);
                }
            }
        }
    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel1" runat="server" text="商品转固定资产申请单"></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号：" value valuetodisplaytext></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" BackColor="#8AB3DF" Value ValueToDisplayText XDataBind="DF_Rent_GoodsFixedAssets_Info.FormNo" Text="----系统自动生成----"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <asp:Label id="Label12" runat="server" text="标记*的为申请人必填项 " forecolor="Red" font-bold="True"></asp:Label><asp:Label id="Label1" runat="server" text="标记*的为财务固定资产岗必填项 " forecolor="Blue" font-bold="True"></asp:Label> 
        <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="XLabel4" runat="server" text="基本信息" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="创建用户" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox2" runat="server" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_Rent_GoodsFixedAssets_Info.AppAccount" Width="20px" DataMap="Name->DF_Rent_GoodsFixedAssets_Info.AppName;Region->DF_Rent_GoodsFixedAssets_Info.District;BUName->DF_Rent_GoodsFixedAssets_Info.BU" HiddenInput="True" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Info.AppName" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="用户日期" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Info.CreateDate" Width="50%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" ReadOnly="True" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="事业部" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Info.BU" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel8" runat="server" text="所属地区" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Info.District" Width="70%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel10" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel9" runat="server" text="公司代码" value valuetodisplaytext></asp:Label> 
                        <aspxform:XTextBox id="XTextBox21" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Info.Company" Width="50px" HiddenInput="True" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Info.CompanyCode" Width="50%" DataMap="Company->DF_Rent_GoodsFixedAssets_Info.Company" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' PromptText="----请选择----" ValueColumn="CompanyCode" DisplayColumn="CompanyName" XDataSource="TableName:DF_SA_SS_Company">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomtext" colspan="4">
                        <aspxform:XHyperLink id="XHyperLink1" runat="server" BackColor="#d4e4fe" NavigateUrl="~\Oimec\HR\EXCEL\商品转固定资产.xls">模板下载</aspxform:XHyperLink>
                        <aspxform:XButton id="XButton1" runat="server" Text="Button" DataMap="Invo1->SapAssetNo" HiddenExpress="1" MultiSelect="True" AppendMode="ClearAndAppend"></aspxform:XButton>
                        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList1" ErrorMessage="请选择公司代码!" Display="None" ForeColor="Red">请选择公司代码!</aspxform:XRequiredFieldValidator>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XExcelDataLoadButton id="XExcelDataLoadButton1" runat="server" Text="资产明细导入" DataMap="R->DF_Rent_GoodsFixedAssets_Detail.IsMeasure;S->DF_Rent_GoodsFixedAssets_Detail.MeasurementDate;P->DF_Rent_GoodsFixedAssets_Detail.BuyValue;Q->DF_Rent_GoodsFixedAssets_Detail.WarrantyPeriod;T->DF_Rent_GoodsFixedAssets_Detail.MeasurementIndate;U->DF_Rent_GoodsFixedAssets_Detail.ReplacementPrice;J->DF_Rent_GoodsFixedAssets_Detail.SAPStorage;K->DF_Rent_GoodsFixedAssets_Detail.SapAssetNo;H->DF_Rent_GoodsFixedAssets_Detail.PO;I->DF_Rent_GoodsFixedAssets_Detail.Factory;N->DF_Rent_GoodsFixedAssets_Detail.AttachStatus;O->DF_Rent_GoodsFixedAssets_Detail.PurchaseDate;L->DF_Rent_GoodsFixedAssets_Detail.Optiontxt;M->DF_Rent_GoodsFixedAssets_Detail.ConfigDes;B->DF_Rent_GoodsFixedAssets_Detail.SaleProductSapID;C->DF_Rent_GoodsFixedAssets_Detail.ProprietarySapID;A->DF_Rent_GoodsFixedAssets_Detail.MaterialDescription;F->DF_Rent_GoodsFixedAssets_Detail.DepreciaticnMonths;G->DF_Rent_GoodsFixedAssets_Detail.SerialNo;D->DF_Rent_GoodsFixedAssets_Detail.ProductID;E->DF_Rent_GoodsFixedAssets_Detail.BuyPrice" ColumnCount="22" UseSubmitBehavior="False"></aspxform:XExcelDataLoadButton>
                        &nbsp; 
                    </td>
                </tr>
            </tbody>
        </table>
        <div id="dnew" style="TEXT-ALIGN: center" runat="server">
            <div class="scrollDiv" id="scrollDiv">
                <table width="2370" align="center" class="scrolltable" id="tablenew" border="0" cellspacing="0" cellpadding="0" dynamicarea="2,1" emptygrid="KeepEmpty" menudock="Left">
                    <tbody>
                        <tr>
                            <td height="15" align="left" class="title1" colspan="23">
                                <asp:Label id="XLabel11" runat="server" text="资产明细" value valuetodisplaytext></asp:Label></td>
                        </tr>
                        <tr align="center">
                            <td width="40" height="47" class="tds">
                                <asp:Label id="XLabel12" runat="server" text="序号"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel24" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel13" runat="server" text="物料描述"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel25" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel14" runat="server" text="销售产品SAPID"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label2" runat="server" text="*" forecolor="Blue"></asp:Label>&nbsp;<asp:Label id="XLabel15" runat="server" text="自营产品SAPID"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label3" runat="server" text="产品ID"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel27" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel17" runat="server" text="购买单价(CNY)"></asp:Label></td>
                            <td width="80" class="tds">
                                <asp:Label id="XLabel28" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel18" runat="server" text="折旧月数"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel29" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel19" runat="server" text="仪器序列号"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel30" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel20" runat="server" text="PO"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel31" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel21" runat="server" text="工厂"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label16" runat="server" text="SAP库存地"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label id="XLabel32" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel22" runat="server" text="库存地"></asp:Label> 
                                <br />
                                <aspxform:XButton id="XButton2" runat="server" Text="复制首行库存地" OnClientClick="CopyStorage();"></aspxform:XButton>
                            </td>
                            <td width="150" class="tds" id="td1" style="BORDER-RIGHT: #b2bcc6 1px solid">
                                <asp:Label id="Label14" runat="server" text="SAP固定资产号"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="XLabel23" runat="server" text="OPTION"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label4" runat="server" text="配置描述"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label5" runat="server" text="附件情况"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label6" runat="server" text="首次购置日期"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label id="Label7" runat="server" text="购买价值"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label8" runat="server" text="保修到期日"></asp:Label></td>
                            <td width="80" class="tds">
                                <asp:Label id="Label9" runat="server" text="是否需要计量"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label10" runat="server" text="计量日期"></asp:Label></td>
                            <td width="100" class="tds">
                                <asp:Label id="Label11" runat="server" text="计量有效期"></asp:Label></td>
                            <td width="120" class="tds">
                                <asp:Label id="Label13" runat="server" text="重置价格"></asp:Label></td>
                        </tr>
                        <tbody>
                            <tr>
                                <td height="19" class="tds1">
                                    <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" XDataBind="DF_Rent_GoodsFixedAssets_Detail.SerialNumber" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.MaterialDescription" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox6" runat="server" ValueToDisplayText XDataBind="DF_Rent_GoodsFixedAssets_Detail.SaleProductSapID" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox7" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.ProprietarySapID" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="固定资产岗在SAP创建固定资产主数据，再转固"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox8" runat="server" BackColor="#E6F1F8" ValueToDisplayText XDataBind="DF_Rent_GoodsFixedAssets_Detail.ProductID" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Express="javascript('GetProductID',DF_Rent_GoodsFixedAssets_Detail.SaleProductSapID,DF_Rent_GoodsFixedAssets_Detail.SerialNumber)"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox9" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.BuyPrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox10" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.DepreciaticnMonths" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox11" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.SerialNo" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox12" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.PO" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox20" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.Factory" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                    <%--<aspxform:XDropDownList ID="XDropDownList5" runat="server" Width="150px" XDataBind="DF_Rent_GoodsFixedAssets_Detail.Factory" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' PromptText="----请选择----" ValueColumn="Value" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"工厂"'></aspxform:XDropDownList>--%></td>
                                <td class="tds1">
                                    <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.SAPStorage" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="tds1">
                                    <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.StorageLocation" Width="120px" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' PromptText="----请选择----" ValueColumn="StorageID" DisplayColumn="StorageName" XDataSource='TableName:DF_Logistics_Storage;Filter:Status->0,Type->"租赁库"'></aspxform:XDropDownList>
                                    <aspxform:XTextBox id="XTextBox22" style="HEIGHT: 20px; WIDTH: 100px" runat="server" ValueToDisplayText XDataBind="DF_Rent_GoodsFixedAssets_Detail.StorageName" HiddenInput="True" BorderWidth="1" BorderColor="#DCDCDC" width="100%"></aspxform:XTextBox>
                                    <aspxform:XDropDownList id="XDropDownList5" runat="server" DataMap="StorageName->DF_Rent_GoodsFixedAssets_Detail.StorageName" XDataSource="TableName:DF_Logistics_Storage;Filter:StorageID->DF_Rent_GoodsFixedAssets_Detail.StorageLocation" HiddenExpress="1"></aspxform:XDropDownList>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XTextBox id="XTextBox15" runat="server" BackColor="#E6F1F8" XDataBind="SapAssetNo" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Center"></aspxform:XTextBox>
                                    <aspxform:XTextBox id="XTextBox13" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.SapAssetNo" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" HiddenExpress="1" TextAlign="Center" Express="SapAssetNo"></aspxform:XTextBox>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XTextBox id="XTextBox16" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.Optiontxt" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XTextBox id="XTextBox17" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.ConfigDes" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Center"></aspxform:XTextBox>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.AttachStatus" Width="100%" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' PromptText="----请选择----" ValueColumn="ItemID" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"fujianqingdanwendang"'></aspxform:XDropDownList>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Detail.PurchaseDate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#E6F1F8" XDataBind="DF_Rent_GoodsFixedAssets_Detail.BuyValue" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.WarrantyPeriod" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"'></aspxform:XDateTimePicker>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.IsMeasure" Width="100%" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"'>
                                        <asp:ListItem>是</asp:ListItem>
                                        <asp:ListItem Selected="True">否</asp:ListItem>
                                    </aspxform:XDropDownList>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.MeasurementDate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"'></aspxform:XDateTimePicker>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XDateTimePicker id="XDateTimePicker5" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.MeasurementIndate" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"'></aspxform:XDateTimePicker>
                                </td>
                                <td class="xjtds1">
                                    <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_Rent_GoodsFixedAssets_Detail.ReplacementPrice" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress='Global.StepName!="租赁资产管理岗发起申请"' TextAlign="Right" Express="DF_Rent_GoodsFixedAssets_Detail.BuyValue" Format="type:currency;.2"></aspxform:XTextBox>
                                </td>
                            </tr>
                        </tbody>
                    </tbody>
                </table>
            </div>
        </div>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox5" ErrorMessage="请填写物料描述！" Display="None" ForeColor="Red">请填写物料描述！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox6" ErrorMessage="请填写销售产品SAPID！" Display="None" ForeColor="Red">请填写销售产品SAPID！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox9" ErrorMessage="请填写购买单价(CNY)！" Display="None" ForeColor="Red">请填写购买单价(CNY)！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox10" ErrorMessage="请填写折旧月数！" Display="None" ForeColor="Red">请填写折旧月数！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox11" ErrorMessage="请填写仪器序列号！" Display="None" ForeColor="Red">请填写仪器序列号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox12" ErrorMessage="请填写PO号！" Display="None" ForeColor="Red">请填写PO号！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" ValidationGroup="submit" ControlToValidate="XTextBox20" ErrorMessage="请填写工厂！" Display="None" ForeColor="Red">请填写工厂！</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" ValidationGroup="submit" ControlToValidate="XDropDownList4" ErrorMessage="请填写库存地！" Display="None" ForeColor="Red">请填写库存地！</aspxform:XRequiredFieldValidator>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ValidationGroup="gdzcg" ControlToValidate="XTextBox5" ErrorMessage="请填写自营产品SAPID！" Display="None" ForeColor="Red">请填写自营产品SAPID！</aspxform:XRequiredFieldValidator>
        <br />
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
