public GenericDocumentFormController(GenericDocumentForm frmGenericDocument) : base(frmGenericDocument) { FormConfigurationParameters pmtFormConfiguration = new FormConfigurationParameters(); this.frmGenericDocument = frmGenericDocument; this.frmGenericDocument.grdPrincipal.InitializeLayout += new InitializeLayoutEventHandler(grdPrincipal_InitializeLayout); this.frmGenericDocument.ulblSchUsername.Text = Session.User.Username; if (this.FormConfiguration != null) { this.frmGenericDocument.Text = this.FormConfiguration.FormEndUserName; } if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { this.srvGeneric = SamsaraAppContext.Resolve <IGenericService>(); } this.FormStatus = FormStatusEnum.Search; this.ShowDetail(false); }
public OperativeSystemFormController(OperativeSystemForm instance) { this.frmOperativeSystem = instance; this.srvOperativeSystem = SamsaraAppContext.Resolve <IOperativeSystemService>(); this.srvOperativeSystemType = SamsaraAppContext.Resolve <IOperativeSystemTypeService>(); this.InitializeFormControls(); }
public CompetitorForm() { InitializeComponent(); this.ctrlCompetitorForm = new CompetitorFormController(this); this.srvCompetitor = SamsaraAppContext.Resolve <ICompetitorService>(); Assert.IsNotNull(this.srvCompetitor); }
public BidderForm() { InitializeComponent(); this.ctrlBidderForm = new BidderFormController(this); this.srvBidder = SamsaraAppContext.Resolve <IBidderService>(); Assert.IsNotNull(this.srvBidder); }
public CustomerFormController(CustomerForm instance) { this.frmCustomer = instance; this.srvCustomer = SamsaraAppContext.Resolve <ICustomerService>(); this.srvBusinessType = SamsaraAppContext.Resolve <IBusinessTypeService>(); this.InitializeFormControls(); }
public TenderStatusForm() { InitializeComponent(); this.ctrlTenderStatusForm = new TenderStatusFormController(this); this.srvTenderStatus = SamsaraAppContext.Resolve <ITenderStatusService>(); Assert.IsNotNull(this.srvTenderStatus); }
public OpportunityStatusForm() { InitializeComponent(); this.ctrlOpportunityStatusForm = new OpportunityStatusFormController(this); this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>(); Assert.IsNotNull(this.srvOpportunityStatus); }
public EndUserFormController(EndUserForm instance) { this.frmEndUser = instance; this.srvEndUser = SamsaraAppContext.Resolve <IEndUserService>(); this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>(); this.InitializeFormControls(); }
public WarrantyTypeFormController(WarrantyTypeForm instance) { this.frmWarrantyType = instance; this.srvWarrantyType = SamsaraAppContext.Resolve <IWarrantyTypeService>(); Assert.IsNotNull(this.srvWarrantyType); this.InitializeFormControls(); }
public BidderFormController(BidderForm instance) { this.frmBidder = instance; this.srvBidder = SamsaraAppContext.Resolve <IBidderService>(); this.srvBidderType = SamsaraAppContext.Resolve <IBidderTypeService>(); this.InitializeFormControls(); }
public DocumentTypeWarrantyFormController(DocumentTypeWarrantyForm instance) { this.frmDocumentTypeWarranty = instance; this.srvDocumentTypeWarranty = SamsaraAppContext.Resolve <IDocumentTypeWarrantyService>(); Assert.IsNotNull(this.srvDocumentTypeWarranty); this.InitializeFormControls(); }
public OpportunityStatusFormController(OpportunityStatusForm instance) { this.frmOpportunityStatus = instance; this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>(); Assert.IsNotNull(this.srvOpportunityStatus); this.InitializeFormControls(); }
public TenderStatusFormController(TenderStatusForm instance) { this.frmTenderStatus = instance; this.srvTenderStatus = SamsaraAppContext.Resolve <ITenderStatusService>(); Assert.IsNotNull(this.srvTenderStatus); this.InitializeFormControls(); }
public WholesalerForm() { InitializeComponent(); this.ctrlWholesalerForm = new WholesalerFormController(this); this.srvWholesaler = SamsaraAppContext.Resolve <IWholesalerService>(); Assert.IsNotNull(this.srvWholesaler); }
public CustomerInfrastructurePrinterClassificationFormController(CustomerInfrastructurePrinterClassificationForm instance) { this.frmCustomerInfrastructurePrinterClassification = instance; this.srvCustomerInfrastructurePrinterClassification = SamsaraAppContext.Resolve <ICustomerInfrastructurePrinterClassificationService>(); Assert.IsNotNull(this.srvCustomerInfrastructurePrinterClassification); this.InitializeFormControls(); }
public OrganizationFormController(OrganizationForm instance) { this.frmOrganization = instance; this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>(); Assert.IsNotNull(this.srvOrganization); this.InitializeFormControls(); }
public CompetitorFormController(CompetitorForm instance) { this.frmCompetitor = instance; this.srvCompetitor = SamsaraAppContext.Resolve <ICompetitorService>(); Assert.IsNotNull(this.srvCompetitor); this.InitializeFormControls(); }
public OpportunityForm() { InitializeComponent(); this.ctrlOpportunityForm = new OpportunityFormController(this); this.srvOpportunity = SamsaraAppContext.Resolve <IOpportunityService>(); this.srvOpportunityType = SamsaraAppContext.Resolve <IOpportunityTypeService>(); }
public CurrencyFormController(CurrencyForm instance) { this.frmCurrency = instance; this.srvCurrency = SamsaraAppContext.Resolve <ICurrencyService>(); Assert.IsNotNull(this.srvCurrency); this.InitializeFormControls(); }
public DependencyForm() { InitializeComponent(); this.ctrlDependencyForm = new DependencyFormController(this); this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>(); Assert.IsNotNull(this.srvDependency); }
private void SaveTenderFiles(Tender entity) { TenderFileParameters pmtTenderFile = new TenderFileParameters(); ITenderFileDao daoTenderFile = SamsaraAppContext.Resolve <ITenderFileDao>(); Assert.IsNotNull(daoTenderFile); foreach (TenderFile tenderFile in entity.TenderFiles) { if (tenderFile.File != null) { tenderFile.TenderFileId = -1; daoTenderFile.SaveOrUpdate(tenderFile); } } pmtTenderFile.TenderId = entity.TenderId; IEnumerable <int> tenderFileIds = daoTenderFile.SearchByParameters(pmtTenderFile) .AsEnumerable().Select(x => Convert.ToInt32(x[0])); foreach (int tenderFileId in tenderFileIds.Where(x => !entity.TenderFiles .Select(y => y.TenderFileId).Contains(x))) { TenderFile tenderFile = new TenderFile(); tenderFile.TenderFileId = tenderFileId; daoTenderFile.Delete(tenderFile); } }
public CustomerInfrastructurePrinterClassificationForm() { InitializeComponent(); this.ctrlCustomerInfrastructurePrinterClassificationForm = new CustomerInfrastructurePrinterClassificationFormController(this); this.srvCustomerInfrastructurePrinterClassification = SamsaraAppContext.Resolve <ICustomerInfrastructurePrinterClassificationService>(); Assert.IsNotNull(this.srvCustomerInfrastructurePrinterClassification); }
public WholesalerFormController(WholesalerForm instance) { this.frmWholesaler = instance; this.srvWholesaler = SamsaraAppContext.Resolve <IWholesalerService>(); Assert.IsNotNull(this.srvWholesaler); this.InitializeFormControls(); }
public DocumentTypeWarrantyForm() { InitializeComponent(); this.ctrlDocumentTypeWarrantyForm = new DocumentTypeWarrantyFormController(this); this.srvDocumentTypeWarranty = SamsaraAppContext.Resolve <IDocumentTypeWarrantyService>(); Assert.IsNotNull(this.srvDocumentTypeWarranty); }
private void PrepareComponents() { if (this.service == null) { this.service = SamsaraAppContext.Resolve <TService>(); } }
public OpportunityFormController(OpportunityForm instance) { this.frmOpportunity = instance; this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>(); Assert.IsNotNull(this.srvOrganization); this.srvBidder = SamsaraAppContext.Resolve <IBidderService>(); Assert.IsNotNull(this.srvBidder); this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>(); Assert.IsNotNull(this.srvDependency); this.srvEndUser = SamsaraAppContext.Resolve <IEndUserService>(); Assert.IsNotNull(this.srvEndUser); this.srvAsesor = SamsaraAppContext.Resolve <IAsesorService>(); Assert.IsNotNull(this.srvAsesor); this.srvTender = SamsaraAppContext.Resolve <ITenderService>(); Assert.IsNotNull(this.srvTender); this.srvOpportunity = SamsaraAppContext.Resolve <IOpportunityService>(); Assert.IsNotNull(this.srvOpportunity); this.srvOpportunityType = SamsaraAppContext.Resolve <IOpportunityTypeService>(); Assert.IsNotNull(this.srvOpportunityType); this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>(); Assert.IsNotNull(this.srvOpportunityStatus); this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>(); Assert.IsNotNull(this.srvManufacturer); this.srvOpportunityLog = SamsaraAppContext.Resolve <IOpportunityLogService>(); Assert.IsNotNull(this.srvOpportunityLog); this.InitializeFormControls(); }
public WarrantyTypeForm() { InitializeComponent(); this.ctrlWarrantyTypeForm = new WarrantyTypeFormController(this); this.srvWarrantyType = SamsaraAppContext.Resolve <IWarrantyTypeService>(); Assert.IsNotNull(this.srvWarrantyType); }
public ManufacturerFormController(ManufacturerForm instance) { this.frmManufacturer = instance; this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>(); Assert.IsNotNull(this.srvManufacturer); this.InitializeFormControls(); }
public ManufacturerForm() { InitializeComponent(); this.ctrlManufacturerForm = new ManufacturerFormController(this); this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>(); Assert.IsNotNull(this.srvManufacturer); }
public OrganizationForm() { InitializeComponent(); this.ctrlOrganizationForm = new OrganizationFormController(this); this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>(); Assert.IsNotNull(this.srvOrganization); }