Exemplo n.º 1
0
        private void Search()
        {
            ISPParameters pmtISP = new ISPParameters();

            pmtISP.Name = "%" + this.frmISP.txtSchName.Text + "%";

            DataTable dtISPs = srvISP.SearchByParameters(pmtISP);

            this.frmISP.grdSchSearch.DataSource = null;
            this.frmISP.grdSchSearch.DataSource = dtISPs;
        }
Exemplo n.º 2
0
        private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                ISPParameters pmtISP = new ISPParameters();

                this.controlCustomerInfrastructureISPs.icISP.Parameters = pmtISP;
                this.controlCustomerInfrastructureISPs.icISP.Refresh();

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

            band.Override.AllowUpdate = DefaultableBoolean.False;

            ISPParameters pmtISP = new ISPParameters();

            IList <ISP> cctvBrands = this.srvISP.GetListByParameters(pmtISP);

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