private void InitializeFormControls()
        {
            this.frmCustomer.btnSchEdit.Click   += new EventHandler(btnSchEdit_Click);
            this.frmCustomer.btnSchSearch.Click += new EventHandler(btnSchSearch_Click);
            this.frmCustomer.btnSchCreate.Click += new EventHandler(btnSchCreate_Click);
            this.frmCustomer.btnDetSave.Click   += new EventHandler(btnDetSave_Click);
            this.frmCustomer.btnDetCancel.Click += new EventHandler(btnDetCancel_Click);
            this.frmCustomer.btnSchClear.Click  += new EventHandler(btnSchClear_Click);
            this.frmCustomer.btnSchDelete.Click += new EventHandler(this.btnSchDelete_Click);

            BusinessTypeParameters pmtBusinessType = new BusinessTypeParameters();

            IList <BusinessType> lstBusinessTypes = this.srvBusinessType.GetListByParameters(pmtBusinessType);

            this.frmCustomer.btcDetBusinessType.Parameters = pmtBusinessType;
            this.frmCustomer.btcDetBusinessType.Refresh();

            this.frmCustomer.mtoCustomerInfrastructurePrinters.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructurePrinters.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructurePrinters.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureISPs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureISPs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureISPs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureCCTVs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureCCTVs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureCCTVs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureUPSs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureUPSs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureUPSs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureTelephonies.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureTelephonies.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureTelephonies.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureServerComputers.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureServerComputers.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureServerComputers.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.CustomerInfrastructureNetworkWifi = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.CustomerInfrastructureNetworkSite = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.LoadControls();

            this.frmCustomer.HiddenDetail(true);
            this.ClearSearchControls();
        }
Ejemplo n.º 2
0
        public override void InitializeDetailFormControls()
        {
            BusinessTypeParameters pmtBusinessType = new BusinessTypeParameters();

            IList <BusinessType> lstBusinessTypes = this.srvBusinessType.GetListByParameters(pmtBusinessType);

            this.frmCustomer.btcDetBusinessType.Parameters = pmtBusinessType;
            this.frmCustomer.btcDetBusinessType.Refresh();

            this.frmCustomer.mtoCustomerInfrastructurePrinters.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructurePrinters.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructurePrinters.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureISPs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureISPs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureISPs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureCCTVs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureCCTVs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureCCTVs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureBackupSoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureAdministationSoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureSecuritySoftwares.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureUPSs.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureUPSs.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureUPSs.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureTelephonies.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureTelephonies.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureTelephonies.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructurePersonalComputers.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureServerComputers.CustomerInfrastructure = null;
            this.frmCustomer.mtoCustomerInfrastructureServerComputers.CustomParent           = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureServerComputers.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCablings.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkCommutators.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkFirewalls.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkRouters.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.CustomerInfrastructureNetwork = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSwitches.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.CustomerInfrastructureNetworkWifi = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkWifiAccessPoints.LoadControls();

            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.CustomerInfrastructureNetworkSite = null;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.CustomParent = this.frmCustomer;
            this.frmCustomer.mtoCustomerInfrastructureNetworkSiteRacks.LoadControls();
        }