//获取数据 public ActionResult GetDataList(string sw) { ITC_Organization borg = new ITC_Organization(); #region pagesl var pageIndex = Common.GetPageIndex(); var pageSize = Common.GetPageSize(); var total = 0; List <ITC_Userinfo_M> list_mo = uifo.GetList(sw, pageIndex, pageSize, out total); var list = from f in list_mo select new { Orga_Name = borg.GetOrgaFullName(f.Orga_ID), f.User_Account, User_Createdtime = f.User_Createdtime.ToString("g"), f.User_Email, f.User_ID, f.User_Mobile, f.User_Name, f.User_Oprt, f.User_Pwd, f.User_Remark, User_Sex = Common.GetSex(f.User_Sex), f.User_Spelling, User_Status = Common.GetStatus(f.User_Status), f.User_Tel }; var page = new PageViewModel { rows = list, total = total }; return(Json(page, JsonRequestBehavior.DenyGet)); #endregion }
/// <summary> /// 初始化组织缓存数据 /// </summary> public static List <ITC_Organization_M> InitCache() { ITC_Organization bll = new ITC_Organization(); List <ITC_Organization_M> list = bll.GetList("Organization_Status=0"); CacheHelper.Set(CacheKeys.Orgas.ToString(), list); return(list); }
/// <summary> /// 获取名称(数据库) /// </summary> /// <param name="code"></param> /// <returns></returns> public static string GetNameByDB(string id) { ITC_Organization bll = new ITC_Organization(); return(bll.GetOrgaName(id)); }
/// <summary> /// 获取利家部门编码(数据库) /// </summary> /// <param name="code"></param> /// <returns></returns> public static string GetDeptCodeByDB(string id) { ITC_Organization bll = new ITC_Organization(); return(bll.GetDeptCode(id)); }
/// <summary> /// 编码是否存在(数据库) /// </summary> /// <param name="code"></param> /// <returns></returns> public static bool ExistsByDB(string id) { ITC_Organization bll = new ITC_Organization(); return(bll.Exists(id)); }
////获取利家档案 //public ActionResult GetUserModel(string userid) //{ // EmEmpData bEmp = new EmEmpData(); // EmEmpData_M mo = bEmp.GetModel(userid); // return Json(mo, JsonRequestBehavior.AllowGet); //} //获取组织ID public string GetOragID(string deptcode) { ITC_Organization bOrga = new ITC_Organization(); return(bOrga.GetOrgaIDbyDeptCode(deptcode)); }