Example #1
0
        private void Search()
        {
            CCTVBrandParameters pmtCCTVBrand = new CCTVBrandParameters();

            pmtCCTVBrand.Name = "%" + this.frmCCTVBrand.txtSchName.Text + "%";

            DataTable dtCCTVBrands = srvCCTVBrand.SearchByParameters(pmtCCTVBrand);

            this.frmCCTVBrand.grdSchSearch.DataSource = null;
            this.frmCCTVBrand.grdSchSearch.DataSource = dtCCTVBrands;
        }
Example #2
0
        private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                CCTVBrandParameters pmtCCTVBrand = new CCTVBrandParameters();
                this.controlCustomerInfrastructureCCTVs.cbcCCTVBrand.Parameters = pmtCCTVBrand;
                this.controlCustomerInfrastructureCCTVs.cbcCCTVBrand.Refresh();

                CCTVTypeParameters pmtCCTVType = new CCTVTypeParameters();
                this.controlCustomerInfrastructureCCTVs.ctcCCTVType.Parameters = pmtCCTVType;
                this.controlCustomerInfrastructureCCTVs.ctcCCTVType.Refresh();

                this.controlCustomerInfrastructureCCTVs.grdRelations.InitializeLayout
                    += new InitializeLayoutEventHandler(grdRelations_InitializeLayout);
            }
        }
Example #3
0
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            CCTVBrandParameters pmtCCTVBrand = new CCTVBrandParameters();

            IList <CCTVBrand> cctvBrands = this.srvCCTVBrand.GetListByParameters(pmtCCTVBrand);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands,
                                                   band.Columns["CCTVBrandId"], "CCTVBrandId", "Name", "Seleccione");

            CCTVTypeParameters pmtCCTVType = new CCTVTypeParameters();

            this.controlCustomerInfrastructureCCTVs.ctcCCTVType.Parameters = pmtCCTVType;
            this.controlCustomerInfrastructureCCTVs.ctcCCTVType.Refresh();

            IList <CCTVType> cctvTypes = this.srvCCTVType.GetListByParameters(pmtCCTVType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["CCTVTypeId"], "CCTVTypeId", "Name", "Seleccione");
        }