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

    // Insert page code here
    //

</script>
<html xmlns:XForm="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <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: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>
        Ext.onReady(function () {
            YZSoft.Ajax.request({
                url: YZSoft.$url('Oimec/ApiServices/BPMSysAPIHandler.ashx'),
                method: 'POST',
                params: {
                    method: 'LoginUser'
                },
                success: function (action) {
                    var result = action.result;
                    agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")].setValue(result.account);
                    XFormOnChange(agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")]);
                },
                failure: function (action) {
                    alert(action.result.Message);
                }
            });

        });

    </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 width="15" class="logo">
                    </td>
                    <td width="843" class="biaoti">
                        <asp:Label id="Label1" runat="server" text="办公费用维护"></asp:Label></td>
                    <td width="336" class="formno">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="16" class="title1" colspan="4">
                        <asp:Label id="Label10" runat="server" text="维护信息"></asp:Label>
                        <aspxform:XTextBox id="XTextBox17" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="20px" XDataBind="DF_FI_OfficeExpensesCategory.LoginUser" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="13" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label11" runat="server" text="操作人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox11" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="20px" XDataBind="DF_FI_OfficeExpensesCategory.OperatorAccount" HiddenExpress="1" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox9" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.Operator" DisableBehavior="ReadOnly" BackColor="#E6F1F8" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label12" runat="server" text="操作日期"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_FI_OfficeExpensesCategory.OperatorDate" BackColor="#E6F1F8" Width="70%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label13" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label2" runat="server" text="部门名称"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox7" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="20px" XDataBind="DF_FI_OfficeExpensesCategory.DepartmentID" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataBind="DF_FI_OfficeExpensesCategory.Department" Width="160px" XDataSource="TableName:DF_HR_DEPARTMENTAREA" ValueColumn="DepartmentName" DisplayColumn="DepartmentName" PromptText="----请选择----" DataMap="DepartmentNO->DF_FI_OfficeExpensesCategory.DepartmentID"></aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label23" runat="server" text="是否需要发票"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_FI_OfficeExpensesCategory.IsInvoice" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0">是</asp:ListItem>
                            <asp:ListItem Value="1">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label30" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label29" runat="server" text="费用名称(大类)"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox15" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.ExpensesName1"></aspxform:XTextBox>
                    </td>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label16" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label3" runat="server" text="费用名称"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.ExpensesName"></aspxform:XTextBox>
                    </td>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label26" runat="server" text="费用说明"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox16" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.ExpensesDescribe" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label15" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label4" runat="server" text="流程编号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.ProcessNumber"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label5" runat="server" text="流程描述"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.ProcessDescribe" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="21" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label17" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label8" runat="server" text="公司编码"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox6" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.Company"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label19" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label9" runat="server" text="业务范围"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.erArea"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label6" runat="server" text="成本中心"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.CostCenter"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label28" runat="server" text="功能范围"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" XDataBind="DF_FI_OfficeExpensesCategory.Scope" XDataSource='TableName:DF_DataSourceList;Filter:Type->"功能范围"' ValueColumn="Value" DisplayColumn="Name" PromptText="----请选择----">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem></asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                 <tr>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label32" runat="server" text="内部订单"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox19" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.InternalOrder"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                       
                    <td class="tsbottomtext" style="WIDTH: 35%">
                       
                    </td>
                </tr>
                <tr>
                    <td height="19" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label21" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label27" runat="server" text="预算部门负责人"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox12" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.OtherSubjectPerson"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label25" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label22" runat="server" text="其他应收账款(供应商)"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox13" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.OtherSubjectSupplier"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label18" runat="server" text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="Label7" runat="server" text="费用科目"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.CostSubject"></aspxform:XTextBox>
                    </td>
                    <td height="18" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label14" runat="server" text="进项税"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox10" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.TaxSubiect"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label24" runat="server" text="银行存款"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox14" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.BankSubject"></aspxform:XTextBox>
                    </td>
                    <td height="20" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label20" runat="server" text="原因代码"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" XDataBind="DF_FI_OfficeExpensesCategory.ReasonCode" Width="70%" XDataSource='TableName:DF_DataSourceList;Filter:Type->"原因代码"' ValueColumn="Value" DisplayColumn="Name" PromptText="----请选择----">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem></asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="Label31" runat="server" text="付款银行账号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox18" runat="server" BorderColor="#DCDCDC" BorderWidth="1" width="70%" XDataBind="DF_FI_OfficeExpensesCategory.PayBankID" ValueToDisplayText ReadOnly="True"></aspxform:XTextBox>
                        &nbsp;<aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="21px" XDataSource="TableName:DF_FI_PaymentBankInfo;Filter:CompanyCode->DF_FI_OfficeExpensesCategory.Company" DataMap="BankAccount->DF_FI_OfficeExpensesCategory.PayBankID" DisplayColumns="BankRemark:银行描述;BankAccount:银行账号"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ForeColor="Red" Display="None" ErrorMessage="请选择部门名称" ControlToValidate="XDropDownList1">请选择部门名称</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写费用名称" ControlToValidate="XTextBox1">请填写费用名称</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator6" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写公司编码" ControlToValidate="XTextBox6">请填写公司编码</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator7" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写业务范围" ControlToValidate="XTextBox8">请填写业务范围</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写预算部门负责人" ControlToValidate="XTextBox12">请填写预算部门负责人</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator8" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写其他应收账款(供应商)" ControlToValidate="XTextBox13">请填写其他应收账款(供应商)</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写费用科目" ControlToValidate="XTextBox5">请填写费用科目</aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" ForeColor="Red" Display="None" ErrorMessage="请填写流程编号" ControlToValidate="XTextBox2">请填写流程编号</aspxform:XRequiredFieldValidator>
    </form>
</body>
</html>
