private void Search()
        {
            UPSBrandParameters pmtUPSBrand = new UPSBrandParameters();

            pmtUPSBrand.Name = "%" + this.frmUPSBrand.txtSchName.Text + "%";

            DataTable dtUPSBrands = srvUPSBrand.SearchByParameters(pmtUPSBrand);

            this.frmUPSBrand.grdSchSearch.DataSource = null;
            this.frmUPSBrand.grdSchSearch.DataSource = dtUPSBrands;
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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");
        }