<%@ 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)
    {

    }

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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>
    <script language="javascript">
        /*
        agent.on('beforeSubmit', function () {
            var y = agent.Eles[document.getElementById("XTextBox4").getAttribute("xform_xele_index")].getValue();
            var m = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();

            YZSoft.Ajax.request({
                url: YZSoft.$url('Oimec/ApiServices/HRSalaryAPIHandler.ashx'),
                method: 'POST',
                async: false,
                params: {
                    method: 'UpdateSalaryFile',
                    year: y,
                    month: m
                },
                success: function (action) {
                    Ext.Msg.show({
                        title: '完成',
                        msg: '薪酬信息更新完成！',
                        buttons: Ext.Msg.OK,
                        fn: function (btn) {
                            if (btn == 'ok') { return true; }
                        }
                    });
                },
                failure: function (action) {
                    alert(action.result.Msg);
                    return false;
                }
            });
            return true;
        })
      */

        function GetYM(y, m) {
            if (m.length == 1)
                return y + "0" + m;
            else
                return y + m;
        }
        </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table class="head" border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel2" runat="server" Value ValueToDisplayText text="月度工资计算"></asp:Label>
                    </td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" Value ValueToDisplayText text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" Value ValueToDisplayText text="--系统自动生成--" BackColor="#8AB3DF" ForeColor="White" XDataBind="SWMDB:DF_F_SalaryFile.FormNo"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
        </p>
        <p>
        </p>
        <p>
            <table class="table" width="1200" align="center">
                <tbody>
                    <tr>
                        <td class="title1" height="15" colspan="6">
                            <asp:Label id="XLabel1" runat="server" Value ValueToDisplayText text="用户信息"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td" width="68">
                            <asp:Label id="XLabel15" runat="server" Value ValueToDisplayText text="创建用户"></asp:Label>
                        </td>
                        <td class="td1">
                            <aspxform:XTextBox id="XTextBox15" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.CreateUser" ReadOnly="True" backColor="#e6f1f8" CssClass="text" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        </td>
                        <td class="td">
                            &nbsp;<asp:Label id="XLabel8" runat="server" Value ValueToDisplayText text="创建日期"></asp:Label>
                        </td>
                        <td class="td1" width="78">
                            &nbsp;<aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="SWMDB:DF_F_CalculatePay.CreateDate" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                        </td>
                        <td class="td" width="38">
                            <asp:Label id="XLabel3" runat="server" Value ValueToDisplayText text="部门"></asp:Label>
                        </td>
                        <td class="td1" width="39">
                            <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Dept" ReadOnly="True" backColor="#e6f1f8" CssClass="text" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </p>
        <p>
        </p>
        <p>
        </p>
        <p>
            <table class="table" width="1200" align="center">
                <tbody>
                    <tr>
                        <td class="title1" height="15" colspan="4">
                            <asp:Label id="XLabel6" runat="server" Value ValueToDisplayText text="工资信息"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td" height="30" width="91">
                            <asp:Label id="XLabel11" runat="server" Value ValueToDisplayText text="年度"></asp:Label>
                        </td>
                        <td class="td1" width="356">
                            <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Years" backColor="White" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        </td>
                        <td class="td" width="75">
                            <asp:Label id="XLabel16" runat="server" Value ValueToDisplayText text="月度"></asp:Label>
                        </td>
                        <td class="td1" width="670">
                            <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Month" backColor="White" width="60%" BorderWidth="1" BorderColor="#DCDCDC"></aspxform:XTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" height="23" colspan="4">
                            <asp:Label id="XLabel14" runat="server" Value ValueToDisplayText text="备注说明"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" height="23" colspan="4">
                            <aspxform:XTextBox id="XTextBox2" runat="server" XDataBind="SWMDB:DF_F_CalculatePay.Remark" CssClass="text" width="100%" BorderWidth="1" BorderColor="#DCDCDC" TextMode="MultiLine" Rows="3"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </p>
        <p>
        </p>
        <p>
            <table border="0" cellspacing="0" cellpadding="0" width="1200" align="center">
                <tbody>
                    <tr>
                        <td width="800">
                            <p>
                                <aspxform:XProcessButtonList id="XProcessButtonList1" runat="server" PositionSelectVisible="False"></aspxform:XProcessButtonList>
                                <aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="SWMDB:DF_F_CalculatePay.YearsMonth" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Express="javascript('GetYM',SWMDB:DF_F_CalculatePay.Years,SWMDB:DF_F_CalculatePay.Month)"></aspxform:XTextBox>
                            </p>
                        </td>
                    </tr>
                </tbody>
            </table>
            <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="1200px" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
        </p>
        </p>
    </form>
</body>
</html>
