Пример #1
0
        public DataTable Get_CtaCteEstadoCuentaCole(BE_ReqCtaCteEstadoCuentaCole Request)
        {
            DataTable dt = new DataTable();

            try
            {
                clsConection Obj    = new clsConection();
                string       Cadena = Obj.GetConexionString("Naylamp");

                using (SqlConnection cn = new SqlConnection(Cadena))
                {
                    cn.Open();

                    using (SqlCommand cm = new SqlCommand())
                    {
                        cm.CommandText = "[usp_Get_State_Account_for_School]";
                        cm.CommandType = CommandType.StoredProcedure;
                        cm.Parameters.AddWithValue("cPerJurCodigo", Request.cPerJurCodigo);
                        cm.Parameters.AddWithValue("cPerCodigo", Request.cPerCodigo);
                        cm.Parameters.AddWithValue("nCtaCteSerCodigo", Request.nCtaCteSerCodigo);
                        cm.Connection = cn;

                        using (SqlDataReader dr = cm.ExecuteReader())
                            dt.Load(dr);
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(dt);
        }
Пример #2
0
        public DataTable Get_CtaCteEstadoCuentaCole(string cPerJurCodigo, string cPerCodigo, long nCtaCteSerCodigo)
        {
            //Recuperando registros
            BE_ReqCtaCteEstadoCuentaCole Request = new BE_ReqCtaCteEstadoCuentaCole();
            DA_ReqCtaCteEstadoCuentaCole Da      = new DA_ReqCtaCteEstadoCuentaCole();

            Request.cPerJurCodigo    = cPerJurCodigo;
            Request.cPerCodigo       = cPerCodigo;
            Request.nCtaCteSerCodigo = nCtaCteSerCodigo;

            return(Da.Get_CtaCteEstadoCuentaCole(Request));
        }