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


<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
<script src="<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Scripts/DynaForm.js"
        type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#CurrentPosition").html("观众信息");

        });

        function back() {
            var backurl = "<%=ViewData["BackUrl"] %>";
            if (backurl != "") {
                window.location = backurl;
            }else
            {
                window.history.go(-1)
            }
        }

        var dynaform;
        function AddMatch(id) {
            dynaform = new DynaForm({
                id: "dynaform",
                title: "新增预约",
                src: "<%=FamousFurnitureExpo.Models.Helper.VRoot %>/Exhibitor/MeetingEdit?source=info&id=" + id,
                width: "650px",
                height: "500px",
                top:"50px"
            });
            dynaform.showModalDialog();
        }

    </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="8" cellspacing="0">
                <tr>
                    <td align="left" style="background-color:#4EB0AE;color:White">
                        基本信息
                    </td>
                </tr>
                <tr>
                    <td>
                        <table border="0" cellpadding="5" cellspacing="0" width="100%">
                        <% 
                            System.Data.DataRow drPsn = ViewData["DataRow"] as System.Data.DataRow;
                            string psnName = "";
                            string psnComName = "";
                            string psnRank = "";
                            string psnID = "";
                            if (drPsn != null)
                            {
                                psnName = drPsn["PsnName"].ToString();
                                psnComName = drPsn["PsnComName"].ToString();
                                psnRank = drPsn["PsnRank"].ToString();
                                psnID = drPsn["PsnID"].ToString();
                            }
                        %>
                            <tr>
                                <td align="right" width="20%" class="tdLine">
                                    姓名：
                                </td>
                                <td align="left" width="80%" class="tdLine">
                                    <%=Server.HtmlEncode(psnName)%>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="tdLine">
                                    职务：
                                </td>
                                <td align="left" class="tdLine">
                                    <%=Server.HtmlEncode(psnRank) %>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="tdLine">
                                    公司名称：
                                </td>
                                <td align="left" class="tdLine">
                                    <%=Server.HtmlEncode(psnComName) %>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
<%--                <tr>
                    <td align="left" style="background-color:#d9f2ff;">
                        撮合问题信息：
                    </td>
                </tr>
                <tr>
                    <td>
                        <table border="0" cellpadding="5" cellspacing="0" width="100%">
                        <% 
                            Dictionary<string, string> diQus = ViewData["DiQus"] as Dictionary<string, string>;
                            foreach (string qusStr in diQus.Keys)
                            {
                        %>
                            <tr>
                                <td align="right" width="20%" class="tdLine">
                                    <%=Server.HtmlEncode(qusStr) %>:
                                </td>
                                <td align="left" width="80%" class="tdLine">
                                    <%=Server.HtmlEncode(diQus[qusStr]) %>
                                </td>
                            </tr>
                        <%        
                            }
                        %>
                        </table>
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <div class="button" onclick="AddMatch(<%=Server.HtmlEncode(psnID)%>)">立即预约</div>&nbsp;&nbsp;&nbsp;&nbsp;<div class="button" onclick="back()">返回</div>
                    </td>
                </tr>
            </table>
            </form>
        </center>
    </div>
</asp:Content>
