//获取学制
 protected string GetAcademic(int id)
 {
     try
     {
         Model.CCOM.Major model = new BLL.CCOM.Major().GetModel(" Agency_id=" + id);
         return(model.Major_academic);
     }
     catch {
         return("--");
     }
 }
 //获取备注
 protected string GetRemark(int id)
 {
     try
     {
         Model.CCOM.Major model = new BLL.CCOM.Major().GetModel(" Agency_id=" + id);
         return(model.Major_remark);
     }
     catch
     {
         return("--");
     }
 }
Beispiel #3
0
 protected void setAgencyDetail()
 {
     Model.CCOM.User_property model       = new BLL.CCOM.User_property().GetModel(" User_id='" + GetAdminInfo_CCOM().User_id + "'");
     Model.CCOM.Major         major_model = new BLL.CCOM.Major().GetModel(" Agency_id='" + model.Agency_id + "'");
     if (major_model == null)
     {
         this.Details.InnerHtml = ("<asp:Label runat=\"server\" Style=\"color: green; font-size: 13px;\" ID=\"lblTip\">无</asp:Label><br/>");
     }
     else
     {
         this.Details.InnerHtml = this.Details.InnerHtml + ("<asp:Label runat=\"server\" Style=\"color: green; font-size: 13px;\" ID=\"lblTip\">学制:" + major_model.Major_academic + "</asp:Label><br/>");
         this.Details.InnerHtml = this.Details.InnerHtml + ("<asp:Label runat=\"server\" Style=\"color: green; font-size: 13px;\" ID=\"lblTip\">专业要求:" + major_model.Major_require + "</asp:Label><br/>");
         this.Details.InnerHtml = this.Details.InnerHtml + ("<asp:Label runat=\"server\" Style=\"color: green; font-size: 13px;\" ID=\"lblTip\">专业参考书目:" + major_model.Major_reference + "</asp:Label><br/>");
         this.Details.InnerHtml = this.Details.InnerHtml + ("<asp:Label runat=\"server\" Style=\"color: green; font-size: 13px;\" ID=\"lblTip\">备注:" + major_model.Major_remark + "</asp:Label><br/>");
     }
 }