Exemple #1
0
        public Inspeccionar()
        {
            InitializeComponent();
            _inspeccionService = new InspeccionService();
            _clienteService    = new ClienteService();
            _vehiculoService   = new VehiculoService();
            _empleadoService   = new EmpleadoService();
            _context           = new ApplicationDbContext();
            DateTime today = DateTime.Today;

            lblInspecFechaActual.Text  = today.ToString("dd/MM/yyyy");
            lblInspecEmpConectado.Text = InicioSesion.ConectedUser;
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="lIntRow"></param>
        private void SaveInspeccion(int lIntRow)
        {
            InspeccionService inspService = new InspeccionService();

            if (inspService.SaveInspeccion(GetObjInspT(lIntRow)) != 0)
            {
                Application.SBO_Application.MessageBox(DIApplication.Company.GetLastErrorDescription());
            }
            else
            {
                Application.SBO_Application.StatusBar.SetText("La inspeccion fue guardada correctamente"
                                                              , SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success);
            }
        }
Exemple #3
0
 public Reporte()
 {
     InitializeComponent();
     _inspeccionService = new InspeccionService();
 }