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

    // Insert page code here
    //
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["serialNum"] != null)
            {
                this.XTextBox2.Text = Request.QueryString["serialNum"].ToString();
            }
        }
    }

</script>
<html xmlns:XForm="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>BPM Form</title>
    <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {padding:1px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    /*INPUT {height: 15px}*/
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    input {vertical-align:middle;/*margin-right:-3px*/}
    </style>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <table width="800" align="center" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="800">
                        <p align="right">
                            <aspxform:XPrintButton id="XPrintButton1" runat="server" Orientation="Horizontal"></aspxform:XPrintButton>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td height="70">
                        <aspxform:XTextBox id="XTextBox1" runat="server" Height="38px" Value ValueToDisplayText Font-Names="微软雅黑" Font-Size="14pt" Font-Bold="True" HiddenInput="False" Min="0" Max="0" BorderColor="Gainsboro" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Center" XDataBind="cccpy"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="center">
            <table width="800" align="center" style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>系统单号</strong></td>
                        <td width="140" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>
                            <aspxform:XTextBox id="XTextBox2" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="no"></aspxform:XTextBox>
                            </strong></td>
                        <td width="120" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>填写日期</strong></td>
                        <td width="140" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>
                            <aspxform:XDateTimePicker id="XDateTimePicker1" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" XDataBind="dat" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                            </strong></td>
                        <td width="120" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>同行</strong></td>
                        <td width="140" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox3" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="partner"></aspxform:XTextBox>
                            <strong></strong></td>
                    </tr>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>成本中心</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox4" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="ccno"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>成本中心名称</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox5" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="ccname"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>成本中心负责人</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox6" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="ccuser"></aspxform:XTextBox>
                            <strong></strong></td>
                    </tr>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>是否冲销借款</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox9" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="removloan"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>报销金额总计大写</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox8" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="amtb"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>金额</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox7" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Right" XDataBind="amts" Format="type:currency;.2"></aspxform:XTextBox>
                            <strong></strong></td>
                    </tr>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>出发日期</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XDateTimePicker id="XDateTimePicker3" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" XDataBind="startdate" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>返回日期</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XDateTimePicker id="XDateTimePicker4" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" XDataBind="enddate" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>出差事由</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox16" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="reason"></aspxform:XTextBox>
                            <strong></strong></td>
                    </tr>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>交通费小计</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox11" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Right" XDataBind="traficamt" Format="type:currency;.2"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>住宿费小计</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox14" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Right" XDataBind="stayamt" Format="type:currency;.2"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <strong>补助小计</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox17" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="allowance"></aspxform:XTextBox>
                            <strong></strong></td>
                    </tr>
                    <tr>
                        <td height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                            <strong>其他费用小计</strong></td>
                        <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox15" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Right" XDataBind="sumother" Format="type:currency;.2"></aspxform:XTextBox>
                        </td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        </td>
                        <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        </td>
                        <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        </td>
                        <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        </td>
                    </tr>
                    <tr>
                        <td width="120" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: black 1px solid">
                            <strong>经办人</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox12" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="applyuser"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                            <strong>领款人</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox13" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="moneyuser"></aspxform:XTextBox>
                            <strong></strong></td>
                        <td width="120" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                            <strong>审批人</strong></td>
                        <td width="140" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                            <aspxform:XTextBox id="XTextBox18" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="mnguser"></aspxform:XTextBox>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div align="center">
        </div>
        <table width="800" align="center" style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none" border="0" cellspacing="0" cellpadding="0" xdatasource="TableName:DF_ER_TravelItems;Filter:SerialNum->no" datamap="StartingPlace->startp;Destination->endp;StartDate->startd;Vehicle->trafictool;IntercityTransportationFee->trafic" dynamicarea="2,1">
            <tbody>
                <tr>
                    <td height="30" style="BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid" colspan="5">
                        <strong>出差明细</strong></td>
                </tr>
                <tr>
                    <td width="108" height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                        <p align="center">
                            <strong>出发地</strong> 
                        </p>
                    </td>
                    <td width="108" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <p align="center">
                            <strong>目的地</strong> 
                        </p>
                    </td>
                    <td width="108" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <p align="center">
                            <strong>出发日期</strong> 
                        </p>
                    </td>
                    <td width="108" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <p align="center">
                            <strong>&nbsp;票种</strong> 
                        </p>
                    </td>
                    <td width="108" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <p align="center">
                            <strong>票面金额</strong> 
                        </p>
                    </td>
                </tr>
                <tr>
                    <td height="30" style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid">
                        <aspxform:XTextBox id="XTextBox19" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Center" XDataBind="startp"></aspxform:XTextBox>
                    </td>
                    <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <aspxform:XTextBox id="XTextBox20" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Center" XDataBind="endp"></aspxform:XTextBox>
                    </td>
                    <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <aspxform:XDateTimePicker id="XDateTimePicker2" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" XDataBind="startd" Width="100%" DisplayOnly="True"></aspxform:XDateTimePicker>
                    </td>
                    <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <aspxform:XTextBox id="XTextBox21" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Center" XDataBind="trafictool"></aspxform:XTextBox>
                    </td>
                    <td style="BORDER-TOP: medium none; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; BORDER-LEFT: medium none">
                        <aspxform:XTextBox id="XTextBox22" runat="server" HiddenInput="False" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" TextAlign="Right" XDataBind="trafic" Format="type:currency;.2"></aspxform:XTextBox>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="center">
            <aspxform:XDropDownList id="XDropDownList1" runat="server" HiddenExpress="1" XDataSource="TableName:v_DF_ER_HeadTable_Travel;Filter:单号->no" DisplayColumn="单号" ValueColumn="单号" DataMap="成本中心公司->cccpy;其他费用小计->sumother;成本中心名称->ccname;成本中心->ccno;同行->partner;成本中心负责人->ccuser;住宿费小计->stayamt;填写日期->dat;报销金额大写->amtb;领款人->moneyuser;出发日期->startdate;补助小计->allowance;审批人->mnguser;出差事由->reason;经手人->applyuser;交通费小计->traficamt;返回日期->enddate;报销金额小写->amts;是否冲销借款->removloan">
                <asp:ListItem Selected="True">未绑定</asp:ListItem>
            </aspxform:XDropDownList>
        </div>
    </form>
</body>
</html>
