internal bool StabilestePanelDeAfisat() { if (FormCreareUtilizator._SPanelDeAfisat == EnumPanelDeAfisat.ParteaI) { if (esteValidaParteaI()) { this.panelCreareParteaII.Visible = true; this.panelCreareParteaII.BringToFront(); FormCreareUtilizator._SPanelDeAfisat = EnumPanelDeAfisat.ParteaII; } else { seteazaAlerte(); } } else if (FormCreareUtilizator._SPanelDeAfisat == EnumPanelDeAfisat.ParteaII) { FormCreareUtilizator._SPanelDeAfisat = EnumPanelDeAfisat.ParteaIII; if (Salveaza()) { return(true); } } return(false); }
public void Initializeaza() { base.InitializeazaVariabileleGenerale(); incepeIncarcarea(); _SPanelDeAfisat = EnumPanelDeAfisat.ParteaI; this.panelCreareParteaI.Visible = true; this.panelCreareParteaI.BringToFront(); AllowModification(true); this.txtNume.Goleste(); this.txtPrenume.Goleste(); this.txtCnp.Goleste(); this.txtSerie.Goleste(); this.txtNr.Goleste(); this.rbBI.Checked = false; this.rbCI.Checked = false; this.txtMobil.Goleste(); this.txtEmail.Goleste(); this.txtObservatii.Goleste(); this.txtEmisDe.Goleste(); this.txtContUtilizator.Goleste(); this.txtParola.Goleste(); this.txtNrContract.Goleste(); this.txtOreNorma.Goleste(); this.txtZileConcediu.Goleste(); this.txtIban.Goleste(); this.ctrlCautareBanca.Initializeaza(StructIdDenumire.Empty, CEnumerariComune.EnumTipDeschidere.DreaptaJos); this.txtNume.Focus(); this.txtNume.CapitalizeazaPrimaLitera = true; this.txtPrenume.CapitalizeazaPrimaLitera = true; this.txtEmisDe.CapitalizeazaPrimaLitera = true; this.txtSerie.TotulCuMajuscule = true; this.panelSeConecteaza.Visible = false; this.cboRol.BeginUpdate(); this.cboRol.DataSource = BDefinitiiGenerale.StructRol.getListaRol(); this.cboRol.EndUpdate(); this.cboTitulatura.DataSource = BDefinitiiGenerale.StructTitulatura.getListaTitulaturiCuEmpty(); this.cboTipContract.DataSource = BDefinitiiGenerale.StructTipContract.GetList(); this.cboRol.DropDownStyle = ComboBoxStyle.DropDownList; this.cboTitulatura.DropDownStyle = ComboBoxStyle.DropDownList; this.cboTipContract.DropDownStyle = ComboBoxStyle.DropDownList; this.ctrlAdresa.Initializeaza(EnumTipObiect.Adrese, 0, true, false); finalizeazaIncarcarea(); }
public void Initializeaza() { base.InitializeazaVariabileleGenerale(); incepeIncarcarea(); _SPanelDeAfisat = EnumPanelDeAfisat.ParteaI; this.panelDateClinica.Visible = true; this.panelDateClinica.BringToFront(); this.ctrlAgent.Initializeaza(); this.txtDenumire.Goleste(); this.txtTelefonMobil.Goleste(); this.txtTelefonFix.Goleste(); this.txtEmail.Goleste(); this.txtWebsite.Goleste(); this.ctrlCautareRecomandant.Initializeaza(StructIdDenumire.Empty, CEnumerariComune.EnumTipDeschidere.DreaptaJos); this.txtObservatiiDateClinica.Goleste(); this.txtDenumireFiscala.Goleste(); this.txtCUI.Goleste(); this.txtNrRegCom.Goleste(); this.txtIBAN.Goleste(); this.ctrlCautareBanca.Initializeaza(StructIdDenumire.Empty, CEnumerariComune.EnumTipDeschidere.DreaptaJos); this.txtReprezentantLegal.Goleste(); this.txtNrContract.Goleste(); this.txtNrContract.MaxLength = BClienti.StructCampuriTabela.NrContractMaxLength; this.ctrlAlegeDataContract.Goleste(); this.txtObservatiiDateFirma.Goleste(); this.lblRecomandant.Visible = false; this.ctrlCautareRecomandant.Visible = false; this.lblAgent.Visible = false; this.ctrlAgent.Visible = false; initListe(); finalizeazaIncarcarea(); }