protected void SetMissionPbRecordsListModelFromSession(MissionPurchaseBookRecordsListModel model)
 {
     MissionOrderFilterModel filterModel = (MissionOrderFilterModel)System.Web.HttpContext.Current.Session[SessionMissionPbRecordsListFilterName];
     if (filterModel != null)
     {
         model.UserName = filterModel.UserName;
         if (AuthenticationService.CurrentUser.UserRole != UserRole.Employee && filterModel.DepartmentId != 0)
         {
             Department dep = DepartmentDao.Load(filterModel.DepartmentId);
             if (dep != null)
             {
                 model.DepartmentId = filterModel.DepartmentId;
                 model.DepartmentName = dep.Name;
             }
         }
     }
 }
 public ActionResult MissionPurchaseBookRecordsList(MissionPurchaseBookRecordsListModel model)
 {
     SetMissionPbRecordsFilterToSession(model);
     RequestBl.SetMissionPurchaseBookRecordsListModel(model);
     return View(model);
 }
 protected void SetMissionPbRecordsFilterToSession(MissionPurchaseBookRecordsListModel model)
 {
     MissionOrderFilterModel filterModel = new MissionOrderFilterModel
     {
         DepartmentId = model.DepartmentId,
         UserName = model.UserName
     };
     System.Web.HttpContext.Current.Session[SessionMissionPbRecordsListFilterName] = filterModel;
 }