private void Search() { UPSTypeParameters pmtUPSType = new UPSTypeParameters(); pmtUPSType.Name = "%" + this.frmUPSType.txtSchName.Text + "%"; DataTable dtUPSTypes = srvUPSType.SearchByParameters(pmtUPSType); this.frmUPSType.grdSchSearch.DataSource = null; this.frmUPSType.grdSchSearch.DataSource = dtUPSTypes; }
private void InitializeControlControls() { if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { UPSBrandParameters pmtUPSBrand = new UPSBrandParameters(); this.controlCustomerInfrastructureUPSs.ubcUPSBrand.Parameters = pmtUPSBrand; this.controlCustomerInfrastructureUPSs.ubcUPSBrand.Refresh(); UPSTypeParameters pmtUPSType = new UPSTypeParameters(); this.controlCustomerInfrastructureUPSs.utcUPSType.Parameters = pmtUPSType; this.controlCustomerInfrastructureUPSs.utcUPSType.Refresh(); this.controlCustomerInfrastructureUPSs.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; UPSBrandParameters pmtUPSBrand = new UPSBrandParameters(); IList <UPSBrand> cctvBrands = this.srvUPSBrand.GetListByParameters(pmtUPSBrand); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands, band.Columns["UPSBrandId"], "UPSBrandId", "Name", "Seleccione"); UPSTypeParameters pmtUPSType = new UPSTypeParameters(); IList <UPSType> cctvTypes = this.srvUPSType.GetListByParameters(pmtUPSType); WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes, band.Columns["UPSTypeId"], "UPSTypeId", "Name", "Seleccione"); }