Esempio n. 1
0
 private void UIGRIDCONTROL_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         int id_periodo = int.Parse(UIGRIDVIEW.GetFocusedRowCellValue("ID").ToString());
         periodo = manejadorData.consultarPorID(id_periodo);
         this.Close();
     }
     catch (Exception ex)
     {
         MetodosForm.mensajeErrorDefault(ex.Message, _datasistema);
     }
 }
        public List <V_CONT_ENCA_PART_BORRADOR> consultarVistaPorIdEmpresaPorPeriodoPorEstadoActualizada(int idEmpresa, SIS_PERIODO periodo)
        {
            _datasistema.conectarContabilidad();
            List <V_CONT_ENCA_PART_BORRADOR> l = new List <V_CONT_ENCA_PART_BORRADOR>();

            l = (from u in _datasistema.ContextoContabilidad.V_CONT_ENCA_PART_BORRADOR
                 where u.ID_EMPRESA == idEmpresa && u.NM_PERIODO == periodo.NM_PERIODO && u.NM_EJERCICIO == periodo.NM_EJERCICIO && u.CD_ESTA_PART == 'A' && u.ID_PART_DIA == null
                 select u).ToList();
            return(l);
        }
Esempio n. 3
0
        public List <V_INV_ENCA_REQ> consultarVistaPorIdEmpresaPeriodo(int idEmpresa, SIS_PERIODO periodo)
        {
            _datasistema.conectarInventario();
            List <V_INV_ENCA_REQ> l = new List <V_INV_ENCA_REQ>();

            l = (from u in _datasistema.ContextoInventario.V_INV_ENCA_REQ
                 where u.ID_EMPRESA == idEmpresa && u.NM_EJERCICIO == periodo.NM_EJERCICIO && u.NM_PERIODO == periodo.NM_PERIODO
                 select u).ToList();
            return(l);
        }
        public List <CONT_ENCA_PART_BORRADOR> consultarPorIdEmpresaPorPeriodo(int idEmpresa, SIS_PERIODO periodo)
        {
            _datasistema.conectarContabilidad();
            List <CONT_ENCA_PART_BORRADOR> l = new List <CONT_ENCA_PART_BORRADOR>();

            l = (from u in _datasistema.ContextoContabilidad.CONT_ENCA_PART_BORRADOR
                 where u.ID_EMPRESA == idEmpresa && u.NM_PERIODO == periodo.NM_PERIODO && u.NM_EJERCICIO == periodo.NM_EJERCICIO
                 select u).ToList();
            return(l);
        }