<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ExhibitorMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>


<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            selectMenu("预定服务总览", "");
        });
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <center>
            <form id="f1" action="" method="post">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="left">
                        <strong>预定服务总览：</strong>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            double totalPrice=0;
                            //水租赁
                            System.Data.DataTable dt = ViewData["Dt1"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">展台用水、用气</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">名称</td>
                                <td class="td01" width="10%" align="center">单价（RMB）</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0;
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="3"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //电和电力设备
                            dt = ViewData["Dt2"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">电和电力设备</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">名称</td>
                                <td class="td01" width="10%" align="center">单价（RMB）</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0;
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="3"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //通讯设备
                            dt = ViewData["Dt3"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">通讯设备</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">名称</td>
                                <td class="td01" width="10%" align="center">单价（RMB）</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%       
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="3"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //展具租赁
                            dt = ViewData["Dt4"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">展具租赁</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">名称</td>
                                <td class="td01" width="15%" align="center">规格</td>
                                <td class="td01" width="10%" align="center">单价（RMB）</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="4"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //技术人力
                            dt = ViewData["Dt5"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">技术人力</td></tr>
                            <tr>
                                <td class="td01" width="10%" align="left">工种</td>
                                <%--<td class="td01" width="10%" align="center">规格</td>--%>
                                <td class="td01" width="6%" align="center">单位</td>
                                <td class="td01" width="10%" align="center">价格</td>

                                <td class="td01" width="18%" align="center">开始工作日期</td>
                                <td class="td01" width="18%" align="center">结束工作日期</td>

                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%   
                                double smallTotalPrice = 0;      
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string strBDate = dr["OddWorkBDate"].ToString().Replace("9:00:00", "AM").Replace("14:00:00", "PM");
                                    string strEDate = dr["OddWorkEDate"].ToString().Replace("13:00:00", "AM").Replace("18:00:00", "PM");
                                    string num = dr["OddNum"].ToString();
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <%--<td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>--%>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=strBDate %></td>
                                <td class="td03" align="center"><%=strEDate %></td>
                                <td class="td03" align="center"><%=num %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="6"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //翻译、礼仪服务
                            dt = ViewData["Dt6"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">翻译、礼仪服务</td></tr>
                            <tr>
                                <td class="td01" width="10%" align="left">工种</td>
                                <%--<td class="td01" width="10%" align="center">规格</td>--%>
                                <td class="td01" width="6%" align="center">单位</td>
                                <td class="td01" width="10%" align="center">价格</td>

                                <td class="td01" width="18%" align="center">开始工作日期</td>
                                <td class="td01" width="18%" align="center">结束工作日期</td>

                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0;    
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string strBDate = dr["OddWorkBDate"].ToString().Replace("9:00:00", "AM").Replace("14:00:00", "PM");
                                    string strEDate = dr["OddWorkEDate"].ToString().Replace("13:00:00", "AM").Replace("18:00:00", "PM"); 
                                    string num = dr["OddNum"].ToString();
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <%--<td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>--%>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=strBDate %></td>
                                <td class="td03" align="center"><%=strEDate %></td>
                                <td class="td03" align="center"><%=num %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="6"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //现场推广机会
                            dt = ViewData["Dt7"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">现场推广机会</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">宣传项目</td>
                                <td class="td01" width="25%" align="center">尺寸 (高*宽) </td>
                                <td class="td01" width="15%" align="center">位置与形式 </td>
                                <td class="td01" width="10%" align="center">单位</td>
                                <td class="td01" width="10%" align="center">价格 元/展期</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjIntro"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="6"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //赞助机会
                            dt = ViewData["Dt10"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">赞助机会</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">宣传项目</td>
                                <td class="td01" width="15%" align="center">尺寸 (高*宽) </td>
                                <td class="td01" width="25%" align="center">位置与形式 </td>
                                <td class="td01" width="10%" align="center">单位</td>
                                <td class="td01" width="10%" align="center">价格 元/展期</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjIntro"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="6"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //2013地材新风尚新品推广方案
                            dt = ViewData["Dt11"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">2014宠物新风尚新品推广方案</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">宣传项目</td>
                                <%--<td class="td01" width="15%" align="center">尺寸 (高*宽) </td>--%>
                                <td class="td01" width="25%" align="center">包含服务 </td>
                                <%--<td class="td01" width="10%" align="center">单位</td>--%>
                                <td class="td01" width="10%" align="center">价格 元/展期</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjIntro"].ToString()).Replace("&lt;", "<").Replace("&gt;", ">")%></td>
                                <%--<td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>--%>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="4"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //刊物及电子广告
                            dt = ViewData["Dt12"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">刊物及电子广告</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">宣传项目</td>
                                <td class="td01" width="15%" align="center">尺寸 (高*宽) </td>
                                <td class="td01" width="25%" align="center">位置与形式 </td>
                                <td class="td01" width="10%" align="center">单位</td>
                                <td class="td01" width="10%" align="center">价格 元/展期</td>
                                <td class="td01" width="10%" align="center">数量</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjScale"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjIntro"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjUnit"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["OddNum"].ToString()) %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="6"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <table width="100%" border="0" cellpadding="1" cellspacing="0">
                        <% 
                            //新闻发布会/产品或服务推介会
                            dt = ViewData["Dt8"] as System.Data.DataTable;
                            if (dt.Rows.Count > 0)
                            {
                        %>
                            <tr><td style="height:5px;"></td></tr>
                            <tr><td align="left" colspan="4">新闻发布会/产品或服务推介会</td></tr>
                            <tr>
                                <td class="td01" width="20%" align="center">会议室编号</td>
                                <td class="td01" width="10%" align="center">单价/4小时</td>
                                <td class="td01" width="10%" align="center">开始使用时间</td>
                                <td class="td01" width="10%" align="center">结束使用时间</td>
                                <td class="td01" width="10%" align="center">小计</td>
                            </tr>
                        <%        
                                double smallTotalPrice = 0; 
                                foreach (System.Data.DataRow dr in dt.Rows)
                                {
                                    string strBDate = dr["OddWorkBDate"].ToString().Replace("9:00:00", "AM").Replace("14:00:00", "PM"); ;
                                    string strEDate = dr["OddWorkEDate"].ToString().Replace("13:00:00", "AM").Replace("18:00:00", "PM"); ;
                                    string price = dr["OddTotalPrice"].ToString();
                                    totalPrice += Convert.ToDouble(price);
                                    smallTotalPrice += Convert.ToDouble(price);
                        %>
                            <tr>
                                <td class="td03" align="left"><%=Server.HtmlEncode(dr["SrjName"].ToString()) %></td>
                                <td class="td03" align="center"><%=Server.HtmlEncode(dr["SrjSalePrice"].ToString()) %></td>
                                <td class="td03" align="center"><%=strBDate %></td>
                                <td class="td03" align="center"><%=strEDate %></td>
                                <td class="td03" align="center"><%=price %></td>
                            </tr>
                        <%            
                                }
                        %>
                            <tr>
                                <td class="td03" align="center">小计</td>
                                <td class="td03" align="center" colspan="5"><%=smallTotalPrice %></td>
                            </tr>
                        <%
                            }
                        %>
                        </table>
                    </td>
                </tr>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td align="right">总价：<%=totalPrice %></td>
                </tr>
                <tr>
                    <td>
                        <input type="hidden" id="OrderStr" name="OrderStr" />
                    </td>
                </tr>
            </table>
            <script type="text/javascript">
                $(function () {
                    var message = $("#Message").val();
                    if (message != "") {
                        showMsg(message);
                    }
                });
            </script>
            <input type="hidden" id="Message" name="Message" value="<%=ViewData["Message"] %>" />
            </form>
        </center>
    </div>
</asp:Content>
