|
|
@@ -3,6 +3,8 @@ using System.Data; |
|
|
|
using Learun.Application.TwoDevelopment.EducationalAdministration; |
|
|
|
using System.Web.Mvc; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using Learun.Application.Organization; |
|
|
|
|
|
|
|
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
@@ -16,7 +18,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public class FillinFromController : MvcControllerBase |
|
|
|
{ |
|
|
|
private FillinFromIBLL fillinFromIBLL = new FillinFromBLL(); |
|
|
|
|
|
|
|
private DepartmentBLL departmentIBLL = new DepartmentBLL(); |
|
|
|
#region 视图功能 |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -26,6 +28,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
[HttpGet] |
|
|
|
public ActionResult Index() |
|
|
|
{ |
|
|
|
var logininfo = LoginUserInfo.Get(); |
|
|
|
ViewBag.isSystem = logininfo.isSystem; |
|
|
|
ViewBag.departmentId = ""; |
|
|
|
var Model = departmentIBLL.GetEntity(logininfo.companyId, logininfo.departmentId); |
|
|
|
if (Model.F_Manager == logininfo.realName) |
|
|
|
{ |
|
|
|
ViewBag.departmentId = logininfo.departmentId; |
|
|
|
} |
|
|
|
return View(); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -36,9 +46,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
public ActionResult FormIndex() |
|
|
|
{ |
|
|
|
var logininfo = LoginUserInfo.Get(); |
|
|
|
ViewBag.userId = logininfo.userId; |
|
|
|
ViewBag.isSystem = logininfo.isSystem; |
|
|
|
ViewBag.departmentId = logininfo.departmentId; |
|
|
|
ViewBag.departmentId = ""; |
|
|
|
var Model = departmentIBLL.GetEntity(logininfo.companyId, logininfo.departmentId); |
|
|
|
if (Model.F_Manager == logininfo.realName) |
|
|
|
{ |
|
|
|
ViewBag.departmentId = logininfo.departmentId; |
|
|
|
} |
|
|
|
return View(); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|