<%@ 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 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("XTextBox30").getAttribute("xform_xele_index")];
            var temp = a.getValue();
            window.open("PrintTravl.aspx?serialNum=" + temp);
        }

        function image() {
            window.open("../../../../Oimec/Script/Image/baoxiaodan.jpg");
        }

        function image1() {
            window.open("../../../../Oimec/Script/Image/差旅费-说明.png");
        }

        //获取可用费用
        function GETBALANCE(cpyCode, CostCenterAccount, Subject, erArea) {

            if (CostCenterAccount != "") {
                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;

                        agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].setValue(action.result.Value);
                        //document.getElementById("XTextBox26").value = items[0].BALANCE;
                    }
                });
            }
        }

        //行程明细行项目票种选择"住宿票"时做提示
        function returnmsg(Vehicle) {
            var stepName = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();
            if (Vehicle == "住宿票" && stepName == "开始") {
                alert("增值税专用发票需要填写税额！");
            }
        }

        Ext.onReady(function () {

            var stepName = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();
            //重新获取可用费用
            if (stepName == "提交人直接主管审批" || stepName == "成本中心负责人审批") {
                //成本中心公司、成本中心账号、费用科目、业务范围
                var cpyCode = agent.Eles[document.getElementById("XTextBox40").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("XTextBox38").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("XTextBox30").getAttribute("xform_xele_index")].setValue(action.result.Value);
                    }
                });
            }

            var a17 = agent.Eles[document.getElementById("XTextBox17").getAttribute("xform_xele_index")].getValue();
            var a43 = agent.Eles[document.getElementById("XTextBox43").getAttribute("xform_xele_index")].getValue();
            var a42 = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();

            //if (document.getElementById('XTextBox17').value != userToken.Account) {
            if (a17 != userToken.Account) {

                document.getElementById('XTextBox26').style.visibility = "hidden";
            }
            //if (userToken.Account == document.getElementById('XTextBox43').value && document.getElementById('XTextBox42').value == "提交人直接主管审批") {
            if (userToken.Account == a43 && a42 == "提交人直接主管审批") {

                document.getElementById('XTextBox26').style.visibility = "visible";
            }

        });
        agent.on('beforeSubmit', function (post, acname) {
            //可用费用、报销合计
            var AvailableCost = agent.Eles[document.getElementById("XTextBox26").getAttribute("xform_xele_index")].getValue();
            var ReimbursementTotal = agent.Eles[document.getElementById("XTextBox9").getAttribute("xform_xele_index")].getValue();

            if (Number(AvailableCost) < Number(ReimbursementTotal)) {
                Ext.Msg.alert("提示：", "报销合计大于可用费用,不能提交!");
                return false;
            }


            var stepName = agent.Eles[document.getElementById("XTextBox42").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[7].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;
                }
            }
        };

        //计算税额：票面金额、公司代码 行项目号
        function GetTaxAmount(IntercityTransportationFee, Company, LineNumber) {
            var stepName = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();
            var tableObj = document.getElementById("tablenew");
            var taskid = agent.Eles[document.getElementById("Xtxt_TaskID").getAttribute("xform_xele_index")].getValue();
            var Vehicle = agent.Eles[tableObj.rows[LineNumber + 1].cells[4].children[0].getAttribute("xform_xele_index")].getValue();
            var InvoiceType = agent.Eles[tableObj.rows[LineNumber + 1].cells[5].children[0].getAttribute("xform_xele_index")].getValue();
            var TaxRate = agent.Eles[tableObj.rows[LineNumber + 1].cells[4].children[1].getAttribute("xform_xele_index")].getValue();

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

            //发票号文本框颜色控制：发票类型为电子发票或者增值税专用发票必填，否则为灰色（发票类型为其他发票 可以填写不必填）
            if (InvoiceType != "电子发票" && InvoiceType != "增值税专用发票" && (Vehicle != "火车票" || InvoiceType != "其他发票") && (Vehicle != "客车票" || InvoiceType != "其他发票") && (Vehicle != "船票" || InvoiceType != "其他发票")) {
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
                agent.Eles[tableObj.rows[LineNumber + 1].cells[6].children[0].getAttribute("xform_xele_index")].setValue("");
            }
            else {
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }

            //同屋文本框控制:票种为住宿票时 必填，否则为灰色
            if (Vehicle != "住宿票") {
                tableObj.rows[LineNumber + 1].cells[10].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
            }
            else {
                tableObj.rows[LineNumber + 1].cells[10].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }

            //其他费用说明文本框控制：票种为其他费用时必填，否则为灰色
            if (Vehicle != "其他费用") {
                tableObj.rows[LineNumber + 1].cells[11].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
            }
            else {
                tableObj.rows[LineNumber + 1].cells[11].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }

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


            //自动计算税额规则
            var tableObj = document.getElementById("tablenew");
            var amount = 0;
            if (stepName == "开始" && taskid == "") {

                if (Company == "2000上海颐合贸易有限公司") {
                    amount = 0;
                }
                else {
                    if (TaxRate != 0) {

                        if (Vehicle == "国内飞机票" && InvoiceType == "行程单" && IntercityTransportationFee != 0) {
                            amount = (IntercityTransportationFee - 50) / (1 + TaxRate / 100) * (TaxRate / 100);
                        } else {
                            amount = IntercityTransportationFee / (1 + TaxRate / 100) * (TaxRate / 100);
                        }
                    }
                    else {
                        //税额不为空则不计算
                        var amount1 = agent.Eles[tableObj.rows[LineNumber + 1].cells[9].children[0].getAttribute("xform_xele_index")].getValue();
                        if (amount1 != 0) {
                            amount = amount1;
                        }
                        //amount = 0;
                    }
                }


                //alert(amount);
                agent.Eles[tableObj.rows[LineNumber + 1].cells[9].children[0].getAttribute("xform_xele_index")].setValue(amount);
                XFormOnChange(agent.Eles[tableObj.rows[LineNumber + 1].cells[9].children[0].getAttribute("xform_xele_index")]);
            }

        }

        //计算税额：票种、发票类型 变化时计算税额(税率为空时，税额为0)
        function GetTaxAmount1(Vehicle, InvoiceType, TaxRate, LineNumber) {

            var amount = 0;
            var tableObj = document.getElementById("tablenew");
            var stepName = agent.Eles[document.getElementById("XTextBox42").getAttribute("xform_xele_index")].getValue();
            var Company = agent.Eles[document.getElementById("XTextBox6").getAttribute("xform_xele_index")].getValue();
            //票面金额
            var IntercityTransportationFee = agent.Eles[tableObj.rows[LineNumber + 1].cells[8].children[0].getAttribute("xform_xele_index")].getValue();
            var taskid = agent.Eles[document.getElementById("Xtxt_TaskID").getAttribute("xform_xele_index")].getValue();

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

            //发票号文本框颜色控制：发票类型为电子发票或者增值税专用发票必填，否则为灰色（发票类型为其他发票 可以填写不必填）
            if (InvoiceType != "电子发票" && InvoiceType != "增值税专用发票" && (Vehicle != "火车票" || InvoiceType != "其他发票") && (Vehicle != "客车票" || InvoiceType != "其他发票") && (Vehicle != "船票" || InvoiceType != "其他发票")) {
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
                agent.Eles[tableObj.rows[LineNumber + 1].cells[6].children[0].getAttribute("xform_xele_index")].setValue("");
            }
            else {
                tableObj.rows[LineNumber + 1].cells[6].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }

            //同屋文本框控制:票种为住宿票时 必填，否则为灰色
            if (Vehicle != "住宿票") {
                tableObj.rows[LineNumber + 1].cells[10].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
            }
            else {
                tableObj.rows[LineNumber + 1].cells[10].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }

            //其他费用说明文本框控制：票种为其他费用时必填，否则为灰色
            if (Vehicle != "其他费用") {
                tableObj.rows[LineNumber + 1].cells[11].getElementsByTagName("input")[0].style.backgroundColor = "#E6F1F8";
            }
            else {
                tableObj.rows[LineNumber + 1].cells[11].getElementsByTagName("input")[0].style.backgroundColor = "white";
            }


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


            if (stepName == "开始" && taskid == "") {

                if (Company == "2000上海颐合贸易有限公司") {
                    amount = 0;
                }
                else {
                    if (TaxRate != 0) {

                        if (Vehicle == "国内飞机票" && InvoiceType == "行程单" && IntercityTransportationFee != 0) {
                            amount = (IntercityTransportationFee - 50) / (1 + TaxRate / 100) * (TaxRate / 100);
                        } else {
                            amount = IntercityTransportationFee / (1 + TaxRate / 100) * (TaxRate / 100);
                        }
                    }
                    else {
                        amount = 0;
                    }
                }

                agent.Eles[tableObj.rows[LineNumber + 1].cells[9].children[0].getAttribute("xform_xele_index")].setValue(amount);
                XFormOnChange(agent.Eles[tableObj.rows[LineNumber + 1].cells[9].children[0].getAttribute("xform_xele_index")]);

            }

        }

    </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" text="差旅费报销单" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox30" runat="server" Express="DF_ER_HeadTable.SerialNum" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td width="400" class="formno">
                        <asp:Label id="XLabel2" runat="server" text="表单号：" value valuetodisplaytext></asp:Label>
                        <aspxform:XLabel id="XLabel3" runat="server" Text="--系统自动生成--" BackColor="#8AB3DF" XDataBind="DF_ER_HeadTable.SerialNum" Value ValueToDisplayText></aspxform:XLabel>
                        <aspxform:XTextBox id="TaskID" runat="server" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="DF_ER_HeadTable.TaskID"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1200" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr align="right">
                    <td>
                        <aspxform:XButton id="XButton2" runat="server" Text="打 印" Width="60px" Height="20px" OnClientClick="aa()"></aspxform:XButton>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="1200" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel4" runat="server" text="个人信息" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="Xtxt_TaskID" runat="server" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="DF_ER_HeadTable.TaskID" ValueToDisplayText></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel5" runat="server" text="姓名" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox12" runat="server" Width="10px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="DF_ER_HeadTable.EstablishUserAccount" ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:AttendanceKakaNO" 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" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.EstablishUser" ValueToDisplayText Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel6" runat="server" text="部门" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox1" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.EstablishDpt" ValueToDisplayText Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel24" runat="server" text="BU" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox18" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.BU" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel25" runat="server" text="地区" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox11" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Region" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel29" runat="server" text="BPM账号" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox19" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.BPMAccount" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel30" runat="server" text="联系电话" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox20" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Mobile" 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="4">
                        <asp:Label id="XLabel23" runat="server" text="报销信息" value valuetodisplaytext></asp:Label>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Text="选择成本中心" Width="130px" HiddenExpress="Global.StepName!='开始'" Height="25px" 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" DisplayColumns="CostCenter:成本中心编号;CostCenterName:成本中心名称" PopupWndWidth="-1" PopupWndHeight="-1" XDataSource='TableName:DF_ER_CostCenter;Filter:DeleteMark->"0"' UseSubmitBehavior="False"></aspxform:XDataBrowserButton>
                        <aspxform:XTextBox id="XTextBox22" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="DF_ER_HeadTable.DepositAccount"></aspxform:XTextBox>
                        &nbsp; 
                        <aspxform:XDropDownList id="XDropDownList10" runat="server" HiddenExpress="1" XDataBind="DF_ER_HeadTable.Scope" XDataSource="TableName:DF_FI_ScopeInfo;Filter:Account->DF_ER_HeadTable.EstablishUserAccount" DisplayColumn="Scope" ValueColumn="Scope"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel7" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel8" runat="server" text="成本中心" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox3" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.CostCenterAccount" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel9" runat="server" text="成本中心名称" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox4" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.CostCenter" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel10" runat="server" text="成本中心负责人" value valuetodisplaytext></asp:Label>
                        <aspxform:XTextBox id="XTextBox17" runat="server" Width="16px" BorderWidth="1px" BorderColor="Gainsboro" HiddenExpress="1" Max="0" Min="0" XDataBind="DF_ER_HeadTable.ChargeID" Value ValueToDisplayText HiddenInput="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox5" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.CostCenterCharge" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox42" runat="server" Express="Global.StepName" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="NodeName"></aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList8" 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" DisplayColumn="OwnerAccount" ValueColumn="OwnerAccount">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox43" runat="server" Width="20px" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" XDataBind="OwnerAccount"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel11" runat="server" text="成本中心公司" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox6" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Company" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel42" runat="server" text="可用费用" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox26" style="WIDTH: 70%" runat="server" Express="javascript('GETBALANCE',DF_ER_HeadTable.cpyCode,DF_ER_HeadTable.CostCenterAccount,DF_ER_HeadTable.Subject,DF_ER_HeadTable.erArea)" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.AvailableCost" Enabled="False" DisableExpress="1"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel55" runat="server" text="业务范围" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox38" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.erArea" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox40" runat="server" Width="51px" BorderWidth="1px" BorderColor="Gainsboro" HiddenExpress="1" Max="0" Min="0" XDataBind="DF_ER_HeadTable.cpyCode" Value ValueToDisplayText HiddenInput="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel46" runat="server" text="会计凭证号" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox39" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.voucherCode" Enabled="False"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel62" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;发票张数</td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox41" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.invoiceCount" ValidationGroup="a"></aspxform:XTextBox>
                    </td>
                    <%--   <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel57" runat="server" value valuetodisplaytext text="*" forecolor="Red"></asp:Label>&nbsp;其中电子发票张数</td>
                    <td class="ts1" style="WIDTH: 15%">
                        <aspxform:XTextBox id="XTextBox46" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.EInvoiceCount" ValidationGroup="a"></aspxform:XTextBox>
                    </td>--%>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel13" runat="server" text="币种" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox8" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Currency" Enabled="False">人民币</aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel36" runat="server" text="费用科目" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox7" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Subject" Enabled="False"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox24" runat="server" Width="26px" BorderWidth="1px" BorderColor="Gainsboro" HiddenExpress="1" Max="0" Min="0" XDataBind="type" Value ValueToDisplayText HiddenInput="False">差旅费</aspxform:XTextBox>
                        <aspxform:XDropDownList id="XDropDownList7" runat="server" Width="25px" HiddenExpress="1" DataMap="subName->DF_ER_HeadTable.Subject" XDataSource="ProcedureName:DF_Proc_GetSubject;Filter:@type->type" DisplayColumn="subName" ValueColumn="subName">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="17" class="ts">
                        <asp:Label id="Label8" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel15" runat="server" text="报销合计" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox9" style="WIDTH: 70%" runat="server" Express="DF_ER_Travel.IntercityTransportationFee+ DF_ER_Travel.GrantAmount" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.ReimbursementTotal" Enabled="False" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel16" runat="server" text="大写" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox10" runat="server" Express="javascript('atoc',DF_ER_HeadTable.ReimbursementTotal)" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.ReimbursementTotalCapital" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel17" runat="server" text="领款人" value valuetodisplaytext></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" DisplayColumn="Name" ValueColumn="Name">
                            <asp:ListItem>未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox13" style="WIDTH: 70%" runat="server" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.Payee" Value ValueToDisplayText="TableName:V_DF_HR_BasicInfo;FilterColumn:AttendanceKakaNO;DisplayColumn:Name" 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" DisplayColumns="Name:姓名,;Department:部门," XDataSource="TableName:V_DF_HR_BasicInfo"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel18" runat="server" text="领款人部门" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox14" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.PayeeDept" Enabled="False"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="XLabel19" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel12" runat="server" text="是否冲销借款" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <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">
                        <asp:Label id="XLabel20" runat="server" text="借款金额" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext">
                        <aspxform:XTextBox id="XTextBox16" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" XDataBind="DF_ER_HeadTable.LoanAmount" Enabled="False" DisableExpress='Global.StepName!="开始"' Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel">
                        <asp:Label id="Label11" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;发票介质</td>
                    <td class="tsbottomtext">
                        <aspxform:XRadioButtonList id="InvoiceType" runat="server" XDataBind="DF_ER_HeadTable.InvoiceType" RepeatDirection="Horizontal">
                            <asp:ListItem>全部电子发票</asp:ListItem>
                            <asp:ListItem>部分电子发票</asp:ListItem>
                            <asp:ListItem>全部纸质发票</asp:ListItem>
                        </aspxform:XRadioButtonList>
                    </td>
                    <td class="tsbottomlabel">
                    </td>
                    <td class="tsbottomtext">
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XRequiredFieldValidator id="成本中心公司信息不完整" runat="server" ValidationGroup="a" Display="None" ErrorMessage="成本中心公司信息不完整" ControlToValidate="XTextBox6"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心负责人信息不完整" runat="server" ValidationGroup="a" Display="None" ErrorMessage="成本中心负责人信息不完整" ControlToValidate="XTextBox5"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心负责人帐号不完整" runat="server" ValidationGroup="a" Display="None" ErrorMessage="成本中心负责人帐号不完整" ControlToValidate="XTextBox17"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="成本中心非空" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请选择成本中心" ControlToValidate="XTextBox3"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写发票张数" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请填写发票张数" ControlToValidate="XTextBox41"></aspxform:XRequiredFieldValidator>
        <%--<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" Width="112px" ValidationGroup="a" Display="None" ErrorMessage="请填写电子发票张数" ControlToValidate="XTextBox46">请填写电子发票张数</aspxform:XRequiredFieldValidator>--%>
        <aspxform:XRequiredFieldValidator id="请选择出差申请单" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请选择出差申请单" ControlToValidate="XTextBox23"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择出发日期" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请选择出发日期" ControlToValidate="XDateTimePicker4"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请选择返回日期" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请选择返回日期" ControlToValidate="XDateTimePicker3"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写同行人数" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请填写同行人数" ControlToValidate="XTextBox31"></aspxform:XRequiredFieldValidator>
        <aspxform:XRequiredFieldValidator id="请填写报销合计" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请填写报销合计" ControlToValidate="XTextBox9"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator1" runat="server" ValidationGroup="a" Display="None" ErrorMessage="请选择发票介质" ControlToValidate="InvoiceType">请选择发票种类</aspxform:XRequiredFieldValidator>
        <%--<aspxform:XCompareValidator id="报销合计大于可用费用不能提交" runat="server" ValidationGroup="a" Display="None" ErrorMessage="报销合计大于可用费用不能提交" ControlToValidate="XTextBox9" Type="Double" ControlToCompare="XTextBox26" Operator="LessThan"></aspxform:XCompareValidator>--%><%--<aspxform:XCompareValidator id="XCompareValidator1" runat="server" ValidationGroup="b" Display="None" ErrorMessage="报销合计大于可用费用不能提交" ControlToValidate="XTextBox9" Type="Double" ControlToCompare="XTextBox26" Operator="LessThan">报销合计大于可用费用不能提交</aspxform:XCompareValidator>--%> 
        <table width="1200" height="144" align="center" class="table" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="14" class="title1" colspan="4">
                        <asp:Label id="XLabel27" runat="server" text="出差明细" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td height="27" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel33" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel34" runat="server" text="出差申请单" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox23" style="WIDTH: 70%" runat="server" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_Travel.LinkSeriialNum" Value ValueToDisplayText Enabled="False" HiddenInput="False"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton3" runat="server" Width="21px" DataMap="FormNo->DF_ER_Travel.LinkSeriialNum;LeaveStart->DF_ER_Travel.StartDate;LeaveStartTime->DF_ER_Travel.StartTimeSlot;LeaveEnd->DF_ER_Travel.EndDate;LeaveEndTime->DF_ER_Travel.EndTimeSlot" DisplayColumns="FormNo:表单号,;TravelReason:事由,;LeaveStart:出发日期,;LeaveEnd:返回日期," XDataSource="TableName:DF_HR_BUSINESSTRIPAPP;Filter:AppName->DF_ER_HeadTable.Payee;OrderBy:LeaveStart desc"></aspxform:XDataBrowserButton>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                    </td>
                    <td class="ts1" style="WIDTH: 35%">
                    </td>
                </tr>
                <tr>
                    <td height="24" class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel44" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel22" runat="server" text="出发日期" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" Width="22%" BorderWidth="1px" BorderColor="Gainsboro" XDataBind="DF_ER_Travel.StartDate"></aspxform:XDateTimePicker>
                        <aspxform:XDropDownList id="XDropDownList3" runat="server" Width="12%" XDataBind="DF_ER_Travel.StartTimeSlot" XDataSource>
                            <asp:ListItem Selected="True">上午</asp:ListItem>
                            <asp:ListItem>下午</asp:ListItem>
                        </aspxform:XDropDownList>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" Width="10%" HiddenExpress="1" DataMap="days->DF_ER_Travel.GrantDays" XDataSource="ProcedureName:DF_Proc_GetDays;Filter:@StartDate->DF_ER_Travel.StartDate,@StartDateSpan->DF_ER_Travel.StartTimeSlot,@EndDate->DF_ER_Travel.EndDate,@EndDateSpan->DF_ER_Travel.EndTimeSlot" DisplayColumn="days" ValueColumn="days">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts" style="WIDTH: 10%">
                        <asp:Label id="XLabel45" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label><asp:Label id="XLabel21" runat="server" text="返回日期" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1" style="WIDTH: 35%">
                        <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" Width="22%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_Travel.EndDate"></aspxform:XDateTimePicker>
                        <aspxform:XDropDownList id="XDropDownList4" runat="server" Width="12%" XDataBind="DF_ER_Travel.EndTimeSlot" XDataSource>
                            <asp:ListItem Selected="True">上午</asp:ListItem>
                            <asp:ListItem>下午</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel37" runat="server" text="补助天数" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox27" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_Travel.GrantDays" Enabled="False" Format="type:number;.1" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel39" runat="server" text="补助金额" value valuetodisplaytext></asp:Label>
                        <aspxform:XDropDownList id="XDropDownList6" runat="server" Width="37px" HiddenExpress="1" XDataBind="varPrice" XDataSource="ProcedureName:DF_PROC_PricePerDay;Filter:@Type->DF_ER_Travel.Destination,@StartDate->DF_ER_Travel.StartDate,@EndDate->DF_ER_Travel.EndDate" DisplayColumn="ParaValues" ValueColumn="ParaValues">
                            <asp:ListItem Selected="True">未绑定</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox28" style="WIDTH: 70%" runat="server" Express="if(DF_ER_Travel.StartDate==DF_ER_Travel.EndDate&amp;&amp;DF_ER_Travel.StartTimeSlot=='上午'&amp;&amp;DF_ER_Travel.EndTimeSlot=='下午',40,varPrice*DF_ER_Travel.GrantDays)" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_Travel.GrantAmount" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel40" runat="server" text="币种" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox29" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" DisableBehavior="ReadOnly" BackColor="#E6F1F8" XDataBind="DF_ER_Travel.GrantCurrency" Enabled="False">人民币</aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel41" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel43" runat="server" text="同行人数" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox31" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_Travel.TravelTogether"></aspxform:XTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ts">
                        <asp:Label id="XLabel52" runat="server" text="出发地" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XTextBox id="XTextBox32" style="WIDTH: 70%" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_Travel.StartCity" DisableExpress='Global.StepName!="开始"'></aspxform:XTextBox>
                    </td>
                    <td class="ts">
                        <asp:Label id="XLabel35" runat="server" text="目的地" value valuetodisplaytext></asp:Label></td>
                    <td class="ts1">
                        <aspxform:XDropDownList id="XDropDownList9" runat="server" Width="70%" XDataBind="DF_ER_Travel.Destination">
                            <asp:ListItem Selected="True">大陆</asp:ListItem>
                            <asp:ListItem>非大陆</asp:ListItem>
                        </aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel49" runat="server" text="出差事由" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox15" runat="server" Width="100%" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" XDataBind="DF_ER_Travel.TravelReason" Value ValueToDisplayText Height="60px" HiddenInput="False" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                    <td class="tsbottomlabel" style="WIDTH: 10%">
                        <asp:Label id="XLabel50" runat="server" text="备注说明" value valuetodisplaytext></asp:Label></td>
                    <td class="tsbottomtext" style="WIDTH: 35%">
                        <aspxform:XTextBox id="XTextBox35" runat="server" Width="100%" BorderWidth="1px" BorderColor="Gainsboro" Max="0" Min="0" XDataBind="DF_ER_Travel.TravelRemark" Value ValueToDisplayText Height="60px" HiddenInput="False" TextMode="MultiLine"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table width="1320" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="3" dynamicarea="2,1" menudock="Left">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="12">
                        <asp:Label id="XLabel32" runat="server" text="行程明细" value valuetodisplaytext></asp:Label>&nbsp;<asp:Label id="Label10" runat="server" text="(电子发票和增值税专用发票需要填写发票号，其他发票无需填写发票号。)" forecolor="Blue"></asp:Label> 
                        <aspxform:XTextBox id="XTextBox53" runat="server" Width="100px" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" Format="type:currency;.2">0.00</aspxform:XTextBox>
                    </td>
                    <%--    <td width="236" colspan="10" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                    </td>--%>
                </tr>
                <tr>
                    <td width="58" height="26" class="tds">
                        <p align="center">
                            <asp:Label id="XLabel28" runat="server" text="序号"></asp:Label>
                        </p>
                    </td>
                    <td width="59" class="tds">
                        <div align="center">&nbsp;<asp:Label id="XLabel31" runat="server" text="出发地" value valuetodisplaytext></asp:Label> 
                        </div>
                    </td>
                    <td width="59" class="tds">
                        <p align="center">
                            &nbsp;<asp:Label id="XLabel56" runat="server" text="目的地" value valuetodisplaytext></asp:Label> 
                        </p>
                    </td>
                    <td width="119" class="tds">
                        <p align="center">
                            &nbsp;<asp:Label id="XLabel47" runat="server" text="出发日期" value valuetodisplaytext></asp:Label> 
                        </p>
                    </td>
                    <td width="127" class="tds">
                        <p align="center">
                            <asp:Label id="Label6" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel48" runat="server" text="票种" value valuetodisplaytext></asp:Label> 
                        </p>
                    </td>
                    <td width="120" align="center" class="tds">
                        <asp:Label id="Label9" runat="server" text="发票类型" value valuetodisplaytext></asp:Label></td>
                    <td width="117" align="center" class="tds">
                        <p align="center">
                            <asp:Label id="XLabel53" runat="server" text="发票号" value valuetodisplaytext></asp:Label>
                        </p>
                    </td>
                    <td width="120" align="center" class="tds">
                        <asp:Label id="Label5" runat="server" text="电子发票附件" value valuetodisplaytext></asp:Label></td>
                    <td width="119" class="tds">
                        <p align="center">
                            <asp:Label id="Label7" runat="server" text="*" value valuetodisplaytext forecolor="Red"></asp:Label>&nbsp;<asp:Label id="XLabel51" runat="server" text="票面金额(元)" value valuetodisplaytext></asp:Label> 
                        </p>
                    </td>
                    <td width="118" align="center" class="tds">
                        <asp:Label id="Label3" runat="server" text="税额(元)" value valuetodisplaytext></asp:Label></td>
                    <td width="58" class="tds">
                        <p align="center">
                            <asp:Label id="XLabel68" runat="server" text="同屋" value valuetodisplaytext></asp:Label>
                        </p>
                    </td>
                    <td width="117" align="center" class="tds">
                        <asp:Label id="Label2" runat="server" text="其他费用说明" value valuetodisplaytext></asp:Label></td>
                    <%--  <td width="117" align="center" class="tds" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                        <asp:Label id="Label4" runat="server" value valuetodisplaytext text="住宿费"></asp:Label></td>
                    <td width="117" align="center" class="tds" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                        <asp:Label id="Label5" runat="server" value valuetodisplaytext text="其他费用"></asp:Label></td>--%>
                </tr>
                <tr>
                    <td class="xjtds1">
                        <aspxform:XGridLineNo id="XGridLineNo1" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" BackColor="Transparent" XDataBind="DF_ER_TravelItems.LineNumber" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox21" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.StartingPlace" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通'"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox36" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.Destination" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通'"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.StartDate" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通'"></aspxform:XDateTimePicker>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XDropDownList id="XDropDownList11" runat="server" Width="100%" XDataBind="DF_ER_TravelItems.Vehicle" 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->"差旅票"' DisplayColumn="Name" ValueColumn="Name"></aspxform:XDropDownList>
                        <aspxform:XTextBox id="XTextBox55" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.TaxRate" HiddenInput="True"></aspxform:XTextBox>
                        <%--  <aspxform:XTextBox id="XTextBox49" runat="server" HiddenExpress="1" BorderColor="Gainsboro" BorderWidth="1px" Express="javascript('returnmsg',DF_ER_TravelItems.Vehicle)" Max="0" Min="0" ValueToDisplayText HiddenInput="False" width="100%"></aspxform:XTextBox>--%>
                        <aspxform:XTextBox id="XTextBox49" runat="server" Width="100%" BorderWidth="1px" BorderColor="Gainsboro" HiddenExpress="1" Max="0" Min="0" ValueToDisplayText HiddenInput="true"></aspxform:XTextBox>
                        <br />
                    </td>
                    <td class="xjtds1">
                        <aspxform:XDropDownList id="XDropDownList12" runat="server" Width="100%" XDataBind="DF_ER_TravelItems.InvoiceType" DataMap="Tax->DF_ER_TravelItems.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_TravelItems.Vehicle' DisplayColumn="InvoiceType" ValueColumn="InvoiceType"></aspxform:XDropDownList>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox33" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.InvoiceNo" DisableExpress='(Global.StepName!="开始" || (DF_ER_TravelItems.InvoiceType!="电子发票" &amp;&amp; DF_ER_TravelItems.InvoiceType!="增值税专用发票" &amp;&amp; DF_ER_TravelItems.InvoiceType!="其他发票" )) &amp;&amp; Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗审批" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐合费用会计岗审批"  &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"' DisableCssClass="input_disabled"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XAttachments id="EInvoiceAttachment" runat="server" Express='if(DF_ER_TravelItems.InvoiceNo=="","",DF_ER_TravelItems.EInvoiceAttachment)' Width="100%" XDataBind="DF_ER_TravelItems.EInvoiceAttachment" Height="30px" DisableExpress='DF_ER_TravelItems.InvoiceType!="电子发票" || Global.StepName!="开始"' MaximumFileSize FileTypesDescription="Word,Excel" FileTypes="*.jpg;*.png;*.pdf;*.ofd"></aspxform:XAttachments>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox25" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.IntercityTransportationFee" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox51" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.TaxAmount" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox52" runat="server" Express="javascript('GetTaxAmount',DF_ER_TravelItems.IntercityTransportationFee,DF_ER_HeadTable.Company,DF_ER_TravelItems.LineNumber)" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox34" runat="server" Express="javascript('GetTaxAmount1',DF_ER_TravelItems.Vehicle,DF_ER_TravelItems.InvoiceType,DF_ER_TravelItems.TaxRate,DF_ER_TravelItems.LineNumber)" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenInput="True" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox48" runat="server" Width="100%" XDataBind="DF_ER_TravelItems.Roommate" DisableExpress='DF_ER_TravelItems.Vehicle!="住宿票"'></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox50" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.OtherExpensesExplain" DisableExpress='DF_ER_TravelItems.Vehicle!="其他费用" '></aspxform:XTextBox>
                    </td>
                    <%--  <td class="xjtds1" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                        <aspxform:XTextBox id="XTextBox53" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.Accommodation"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                        <aspxform:XTextBox id="XTextBox54" runat="server" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_TravelItems.OtherExpenses"></aspxform:XTextBox>
                    </td>--%>
                </tr>
                <tr>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                        <div align="right"><asp:Label id="XLabel54" runat="server" text="小计" value valuetodisplaytext></asp:Label>
                        </div>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox37" runat="server" Express="sum(DF_ER_TravelItems.IntercityTransportationFee)" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" XDataBind="DF_ER_Travel.IntercityTransportationFee" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox47" runat="server" Express="DF_ER_Travel.TaxAmount" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" HiddenExpress="1" BackColor="#E6F1F8" XDataBind="DF_ER_HeadTable.TaxAmount" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox54" runat="server" Express="sum(DF_ER_TravelItems.TaxAmount)" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" BackColor="#E6F1F8" XDataBind="DF_ER_Travel.TaxAmount" ReadOnly="True" Format="type:currency;.2" TextAlign="Right"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                    </td>
                    <td class="xjtds1">
                    </td>
                    <%-- <td class="xjtds1" colspan="2" hiddenexpress='Global.StepName!="财务部北京费用会计岗审批" &amp;&amp; Global.StepName!="财务部上海费用会计岗" &amp;&amp; Global.StepName!="财务部深圳费用会计岗审批" &amp;&amp; Global.StepName!="财务部颐和费用会计岗审批" &amp;&amp; Global.StepName!="财务部苏州费用会计岗审批"'>
                    </td>--%>
                </tr>
            </tbody>
        </table>
        <div><asp:Label id="Label1" runat="server" text="其他费用：过路过桥费、停车费、邮寄费、退改签费等" font-size="Larger" font-bold="False"></asp:Label>
            <br />
            <asp:Label id="Label4" runat="server" text="“专业发票”为乘坐交通工具的有效票据。" font-size="Larger" font-bold="False"></asp:Label>
        </div>
        <br />
        <aspxform:XRequiredFieldValidator id="请填写出发地" runat="server" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通票' || DF_ER_TravelItems.Vehicle =='住宿票' || DF_ER_TravelItems.Vehicle =='其他费用'" ValidationGroup="a" Display="None" ErrorMessage="请填写出发地" ControlToValidate="XTextBox21"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="请填写目的地" runat="server" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通票' || DF_ER_TravelItems.Vehicle =='住宿票' || DF_ER_TravelItems.Vehicle =='其他费用'" ValidationGroup="a" Display="None" ErrorMessage="请填写目的地" ControlToValidate="XTextBox36"></aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="请填写出发日期" runat="server" DisableExpress="DF_ER_TravelItems.Vehicle =='市内交通票' || DF_ER_TravelItems.Vehicle =='住宿票' || DF_ER_TravelItems.Vehicle =='其他费用'" ValidationGroup="a" Display="None" ErrorMessage="请填写出发日期" ControlToValidate="XDateTimePicker1"></aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator2" runat="server" ForeColor="Red" ValidationGroup="a" Display="None" ErrorMessage="请填写票面金额" ControlToValidate="XTextBox25">请填写票面金额</aspxform:XRequiredFieldValidator>
        &nbsp;&nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator3" runat="server" DisableExpress='DF_ER_TravelItems.InvoiceType!="电子发票" &amp;&amp; DF_ER_TravelItems.InvoiceType!="增值税专用发票"' ForeColor="Red" ValidationGroup="a" Display="None" ErrorMessage="请填写发票号" ControlToValidate="XTextBox33">请填写发票号</aspxform:XRequiredFieldValidator>
        &nbsp;<aspxform:XRequiredFieldValidator id="XRequiredFieldValidator4" runat="server" DisableExpress='DF_ER_TravelItems.Vehicle!="住宿票" ' ForeColor="Red" ValidationGroup="a" Display="None" ErrorMessage="请填写同屋" ControlToValidate="XTextBox48">请填写同屋</aspxform:XRequiredFieldValidator>
        &nbsp; 
        <aspxform:XRequiredFieldValidator id="XRequiredFieldValidator5" runat="server" DisableExpress='DF_ER_TravelItems.Vehicle!="其他费用" ' ForeColor="Red" ValidationGroup="a" Display="None" ErrorMessage="请填写其他费用说明" ControlToValidate="XTextBox50">请填写其他费用说明</aspxform:XRequiredFieldValidator>
        <br />
        <br />
        <%--   <table width="1200" align="center" class="table" id="tablenew" border="0" cellspacing="0" cellpadding="3" dynamicarea="2,1" menudock="Left">
            <tbody>
                <tr>
                    <td height="19" class="title1" colspan="3">
                        <asp:Label id="XLabel58" runat="server" value valuetodisplaytext text="电子发票明细"></asp:Label></td>
                </tr>
                <tr>
                    <td height="24" align="center" class="tds" style="WIDTH: 50px; TEXT-ALIGN: center">
                        <p align="center">
                            <asp:Label id="XLabel59" runat="server" text="序号"></asp:Label>
                        </p>
                    </td>
                    <td align="center" class="tds" style="WIDTH: 150px; TEXT-ALIGN: center" ?>
                        <div align="center"><asp:Label id="XLabel60" runat="server" value valuetodisplaytext text="电子发票号"></asp:Label>
                        </div>
                    </td>
                    <td align="center" class="tds" style="WIDTH: 100px; TEXT-ALIGN: center" ?>
                        <div align="center"><asp:Label id="XLabel61" 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" Width="100%" BorderWidth="1" BorderColor="#DCDCDC" BackColor="Transparent" TextAlign="Center" BorderStyle="None">1</aspxform:XGridLineNo>
                    </td>
                    <td class="xjtds1" style="TEXT-ALIGN: center">
                        <aspxform:XTextBox id="XTextBox44" runat="server" BorderWidth="1" BorderColor="#DCDCDC" XDataBind="DF_ER_EInvoiceItems.EInvoiceNum" TextAlign="Center" width="100%"></aspxform:XTextBox>
                    </td>
                    <td class="xjtds1">
                        <aspxform:XTextBox id="XTextBox45" runat="server" Width="100%" BorderWidth="1px" BorderColor="#DCDCDC" XDataBind="DF_ER_EInvoiceItems.Amount" Format="type:currency;.2" TextAlign="Right"></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" text="附件" value valuetodisplaytext></asp:Label></td>
                </tr>
                <tr>
                    <td class="tsbottomtext">
                        <aspxform:XAttachments id="XAttachments1" runat="server" Width="100%" XDataBind="DF_ER_HeadTable.Attachment" FileTypesDescription="Word,Excel" FileTypes="*.jpg;*.png;*.pdf"></aspxform:XAttachments>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <aspxform:XButton id="XButton1_i" runat="server" Text="报销单据粘贴范本" Width="120px" BorderColor="White" Height="30px" OnClientClick="image()" ForeColor="#000000"></aspxform:XButton>
        &nbsp;<aspxform:XButton id="XButton1" runat="server" Text="报销单填写说明" Width="120px" BorderColor="White" Height="30px" OnClientClick="image1()" ForeColor="#000000"></aspxform:XButton>
        <br />
        <br />
        <table width="1200" align="center">
            <tbody>
                <tr>
                    <td>
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="100%" BorderWidth="1" BorderColor="#dcdcdc"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
