示例#1
0
 public FilterTask(Models.EmployeeRequirementSheet recruitmentManagement)
 {
     this.Description     = recruitmentManagement.Position;
     this.Requester       = recruitmentManagement.CommonCreator;
     this.Department      = recruitmentManagement.CommonDepartment;
     this.CreatedDate     = recruitmentManagement.Created;
     this.DueDate         = recruitmentManagement.RequestDueDate == DateTime.MinValue ? recruitmentManagement.AvailableTime : recruitmentManagement.RequestDueDate;// Policy: 15 ngay // TODO
     this.ItemId          = recruitmentManagement.ID;
     this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl(EmployeeRequirementSheetsList.Url, this.ItemId)}&Source=/SitePages/Overview.aspx";
     this.InitModule(EmployeeRequirementSheetsList.Url);
 }
示例#2
0
 /// <summary>
 /// Initialize from EmployeeRequirementSheet object.
 /// </summary>
 /// <param name="employeeRequirementSheet">The EmployeeRequirementSheet object.</param>
 public Delegation(Models.EmployeeRequirementSheet employeeRequirementSheet, SPWeb currentWeb = null) : this(currentWeb)
 {
     //this.ModuleName = "Recruitment Management";
     //this.VietnameseModuleName = "Quản Lý Yêu Cầu Tuyển Dụng";
     this.ListItemDescription = employeeRequirementSheet.Position;
     this.Requester           = employeeRequirementSheet.CommonCreator;
     this.Department          = employeeRequirementSheet.CommonDepartment;
     this.ListItemCreatedDate = employeeRequirementSheet.Created;
     this.ListUrl             = EmployeeRequirementSheetsList.Url;
     this.ListItemID          = employeeRequirementSheet.ID;
     this.ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl(this.CurrentWeb, this.ListUrl, this.ListItemID);
     this.InitModuleName(EmployeeRequirementSheetsList.Url);
 }