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

            band.Override.AllowUpdate = DefaultableBoolean.False;

            BackupSoftwareBrandParameters pmtBackupSoftwareBrand = new BackupSoftwareBrandParameters();

            IList <BackupSoftwareBrand> cctvBrands = this.srvBackupSoftwareBrand.GetListByParameters(pmtBackupSoftwareBrand);

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

            if (this.CustomerInfrastructure != null)
            {
                CustomerInfrastructureServerComputerParameters pmtCustomerInfrastructureServerComputer
                    = new CustomerInfrastructureServerComputerParameters();

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

                this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.Parameters
                    = pmtCustomerInfrastructureServerComputer;
                this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.DisplayMember
                    = "ServerModel";
                this.controlCustomerInfrastructureBackupSoftwares.cisccCustomerInfrastructureServerComputer.Refresh();

                WindowsFormsUtil.SetUltraGridValueList(e.Layout, customerInfrastructureServerComputers,
                                                       band.Columns["CustomerInfrastructureServerComputerId"], "CustomerInfrastructureServerComputerId",
                                                       "ServerModel", "Seleccione");
            }
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            ComputerBrandParameters pmtComputerBrand = new ComputerBrandParameters();

            IList <ComputerBrand> cctvBrands = this.srvComputerBrand.GetListByParameters(pmtComputerBrand);

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

            OperativeSystemParameters pmtOperativeSystem = new OperativeSystemParameters()
            {
                OperativeSystemTypeId = ParameterConstants.IntDefault
            };

            IList <OperativeSystem> cctvTypes = this.srvOperativeSystem.GetListByParameters(pmtOperativeSystem);

            this.controlCustomerInfrastructureServerComputers.oscOperativeSystem.Parameters = pmtOperativeSystem;
            this.controlCustomerInfrastructureServerComputers.oscOperativeSystem.Refresh();

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["OperativeSystemId"], "OperativeSystemId", "Name", "Seleccione");
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            ComputerBrandParameters pmtComputerBrand = new ComputerBrandParameters();

            IList <ComputerBrand> cctvBrands = this.srvComputerBrand.GetListByParameters(pmtComputerBrand);

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

            OperativeSystemParameters pmtOperativeSystem = new OperativeSystemParameters();

            IList <OperativeSystem> cctvOperativeSystems = this.srvOperativeSystem.GetListByParameters(pmtOperativeSystem);

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

            PersonalComputerTypeParameters pmtPersonalComputerType = new PersonalComputerTypeParameters();

            IList <PersonalComputerType> cctvTypes = this.srvPersonalComputerType.GetListByParameters(pmtPersonalComputerType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["PersonalComputerTypeId"], "PersonalComputerTypeId", "Name", "Seleccione");
        }
Beispiel #4
0
        private void grdPrincipal_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridLayout layout = e.Layout;
            UltraGridBand   band   = layout.Bands[0];

            WindowsFormsUtil.SetUltraGridValueList(layout, this.srvGeneric.GetListByParameters <BusinessType>(null),
                                                   band.Columns["BusinessTypeId"], "BusinessTypeId", "Name", "Seleccione");
        }
        private void grdPrincipal_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridLayout layout = e.Layout;
            UltraGridBand   band   = layout.Bands[0];

            WindowsFormsUtil.SetUltraGridValueList(layout, TimeUtil.Months,
                                                   band.Columns["Month"], "Index", "Name", null);
        }
Beispiel #6
0
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            RackTypeParameters pmtRackType = new RackTypeParameters();

            IList <RackType> rackTypes = this.srvRackType.GetListByParameters(pmtRackType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, rackTypes,
                                                   band.Columns["RackTypeId"], "RackTypeId", "Name", "Seleccione");
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            FirewallBrandParameters pmtFirewallBrand = new FirewallBrandParameters();

            IList <FirewallBrand> cctvBrands = this.srvFirewallBrand.GetListByParameters(pmtFirewallBrand);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands,
                                                   band.Columns["FirewallBrandId"], "FirewallBrandId", "Name", "Seleccione");
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            NetworkCablingTypeParameters pmtNetworkCablingType = new NetworkCablingTypeParameters();

            this.controlCustomerInfrastructureNetworkCablings.nctcNetworkCablingType.Parameters = pmtNetworkCablingType;
            this.controlCustomerInfrastructureNetworkCablings.nctcNetworkCablingType.Refresh();

            IList <NetworkCablingType> cctvTypes = this.srvNetworkCablingType.GetListByParameters(pmtNetworkCablingType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["NetworkCablingTypeId"], "NetworkCablingTypeId", "Name", "Seleccione");
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            SecuritySoftwareBrandParameters pmtSecuritySoftwareBrand = new SecuritySoftwareBrandParameters();

            IList <SecuritySoftwareBrand> cctvBrands = this.srvSecuritySoftwareBrand.GetListByParameters(pmtSecuritySoftwareBrand);

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

            SecuritySoftwareTypeParameters pmtSecuritySoftwareType = new SecuritySoftwareTypeParameters();

            IList <SecuritySoftwareType> cctvTypes = this.srvSecuritySoftwareType.GetListByParameters(pmtSecuritySoftwareType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["SecuritySoftwareTypeId"], "SecuritySoftwareTypeId", "Name", "Seleccione");
        }
Beispiel #10
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");
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            AccessPointBrandParameters pmtAccessPointBrand = new AccessPointBrandParameters();

            IList <AccessPointBrand> cctvBrands = this.srvAccessPointBrand.GetListByParameters(pmtAccessPointBrand);

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

            AccessPointTypeParameters pmtAccessPointType = new AccessPointTypeParameters();

            IList <AccessPointType> cctvTypes = this.srvAccessPointType.GetListByParameters(pmtAccessPointType);

            this.controlCustomerInfrastructureNetworkWifiAccessPoints.aptcAccessPointType.Parameters = pmtAccessPointType;
            this.controlCustomerInfrastructureNetworkWifiAccessPoints.aptcAccessPointType.Refresh();

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["AccessPointTypeId"], "AccessPointTypeId", "Name", "Seleccione");
        }
Beispiel #12
0
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            ComputerBrandParameters pmtComputerBrand = new ComputerBrandParameters();

            IList <ComputerBrand> cctvBrands = this.srvComputerBrand.GetListByParameters(pmtComputerBrand);

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

            OperativeSystemParameters pmtOperativeSystem = new OperativeSystemParameters()
            {
                OperativeSystemTypeId = (int)OperativeSystemTypeEnum.Server
            };

            IList <OperativeSystem> operativeSystemTypes = this.srvOperativeSystem.GetListByParameters(pmtOperativeSystem);

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

            ServerComputerTypeParameters pmtServerComputerType = new ServerComputerTypeParameters();

            IList <ServerComputerType> serverComputerTypes = this.srvServerComputerType.GetListByParameters(pmtServerComputerType);

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

            RackTypeParameters pmtRackType = new RackTypeParameters();

            IList <RackType> rackTypes = this.srvRackType.GetListByParameters(pmtRackType);

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