コード例 #1
0
        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);
        }
コード例 #2
0
 public OperativeSystemFormController(OperativeSystemForm instance)
 {
     this.frmOperativeSystem     = instance;
     this.srvOperativeSystem     = SamsaraAppContext.Resolve <IOperativeSystemService>();
     this.srvOperativeSystemType = SamsaraAppContext.Resolve <IOperativeSystemTypeService>();
     this.InitializeFormControls();
 }
コード例 #3
0
 public CompetitorForm()
 {
     InitializeComponent();
     this.ctrlCompetitorForm = new CompetitorFormController(this);
     this.srvCompetitor      = SamsaraAppContext.Resolve <ICompetitorService>();
     Assert.IsNotNull(this.srvCompetitor);
 }
コード例 #4
0
 public BidderForm()
 {
     InitializeComponent();
     this.ctrlBidderForm = new BidderFormController(this);
     this.srvBidder      = SamsaraAppContext.Resolve <IBidderService>();
     Assert.IsNotNull(this.srvBidder);
 }
コード例 #5
0
 public CustomerFormController(CustomerForm instance)
 {
     this.frmCustomer     = instance;
     this.srvCustomer     = SamsaraAppContext.Resolve <ICustomerService>();
     this.srvBusinessType = SamsaraAppContext.Resolve <IBusinessTypeService>();
     this.InitializeFormControls();
 }
コード例 #6
0
 public TenderStatusForm()
 {
     InitializeComponent();
     this.ctrlTenderStatusForm = new TenderStatusFormController(this);
     this.srvTenderStatus      = SamsaraAppContext.Resolve <ITenderStatusService>();
     Assert.IsNotNull(this.srvTenderStatus);
 }
コード例 #7
0
 public OpportunityStatusForm()
 {
     InitializeComponent();
     this.ctrlOpportunityStatusForm = new OpportunityStatusFormController(this);
     this.srvOpportunityStatus      = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
 }
コード例 #8
0
 public EndUserFormController(EndUserForm instance)
 {
     this.frmEndUser    = instance;
     this.srvEndUser    = SamsaraAppContext.Resolve <IEndUserService>();
     this.srvDependency = SamsaraAppContext.Resolve <IDependencyService>();
     this.InitializeFormControls();
 }
コード例 #9
0
 public WarrantyTypeFormController(WarrantyTypeForm instance)
 {
     this.frmWarrantyType = instance;
     this.srvWarrantyType = SamsaraAppContext.Resolve <IWarrantyTypeService>();
     Assert.IsNotNull(this.srvWarrantyType);
     this.InitializeFormControls();
 }
コード例 #10
0
 public BidderFormController(BidderForm instance)
 {
     this.frmBidder     = instance;
     this.srvBidder     = SamsaraAppContext.Resolve <IBidderService>();
     this.srvBidderType = SamsaraAppContext.Resolve <IBidderTypeService>();
     this.InitializeFormControls();
 }
コード例 #11
0
 public DocumentTypeWarrantyFormController(DocumentTypeWarrantyForm instance)
 {
     this.frmDocumentTypeWarranty = instance;
     this.srvDocumentTypeWarranty = SamsaraAppContext.Resolve <IDocumentTypeWarrantyService>();
     Assert.IsNotNull(this.srvDocumentTypeWarranty);
     this.InitializeFormControls();
 }
コード例 #12
0
 public OpportunityStatusFormController(OpportunityStatusForm instance)
 {
     this.frmOpportunityStatus = instance;
     this.srvOpportunityStatus = SamsaraAppContext.Resolve <IOpportunityStatusService>();
     Assert.IsNotNull(this.srvOpportunityStatus);
     this.InitializeFormControls();
 }
コード例 #13
0
 public TenderStatusFormController(TenderStatusForm instance)
 {
     this.frmTenderStatus = instance;
     this.srvTenderStatus = SamsaraAppContext.Resolve <ITenderStatusService>();
     Assert.IsNotNull(this.srvTenderStatus);
     this.InitializeFormControls();
 }
コード例 #14
0
 public WholesalerForm()
 {
     InitializeComponent();
     this.ctrlWholesalerForm = new WholesalerFormController(this);
     this.srvWholesaler      = SamsaraAppContext.Resolve <IWholesalerService>();
     Assert.IsNotNull(this.srvWholesaler);
 }
コード例 #15
0
 public CustomerInfrastructurePrinterClassificationFormController(CustomerInfrastructurePrinterClassificationForm instance)
 {
     this.frmCustomerInfrastructurePrinterClassification = instance;
     this.srvCustomerInfrastructurePrinterClassification = SamsaraAppContext.Resolve <ICustomerInfrastructurePrinterClassificationService>();
     Assert.IsNotNull(this.srvCustomerInfrastructurePrinterClassification);
     this.InitializeFormControls();
 }
コード例 #16
0
 public OrganizationFormController(OrganizationForm instance)
 {
     this.frmOrganization = instance;
     this.srvOrganization = SamsaraAppContext.Resolve <IOrganizationService>();
     Assert.IsNotNull(this.srvOrganization);
     this.InitializeFormControls();
 }
コード例 #17
0
 public CompetitorFormController(CompetitorForm instance)
 {
     this.frmCompetitor = instance;
     this.srvCompetitor = SamsaraAppContext.Resolve <ICompetitorService>();
     Assert.IsNotNull(this.srvCompetitor);
     this.InitializeFormControls();
 }
コード例 #18
0
 public OpportunityForm()
 {
     InitializeComponent();
     this.ctrlOpportunityForm = new OpportunityFormController(this);
     this.srvOpportunity      = SamsaraAppContext.Resolve <IOpportunityService>();
     this.srvOpportunityType  = SamsaraAppContext.Resolve <IOpportunityTypeService>();
 }
コード例 #19
0
 public CurrencyFormController(CurrencyForm instance)
 {
     this.frmCurrency = instance;
     this.srvCurrency = SamsaraAppContext.Resolve <ICurrencyService>();
     Assert.IsNotNull(this.srvCurrency);
     this.InitializeFormControls();
 }
コード例 #20
0
 public DependencyForm()
 {
     InitializeComponent();
     this.ctrlDependencyForm = new DependencyFormController(this);
     this.srvDependency      = SamsaraAppContext.Resolve <IDependencyService>();
     Assert.IsNotNull(this.srvDependency);
 }
コード例 #21
0
ファイル: TenderDao.cs プロジェクト: najeraz/samsara-projects
        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);
 }
コード例 #23
0
 public WholesalerFormController(WholesalerForm instance)
 {
     this.frmWholesaler = instance;
     this.srvWholesaler = SamsaraAppContext.Resolve <IWholesalerService>();
     Assert.IsNotNull(this.srvWholesaler);
     this.InitializeFormControls();
 }
コード例 #24
0
 public DocumentTypeWarrantyForm()
 {
     InitializeComponent();
     this.ctrlDocumentTypeWarrantyForm = new DocumentTypeWarrantyFormController(this);
     this.srvDocumentTypeWarranty      = SamsaraAppContext.Resolve <IDocumentTypeWarrantyService>();
     Assert.IsNotNull(this.srvDocumentTypeWarranty);
 }
コード例 #25
0
 private void PrepareComponents()
 {
     if (this.service == null)
     {
         this.service = SamsaraAppContext.Resolve <TService>();
     }
 }
コード例 #26
0
 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();
 }
コード例 #27
0
 public WarrantyTypeForm()
 {
     InitializeComponent();
     this.ctrlWarrantyTypeForm = new WarrantyTypeFormController(this);
     this.srvWarrantyType      = SamsaraAppContext.Resolve <IWarrantyTypeService>();
     Assert.IsNotNull(this.srvWarrantyType);
 }
コード例 #28
0
 public ManufacturerFormController(ManufacturerForm instance)
 {
     this.frmManufacturer = instance;
     this.srvManufacturer = SamsaraAppContext.Resolve <IManufacturerService>();
     Assert.IsNotNull(this.srvManufacturer);
     this.InitializeFormControls();
 }
コード例 #29
0
 public ManufacturerForm()
 {
     InitializeComponent();
     this.ctrlManufacturerForm = new ManufacturerFormController(this);
     this.srvManufacturer      = SamsaraAppContext.Resolve <IManufacturerService>();
     Assert.IsNotNull(this.srvManufacturer);
 }
コード例 #30
0
 public OrganizationForm()
 {
     InitializeComponent();
     this.ctrlOrganizationForm = new OrganizationFormController(this);
     this.srvOrganization      = SamsaraAppContext.Resolve <IOrganizationService>();
     Assert.IsNotNull(this.srvOrganization);
 }