Example #1
0
        public void TraerRegistro(int n_IdRegistro)
        {
            BE_VTA_CHOFER Ent_Chofer = new BE_VTA_CHOFER();
            DatosMySql    xMiFuncion = new DatosMySql();

            DataTable DtResultado = new DataTable();

            string[,] arrParametros = new string[1, 3] {
                { "n_id", "System.INT16", n_IdRegistro.ToString() }
            };
            dtLista = xMiFuncion.StoreDTLLenar("vta_boletaresumen_obtenerregistro", arrParametros, mysConec);
            if (xMiFuncion.IntErrorNumber != 0)
            {
                dtLista = null;
            }

            string[,] arrParametros2 = new string[1, 3] {
                { "n_idres", "System.INT16", n_IdRegistro.ToString() }
            };
            dtListaDet = xMiFuncion.StoreDTLLenar("vta_boletaresumendet_listar", arrParametros2, mysConec);
            if (xMiFuncion.IntErrorNumber != 0)
            {
                dtListaDet = null;
            }

            return;
        }
Example #2
0
        void VerRegistro(int n_IdRegistro)
        {
            objRegistros.mysConec = mysConec;
            BE_Registro           = objRegistros.TraerRegistro(n_IdRegistro);

            CboEmpleado.SelectedValue = BE_Registro.n_idper;
            TxtCat.Text               = BE_Registro.c_cat.ToString();
            TxtNumBre.Text            = BE_Registro.c_numbre.ToString();
            CboVehiculo.SelectedValue = BE_Registro.n_idveh;
        }
Example #3
0
        public BE_VTA_CHOFER TraerRegistro(int n_IdRegistro)
        {
            BE_VTA_CHOFER entChofer = new BE_VTA_CHOFER();

            CD_vta_chofer miFun = new CD_vta_chofer();

            miFun.mysConec = mysConec;
            entChofer      = miFun.TraerRegistro(n_IdRegistro);

            return(entChofer);
        }
Example #4
0
        public bool Actualizar(BE_VTA_BOLETARESUMEN e_boleta, List <BE_VTA_BOLETARESUMENDET> l_boletadet)
        {
            BE_VTA_CHOFER        entNuevoChofer = new BE_VTA_CHOFER();
            CD_vta_boletaresumen miFun          = new CD_vta_boletaresumen();
            bool booOk = false;

            miFun.mysConec = mysConec;
            booOk          = miFun.Actualizar(e_boleta, l_boletadet);

            booOcurrioError = miFun.booOcurrioError;
            StrErrorMensaje = miFun.StrErrorMensaje;
            IntErrorNumber  = miFun.IntErrorNumber;

            return(booOk);
        }
Example #5
0
        public bool Actualizar(BE_VTA_CHOFER entChofer)
        {
            bool       booOk      = false;
            DatosMySql xMiFuncion = new DatosMySql();

            DatosMySql FunMysql = new DatosMySql();

            mysConec = FunMysql.ReAbrirConeccion(mysConec);

            if (xMiFuncion.StoreEjecutar("vta_chofer_actualizar", entChofer, mysConec, null) == true)
            {
                booOk = true;
            }
            else
            {
                booOcurrioError = xMiFuncion.booOcurrioError;
                StrErrorMensaje = xMiFuncion.StrErrorMensaje;
                IntErrorNumber  = xMiFuncion.IntErrorNumber;
            }

            return(booOk);
        }
Example #6
0
        public bool Actualizar(BE_VTA_CHOFER entChofer)
        {
            BE_VTA_CHOFER entNuevoChofer = new BE_VTA_CHOFER();
            CD_vta_chofer miFun          = new CD_vta_chofer();
            bool          booOk          = false;

            miFun.mysConec = mysConec;

            entNuevoChofer.n_idemp  = entChofer.n_idemp;
            entNuevoChofer.n_idper  = entChofer.n_idper;
            entNuevoChofer.n_id     = entChofer.n_id;
            entNuevoChofer.n_idveh  = entChofer.n_idveh;
            entNuevoChofer.c_numbre = entChofer.c_numbre;
            entNuevoChofer.c_cat    = entChofer.c_cat;

            booOk = miFun.Actualizar(entNuevoChofer);

            booOcurrioError = miFun.booOcurrioError;
            StrErrorMensaje = miFun.StrErrorMensaje;
            IntErrorNumber  = miFun.IntErrorNumber;

            return(booOk);
        }
Example #7
0
        public BE_VTA_CHOFER TraerRegistro(int n_IdRegistro)
        {
            BE_VTA_CHOFER Ent_Chofer = new BE_VTA_CHOFER();
            DatosMySql    xMiFuncion = new DatosMySql();

            DataTable DtResultado = new DataTable();

            string[,] arrParametros = new string[1, 3] {
                { "n_id", "System.INT16", n_IdRegistro.ToString() }
            };
            DtResultado = xMiFuncion.StoreDTLLenar("vta_chofer_obtenerregistro", arrParametros, mysConec);

            if (DtResultado.Rows.Count != 0)
            {
                Ent_Chofer.n_idemp  = Convert.ToInt32(DtResultado.Rows[0]["n_idemp"].ToString());
                Ent_Chofer.n_id     = Convert.ToInt32(DtResultado.Rows[0]["n_id"].ToString());
                Ent_Chofer.n_idper  = Convert.ToInt32(DtResultado.Rows[0]["n_idper"].ToString());
                Ent_Chofer.c_cat    = DtResultado.Rows[0]["c_cat"].ToString();
                Ent_Chofer.c_numbre = DtResultado.Rows[0]["c_numbre"].ToString();
                Ent_Chofer.n_idveh  = Convert.ToInt32(DtResultado.Rows[0]["n_idveh"].ToString());
            }
            return(Ent_Chofer);
        }