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

    protected void Page_Load(object sender, EventArgs e)
    {
    
    }

</script>
<script type="text/javascript">

    function BankNo() {
        if (!agent.Eles[document.getElementById("XTextBox2").getAttribute("xform_xele_index")].getValue().match(/^[A-Z]+$/)) {
            alert("只能输一个大写字母！");
            return false;
        }
    }
</script>
<html xmlns:xform="xmlns:xform">
<head 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 runat="server">
        <table class="head" border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr>
                    <td class="logo" width="3">
                    </td>
                    <td class="biaoti" width="793">
                        <asp:Label id="XLabel2" Value ValueToDisplayText text="折旧率" runat="server"></asp:Label>
                    </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 border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <asp:Label id="XLabel5" Value ValueToDisplayText text="创建用户" runat="server"></asp:Label>
                    </td>
                    <td style="WIDTH: 35%" class="basictextfirst">
                        <aspxform:XTextBox id="XTextBox20" ValueToDisplayText="TableName:V_Users;FilterColumn:Account;DisplayColumn:DisplayName" runat="server" ReadOnly="True" backColor="#e6f1f8" CssClass="text" Width="50%" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.CreateName"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst3">
                        <asp:Label id="XLabel49" Value ValueToDisplayText text="创建日期" runat="server"></asp:Label>
                    </td>
                    <td style="WIDTH: 35%" class="basictextfirst3">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" backColor="#e6f1f8" CssClass="text" Width="50%" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.CreateDate" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <asp:Label id="XLabel1" Value ValueToDisplayText text="折旧码" runat="server"></asp:Label>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox id="XTextBox1" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.DepreciationCode" width="50%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" ReadOnly="True" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.ItemID" width="50%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td style="WIDTH: 10%" class="basiclblfirst">
                        <asp:Label id="XLabel3" Value ValueToDisplayText text="折旧类型" runat="server"></asp:Label>
                    </td>
                    <td style="WIDTH: 35%" class="basiclblfirst">
                        <aspxform:XTextBox onblur="BankNo();" id="XTextBox2" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.DepreciationCodeType" width="50%" BorderWidth="1" BorderColor="#DCDCDC" Max="1" MaxLength="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr hiddenexpress="1">
                    <td style="BORDER-BOTTOM: #b2bcc6 1px solid; BORDER-LEFT: #93a1ae 1px solid; BACKGROUND-COLOR: #c1d7ec; FONT-FAMILY: 微软雅黑; FONT-SIZE: 14px; BORDER-TOP: #93a1ae 1px solid; FONT-WEIGHT: bold; BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XHyperLink id="XHyperLink2" runat="server" NavigateUrl="~\YZSoft\Forms\Images\折旧率.xls" Target="_blank" ForeColor="MidnightBlue">折旧率模版</aspxform:XHyperLink>
                        <aspxform:XExcelDataLoadButton id="XExcelDataLoadButton1" text="EXCEL导入" runat="server" Width="104px" PopupWndHeight="-1" UseSubmitBehavior="False" PopupWndWidth="-1" DataMap="A->DF_ALLOWANCEFORDEPRECIATION_DETAIL.DepreciationDuringPeriod;B->DF_ALLOWANCEFORDEPRECIATION_DETAIL.WhenMonthDepreciationRate;C->DF_ALLOWANCEFORDEPRECIATION_DETAIL.WhenMonthYuErRate;D->DF_ALLOWANCEFORDEPRECIATION_DETAIL.TheCumulativeDepreciationRate" ColumnCount="4"></aspxform:XExcelDataLoadButton>
                        <aspxform:XExcelDataExportButton id="XExcelDataExportButton1" runat="server" ExportTableID="r1" Text="EXCEL导出" HiddenExpress="1"></aspxform:XExcelDataExportButton>
                    </td>
                </tr>
            </tbody>
        </table>
        <table id="r1" border="0" cellspacing="0" cellpadding="0" width="800" align="center" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td style="WIDTH: 50px" class="tds" height="18" align="middle">
                        <asp:Label id="XLabel32" Value ValueToDisplayText text="序号" runat="server"></asp:Label>
                    </td>
                    <td style="WIDTH: 24%" class="tds" align="middle">
                        <div align="center">
                            <asp:Label id="XLabel33" Value ValueToDisplayText text="折旧期间 " runat="server"></asp:Label>
                        </div>
                    </td>
                    <td style="WIDTH: 24%" class="tds" align="middle">
                        <div align="center">
                            <asp:Label id="XLabel39" Value ValueToDisplayText text="当月折旧率 " runat="server"></asp:Label>
                        </div>
                    </td>
                    <td style="WIDTH: 24%" class="tds" align="middle">
                        <asp:Label id="XLabel38" Value ValueToDisplayText text="当月账面余额率" runat="server"></asp:Label>
                    </td>
                    <td style="TEXT-ALIGN: center; WIDTH: 24%; BORDER-RIGHT: #93a1ae 1px solid" class="tds" align="middle">
                        <asp:Label id="XLabel35" Value ValueToDisplayText text="累计折旧率 " runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" BackColor="Transparent" BorderStyle="None" TextAlign="Center">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_DETAIL.DepreciationDuringPeriod" width="99.9%" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox4" runat="server" ReadOnly="True" XDataBind="DF_ALLOWANCEFORDEPRECIATION_DETAIL.ID" width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Express="DF_ALLOWANCEFORDEPRECIATION_INFO.ItemID"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox200" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_DETAIL.WhenMonthDepreciationRate" width="99.9%" TextAlign="Right" Format="type:number;.2"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_DETAIL.WhenMonthYuErRate" width="99.9%" TextAlign="Right" Format="type:number;.2"></aspxform:XTextBox>
                    </td>
                    <td style="TEXT-ALIGN: center; BORDER-RIGHT: #93a1ae 1px solid" class="tds1">
                        <aspxform:XTextBox id="XTextBox19" runat="server" XDataBind="DF_ALLOWANCEFORDEPRECIATION_DETAIL.TheCumulativeDepreciationRate" width="99.9%" TextAlign="Right" Format="type:number;.2"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr>
                    <td class="title1">
                        <asp:Label id="XLabel40" Value ValueToDisplayText text="备注" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="TEXT-ALIGN: center; BORDER-RIGHT: #93a1ae 1px solid" class="tds1">
                        <aspxform:XTextBox id="XTextBox12" Value ValueToDisplayText runat="server" CssClass="text" Width="100%" XDataBind="DF_ALLOWANCEFORDEPRECIATION_INFO.Remark" BorderWidth="1px" Max="0" Min="0" HiddenInput="False" TextMode="MultiLine" Height="76px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" cellspacing="0" cellpadding="0" width="800" align="center">
            <tbody>
                <tr>
                    <td height="22">
                        <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                    </td>
                    <td>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
