Esempio n. 1
0
 public ProtocolRequestReport(ProtocolRequest request)
 {
     this.protocolRequest = request;
     this.templates       = new ArrayList();
     this.templates       = QProtocolRequestTemplates.SelectItems(request.ID);
     this.filePath        = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) +
                            "\\TPM-ToxikonProtocolManager\\";
     this.fileName = protocolRequest.Contact.SponsorName + '-' + protocolRequest.RequestedBy + '-' +
                     protocolRequest.RequestedDate.ToString("yyyyMMdd");
 }
 private void LoadRequestTemplates()
 {
     if (this.requestFormType == RequestFormTypes.ReadOnly)
     {
         this.templates = QProtocolRequestTemplates.SelectItems(this.request.ID);
     }
     else
     {
         if (loginInfo.Role.RoleID != UserRoles.DepartmentDirector)
         {
             this.templates = QProtocolRequestTemplates.SelectItems(this.request.ID);
         }
         else
         {
             this.templates = QProtocolRequestTemplates.SelectItemsByDirector(this.request.ID,
                                                                              this.loginInfo.UserName);
         }
     }
 }