<%@ 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.XTextBox16.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>
    <script type="text/javascript">
        function ProductDep(ProductName, ProductModel) {
            var dep = ProductModel + "|" + ProductName;
            return dep;
        }

        function GetPhone(Phone,MobilePhone){
            var ph=Phone+"  "+MobilePhone;
            return ph;
        }
    </script>
</head>
<body>
    <form runat="server">
        <!-- Insert content here -->
        <p>
            <aspxform:XPrintButton id="XPrintButton1" runat="server" PrintOut="False"></aspxform:XPrintButton>
        </p>
        <table width="800" align="left" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td height="100" align="left" style="WIDTH: 100px">
                        <font face="微软雅黑" size="10">
                        <aspxform:XTextBox id="XTextBox1" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="DeliveryFormNo" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                    <%-- <td style="width:60px" align="right">
                    </td>--%> 
                    <td align="left" style="WIDTH: 100px">
                        <font face="宋体" size="5">
                        <aspxform:XTextBox id="XTextBox6" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="MBLNR" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                    <%-- <td style="width:55px" align="right">
                    </td>--%> 
                    <td style="WIDTH: 120px">
                        <aspxform:XTextBox id="XTextBox2" style="WIDTH: 100%" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" DisableBehavior="ReadOnly" XDataBind="po" Font-Size="Medium"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox19" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="20px" DisableBehavior="ReadOnly" XDataBind="MobilePhone" Font-Size="Medium" HiddenInput="True"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox10" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="20px" DisableBehavior="ReadOnly" XDataBind="Phone" Font-Size="Medium" HiddenInput="True"></aspxform:XTextBox>
                        <font face="宋体" size="2"></font></td>
                    <%-- <td style="width:45" align="right">
                    </td>--%> 
                    <td style="WIDTH: 60px">
                        <aspxform:XTextBox id="XTextBox4" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" DisableBehavior="ReadOnly" XDataBind="SalesMan" Font-Size="Medium" Width="100%"></aspxform:XTextBox>
                        <font face="宋体" size="2"><strong></strong></font></td>
                </tr>
            </tbody>
        </table>
        <table style="WIDTH: 800px" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="HEIGHT: 50px">
                    </td>
                </tr>
            </tbody>
        </table>
        <table align="left" style="WIDTH: 800px" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <%-- <td style="width:50px" >
                    </td>--%><%-- <td style="width:130px" height="30">
                    </td>--%> 
                    <td style="WIDTH: 40px">
                    </td>
                    <td style="WIDTH: 750px" colspan="3">
                        <font face="宋体" size="5">
                        <aspxform:XTextBox id="XTextBox17" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="CompanyName" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                </tr>
                <tr>
                    <td style="WIDTH: 40px">
                    </td>
                    <td style="WIDTH: 750px" colspan="3">
                        <font face="宋体" size="5">
                        <aspxform:XTextBox id="XTextBox5" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="SendGoodsAddr" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                </tr>
                <tr>
                    <td style="WIDTH: 40px">
                    </td>
                    <td style="WIDTH: 350px">
                        <font face="宋体" size="5">
                        <aspxform:XTextBox id="XTextBox8" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="Contact" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                    <td style="WIDTH: 260px">
                        <font face="宋体" size="5">
                        <aspxform:XTextBox id="XTextBox9" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" Font-Size="Medium" Express="javascript('GetPhone',Phone,MobilePhone)"></aspxform:XTextBox>
                        </font></td>
                    <td style="WIDTH: 150px">
                        <font face="宋体" size="2">
                        <aspxform:XTextBox id="XTextBox7" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" width="100%" DisableBehavior="ReadOnly" XDataBind="Code" Font-Size="Medium"></aspxform:XTextBox>
                        </font></td>
                </tr>
            </tbody>
        </table>
        <br />
        <br />
        <table align="left" style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; WIDTH: 800px; BORDER-LEFT: medium none" border="0" cellspacing="0" cellpadding="0" dynamicarea="1,1" xdatasource="TableName:V_DF_SD_IncrementDelivery_Detail;Filter:FormNo->FormNo" datamap="DeliveryLineNum->LineItemNo;ProductModel->ProductModel;ProductName->ProductName;Number->Number;SerialNo->SerialNo">
            <tbody>
                <tr align="left" style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                    <%--  <td style="width:50" height="30px">
                    </td>--%> 
                    <td style="HEIGHT: 30px; WIDTH: 50px">
                    </td>
                    <td style="WIDTH: 250px">
                    </td>
                    <td style="WIDTH: 90px">
                    </td>
                    <td style="WIDTH: 410px">
                    </td>
                </tr>
                <tr align="center" style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none">
                    <%-- <td style="width:50px">
                    </td>--%> 
                    <td>
                        <aspxform:XTextBox id="XTextBox11" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" DisableBehavior="ReadOnly" XDataBind="LineItemNo" Font-Size="Medium" Width="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                        <aspxform:XTextBox id="XTextBox13" runat="server" BorderColor="Gainsboro" BorderWidth="0px" DisableBehavior="ReadOnly" Font-Size="Medium" Max="0" Min="0" HiddenInput="False" Width="100%" Express="javascript('ProductDep',ProductName,ProductModel)" ValueToDisplayText TextAlign="Left"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox12" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="ProductName" Width="20px" HiddenExpress="1"></aspxform:XTextBox>
                        <aspxform:XTextBox id="XTextBox3" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="ProductModel" Width="20px" HiddenExpress="1"></aspxform:XTextBox>
                    </td>
                    <td>
                        <aspxform:XTextBox id="XTextBox14" runat="server" BorderColor="#DCDCDC" BorderWidth="0px" DisableBehavior="ReadOnly" XDataBind="Number" Font-Size="Medium" Width="100%"></aspxform:XTextBox>
                    </td>
                    <td style="HEIGHT: auto">
                        <div style="WORD-WRAP: break-word; WIDTH: 100%">
                            <aspxform:XLabel id="XLabel1" runat="server" XDataBind="SerialNo" Width="100%" text="Label"></aspxform:XLabel>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="left">
            <aspxform:XTextBox id="XTextBox16" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="FormNo" HiddenExpress="1" Height="10px"></aspxform:XTextBox>
            <aspxform:XTextBox id="XTextBox18" runat="server" BorderColor="#DCDCDC" BorderWidth="1" XDataBind="TaskID" HiddenExpress="1" Height="10px"></aspxform:XTextBox>
            &nbsp; 
            <aspxform:XDropDownList id="XDropDownList1" runat="server" HiddenExpress="1" Height="20px" XDataSource="TableName:DF_SD_IncrementDelivery_Info;Filter:FormNo->FormNo" DisplayColumn="FormNo" ValueColumn="FormNo" DataMap="TaskID->TaskID;SalesMan->SalesMan;DeliveryFormNo->DeliveryFormNo;MBLNR->MBLNR;UserCompanyName->CompanyName;Contact->Contact;SendGoodsAddr->SendGoodsAddr;Phone->Phone;MobilePhone->MobilePhone;Code->Code;CustomerContractNo->PO">
                <asp:ListItem Selected="True">未绑定</asp:ListItem>
            </aspxform:XDropDownList>
            <br />
        </div>
    </form>
</body>
</html>
