public FilterTask(Models.GuestReceptionManagement guestReceptionManagement) { this.Description = guestReceptionManagement.Title; this.Requester = guestReceptionManagement.CommonCreator; this.Department = guestReceptionManagement.CommonDepartment; this.CreatedDate = guestReceptionManagement.Created; this.DueDate = DateTime.MinValue; // TODO this.ItemId = guestReceptionManagement.ID; this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl(GuestReceptionManagementList.Url, this.ItemId)}&Source=/SitePages/Overview.aspx"; this.InitModule(GuestReceptionManagementList.Url); }
public FilterTask(Models.RequisitionOfMeetingRoom requisitionOfMeetingRoom) { this.Description = requisitionOfMeetingRoom.Title; this.Requester = requisitionOfMeetingRoom.CommonCreator; this.Department = requisitionOfMeetingRoom.CommonDepartment; this.CreatedDate = requisitionOfMeetingRoom.Created; this.DueDate = DateTime.MinValue; // TODO this.ItemId = requisitionOfMeetingRoom.ID; this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl(RequisitionOfMeetingRoomList.Url, this.ItemId)}&Source=/SitePages/Overview.aspx"; this.InitModule(RequisitionOfMeetingRoomList.Url); }
public FilterTask(Models.RequestForDiplomaSupply requestForDiplomaSupply) { this.Description = requestForDiplomaSupply.Position; this.Requester = requestForDiplomaSupply.CommonCreator; this.Department = requestForDiplomaSupply.CommonDepartment; this.CreatedDate = requestForDiplomaSupply.Created; this.DueDate = DateTime.MinValue; // TODO this.ItemId = requestForDiplomaSupply.ID; this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl(RequestForDiplomaSuppliesList.Url, this.ItemId)}&Source=/SitePages/Overview.aspx"; this.InitModule(RequestForDiplomaSuppliesList.Url); }
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); }
public FilterTask(Models.Request requestManagement) { this.Description = requestManagement.Title; this.Requester = requestManagement.CommonCreator; this.Department = requestManagement.Department; this.CreatedDate = requestManagement.Created; this.DueDate = requestManagement.RequestDueDate == DateTime.MinValue ? requestManagement.FinishDate : requestManagement.RequestDueDate;// TODO this.ItemId = requestManagement.ID; this.ItemApprovalUrl = $"{DelegationManager.BuildListItemApprovalUrl(RequestsList.Url, this.ItemId)}&Source=/SitePages/Overview.aspx"; this.InitModule(RequestsList.Url); }
/// <summary> /// Initialize from GuestReceptionManagement object. /// </summary> /// <param name="request">The GuestReceptionManagement object.</param> public Delegation(Models.GuestReceptionManagement guestReceptionManagement, SPWeb currentWeb = null) : this(currentWeb) { //this.ModuleName = "Requirement For Guest Reception Management"; //this.VietnameseModuleName = "Quản Lý Yêu Đón Tiếp Khách"; this.ListItemDescription = guestReceptionManagement.Title; this.Requester = guestReceptionManagement.CommonCreator; this.Department = guestReceptionManagement.CommonDepartment; this.ListItemCreatedDate = guestReceptionManagement.Created; this.ListUrl = GuestReceptionManagementList.Url; this.ListItemID = guestReceptionManagement.ID; this.ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl(this.CurrentWeb, this.ListUrl, this.ListItemID); this.InitModuleName(GuestReceptionManagementList.Url); }
/// <summary> /// Initialize from RequisitionOfMeetingRoom object. /// </summary> /// <param name="request">The RequisitionOfMeetingRoom object.</param> public Delegation(Models.RequisitionOfMeetingRoom requisitionOfMeetingRoom, SPWeb currentWeb = null) : this(currentWeb) { //this.ModuleName = "Requisition Of Meeting Room Management"; //this.VietnameseModuleName = "Quản Lý Yêu Cầu Phòng Họp"; this.ListItemDescription = requisitionOfMeetingRoom.Title; this.Requester = requisitionOfMeetingRoom.CommonCreator; this.Department = requisitionOfMeetingRoom.CommonDepartment; this.ListItemCreatedDate = requisitionOfMeetingRoom.Created; this.ListUrl = RequisitionOfMeetingRoomList.Url; this.ListItemID = requisitionOfMeetingRoom.ID; this.ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl(this.CurrentWeb, this.ListUrl, this.ListItemID); this.InitModuleName(RequisitionOfMeetingRoomList.Url); }
/// <summary> /// Initialize from RequestForDiplomaSupply object. /// </summary> /// <param name="requestForDiplomaSupply">The RequestForDiplomaSupply object.</param> public Delegation(Models.RequestForDiplomaSupply requestForDiplomaSupply, SPWeb currentWeb = null) : this(currentWeb) { //this.ModuleName = "Request For Diploma Supply Management"; //this.VietnameseModuleName = "Quản Lý Phiếu Đề Nghị Bổ Sung Bằng Cấp"; this.ListItemDescription = string.Format("{0} - {1}", requestForDiplomaSupply.EmployeeName, requestForDiplomaSupply.Position); this.Requester = requestForDiplomaSupply.CommonCreator; this.Department = requestForDiplomaSupply.CommonDepartment; this.ListItemCreatedDate = requestForDiplomaSupply.Created; this.ListUrl = RequestForDiplomaSuppliesList.Url; this.ListItemID = requestForDiplomaSupply.ID; this.ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl(this.CurrentWeb, this.ListUrl, this.ListItemID); this.InitModuleName(RequestForDiplomaSuppliesList.Url); }
/// <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); }
/// <summary> /// Initialize from Request object. /// </summary> /// <param name="request">The Request object.</param> public Delegation(Models.Request request, SPWeb currentWeb = null) : this(currentWeb) { //this.ModuleName = "Requests Management"; //this.VietnameseModuleName = "Quản Lý Phiếu Đề Nghị"; this.ListItemDescription = request.Title; this.Requester = request.CommonCreator; this.Department = request.Department; this.ListItemCreatedDate = request.Created; this.ListUrl = RequestsList.Url; this.ListItemID = request.ID; this.ListItemApprovalUrl = DelegationManager.BuildListItemApprovalUrl(this.CurrentWeb, this.ListUrl, this.ListItemID); this.InitModuleName(RequestsList.Url); }