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

    // Insert page code here
    //
    
    void XTextBox40_TextChanged(object sender, EventArgs e) {
    
    }

</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=Edge" />
    <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>
    <script type="text/javascript">

        //页面加载时触发事件
        Ext.onReady(function () {

            var state = request("formstate");
            agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")].setValue(state);
            XFormOnChange(agent.Eles[document.getElementById("XTextBox15").getAttribute("xform_xele_index")]);
            if (state == "Add") {  //新增时设置默认值
                var XDropDownList3 = agent.Eles[document.getElementById("XDropDownList3").getAttribute("xform_xele_index")].setValue("未分配"); //使用状态为未分配
                var XDropDownList2 = agent.Eles[document.getElementById("XDropDownList2").getAttribute("xform_xele_index")].setValue("正常");//健康状态
            }
        });

        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>
</head>
<body>
    <form runat="server">
        <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" value valuetodisplaytext text="IT办公设备/无形资产"></asp:Label></td>
                    <td class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td align="left" colspan="3">
                        <asp:Label id="XLabel46" runat="server" value valuetodisplaytext text="标记*为必填项" forecolor="Red" font-bold="True"></asp:Label>&nbsp;&nbsp;</td>
                    <td align="right">
                    </td>
                </tr>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel10" runat="server" value valuetodisplaytext text="基本信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox15" runat="server" width="100px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="state" ReadOnly="True" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel4" runat="server" value valuetodisplaytext text="设备BPMID"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.AssetBPMID" ReadOnly="True" BackColor="#E6F1F8"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" value valuetodisplaytext text="资产SAPID"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.AssetSAPID"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="22" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel37" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel42" runat="server" text="地区"></asp:Label> 
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" XDataBind="DF_IT_FixedAssets.Area" DisableExpress='state=="Edit"' HiddenExpress='state=="Edit"' PromptText="----请选择----" ValueColumn="Area" DisplayColumn="Area" XDataSource="TableName:DF_IT_AreaAssetManager"></aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList5" runat="server" XDataBind="DF_IT_FixedAssets.Area" DisableExpress='state=="Add"' HiddenExpress='state=="Add"' PromptText="----请选择----" ValueColumn="Area" DisplayColumn="Area" XDataSource="TableName:DF_IT_AreaAssetManager"></aspxform:XDropDownList>
                    </td>
                    <td class="ts">
                        <asp:Label id="Label1" runat="server" text="领用人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox10" runat="server" width="50px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_IT_FixedAssets.UserAccount" HiddenInput="True" Max="0" Min="0" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.UserName" ReadOnly="True" BackColor="#E6F1F8"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" XDataSource="TableName:V_DF_HR_BasicInfo" DisplayColumns="AttendanceKakaNO:账号;Name:姓名;Department:部门" Width="40px" Text="查询" DataMap="AttendanceKakaNO->DF_IT_FixedAssets.UserAccount;Name->DF_IT_FixedAssets.UserName"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="24" class="tsbottomlabel">
                        <asp:Label id="Label5" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel44" runat="server" text="设备类别"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox3" runat="server" width="45px" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_IT_FixedAssets.AssetTypeID" HiddenInput="True" Max="0" Min="0" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_IT_FixedAssets.AssetType" PromptText="----请选择----" ValueColumn="AssetsTypeName" DisplayColumn="AssetsTypeName" XDataSource="TableName:DF_IT_FixedAssetsType" DataMap="TypeID->DF_IT_FixedAssets.AssetTypeID"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label11" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel45" runat="server" text="品牌"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox6" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.Brand"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr hiddenexpress='DF_IT_FixedAssets.AssetTypeID!="2" &amp;&amp;  DF_IT_FixedAssets.AssetTypeID!="3"'>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label18" runat="server" text="领用部门"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox11" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.UseDepart"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label21" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label19" runat="server" text="设备保存地"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox12" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.AssetSaveAddr"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label12" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label2" runat="server" text="型号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox7" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.AssetModel"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label3" runat="server" text="主机序列号"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox8" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.SerialNo"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel">
                        <asp:Label id="Label4" runat="server" text="设备描述"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox9" runat="server" width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.AssetDescription"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label14" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="使用状态"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_IT_FixedAssets.UseState" DisableExpress='state!="Edit"' PromptText="----请选择----" ValueColumn="Name" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"使用状态"'></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label26" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label25" runat="server" text="保管状态"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList2" runat="server" XDataBind="DF_IT_FixedAssets.UserState" DisableExpress='state!="Edit"' RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Value="保管">保管</asp:ListItem>
                            <asp:ListItem Value="使用">使用</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label24" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label20" runat="server" text="是否已处置"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_IT_FixedAssets.IsDisposition" DisableExpress='state!="Edit"' RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label16" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label6" runat="server" text="健康状态"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_IT_FixedAssets.HealthStatus" DisableExpress='state!="Edit"' PromptText="----请选择----" ValueColumn="Name" DisplayColumn="Name" XDataSource='TableName:DF_DataSourceList;Filter:Type->"健康状态"'></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr hiddenexpress='DF_IT_FixedAssets.IsDisposition!="是"'>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label22" runat="server" text="设备处置日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.DispositionDate"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label23" runat="server" text="设备处置表单号"></asp:Label>
                        <aspxform:XTextBox id="XTextBox14" style="HEIGHT: 20px; WIDTH: 20px" runat="server" width="20px" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.DispositionTaskID" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox13" runat="server" width="70%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.DispositionFormNo"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" XClass="YZSoft.Forms.Field.DataBrowserButton" XDataSource Width="40px" Text="查询" PopupWndWidth="-1" PopupWndHeight="-1" UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label8" runat="server" text="购买日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.PurchaseDate"></aspxform:XDateTimePicker>
                    </td>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label9" runat="server" text="资本化日期"></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.CapitalizationDate"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label10" runat="server" text="备注"></asp:Label></td>
                    <td class="tsbottomtext" colspan="3">
                        <aspxform:XTextBox id="XTextBox5" runat="server" width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_IT_FixedAssets.Remark" Rows="3" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" DisableExpress='state=="Edit"' Display="None" ForeColor="Red" ErrorMessage="请选择地区" ControlToValidate="XDropDownList4" ValidationGroup="submit">请选择地区</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator12" runat="server" DisableExpress='state=="Add"' Display="None" ForeColor="Red" ErrorMessage="请选择地区" ControlToValidate="XDropDownList5" ValidationGroup="submit">请选择地区</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择设备类别" ControlToValidate="XDropDownList1" ValidationGroup="submit">请选择设备类别</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写品牌" ControlToValidate="XTextBox6" ValidationGroup="submit">请填写品牌</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator9" runat="server" DisableExpress='DF_IT_FixedAssets.AssetTypeID!="2" &amp;&amp;  DF_IT_FixedAssets.AssetTypeID!="3"' Display="None" ForeColor="Red" ErrorMessage="请填写领用部门" ControlToValidate="XTextBox11" ValidationGroup="submit">请填写领用部门</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator10" runat="server" DisableExpress='DF_IT_FixedAssets.AssetTypeID!="2" &amp;&amp;   DF_IT_FixedAssets.AssetTypeID!="3"' Display="None" ForeColor="Red" ErrorMessage="请填写设备保存地" ControlToValidate="XTextBox12" ValidationGroup="submit">请填写设备保存地</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" Display="None" ForeColor="Red" ErrorMessage="请填写型号" ControlToValidate="XTextBox7" ValidationGroup="submit">请填写型号</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择健康状态" ControlToValidate="XDropDownList2" ValidationGroup="submit">请选择健康状态</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择使用状态" ControlToValidate="XDropDownList3" ValidationGroup="submit">请选择使用状态</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator11" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择设备状态是否已处置" ControlToValidate="XRadioButtonList1" ValidationGroup="submit">请选择设备状态是否已处置</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" Display="None" ForeColor="Red" ErrorMessage="请选择购买日期" ControlToValidate="XDateTimePicker2" ValidationGroup="submit">请选择购买日期</aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
