private void Search() { SecuritySoftwareBrandParameters pmtSecuritySoftwareBrand = new SecuritySoftwareBrandParameters(); pmtSecuritySoftwareBrand.Name = "%" + this.frmSecuritySoftwareBrand.txtSchName.Text + "%"; DataTable dtSecuritySoftwareBrands = srvSecuritySoftwareBrand.SearchByParameters(pmtSecuritySoftwareBrand); this.frmSecuritySoftwareBrand.grdSchSearch.DataSource = null; this.frmSecuritySoftwareBrand.grdSchSearch.DataSource = dtSecuritySoftwareBrands; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { SecuritySoftwareBrandParameters pmtSecuritySoftwareBrand = new SecuritySoftwareBrandParameters(); this.controlCustomerInfrastructureSecuritySoftwares.ssbSecuritySoftwareBrand.Parameters = pmtSecuritySoftwareBrand; this.controlCustomerInfrastructureSecuritySoftwares.ssbSecuritySoftwareBrand.Refresh(); SecuritySoftwareTypeParameters pmtSecuritySoftwareType = new SecuritySoftwareTypeParameters(); this.controlCustomerInfrastructureSecuritySoftwares.sstcSecuritySoftwareType.Parameters = pmtSecuritySoftwareType; this.controlCustomerInfrastructureSecuritySoftwares.sstcSecuritySoftwareType.Refresh(); this.controlCustomerInfrastructureSecuritySoftwares.grdRelations.InitializeLayout += new InitializeLayoutEventHandler(grdRelations_InitializeLayout); } }
private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e) { UltraGridBand band = e.Layout.Bands[0]; band.Override.AllowUpdate = DefaultableBoolean.False; SecuritySoftwareBrandParameters pmtSecuritySoftwareBrand = new SecuritySoftwareBrandParameters(); IList <SecuritySoftwareBrand> cctvBrands = this.srvSecuritySoftwareBrand.GetListByParameters(pmtSecuritySoftwareBrand); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["SecuritySoftwareBrandId"], "SecuritySoftwareBrandId", "Name", "Seleccione"); SecuritySoftwareTypeParameters pmtSecuritySoftwareType = new SecuritySoftwareTypeParameters(); IList <SecuritySoftwareType> cctvTypes = this.srvSecuritySoftwareType.GetListByParameters(pmtSecuritySoftwareType); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes, band.Columns["SecuritySoftwareTypeId"], "SecuritySoftwareTypeId", "Name", "Seleccione"); }