Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /// <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);
 }