コード例 #1
0
        public BE_VTA_EMPTRA TraerRegistro(int n_IdRegistro)
        {
            BE_VTA_EMPTRA entEmpTra = new BE_VTA_EMPTRA();

            CD_vta_emptra miFun = new CD_vta_emptra();

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

            return(entEmpTra);
        }
コード例 #2
0
 void VerRegistro(int n_IdRegistro)
 {
     objRegistros.mysConec = mysConec;
     BE_Registro           = objRegistros.TraerRegistro(n_IdRegistro);
     //booAgregando = true;
     CboCliente.SelectedValue = BE_Registro.n_idpro;
     //booAgregando = false;
     //TxtCodCEN.Text = BE_Registro.c_codcen.ToString();
     //TxtDir.Text = BE_Registro.c_dir.ToString();
     //CboDep.SelectedValue = Convert.ToInt32(BE_Registro.n_iddep);
     //CboPro.SelectedValue = Convert.ToInt32(BE_Registro.n_idpro);
     //CboDis.SelectedValue = Convert.ToInt32(BE_Registro.n_iddis);
 }
コード例 #3
0
        public bool Actualizar(BE_VTA_EMPTRA entEmpTra)
        {
            BE_VTA_EMPTRA entNuevoEmpTra = new BE_VTA_EMPTRA();
            CD_vta_emptra miFun          = new CD_vta_emptra();
            bool          booOk          = false;

            miFun.mysConec = mysConec;

            entNuevoEmpTra.n_idemp = entEmpTra.n_idemp;
            entNuevoEmpTra.n_id    = entEmpTra.n_id;
            entNuevoEmpTra.n_idpro = entEmpTra.n_idpro;

            booOk = miFun.Actualizar(entNuevoEmpTra);

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

            return(booOk);
        }
コード例 #4
0
ファイル: CD_vta_emptra.cs プロジェクト: slotcore/ssf-net
        public BE_VTA_EMPTRA TraerRegistro(int n_IdRegistro)
        {
            BE_VTA_EMPTRA Ent_EmpTra = new BE_VTA_EMPTRA();
            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_emptra_obtenerregistro", arrParametros, mysConec);

            if (DtResultado.Rows.Count != 0)
            {
                Ent_EmpTra.n_id    = Convert.ToInt32(DtResultado.Rows[0]["n_id"].ToString());
                Ent_EmpTra.n_idpro = Convert.ToInt32(DtResultado.Rows[0]["n_idpro"].ToString());
                Ent_EmpTra.n_idemp = Convert.ToInt32(DtResultado.Rows[0]["n_idemp"].ToString());
            }
            return(Ent_EmpTra);
        }
コード例 #5
0
ファイル: CD_vta_emptra.cs プロジェクト: slotcore/ssf-net
        public bool Actualizar(BE_VTA_EMPTRA entEmpTra)
        {
            bool       booOk      = false;
            DatosMySql xMiFuncion = new DatosMySql();

            DatosMySql FunMysql = new DatosMySql();

            mysConec = FunMysql.ReAbrirConeccion(mysConec);

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

            return(booOk);
        }