<%@ 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)
    {
        string aa = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
        this.XTextBox4.Text = aa.Substring(0, 4);
        this.XTextBox3.Text = aa.Substring(4, 2);
    }

</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 Print() {
            var temp = agent.Eles[document.getElementById("XTextBox13").getAttribute("xform_xele_index")].getValue();
            window.open("薪酬发放Print.aspx?taskID=" + temp);
        }
            
        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 width="1200" align="center" class="head" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="logo">
                    </td>
                    <td class="biaoti">
                        <asp:Label id="XLabel2" runat="server" text="月度工资计算" valuetodisplaytext value></asp:Label></td>
                    <td class="formno">
                        <asp:Label id="XLabel93" runat="server" text="表单号：" valuetodisplaytext value></asp:Label>
                        <aspxform:XLabel id="XLabel94" runat="server" text="--系统自动生成--" ValueToDisplayText Value XDataBind="SWMDB:DF_F_CalculatePay.FormNo" ForeColor="White" BackColor="#8AB3DF"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="1200">
                        <aspxform:XButton id="XButton1" runat="server" XClass="YZSoft.Forms.Field.Button" Height="23px" UseSubmitBehavior="False" OnClientClick="Print()" Text="打印"></aspxform:XButton>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="6">
                        <asp:Label id="XLabel1" runat="server" text="用户信息" valuetodisplaytext value></asp:Label>
                        <aspxform:XTextBox id="XTextBox13" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.TaskID" BorderColor="#DCDCDC" BorderWidth="1" width="100" CssClass="text" backColor="#e6f1f8" ReadOnly="True" HiddenExpress="1"></aspxform:XTextBox>
                   </td>
                </tr>
                <tr>
                    <td width="68" class="td">
                        <asp:Label id="XLabel15" runat="server" text="创建用户" valuetodisplaytext value></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox15" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.CreateUser" BorderColor="#DCDCDC" BorderWidth="1" width="60%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        &nbsp;<asp:Label id="XLabel8" runat="server" text="创建日期" valuetodisplaytext value></asp:Label> 
                    </td>
                    <td width="78" class="td1">
                        &nbsp;<aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" XDataBind="SWMDB:DF_F_CalculatePay.CreateDate" BorderColor="#DCDCDC" BorderWidth="1" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td width="38" class="td">
                        <asp:Label id="XLabel3" runat="server" text="部门" valuetodisplaytext value></asp:Label></td>
                    <td width="39" class="td1">
                        <aspxform:XTextBox id="XTextBox1" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Dept" BorderColor="#DCDCDC" BorderWidth="1" width="60%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="6">
                        <asp:Label id="XLabel6" runat="server" text="工资信息" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="XLabel11" runat="server" text="年度" valuetodisplaytext value></asp:Label></td>
                    <td width="356" class="td1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Years" BorderColor="#DCDCDC" BorderWidth="1" width="60%" backColor="White"></aspxform:XTextBox>
                    </td>
                    <td width="75" class="td">
                        <asp:Label id="XLabel16" runat="server" text="月度" valuetodisplaytext value></asp:Label></td>
                    <td width="670" class="td1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Month" BorderColor="#DCDCDC" BorderWidth="1" width="60%" backColor="White" DisableExpress="Global.StepName!='薪酬岗发起薪酬发放申请'"></aspxform:XTextBox>
                    </td>
                    <td width="75" class="td">
                        <asp:Label id="Label10" runat="server" text="数据准备截止时间" valuetodisplaytext value></asp:Label></td>
                    <td width="670" class="td1">
                        &nbsp;<aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" XDataBind="SWMDB:DF_F_CalculatePay.DataPreparationTime" BorderColor="#DCDCDC" BorderWidth="1" DisableExpress="Global.StepName!='薪酬岗发起薪酬发放申请'"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td class="title1" colspan="6">
                        <asp:Label id="Label11" runat="server" text="汇款账号信息" valuetodisplaytext value></asp:Label></td>
                </tr>
             <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="Label12" runat="server" text="账号" valuetodisplaytext value></asp:Label></td>
                    <td width="356" class="td1">
                        <asp:Label id="Label15" runat="server" text="911052020629042010" valuetodisplaytext value></asp:Label>
                    </td>
                    <td width="75" class="td">
                        <asp:Label id="Label13" runat="server" text="户名" valuetodisplaytext value></asp:Label></td>
                    <td width="670" class="td1">
                         <asp:Label id="Label16" runat="server" text="北京东方中科集成科技股份有限公司" valuetodisplaytext value></asp:Label>
                    </td>
                    <td width="75" class="td">
                        <asp:Label id="Label14" runat="server" text="开户行" valuetodisplaytext value></asp:Label></td>
                    <td width="670" class="td1">
                         <asp:Label id="Label17" runat="server" text="招商银行北京分行西三环支行" valuetodisplaytext value></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="td1" colspan="6">
                        <asp:Label id="XLabel14" runat="server" text="备注" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="23" class="td1" colspan="6">
                        <aspxform:XTextBox id="XTextBox2" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay.Remark" BorderColor="#DCDCDC" BorderWidth="1" width="100%" backColor="White" Height="50px"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
       
        <br />
        <table width="1200" align="center" class="table" dynamicarea="2,1" menudock="Left" emptygrid="KeepEmpty" >
            <tbody>
                <tr>
                    <td class="title1" colspan="3">
                        <asp:Label id="XLabel10" runat="server" text="各发放公司汇总" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td height="16" class="tds" style="WIDTH: 5%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel12" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label1" runat="server" text="发放公司" valuetodisplaytext value></asp:Label></td>
                    <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label2" runat="server" text="金额" valuetodisplaytext value></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" CssClass="text" BorderStyle="None" TextAlign="Center" Width="20px">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox6" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Branches.CompanyName" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox7" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Branches.TotalAmount"  BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" DisableExpress="Global.StepName!='薪酬岗提交工资审批及付款申请'" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div style="OVERFLOW: auto; HEIGHT: 200px; WIDTH: 1200px; BORDER-BOTTOM: #dddddd 1px solid" PrintOut="false">
            <table align="center" class="table" id="tbfiscope" dynamicarea="2,1" menudock="Left" emptygrid="KeepEmpty" PrintOut="false">
                <tbody>
                    <tr>
                        <td class="title1" colspan="7">
                            <asp:Label id="Label3" runat="server" text="各公司财务数据" valuetodisplaytext value></asp:Label>&nbsp;<aspxform:XExcelDataExportButton id="XExcelDataExportButton1" runat="server" Text="导出到Excel" ExportTableID="tbfiscope"></aspxform:XExcelDataExportButton>
                        </td>
                    </tr>
                    <tr>
                        <td height="16" class="tds" style="WIDTH: 5%; TEXT-ALIGN: center">
                            <asp:Label id="Label4" runat="server" text="序号" valuetodisplaytext value></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label5" runat="server" text="公司" valuetodisplaytext value></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label7" runat="server" text="BU" valuetodisplaytext value></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label8" runat="server" text="项目名称" valuetodisplaytext value></asp:Label></td>
                        <td width="100" class="tds">
                            <asp:Label id="Label9" runat="server" text="功能范围" valuetodisplaytext value></asp:Label></td>
                        <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                            <asp:Label id="Label6" runat="server" text="金额" valuetodisplaytext value></asp:Label></td>
                        <td class="tds" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 10px">
                        </td>
                    </tr>
                    <tr>
                        <td class="tds1">
                            <aspxform:XGridLineNo id="XGridLineNo2" runat="server" BackColor="Transparent" CssClass="text" BorderStyle="None" TextAlign="Center" Width="20px">1</aspxform:XGridLineNo>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox8" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Accounting.Company" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox10" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Accounting.BUName" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox11" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Accounting.ProjectName" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1">
                            <aspxform:XTextBox id="XTextBox12" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Accounting.Scope" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True"></aspxform:XTextBox>
                        </td>
                        <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                            <aspxform:XTextBox id="XTextBox9" runat="server" ValueToDisplayText XDataBind="SWMDB:DF_F_CalculatePay_Accounting.Amount" BorderColor="#DCDCDC" BorderWidth="1" width="100%" CssClass="text" backColor="#e6f1f8" ReadOnly="True" TextAlign="Right"></aspxform:XTextBox>
                        </td>
                        <td style="BORDER-RIGHT: #93a1ae 1px solid">
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <p>
        </p>
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <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" BorderColor="#DCDCDC" BorderWidth="1" Express="javascript('GetYM',SWMDB:DF_F_CalculatePay.Years,SWMDB:DF_F_CalculatePay.Month)" HiddenInput="True"></aspxform:XTextBox>
                        </p>
                    </td>
                </tr>
            </tbody>
        </table>
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderColor="#dcdcdc" BorderWidth="1" Width="1200px"></aspxform:XSignTrace>
        </p>
        <p>
        </p>
    </form>
</body>
</html>
