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