예제 #1
0
 public frmABM()
 {
     InitializeComponent();
     this.selectorFechaNacimiento.MaxDate      = (FechaAplicacion.obtenerFechaAplicacion()).AddYears(-18);
     this.selectorFechaNacimiento.Value        = (FechaAplicacion.obtenerFechaAplicacion()).AddYears(-18);
     this.selectorFechaNacimiento.Format       = DateTimePickerFormat.Custom;
     this.selectorFechaNacimiento.CustomFormat = "dd 'de' MMMM 'de' yyyy";
 }
예제 #2
0
 private static DateTime obtenerFechaHora(String hora)
 {
     return(DateTime.Parse((FechaAplicacion.obtenerFechaAplicacion()).ToString("dd/MM/yyyy ") + (!hora.Equals("24") ? hora + ":00:00" : "23:59:59")));
 }
예제 #3
0
 public frmRendirViaje()
 {
     InitializeComponent();
     this.selectorDiaRendicionAChofer.MaxDate = FechaAplicacion.obtenerFechaAplicacion();
 }
예제 #4
0
 public frmFacturarViaje()
 {
     InitializeComponent();
     this.selectorFechaFacturacionHasta.MinDate = new DateTime((FechaAplicacion.obtenerFechaAplicacion()).Year, (FechaAplicacion.obtenerFechaAplicacion()).Month, 1);
     this.selectorFechaFacturacionHasta.MaxDate = FechaAplicacion.obtenerFechaAplicacion();
 }
예제 #5
0
파일: frmListados.cs 프로젝트: KpdsK/TPGDD
 public frmListados()
 {
     InitializeComponent();
     this.selectorAnio.MaxDate = FechaAplicacion.obtenerFechaAplicacion();
     armarComboListados();
 }