private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            DBMSParameters pmtDBMS = new DBMSParameters();

            IList <DBMS> cctvBrands = this.srvDBMS.GetListByParameters(pmtDBMS);

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

            CustomerInfrastructureServerComputerParameters pmtCustomerInfrastructureServerComputer
                = new CustomerInfrastructureServerComputerParameters();

            if (this.CustomerInfrastructure != null)
            {
                pmtCustomerInfrastructureServerComputer.CustomerInfrastructureId
                    = this.CustomerInfrastructure.CustomerInfrastructureId;
                IList <CustomerInfrastructureServerComputer> customerInfrastructureServerComputers
                    = this.srvCustomerInfrastructureServerComputer.GetListByParameters(pmtCustomerInfrastructureServerComputer);

                this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.Parameters
                    = pmtCustomerInfrastructureServerComputer;
                this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.DisplayMember
                    = "ServerModel";
                this.controlCustomerInfrastructureAdministationSoftwares.cisccDetCustomerInfrastructureServerComputer.Refresh();

                WindowsFormsUtil.SetUltraGridValueList(e.Layout, customerInfrastructureServerComputers,
                                                       band.Columns["CustomerInfrastructureServerComputerId"], "CustomerInfrastructureServerComputerId", "ServerModel", "Seleccione");
            }
        }
예제 #2
0
        private void Search()
        {
            DBMSParameters pmtDBMS = new DBMSParameters();

            pmtDBMS.Name = "%" + this.frmDBMS.txtSchName.Text + "%";

            DataTable dtDBMSs = srvDBMS.SearchByParameters(pmtDBMS);

            this.frmDBMS.grdSchSearch.DataSource = null;
            this.frmDBMS.grdSchSearch.DataSource = dtDBMSs;
        }
예제 #3
0
        private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                DBMSParameters pmtDBMS = new DBMSParameters();

                this.controlCustomerInfrastructureServerComputerDBMSs.dcDBMS.Parameters = pmtDBMS;
                this.controlCustomerInfrastructureServerComputerDBMSs.dcDBMS.Refresh();

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

            band.Override.AllowUpdate = DefaultableBoolean.False;

            DBMSParameters pmtDBMS = new DBMSParameters();

            IList <DBMS> cctvBrands = this.srvDBMS.GetListByParameters(pmtDBMS);

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