/// <summary> /// 查看上报人详细信息 /// </summary> /// <returns></returns> public ActionResult PersonDetailIndex() { string hid = Request.Params["hid"];//护林员hid var model = T_IPSFR_USERCls.getModel(new T_IPSFR_USER_SW { HID = hid }); var info = DC_PHOTOCls.getModel(new DC_PHOTO_SW { PHOTOTYPE = "T_IPSFR_USER", PRID = hid }).PHOTOFILENAME; if (string.IsNullOrEmpty(info)) { ViewBag.picurl = ""; } else { ViewBag.picurl = @"/UploadFile/DacPhoto/" + info; } return(View(model)); }
public JsonResult GetIPSUserAjax(string userid) { T_IPSFR_USER_SW info = new T_IPSFR_USER_SW(); Message msg = new Message(false, "", ""); info.HID = userid; var model = T_IPSFR_USERCls.getModel(info);//获取护林员详细信息 if (model != null) { string enablestr = model.ISENABLE == "1" ? "启用" : "禁用"; string imageurl = "../Images/photo.png"; StringBuilder sb = new StringBuilder(); sb.AppendFormat(" <br />"); sb.AppendFormat("<div class=\"divTable\" style=\"margin:10px 5px;\">"); sb.AppendFormat("<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" style=\"width:100%;height:200px\">"); sb.AppendFormat("<tr align=\"center\" height=\"30\">"); sb.AppendFormat("<td>姓名:</td><td>{0}</td>", model.HNAME); sb.AppendFormat("<td>性别:</td><td>{0}</td>", model.SEXNAME); sb.AppendFormat("<td colspan=\"2\" rowspan=\"3\"><div id=\"photodiv\" onclick=\"imgshow('photodiv')\"><img id=\"photoimg\" src=\"{0}\" title=\"{1}\"照片 style=\"width:150px;height:100px\"></div></td>", imageurl, model.HNAME); sb.AppendFormat("</tr>"); sb.AppendFormat("<tr align=\"center\" height=\"30\">"); sb.AppendFormat("<td>电话号码:</td><td>{0}</td>", model.PHONE); sb.AppendFormat("<td>出生日期:</td><td>{0}</td>", model.BIRTH); sb.AppendFormat("</tr>"); sb.AppendFormat("<tr align=\"center\" height=\"30\">"); sb.AppendFormat("<td>设备号:</td><td>{0}</td>", model.SN); sb.AppendFormat("<td>固/兼职:</td><td>{0}</td>", model.ONSTATENAME); sb.AppendFormat("</tr>"); sb.AppendFormat("<tr align=\"center\" height=\"30\">"); sb.AppendFormat("<td>是否启用:</td><td>{0}</td>", model.ISENABLENAME); sb.AppendFormat("<td>所属机构:</td><td colspan=\"3\">{0}</td>", model.ORGNAME); sb.AppendFormat("</tr>"); sb.AppendFormat("</table>"); sb.AppendFormat("</div>"); msg = new Message(true, sb.ToString(), ""); } return(Json(msg)); }
/// <summary> /// 获取当前登录用户相关信息 /// </summary> /// <param name="hid">用户ID</param> /// <returns></returns> public static string getHUserOrg(string hid) { return(T_IPSFR_USERCls.getModel(new T_IPSFR_USER_SW { HID = hid }).BYORGNO); }