前台

 <div class="ondata">
   <h2><em>1</em><strong>基础信息</strong></h2>
            @{
                var data = ViewBag.Data as T_Suggest;
            }
   <ul>
    <li><span>提案号:</span><label >@data.Number</label></li>
    <li><span>主题词:</span><label >@data.Subject</label></li>
                <li><span>提案类型:</span><label >@data.Category</label></li>
                <li><span>提案时间:</span><label >@data.CreateOn</label></li>
                <li><span>提案标题:</span><label >@data.Title</label></li>
    
   </ul>
  </div>
  
        <div class="ondata">
   <h2><em>2</em><strong>发起人代表信息</strong></h2>
           
            @{
                T_SuggestPeople suggest = null;
                foreach (var item in Model) {

                    if (item.IsLeader == true) {
                        suggest = item;
                    }
                }
            }
   <ul>
    <li><span>代表姓名:</span><label >@suggest.Name</label></li>
    <li><span>工作单位和职务:</span><label >@suggest.Position</label></li>
    <li><span>党代表组:</span><label >@suggest.Group</label></li>
    <li><span>代表编号:</span><label >@suggest.Account</label></li>
   </ul>

   <div class="line"></div>
   <ul>
    <li><span>单位地址:</span><label >@suggest.UnitAddress</label></li>
    <li><span>单位邮编:</span><label >@suggest.ZipCode</label></li>
    <li><span>单位电话:</span><label >@suggest.UnitPhone</label></li>
    <li><span>联系手机:</span><label >@suggest.FamilyPhone</label></li>
   </ul>
  </div>
        <div class="ondata">
   <h2><em>3</em><strong>联名代表信息</strong></h2>
            @{
               
                foreach (var item in Model)
                {

                    if (!item.IsLeader.Value)
                {
                   
                <ul>
    <li><span>代表姓名:</span><label >@item.Name</label></li>
    <li><span>党代表组:</span><label >@item.Group</label></li>
    <li><span>代表编号:</span><label >@item.Account</label></li>
       <li><span>电话:</span><label >@item.FamilyPhone</label></li>
                <li><span>手机:</span><label >@item.FamilyMobile</label></li>
                <li><span>联系地址:</span><label >@item.FamilyAddress</label></li>
                <li><span>邮政编码:</span><label >@item.ZipCode</label></li>
                </ul> 
                }

                }
            } 
  </div>

posted @ 2013-08-22 16:26  nieyulin  阅读(139)  评论(0编辑  收藏  举报