private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Override.AllowUpdate = DefaultableBoolean.False; BackupSoftwareBrandParameters pmtBackupSoftwareBrand = new BackupSoftwareBrandParameters(); IList <BackupSoftwareBrand> cctvBrands = this.srvBackupSoftwareBrand.GetListByParameters(pmtBackupSoftwareBrand); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["BackupSoftwareBrandId"], "BackupSoftwareBrandId", "Name", "Seleccione"); if (this.CustomerInfrastructure != null) { CustomerInfrastructureServerComputerParameters pmtCustomerInfrastructureServerComputer = new CustomerInfrastructureServerComputerParameters(); pmtCustomerInfrastructureServerComputer.CustomerInfrastructureId = this.CustomerInfrastructure.CustomerInfrastructureId; IList <CustomerInfrastructureServerComputer> customerInfrastructureServerComputers = this.srvCustomerInfrastructureServerComputer.GetListByParameters(pmtCustomerInfrastructureServerComputer); this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.Parameters = pmtCustomerInfrastructureServerComputer; this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.DisplayMember = "ServerModel"; this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.Refresh(); WindowsFormsUtil.SetUltraGridValueList(e.Layout, customerInfrastructureServerComputers, band.Columns["CustomerInfrastructureServerComputerId"], "CustomerInfrastructureServerComputerId", "ServerModel", "Seleccione"); } }
private void Search() { BackupSoftwareBrandParameters pmtBackupSoftwareBrand = new BackupSoftwareBrandParameters(); pmtBackupSoftwareBrand.Name = "%" + this.frmBackupSoftwareBrand.txtSchName.Text + "%"; DataTable dtBackupSoftwareBrands = srvBackupSoftwareBrand.SearchByParameters(pmtBackupSoftwareBrand); this.frmBackupSoftwareBrand.grdSchSearch.DataSource = null; this.frmBackupSoftwareBrand.grdSchSearch.DataSource = dtBackupSoftwareBrands; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { BackupSoftwareBrandParameters pmtBackupSoftwareBrand = new BackupSoftwareBrandParameters(); this.controlCustomerInfrastructureBackupSoftwares.bsbcBackupSoftwareBrand.Parameters = pmtBackupSoftwareBrand; this.controlCustomerInfrastructureBackupSoftwares.bsbcBackupSoftwareBrand.Refresh(); this.controlCustomerInfrastructureBackupSoftwares.grdRelations.InitializeLayout += new InitializeLayoutEventHandler(grdRelations_InitializeLayout); } }