public override void Initialize()
 {
     base.Initialize();
     service = new ComplianceDocumentService(Base, ComplianceAttributeGroups, ComplianceDocuments,
                                             nameof(ComplianceDocuments));
     service.GenerateColumns(ComplianceDocuments.Cache, nameof(ComplianceAnswers));
     service.AddExpirationDateEventHandlers();
     ComplianceDocumentFieldVisibilitySetter.HideFieldsForProjectTask(ComplianceDocuments.Cache);
 }
 public override void Initialize()
 {
     complianceDocumentService = new ComplianceDocumentService(Base, ComplianceAttributeGroups, ComplianceDocuments,
                                                               nameof(ComplianceDocuments));
     complianceDocumentService.GenerateColumns(ComplianceDocuments.Cache, nameof(ComplianceAnswers));
     complianceDocumentService.AddExpirationDateEventHandlers();
     changeOrderValidationService = new ChangeOrderValidationService(Base, ComplianceDocuments);
     ComplianceDocumentFieldVisibilitySetter.HideFieldsForChangeOrder(ComplianceDocuments.Cache);
 }
예제 #3
0
 private void UpdateFieldsVisibilityForComplianceDocuments()
 {
     if (IsSubcontractScreen())
     {
         ComplianceDocumentFieldVisibilitySetter.HideFieldsForSubcontract(ComplianceDocuments.Cache);
     }
     else
     {
         ComplianceDocumentFieldVisibilitySetter.HideFieldsForPurchaseOrder(ComplianceDocuments.Cache);
     }
 }