public static List <IES.CC.OC.Model.OC> OC_List() { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List"); return(ocbll.OC_List(user.UserID, user.Role)); }
protected void Button1_Click(object sender, EventArgs e) { IES.JW.Model.User user = new IES.JW.Model.User { LoginName = tbuser.Text, Pwd = tbpassword.Text }; if( IES.Service.UserService.Login(user)) { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); List<IES.CC.OC.Model.OC> oclist = ocbll.OC_List(user.UserID, 1); if( Request.QueryString["ReturnUrl"] != null ) { string ReturnUrl = Request.QueryString["ReturnUrl"]; Response.Redirect(ReturnUrl); } } }
//根据用户获取网站 public void Get_Site(HttpContext context) { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List"); DataTable dt = IES.Common.ListToDateUtil.ListToDataTable <IES.CC.OC.Model.OC>(ocbll.OC_List(user.UserID, user.Role)); if (dt != null && dt.Rows.Count > 0) { context.Response.Write(Tools.JsonConvert.GetJSON(dt)); } else { context.Response.Write("False"); } }
public static List<StudentOC> StudentOC_List(int ishistory, int pageindex, int pagesize) { StudentOC studentoc = new StudentOC(); IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; studentoc.IsHistory = ishistory; studentoc.UserID = user.UserID; //List<StudentOC> studentoclist = new List<StudentOC>(); return ocbll.StudentOC_List(studentoc, pageindex, pagesize); //for (int i = 0; i < studentoclist.Count; i++) //{ // studentoclist[i].ImgFileUrl = FileService.g(responseList[i].UserID); //} //return studentoclist; }
//int ishistory, int pageindex, int pagesize public static List <StudentOC> StudentOC_List(int ishistory, int pageindex, int pagesize) { StudentOC studentoc = new StudentOC(); IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; studentoc.IsHistory = ishistory; studentoc.UserID = user.UserID; //List<StudentOC> studentoclist = new List<StudentOC>(); return(ocbll.StudentOC_List(studentoc, pageindex, pagesize)); //for (int i = 0; i < studentoclist.Count; i++) //{ // studentoclist[i].ImgFileUrl = FileService.g(responseList[i].UserID); //} //return studentoclist; }
//根据用户获取网站 public void Get_Site(HttpContext context) { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List"); DataTable dt = IES.Common.ListToDateUtil.ListToDataTable<IES.CC.OC.Model.OC>(ocbll.OC_List(user.UserID, user.Role)); if (dt != null && dt.Rows.Count > 0) { context.Response.Write(Tools.JsonConvert.GetJSON(dt)); } else { context.Response.Write("False"); } }
public static List<IES.CC.OC.Model.OC> OC_List() { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List"); return ocbll.OC_List(user.UserID, user.Role); }
public static int OC_Del(int OCID) { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; return ocbll.OC_Del(OCID, user.UserID, user.Role); }
public static IES.CC.OC.Model.WaitingProcess WaitingProcess_Get(bool isCache) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); return ocbll.WaitingProcess_Get(user.UserID, Convert.ToInt32(Browse.UserSpace), isCache); }
public static int OC_Del(int OCID) { IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; return(ocbll.OC_Del(OCID, user.UserID, user.Role)); }
public static IES.CC.OC.Model.WaitingProcess WaitingProcess_Get(bool isCache) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL(); return(ocbll.WaitingProcess_Get(user.UserID, Convert.ToInt32(Browse.UserSpace), isCache)); }