<%@ 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">
    <link href="/Oimec/Styles/css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <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;
        }

        .yz-inp-cnt {
            display: inline;
        }
    </style>
    <script type="text/javascript">

        function oc() {
            alert("A_onchange");

        }

        // 数字转换成大写金额函数
        function atoc(numberValue) {
            var numberValue = new String(Math.round(numberValue * 100)); // 数字金额
            var chineseValue = ""; // 转换后的汉字金额
            var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字
            var String2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; // 对应单位
            var len = numberValue.length; // numberValue 的字符串长度
            var Ch1; // 数字的汉语读法
            var Ch2; // 数字位的汉字读法
            var nZero = 0; // 用来计算连续的零值的个数
            var String3; // 指定位置的数值
            if (len > 15) {
                alert("超出计算范围");
                return "";
            }
            if (numberValue == 0) {
                chineseValue = "零元整";
                return chineseValue;
            }

            String2 = String2.substr(String2.length - len, len); // 取出对应位数的STRING2的值
            for (var i = 0; i < len; i++) {
                String3 = parseInt(numberValue.substr(i, 1), 10); // 取出需转换的某一位的值
                if (i != (len - 3) && i != (len - 7) && i != (len - 11) && i != (len - 15)) {
                    if (String3 == 0) {
                        Ch1 = "";
                        Ch2 = "";
                        nZero = nZero + 1;
                    }
                    else if (String3 != 0 && nZero != 0) {
                        Ch1 = "零" + String1.substr(String3, 1);
                        Ch2 = String2.substr(i, 1);
                        nZero = 0;
                    }
                    else {
                        Ch1 = String1.substr(String3, 1);
                        Ch2 = String2.substr(i, 1);
                        nZero = 0;
                    }
                }
                else { // 该位是万亿，亿，万，元位等关键位
                    if (String3 != 0 && nZero != 0) {
                        Ch1 = "零" + String1.substr(String3, 1);
                        Ch2 = String2.substr(i, 1);
                        nZero = 0;
                    }
                    else if (String3 != 0 && nZero == 0) {
                        Ch1 = String1.substr(String3, 1);
                        Ch2 = String2.substr(i, 1);
                        nZero = 0;
                    }
                    else if (String3 == 0 && nZero >= 3) {
                        Ch1 = "";
                        Ch2 = "";
                        nZero = nZero + 1;
                    }
                    else {
                        Ch1 = "";
                        Ch2 = String2.substr(i, 1);
                        nZero = nZero + 1;
                    }
                    if (i == (len - 11) || i == (len - 3)) { // 如果该位是亿位或元位，则必须写上
                        Ch2 = String2.substr(i, 1);
                    }
                }
                chineseValue = chineseValue + Ch1 + Ch2;
            }

            if (String3 == 0) { // 最后一位（分）为0时，加上“整”
                chineseValue = chineseValue + "整";
            }

            return chineseValue;
        }
        //打印
        function aa() {
            var a = agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")];
            var temp = a.getValue();

            window.open("Print.aspx?serialNum=" + temp);
        }

        function image1() {
            window.open("../../../../Oimec/Script/Image/交通费-说明.png");
        }
        //获取可用费用
        //成本中心编码 成本中心 费用科目 业务范围
        function GETBALANCE(cpyCode, CostCenterAccount, Subject, erArea) {
            if (cpyCode != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/OAAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetAvailableCost',
                        cpyCode: cpyCode,
                        CostCenterAccount: CostCenterAccount,
                        Subject: Subject,
                        erArea: erArea
                    },
                    success: function (action) {
                        var result = action.result;
                        // alert(action.result.Value);
                        agent.Eles[document.getElementById("XTextBox22").getAttribute("xform_xele_index")].setValue(action.result.Value);
                    }
                });
            }
        }

        function DisplayData() {
            var table = document.getElementsByClassName("SignTraceDefault");
            return table.rows.length;
        }

        //获取税额
        function GetTaxAmount(LineNumber, TicketType, InvoiceType, Amount, TaxRate, Company) {
            var table = document.getElementById("tablenew");
            var i = LineNumber + 1;


            //税额文本框，只读控制 Vehicle 票种，InvoiceType 发票类型
            var tableObj = document.getElementById("tablenew");
            var IsRead = true;
            tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].readOnly = true;//默认设置为只读 且设置背景颜色为灰色
            tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
            var stepName = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue();

            //发票号文本框背景色控制：发票类型为电子发票必填，否则灰色只读。可填：火车票 其他发票；客车票 其他发票
            if (stepName == "开始") {
                if (InvoiceType == "电子发票" || (TicketType == "火车票" && InvoiceType == "其他发票") || (TicketType == "客车票" && InvoiceType == "其他发票")) {
                    tableObj.rows[LineNumber + 1].cells[3].getElementsByTagName("input")[0].style.backgroundColor = "white";
                }
                else {
                    tableObj.rows[LineNumber + 1].cells[3].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
                    agent.Eles[tableObj.rows[LineNumber + 1].cells[3].children[0].getAttribute("xform_xele_index")].setValue("");
                }

                //if (stepName == "开始" || stepName == "财务部北京费用会计岗审批" || stepName == "财务部上海费用会计岗" || stepName == "财务部深圳费用会计岗审批" || stepName == "财务部颐和费用会计岗审批" || stepName == "财务部苏州费用会计岗审批") {
                if (Company != "2000上海颐合贸易有限公司") {
                    //alert("bb");
                    //控制税额是否可编辑
                    if (TicketType == "市内交通票" || (TicketType == "火车票" && InvoiceType == "其他发票") || (TicketType == "客车票" && InvoiceType == "其他发票")) {
                        tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].readOnly = false;
                        tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "white";
                        IsRead = false;
                    }
                }

                var Company = agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].getValue(); //成本中心
                var TaxAmount;
                if (Company == "2000上海颐合贸易有限公司") {
                    TaxAmount = 0;
                }
                else {
                    // 税率为0时不计算
                    if (TaxRate == 0)
                    { TaxAmount = 0; }
                    else
                    {
                        TaxAmount = Amount / (1 + TaxRate / 100) * (TaxRate / 100);
                        TaxAmount = TaxAmount.toFixed(2); //四舍五入保留两位小数
                    }
                }
                return TaxAmount;

            }


            if (stepName == "财务部北京费用会计岗审批" || stepName == "财务部上海费用会计岗" || stepName == "财务部深圳费用会计岗审批" || stepName == "财务部颐和费用会计岗审批" || stepName == "财务部苏州费用会计岗审批") {
                //控制税额是否可编辑
                //if (TicketType != "客车票" || InvoiceType != "电子发票") {
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].readOnly = false;
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "white";
                IsRead = false;
                //}
            }

        }

        //税额失效表达式
        function TaxAmount(TicketType, InvoiceType) {
            var stepName = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue();
            if (stepName == "开始" || stepName == "财务部北京费用会计岗审批" || stepName == "财务部上海费用会计岗" || stepName == "财务部深圳费用会计岗审批" || stepName == "财务部颐合费用会计岗审批" || stepName == "财务部苏州费用会计岗审批") {
                if (TicketType == "客车票" && InvoiceType == "电子发票") {
                    return true;
                }
            }
            else { return true; }
        }

        //发票号失效表达式
        function DisInvoiceNo(TicketType, InvoiceType, stepName) {
            //if (stepName == "开始") {
                if (InvoiceType == "电子发票" || ((TicketType == "火车票" || TicketType == "客车票") && InvoiceType == "其他发票"))
                { return false; }
                else
                { return true; }
            //}
            //else { return true; }
        }

        //提交事件
        agent.on('beforeSubmit', function () {
            var feiyong = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();
            feiyong = Number(feiyong);
            if (feiyong <= 0) {
                alert("报销金额不能等于0");
                return false;
            }
        });

        Ext.onReady(function () {

            var stepName = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue();
            //重新获取可用费用
            if (stepName == "提交人直接主管审批" || stepName == "成本中心负责人审批") {
                //成本中心公司、成本中心账号、费用科目、业务范围
                var cpyCode = agent.Eles[document.getElementById("XTextBox25").getAttribute("xform_xele_index")].getValue();
                var CostCenterAccount = agent.Eles[document.getElementById("XTextBox3").getAttribute("xform_xele_index")].getValue();
                var Subject = agent.Eles[document.getElementById("XTextBox7").getAttribute("xform_xele_index")].getValue();
                var erArea = agent.Eles[document.getElementById("XTextBox24").getAttribute("xform_xele_index")].getValue();

                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/OAAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'GetAvailableCost',
                        cpyCode: cpyCode,
                        CostCenterAccount: CostCenterAccount,
                        Subject: Subject,
                        erArea: erArea
                    },
                    success: function (action) {
                        var result = action.result;
                        //alert(action.result.Value);
                        agent.Eles[document.getElementById("XTextBox22").getAttribute("xform_xele_index")].setValue(action.result.Value);
                    }
                });
            }

            //隐藏可用费用
            var a17 = agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")].getValue();
            if (a17 != null) {
                if (a17 != userToken.Account) {

                    document.getElementById('XTextBox22').style.visibility = "hidden";
                }
                // if (userToken.Account == document.getElementById('XTextBox28').value && document.getElementById('XTextBox29').value == "提交人直接主管审批") {
                if (userToken.Account == agent.Eles[document.getElementById("XTextBox28").getAttribute("xform_xele_index")].getValue() && agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue() == "提交人直接主管审批") {
                    document.getElementById('XTextBox22').style.visibility = "visible";
                }
            }

            //触发事件

        });


        agent.on('beforeSubmit', function (post, acname) {
            var stepName = agent.Eles[document.getElementById("XTextBox29").getAttribute("xform_xele_index")].getValue();

            if ((stepName == "成本中心负责人审批" || stepName == "提交人直接主管审批") && acname == "同意") {

                //发票介质 InvoiceType
                var InvoiceType = checkedVaule("InvoiceType");
                if (InvoiceType == "全部电子发票" || InvoiceType == "部分电子发票") {

                    var formNo = agent.Eles[document.getElementById("XLabel3").getAttribute("xform_xele_index")].getValue();
                    var taskID = agent.Eles[document.getElementById("TaskID").getAttribute("xform_xele_index")].getValue();
                    //获取明细电子发票附件
                    var tableid = "tablenew";
                    var tableObj = document.getElementById(tableid);
                    var EInvoiceAttachment = "";
                    for (var i = 2; i < tableObj.rows.length - 1; i++) {
                        var str = agent.Eles[tableObj.rows[i].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
                        if (str != "") {
                            if (EInvoiceAttachment == "")
                                EInvoiceAttachment = str;
                            else
                                EInvoiceAttachment = EInvoiceAttachment + ";" + str;
                        }
                    }
                    if (EInvoiceAttachment != "")
                        UpEInvoiceAttachment(EInvoiceAttachment, formNo, taskID);
                }

            }


        });

        //上传电子发票附件
        function UpEInvoiceAttachment(EInvoiceAttachment, formNo, taskID) {
            if (EInvoiceAttachment != null && EInvoiceAttachment != "") {
                YZSoft.Ajax.request({
                    url: YZSoft.$url('Oimec/ApiServices/AliOssAPIHandler.ashx'),
                    method: 'POST',
                    params: {
                        method: 'UpAliOss',
                        formNo: formNo,
                        taskID: taskID,
                        fileid: EInvoiceAttachment,
                        type: "EInvoice"
                    },
                    success: function (action) {
                        //var result = action.result;
                        //alert(action.result.Value);

                    }
                });

            }
        }

        //单选获取选中的值
        function checkedVaule(name) {
            var obj = document.getElementsByName(name);
            for (var i = 0; i < obj.length; i++) {
                if (obj[i].checked) {
                    return obj[i].value;
                }
            }
        };

    </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 width="1000" class="biaoti">
                        <asp:Label id="XLabel1" runat="server" valuetodisplaytext value text="交通费报销单"></asp:Label>
                        <aspxform:XTextBox id="XTextBox26" runat="server" Express="DF_ER_HeadTable.SerialNum" Width="11px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="400" class="formno">
                        <asp:Label id="XLabel2" runat="server" valuetodisplaytext value text="表单号："></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" ValueToDisplayText Value XDataBind="DF_ER_HeadTable.SerialNum" BackColor="#8AB3DF" Text="--系统自动生成--"></aspxform:XLabel>
                        <aspxform:XTextBox id="TaskID" runat="server" Width="100px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" XDataBind="DF_ER_HeadTable.TaskID"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <div align="right">
            <aspxform:XButton id="XButton2" runat="server" Width="60px" Text="打 印" OnClientClick="aa()"></aspxform:XButton>
        </div>
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" valuetodisplaytext value text="个人信息"></asp:Label></td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" valuetodisplaytext value text="姓名"></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" style="DISPLAY: none" runat="server" Width="10px" BorderColor="#DCDCDC" BorderWidth="1" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" XDataBind="DF_ER_HeadTable.EstablishUserAccount" DataMap="Name->DF_ER_HeadTable.EstablishUser;Department->DF_ER_HeadTable.EstablishDpt;Region->DF_ER_HeadTable.Region;MobilePhone->DF_ER_HeadTable.Mobile;AttendanceKakaNO->DF_ER_HeadTable.BPMAccount;BUName->DF_ER_HeadTable.BU"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox2" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ValueToDisplayText XDataBind="DF_ER_HeadTable.EstablishUser" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" valuetodisplaytext value text="部门"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" ValueToDisplayText XDataBind="DF_ER_HeadTable.EstablishDpt" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="23" class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel24" runat="server" valuetodisplaytext value text="BU"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox18" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.BU" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel25" runat="server" valuetodisplaytext value text="地区"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.Region" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel29" runat="server" valuetodisplaytext value text="BPM账号"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox19" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.BPMAccount" BackColor="#E6F1F8"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel30" runat="server" valuetodisplaytext value text="联系电话"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox20" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.Mobile" BackColor="#E6F1F8" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" height="144" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td class="title1" colspan="6">
                        <asp:Label id="XLabel23" runat="server" valuetodisplaytext value text="报销信息"></asp:Label>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="130px" HiddenExpress="Global.StepName!='开始'" Text="选择成本中心" DataMap="CostCenter->DF_ER_HeadTable.CostCenterAccount;CostCenterName->DF_ER_HeadTable.CostCenter;CostCenterCharge->DF_ER_HeadTable.CostCenterCharge;ChargeID->DF_ER_HeadTable.ChargeID;CostCenterCompanyName->DF_ER_HeadTable.Company;erArea->DF_ER_HeadTable.erArea;cpyCode->DF_ER_HeadTable.cpyCode;DepositAccount->DF_ER_HeadTable.DepositAccount" UseSubmitBehavior="False" XDataSource='TableName:DF_ER_CostCenter;Filter:DeleteMark->"0"' PopupWndHeight="-1" PopupWndWidth="-1" DisplayColumns="CostCenter:成本中心编号;CostCenterName:成本中心名称" Height="25px"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="XTextBox27" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" XDataBind="DF_ER_HeadTable.DepositAccount"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel28" runat="server" valuetodisplaytext value text="成本中心"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.CostCenterAccount" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" valuetodisplaytext value text="成本中心名称"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="XTextBox4" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.CostCenter" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel10" runat="server" valuetodisplaytext value text="成本中心负责人"></asp:Label>
                        <aspxform:XTextBox id="XTextBox17" runat="server" Width="26px" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText Value XDataBind="DF_ER_HeadTable.ChargeID" HiddenInput="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox5" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.CostCenterCharge" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox28" runat="server" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" XDataBind="OwnerAccount"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" Width="20px" HiddenExpress="1" DataMap="OwnerAccount->OwnerAccount" XDataSource="TableName:V_DF_ER_HigherApproval;Filter:SerialNum->DF_ER_HeadTable.SerialNum,NodeName->NodeName;BufferType:RuntimeUpdate" ValueColumn="OwnerAccount" DisplayColumn="OwnerAccount">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox29" runat="server" Express="Global.StepName" Width="20px" BorderColor="#DCDCDC" BorderWidth="1" HiddenExpress="1" XDataBind="NodeName"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel11" runat="server" valuetodisplaytext value text="成本中心公司"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="XTextBox6" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.Company" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td height="18" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel21" runat="server" valuetodisplaytext value text="可用费用"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox22" style="WIDTH: 70%" runat="server" Express="javascript('GETBALANCE',DF_ER_HeadTable.cpyCode,DF_ER_HeadTable.CostCenterAccount,DF_ER_HeadTable.Subject,DF_ER_HeadTable.erArea)" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.AvailableCost" Enabled="False" DisableExpress="1" HiddenInput="False" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel22" runat="server" valuetodisplaytext value text="业务范围"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="XTextBox24" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.erArea" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox25" runat="server" Width="51px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value XDataBind="DF_ER_HeadTable.cpyCode" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel31" runat="server" valuetodisplaytext value text="会计凭证号"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox23" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.voucherCode" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel32" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label>&nbsp;发票张数</td>
                    <td class="ts1" style="WIDTH: 10%">
                        <aspxform:XTextBox id="XTextBox36" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.invoiceCount" ValidationGroup="a"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <%--<asp:Label ID="XLabel42" runat="server" Text="*" valuetodisplaytext value ForeColor="Red"></asp:Label>&nbsp;其中电子发票张数</td>--%></td>
                    <td class="ts1" style="WIDTH: 15%">
                        <%--<aspxform:XTextBox ID="XTextBox40" Style="width: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.EInvoiceCount" ValidationGroup="a"></aspxform:XTextBox>--%></td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel13" runat="server" valuetodisplaytext value text="币种"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox8" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.Currency" BackColor="#E6F1F8" Enabled="False">人民币</aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel12" runat="server" valuetodisplaytext value text="费用科目"></asp:Label></td>
                    <td class="ts1" style="WIDTH: 80%" colspan="3">
                        <aspxform:XTextBox id="XTextBox7" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.Subject" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" Width="25px" HiddenExpress="1" DataMap="subName->DF_ER_HeadTable.Subject" XDataSource="ProcedureName:DF_Proc_GetSubject;Filter:@type->type" ValueColumn="subName" DisplayColumn="subName">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox21" runat="server" Width="26px" BorderColor="Gainsboro" BorderWidth="1px" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText Value XDataBind="type" HiddenInput="False">交通费</aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel15" runat="server" valuetodisplaytext value text="报销合计"></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox9" style="WIDTH: 70%" runat="server" Express="sum(amount)" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.ReimbursementTotal" BackColor="#E6F1F8" TextAlign="Right" Format="type:currency;.2" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel16" runat="server" valuetodisplaytext value text="大写"></asp:Label></td>
                    <td class="ts1" colspan="3">
                        <aspxform:XTextBox id="XTextBox10" runat="server" Express="javascript('atoc',DF_ER_HeadTable.ReimbursementTotal)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.ReimbursementTotalCapital" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel17" runat="server" valuetodisplaytext value text="领款人"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList2" runat="server" HiddenExpress="1" DataMap="Department->DF_ER_HeadTable.PayeeDept" XDataSource="TableName:V_DF_HR_BasicInfo;Filter:AttendanceKakaNO->DF_ER_HeadTable.Payee" ValueColumn="Name" DisplayColumn="Name">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox13" style="WIDTH: 70%" runat="server" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" DisableBehavior="ReadOnly" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:Name" Value XDataBind="DF_ER_HeadTable.Payee" BackColor="#E6F1F8" Enabled="False" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="21px" DataMap="Department->DF_ER_HeadTable.PayeeDept;AttendanceKakaNO->DF_ER_HeadTable.Payee" XDataSource="TableName:V_DF_HR_BasicInfo" DisplayColumns="Name:姓名,;Department:部门,"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel18" runat="server" valuetodisplaytext value text="领款人部门"></asp:Label></td>
                    <td class="ts1" colspan="3">
                        <aspxform:XTextBox id="XTextBox14" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.PayeeDept" BackColor="#E6F1F8" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel19" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel8" runat="server" valuetodisplaytext value text="是否冲销借款"></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XRadioButtonList id="XRadioButtonList1" runat="server" XDataBind="DF_ER_HeadTable.IsLoan" RepeatDirection="Horizontal">
                            <asp:ListItem>是</asp:ListItem>
                            <asp:ListItem Selected="True">否</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel20" runat="server" valuetodisplaytext value text="借款金额"></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList1" style="DISPLAY: none" runat="server" DataMap="Arrears->DF_ER_HeadTable.LoanAmount" XDataSource="ProcedureName:DF_PROC_Arrears;Filter:@bpmAccount->DF_ER_HeadTable.Payee" ValueColumn="Arrears" DisplayColumn="Arrears">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="tsbottomtext" style="WIDTH: 35%" colspan="3">
                        <aspxform:XTextBox id="XTextBox16" style="WIDTH: 70%" runat="server" BorderColor="#DCDCDC" BorderWidth="1" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.LoanAmount" Enabled="False" DisableExpress='Global.StepName!="开始"' TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label11" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label>&nbsp;发票介质</td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="InvoiceType" runat="server" XDataBind="DF_ER_HeadTable.InvoiceType" DisableExpress='Global.StepName!="开始"' RepeatDirection="Horizontal">
                            <asp:ListItem>全部电子发票</asp:ListItem>
                            <asp:ListItem>部分电子发票</asp:ListItem>
                            <asp:ListItem>全部纸质发票</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext" colspan="3">
                    </td>
                </tr>
            </tbody>
        </table>
        <aspxform:XRequiredFieldValidator id="成本中心公司信息不完整" runat="server" ValidationGroup="a" ControlToValidate="XTextBox6" ErrorMessage="成本中心公司信息不完整" Display="None"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心负责人信息不完整" runat="server" ValidationGroup="a" ControlToValidate="XTextBox5" ErrorMessage="成本中心负责人信息不完整" Display="None"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心负责人帐号不完整" runat="server" ValidationGroup="a" ControlToValidate="XTextBox17" ErrorMessage="成本中心负责人帐号不完整" Display="None"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心非空" runat="server" ValidationGroup="a" ControlToValidate="XTextBox3" ErrorMessage="请选择成本中心" Display="None"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写发票张数" runat="server" ValidationGroup="a" ControlToValidate="XTextBox36" ErrorMessage="请填写发票张数" Display="None"></aspxform:XRequiredFieldValidator>
        <%--<aspxform:XRequiredFieldValidator ID="XRequiredFieldValidator1" runat="server" ValidationGroup="a" ControlToValidate="XTextBox40" ErrorMessage="请填写电子发票张数" Display="None">请填写电子发票张数</aspxform:XRequiredFieldValidator>--%>
        <aspxform:XCompareValidator id="报销合计大于可用费用不能提交" runat="server" ValidationGroup="a" ControlToValidate="XTextBox9" ErrorMessage="报销合计大于可用费用不能提交" Display="None" Operator="LessThanEqual" ControlToCompare="XTextBox22" Type="Double"></aspxform:XCompareValidator>
        <aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValidationGroup="b" ControlToValidate="XTextBox9" ErrorMessage="报销合计大于可用费用不能提交" Operator="LessThanEqual" ControlToCompare="XTextBox22" Type="Double"></aspxform:XCompareValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="a" ControlToValidate="InvoiceType" ErrorMessage="请选择发票介质" Display="None">请选择发票种类</aspxform:XRequiredFieldValidator>
        <br />
        <%-- <div xclass="Oimec.Dialogs.ContactAddButton">
            <aspxform:XRadioButtonList id="xrbl_1" runat="server" Width="200px" RepeatDirection="Horizontal">
                <asp:ListItem>是</asp:ListItem>
                <asp:ListItem>否</asp:ListItem>
            </aspxform:XRadioButtonList>
        </div>
        <br />--%> 
        <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="3" menudock="Left" dynamicarea="2,1">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="7">
                        <asp:Label id="Label1" runat="server" valuetodisplaytext value text="票种明细"></asp:Label>&nbsp;<aspxform:XTextBox id="XTextBox33" runat="server" Width="21px" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText HiddenInput="True" Format="type:currency;.2">0</aspxform:XTextBox>
                        <asp:Label id="Label6" runat="server" text="(电子发票和增值税专用发票需要填写发票号，其他发票无需填写发票号。)" forecolor="Blue"></asp:Label></td>
                </tr>
                <tr>
                    <td width="56" height="18" class="tds">
                        <p align="center">
                            <asp:Label id="Label2" runat="server" text="序号"></asp:Label>
                        </p>
                    </td>
                    <td width="119" class="tds">
                        <p align="center">
                            &nbsp;<asp:Label id="XLabel48" runat="server" valuetodisplaytext value text="票种"></asp:Label> 
                        </p>
                    </td>
                    <td width="150" align="center" class="tds">
                        <asp:Label id="Label3" runat="server" valuetodisplaytext value text="发票类型"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label5" runat="server" valuetodisplaytext value text="发票号"></asp:Label></td>
                    <td align="center" class="tds">
                        <asp:Label id="Label10" runat="server" valuetodisplaytext value text="电子发票附件"></asp:Label></td>
                    <td width="113" class="tds">
                        <p align="center">
                            <asp:Label id="Label7" runat="server" valuetodisplaytext value text="*" forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel51" runat="server" valuetodisplaytext value text="票面金额(元)"></asp:Label> 
                        </p>
                    </td>
                    <td width="113" align="center" class="tds">
                        <asp:Label id="Label4" runat="server" valuetodisplaytext value text="税额(元)"></asp:Label></td>
                </tr>
                <tr>
                    <td class="xjtds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_TicketDetails.LineNumber" BackColor="Transparent" Height="30px" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XDropDownList id="XDropDownList11" runat="server" Width="100%" XDataBind="DF_ER_TicketDetails.TicketType" DisableExpress='Global.StepName!="开始" &amp;&amp; Global.StepName!="北京费用会计岗审批" &amp;&amp; Global.StepName!="上海费用会计岗审批" &amp;&amp; Global.StepName!="深圳费用会计岗审批" &amp;&amp; Global.StepName!="颐合费用会计岗审批"  &amp;&amp; Global.StepName!="苏州费用会计岗审批"' XDataSource='TableName:DF_DataSourceList;Filter:Type->"交通票"' Height="30px" ValueColumn="Name" DisplayColumn="Name"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox31" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_TicketDetails.TaxRate" HiddenInput="True"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" Width="100%" XDataBind="DF_ER_TicketDetails.InvoiceType" DataMap="Tax->DF_ER_TicketDetails.TaxRate" DisableExpress='Global.StepName!="开始" &amp;&amp; Global.StepName!="北京费用会计岗审批" &amp;&amp; Global.StepName!="上海费用会计岗审批" &amp;&amp; Global.StepName!="深圳费用会计岗审批" &amp;&amp; Global.StepName!="颐合费用会计岗审批"  &amp;&amp; Global.StepName!="苏州费用会计岗审批"' XDataSource='TableName:DF_FI_TicketTax;Filter:Type->"交通票",Ticket->DF_ER_TicketDetails.TicketType' Height="30px" ValueColumn="InvoiceType" DisplayColumn="InvoiceType"></aspxform:XDropDownList>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox30" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" MaxLength="10" XDataBind="DF_ER_TicketDetails.InvoiceNum" DisableExpress="javascript('DisInvoiceNo',DF_ER_TicketDetails.TicketType,DF_ER_TicketDetails.InvoiceType,Global.StepName)" Height="30px" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XAttachments id="EInvoiceAttachment" runat="server" Express='if(DF_ER_TicketDetails.InvoiceNum=="","",DF_ER_TicketDetails.EInvoiceAttachment)' Width="150px" XDataBind="DF_ER_TicketDetails.EInvoiceAttachment" BackColor="#D4E4FE" DisableExpress='DF_ER_TicketDetails.InvoiceType!="电子发票" || Global.StepName!="开始"' FileTypes="*.jpg;*.png;*.pdf;*.ofd" FileTypesDescription="Word,Excel" MaximumFileSize></aspxform:XAttachments>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox32" runat="server" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_TicketDetails.Amount" DisableExpress='Global.StepName!="开始"' Height="30px" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox51" runat="server" Express="javascript('GetTaxAmount',DF_ER_TicketDetails.LineNumber,DF_ER_TicketDetails.TicketType,DF_ER_TicketDetails.InvoiceType,DF_ER_TicketDetails.Amount,DF_ER_TicketDetails.TaxRate,DF_ER_HeadTable.Company)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_TicketDetails.TaxAmount" DisableExpress="javascript('TaxAmount',DF_ER_TicketDetails.TicketType,DF_ER_TicketDetails.InvoiceType)" Height="30px" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1">
                        <div align="right"><asp:Label id="XLabel54" runat="server" valuetodisplaytext value text="小计"></asp:Label>
                        </div>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox34" runat="server" Express="sum(DF_ER_TicketDetails.Amount)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="amount" BackColor="#E6F1F8" Height="30px" TextAlign="Right" Format="type:currency;.2" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox37" runat="server" Express="sum(DF_ER_TicketDetails.TaxAmount)" Width="100%" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="DF_ER_HeadTable.TaxAmount" BackColor="#E6F1F8" Height="30px" TextAlign="Right" Format="type:currency;.2" ReadOnly="True"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <div><asp:Label id="Label8" runat="server" text="“专业发票”为乘坐交通工具的有效票据。" font-size="Larger" font-bold="False"></asp:Label>
        </div>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress='DF_ER_TicketDetails.InvoiceType!="电子发票" ' ValidationGroup="a" ControlToValidate="XTextBox30" ErrorMessage="请填写发票号" Display="None" ForeColor="Red">请填写发票号</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ValidationGroup="a" ControlToValidate="XTextBox32" ErrorMessage="请选择票面金额" Display="None" ForeColor="Red">请选择票面金额</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <br />
        <br />
        <%--   <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="3" dynamicarea="2,1" menudock="Left">
            <tbody>
                <tr>
                    <td height="17" class="title1" colspan="3">
                        <asp:Label id="XLabel43" runat="server" value valuetodisplaytext text="电子发票明细"></asp:Label><asp:Label id="XLabel33" runat="server" value valuetodisplaytext text="（此处添加电子发票明细）" forecolor="Red"></asp:Label></td>
                </tr>
                <tr>
                    <td width="50" height="24" align="center" class="tds" style="TEXT-ALIGN: center">
                        <p align="center">
                            <asp:Label id="XLabel44" runat="server" text="序号"></asp:Label>
                        </p>
                    </td>
                    <td width="150" align="center" class="tds" style="TEXT-ALIGN: center">
                        <div align="center"><asp:Label id="XLabel45" runat="server" value valuetodisplaytext text="电子发票号"></asp:Label>
                        </div>
                    </td>
                    <td width="100" align="center" class="tds" style="TEXT-ALIGN: center">
                        <div align="center"><asp:Label id="XLabel46" runat="server" value valuetodisplaytext text="金额"></asp:Label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="25" class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XGridLineNo id="XGridLineNo2" runat="server" BorderWidth="1" BorderColor="#DCDCDC" Width="100%" BackColor="Transparent" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox41" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_EInvoiceItems.EInvoiceNum" width="100%" TextAlign="Center"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox42" runat="server" BorderWidth="1px" BorderColor="#DCDCDC" Width="100%" XDataBind="DF_ER_EInvoiceItems.Amount" TextAlign="Right" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />--%> 
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td class="ts">
                        <asp:Label id="XLabel27" runat="server" valuetodisplaytext value text="事由"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox15" runat="server" Width="100%" BorderColor="Gainsboro" BorderWidth="1px" Max="0" Min="0" ValueToDisplayText Value XDataBind="DF_ER_HeadTable.Remark" Height="60px" HiddenInput="False" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" class="table" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="title1">
                    <td class="ts">
                        <asp:Label id="XLabel26" runat="server" valuetodisplaytext value text="附件"></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments1" runat="server" Width="100%" XDataBind="DF_ER_HeadTable.Attachment" FileTypes="*.doc;*.docx;*.xls;*.xlsx;*.pdf" FileTypesDescription="Word,Excel"></aspxform:XAttachments>
                        &nbsp;&nbsp;&nbsp; 
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XButton id="XButton1" runat="server" Width="120px" BorderColor="White" Text="报销单填写说明" OnClientClick="image1()" Height="30px" ForeColor="#000000"></aspxform:XButton>
        <br />
        <table width="1200" align="center">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="100%" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
