当前位置: 首页>>代码示例>>C#>>正文


C# IUserService.GetAllCollage方法代码示例

本文整理汇总了C#中IUserService.GetAllCollage方法的典型用法代码示例。如果您正苦于以下问题:C# IUserService.GetAllCollage方法的具体用法?C# IUserService.GetAllCollage怎么用?C# IUserService.GetAllCollage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IUserService的用法示例。


在下文中一共展示了IUserService.GetAllCollage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Search

 public ActionResult Search()
 {
     userService = ServiceBuilder.BuildUserService();
     container_list_s.list_Grd = userService.GetAllGrd();
     container_list_s.list_Dep = userService.GetAllDep();
     container_list_s.list_Col = userService.GetAllCollage();
     return View(container_list_s);
 }
开发者ID:Wright52,项目名称:PublicWelfare,代码行数:8,代码来源:TimeTableController.cs

示例2: Add

 public ActionResult Add(int curPage)
 {
     if (Request.Form != null && Request.Form.Count > 0)
     {
         resp = familyService.AddFamily(Request);
         return this.JudgeResult(resp, () => RedirectToAction("Details", new {
             curpage = curPage,
             msg=string.Format("添加了成员{0} {1}",Request.Form["userid"],Request.Form["username"])
         }));
     }
     conta_List_Status = new Container_List_Status();
     userService = ServiceBuilder.BuildUserService();
     conta_List_Status.list_Col = userService.GetAllCollage();
     conta_List_Status.list_Grd = userService.GetAllGrd();
     conta_List_Status.list_Dep = userService.GetAllDep();
     conta_List_Status.curpage = curPage;
     return View(conta_List_Status);
 }
开发者ID:Wright52,项目名称:PublicWelfare,代码行数:18,代码来源:FamilyController.cs

示例3: Register

 public ActionResult Register()
 {
     userService = ServiceBuilder.BuildUserService();
     conTa_status.list_Grd = userService.GetAllGrd();
     conTa_status.list_Dep = userService.GetAllDep();
     conTa_status.list_Col = userService.GetAllCollage();
     conTa_status.list_Role = userService.GetAllRole();
     return View(conTa_status);
 }
开发者ID:Wright52,项目名称:PublicWelfare,代码行数:9,代码来源:UserController.cs

示例4: Registering

 public ActionResult Registering()
 {
     userService = ServiceBuilder.BuildUserService();
     ResponseStatus respStatus = userService.Registering(Request, conTa_status);
     if (respStatus == ResponseStatus.SUCCESS)
     {
         return RedirectToAction("Message", "Other", new { msg = Msg.ThankReg });
     }
     else if (respStatus == ResponseStatus.HAVEREG)
     {
         return RedirectToAction("Message", "Other", new { msg = Msg.HaveReg });
     }
     else
     {
         conTa_status.list_Grd = userService.GetAllGrd();
         conTa_status.list_Dep = userService.GetAllDep();
         conTa_status.list_Col = userService.GetAllCollage();
         conTa_status.list_Role = userService.GetAllRole();
         return View("Register", conTa_status);
     }
 }
开发者ID:Wright52,项目名称:PublicWelfare,代码行数:21,代码来源:UserController.cs

示例5: Update

 public ActionResult Update(int? id, int curPage)
 {
     if (Request.Form != null && Request.Form.Count > 0)
     {
         resp = familyService.UpdateFamily(Request);
         return this.JudgeResult(resp, () => RedirectToAction("Details", new
         {
             curpage = curPage,
             msg = string.Format("更新了成员{0} {1}", Request.Form["userid"], Request.Form["username"])
         }));
     }
     else
     {
         Family family = null;
         resp = familyService.GetFamily((int)id, ()=> family = new Family());
         return this.JudgeResult(resp, () => {
             conta_Family = new Container_Family();
             conta_Family.family = family;
             userService = ServiceBuilder.BuildUserService();
             conta_Family.list_Col = userService.GetAllCollage();
             conta_Family.list_Grd = userService.GetAllGrd();
             conta_Family.list_Dep = userService.GetAllDep();
             conta_Family.user = new UserStatus()
             {
                 Grd = family.Grd,
                 Clg = family.Clg,
                 Dep = family.Dep,
             };
             conta_Family.curpage = curPage;
             return View(conta_Family);
         });
     }
 }
开发者ID:Wright52,项目名称:PublicWelfare,代码行数:33,代码来源:FamilyController.cs


注:本文中的IUserService.GetAllCollage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。