<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<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 type="text/javascript">

        //默认当天  当前步骤名  付款方式 电汇
        Ext.onReady(function () {
            // 当前步骤名    txtStep
            var stepName = agent.Eles[document.getElementById("txtStep").getAttribute("xform_xele_index")].getValue();
            //tbSummary
            var table = document.getElementById("tbSummary");
            if (stepName.indexOf("社保出纳岗付款") != -1)
            {
                for (var i = 2; i < table.rows.length; i++) {
                    var paymentType = agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();     //付款方式
                    var type = agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();     //保险类型
                    if (paymentType == "电汇" && type == "社保") {
                        agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].setValue(new Date());
                    }
                }
            }

            if (stepName.indexOf("公积金出纳岗付款") != -1) {
                
                for (var i = 2; i < table.rows.length; i++) {
                    var paymentType = agent.Eles[table.rows[i].cells[3].children[0].getAttribute("xform_xele_index")].getValue();     //付款方式
                    var type = agent.Eles[table.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();     //保险类型
                    if (paymentType == "电汇" && type == "公积金") {
                        agent.Eles[table.rows[i].cells[6].children[0].getAttribute("xform_xele_index")].setValue(new Date());
                    }
                }
            }

        });
        function setDate(stepName)
        {
            var curDate = new Date();
            return curDate;
        }

    </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" 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" Text="--系统自动生成--" BackColor="#8AB3DF" ForeColor="White" XDataBind="SWMDB:DF_F_SocialPayment_Info.FormNo" Value ValueToDisplayText></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td height="23" class="title1" colspan="6">
                        <asp:Label id="XLabel1" runat="server" value valuetodisplaytext text="用户信息"></asp:Label><%--<aspxform:XTextBox id="XTextBox5" runat="server" XDataBind="SWMDB:DF_F_SocialPayment_Info.YearsMonth" HiddenInput="True" Express="javascript('GetYM',SWMDB:DF_F_CalculatePay.Years,SWMDB:DF_F_CalculatePay.Month)" BorderWidth="1" BorderColor="#DCDCDC" Height="20" Width="100"></aspxform:XTextBox>--%>
                        <aspxform:XTextBox id="XTextBox5" runat="server" BackColor="#e6f1f8" XDataBind="SWMDB:DF_F_SocialPayment_Info.AppAccount" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100" HiddenInput="true"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox13" runat="server" BackColor="#e6f1f8" XDataBind="SWMDB:DF_F_SocialPayment_Info.TaskID" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox18" runat="server" BackColor="#e6f1f8" XDataBind="SWMDB:DF_F_SocialPayment_Info.AppTaskID" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" BackColor="#e6f1f8" XDataBind="SWMDB:DF_F_SocialPayment_Info.CompanyCode" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100" HiddenExpress="1"></aspxform:XTextBox>
                   <aspxform:XTextBox id="txtStep" runat="server" BackColor="#e6f1f8" XDataBind="varStep" ValueToDisplayText BorderWidth="1" Express="Global.StepName" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td width="68" class="td">
                        <asp:Label id="XLabel15" runat="server" value valuetodisplaytext text="创建用户"></asp:Label></td>
                    <td class="td1">
                        <aspxform:XTextBox id="XTextBox15" runat="server" BackColor="#e6f1f8" XDataBind="SWMDB:DF_F_SocialPayment_Info.AppName" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="60%"></aspxform:XTextBox>
                    </td>
                    <td class="td">
                        &nbsp;<asp:Label id="XLabel8" runat="server" value valuetodisplaytext text="创建日期"></asp:Label> 
                    </td>
                    <td width="78" class="td1">
                        &nbsp;<aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Info.CreateDate" BorderWidth="1" BorderColor="#DCDCDC" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </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" value valuetodisplaytext text="基本信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="XLabel11" runat="server" value valuetodisplaytext text="年度"></asp:Label></td>
                    <td width="356" class="td1">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Info.AppYear" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Width="60%"></aspxform:XTextBox>
                    </td>
                    <td width="75" class="td">
                        <asp:Label id="XLabel16" runat="server" value valuetodisplaytext text="月度"></asp:Label></td>
                    <td width="670" class="td1">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Info.AppMonth" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Width="60%" DisableBehavior="ReadOnly"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td class="title1" colspan="6">
                        <asp:Label id="Label15" runat="server" value valuetodisplaytext text="汇款账号信息"></asp:Label></td>
                </tr>
                <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="Label16" runat="server" value valuetodisplaytext text="账号"></asp:Label></td>
                    <td width="356" class="td1">
                        <asp:Label id="Label17" runat="server" value valuetodisplaytext text="0200080719024610150"></asp:Label></td>
                    <td width="75" class="td">
                        <asp:Label id="Label18" runat="server" value valuetodisplaytext text="户名"></asp:Label></td>
                    <td width="670" class="td1">
                        <asp:Label id="Label19" runat="server" value valuetodisplaytext text="诚通人力资源有限公司"></asp:Label></td>
                    <td width="75" class="td">
                        <asp:Label id="Label20" runat="server" value valuetodisplaytext text="开户行"></asp:Label></td>
                    <td width="670" class="td1">
                        <asp:Label id="Label21" runat="server" value valuetodisplaytext text="工商银行北京东城支行营业室"></asp:Label></td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table" emptygrid="KeepEmpty" menudock="Left" dynamicarea="1,1">
            <tbody>
                <tr>
                    <td height="16" class="tds" style="WIDTH: 5%; TEXT-ALIGN: center">
                        <asp:Label id="XLabel12" runat="server" value valuetodisplaytext text="序号"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label1" runat="server" value valuetodisplaytext text="公司主体"></asp:Label></td>
                    <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label2" runat="server" value valuetodisplaytext text="其他调整"></asp:Label></td>
                    <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label10" runat="server" value valuetodisplaytext text="备注"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" BackColor="Transparent" CssClass="text" Width="20px" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1" style="WIDTH: 150px">
                        <aspxform:XTextBox id="XTextBox6" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Other.CompanyCode" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 150px">
                        <aspxform:XTextBox id="XTextBox7" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Other.OtherAmount" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Other.Remark" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" emptygrid="KeepEmpty" menudock="Left" dynamicarea="2,1" id="tbSummary">
            <tbody>
                <tr>
                    <td height="15" class="title1" colspan="7">
                        <asp:Label id="Label9" runat="server" value valuetodisplaytext text="社保汇总信息"></asp:Label></td>
                </tr>
                <tr>
                    <td height="18" class="tds" style="WIDTH: 5%; TEXT-ALIGN: center">
                        <asp:Label id="Label3" runat="server" value valuetodisplaytext text="序号"></asp:Label></td>
                    <td width="100" class="tds">
                        <asp:Label id="Label4" runat="server" value valuetodisplaytext text="公司主体"></asp:Label></td>
                    <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label14" runat="server" value valuetodisplaytext text="付款主体"></asp:Label></td>
                    <td width="100" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label11" runat="server" value valuetodisplaytext text="付款方式"></asp:Label></td>
                    <td width="180" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label5" runat="server" value valuetodisplaytext text="险种"></asp:Label></td>
                    <td width="180" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label7" runat="server" value valuetodisplaytext text="金额"></asp:Label></td>
                    <td width="200" class="tds" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <asp:Label id="Label6" runat="server" value valuetodisplaytext text="付款日期"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tds1">
                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" BackColor="Transparent" CssClass="text" Width="20px" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="tds1" style="WIDTH: 150px">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.CompanyCode" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 150px">
                        <aspxform:XTextBox id="XTextBox11" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.PaymentCode" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid; WIDTH: 150px">
                        <aspxform:XTextBox id="XTextBox8" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.PaymentType" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox9" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.InsuranceType" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" DisableBehavior="ReadOnly" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox10" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.SumCost" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" CssClass="text" Width="100%" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" XDataBind="SWMDB:DF_F_SocialPayment_FISummary.PaymentDate" BorderWidth="1" BorderColor="#DCDCDC" DisableExpress="SWMDB:DF_F_SocialPayment_FISummary.PaymentType!='托收' || (Global.StepName !='北京费用会计岗做公积金托收凭证'&amp;&amp;Global.StepName !='上海费用会计岗做公积金托收凭证'&amp;&amp;Global.StepName !='深圳费用会计岗做公积金托收凭证'&amp;&amp;Global.StepName !='颐合费用会计岗做公积金托收凭证'&amp;&amp;Global.StepName !='博德费用会计岗做公积金托收凭证'&amp;&amp;Global.StepName !='北京费用会计岗做社保托收凭证'&amp;&amp;Global.StepName !='上海费用会计岗做社保凭证'&amp;&amp;Global.StepName !='深圳费用会计岗做社保托收凭证'&amp;&amp;Global.StepName !='颐合费用会计岗做社保托收凭证'&amp;&amp;Global.StepName !='博德费用会计岗做社保托收凭证')"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <%--<tr>
                    <td class="tds1" style="TEXT-ALIGN: right" colspan="3">
                        <asp:Label id="Label8" runat="server" text="汇总" font-bold="true"></asp:Label></td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BackColor="#E6F1F8" Format="type:number;.2" XDataBind="varcost1" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="100%" TextAlign="Right" Express="sum(SWMDB:DF_F_SocialPayment_CostSummary.SumHousingFund)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1">
                        <aspxform:XTextBox id="XTextBox14" runat="server" BackColor="#E6F1F8" Format="type:number;.2" XDataBind="varcost2" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="100%" TextAlign="Right" Express="sum(SWMDB:DF_F_SocialPayment_CostSummary.SumSocialCost)"></aspxform:XTextBox>
                    </td>
                    <td class="tds1" style="BORDER-RIGHT: #93a1ae 1px solid">
                        <aspxform:XTextBox id="XTextBox16" runat="server" BackColor="#E6F1F8" Format="type:number;.2" XDataBind="varcost3" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" CssClass="text" Width="100%" TextAlign="Right" Express="sum(varsum)"></aspxform:XTextBox>
                    </td>
                </tr>--%>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table">
            <tbody>
                <tr>
                    <td width="91" height="30" class="td1" colspan="4">
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton1" runat="server" Text="查看凭证明细" XClass="Oimec.Dialogs.ExpenseVoucherButton" Width="136px" AppendMode="ClearAndAppend" PrintOut="False" UseSubmitBehavior="False" Filter="appTaskID->SWMDB:DF_F_SocialPayment_Info.AppTaskID,cpyCode->SWMDB:DF_F_SocialPayment_Info.CompanyCode" Height="23px"></aspxform:XCustomBrowserButton>
                        <%--<aspxform:XCustomBrowserButton id="XCustomBrowserButton2" runat="server" Text="查看托收明细" XClass="Oimec.Dialogs.SocialPaymentButton" Width="166px" Height="23px" Filter="TaskID->SWMDB:DF_F_SocialPayment_Info.TaskID" UseSubmitBehavior="False" PrintOut="False" AppendMode="ClearAndAppend"></aspxform:XCustomBrowserButton>
                        <aspxform:XCustomBrowserButton id="XCustomBrowserButton3" runat="server" Text="查看电汇明细"  XClass="Oimec.Dialogs.SocialPaymentButton" Width="166px" Height="23px" Filter="TaskID->SWMDB:DF_F_SocialPayment_Info.TaskID" UseSubmitBehavior="False" PrintOut="False" AppendMode="ClearAndAppend"></aspxform:XCustomBrowserButton>--%></td>
                </tr>
                <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="Label12" runat="server" value valuetodisplaytext text="费用凭证号"></asp:Label></td>
                    <td width="356" class="td1">
                        <aspxform:XTextBox id="XTextBox17" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Info.VoucherNo1" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Width="60%"></aspxform:XTextBox>
                    </td>
                    <td width="75" class="td">
                    </td>
                    <td width="670" class="td1">
                    </td>
                </tr>
                <tr>
                    <td width="91" height="30" class="td">
                        <asp:Label id="Label13" runat="server" value valuetodisplaytext text="集成失败原因"></asp:Label></td>
                    <td width="356" class="td1" colspan="3">
                        <aspxform:XTextBox id="XTextBox20" runat="server" BackColor="#E6F1F8" XDataBind="SWMDB:DF_F_SocialPayment_Info.ReturnMsg" ValueToDisplayText BorderWidth="1" BorderColor="#DCDCDC" ReadOnly="True" Width="100%" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <p align="center">
            <aspxform:XSignTrace id="XSignTrace1" runat="server" BorderWidth="1" BorderColor="#dcdcdc" Width="1200px"></aspxform:XSignTrace>
        </p>
    </form>
</body>
</html>
