public static DateTime GetData(Form pEcranParinte, DateTime pData) { using (frmControlBox ecran = new frmControlBox(CEnumerariComune.EnumTipDeschidere.StangaJos)) { if (IHMUtile.DeschideEcran(pEcranParinte, ecran)) { return(ecran._dataAleasa); } } return(CConstante.DataNula); }
public void CautaData() { //Determinam locatia de deschidere a calendarului asociat if (this.AfisareCalendar != null) { AfisareCalendar(this, null); } using (frmControlBox xSelecteazaData = new frmControlBox(this.lTipDeschidere)) { xSelecteazaData.PermiteDeplasareaEcranului = true; xSelecteazaData.PragInferior = this.lPragInferior; xSelecteazaData.PragSuperior = this.lPragSuperior; xSelecteazaData.DataInitializare = this.DataAfisata; xSelecteazaData.Text = string.Empty; CCL.UI.IHMUtile.DeschideEcran(this.GetFormParinte(), xSelecteazaData); if (xSelecteazaData.DataAleasa != CConstante.DataNula) { this.txtData.Focus(); this.DataAfisata = xSelecteazaData.DataAleasa; this.SelectNextControl(this, true, true, false, false); this.AllowModification(this.lIsInModificationMode); //OARE DE CE AM PUS CONDITIA ASTA? //E UTILA TREABA ASTA LA TRIMITEREA DE SMS-URI CA SA REINITIALIZAM LISTA //if (!this.lAfiseazaZonaDeData) ComandaUpdate(); } } if (this.InchidereCalendar != null) { InchidereCalendar(this, null); } }