private void Search()
        {
            TelephonyLineTypeParameters pmtTelephonyLineType = new TelephonyLineTypeParameters();

            pmtTelephonyLineType.Name = "%" + this.frmTelephonyLineType.txtSchName.Text + "%";

            DataTable dtTelephonyLineTypes = srvTelephonyLineType.SearchByParameters(pmtTelephonyLineType);

            this.frmTelephonyLineType.grdSchSearch.DataSource = null;
            this.frmTelephonyLineType.grdSchSearch.DataSource = dtTelephonyLineTypes;
        }
Ejemplo n.º 2
0
        private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                TelephonyProviderParameters pmtTelephonyProvider = new TelephonyProviderParameters();

                this.controlCustomerInfrastructureTelephonies.tpcTelephonyProvider.Parameters = pmtTelephonyProvider;
                this.controlCustomerInfrastructureTelephonies.tpcTelephonyProvider.Refresh();

                TelephonyLineTypeParameters pmtTelephonyLineType = new TelephonyLineTypeParameters();

                this.controlCustomerInfrastructureTelephonies.tltcTelephonyLineType.Parameters = pmtTelephonyLineType;
                this.controlCustomerInfrastructureTelephonies.tltcTelephonyLineType.Refresh();

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

            band.Override.AllowUpdate = DefaultableBoolean.False;

            TelephonyProviderParameters pmtTelephonyProvider = new TelephonyProviderParameters();

            IList <TelephonyProvider> cctvBrands = this.srvTelephonyProvider.GetListByParameters(pmtTelephonyProvider);

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

            TelephonyLineTypeParameters pmtTelephonyLineType = new TelephonyLineTypeParameters();

            IList <TelephonyLineType> cctvTypes = this.srvTelephonyLineType.GetListByParameters(pmtTelephonyLineType);

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