Exemplo n.º 1
0
        public static ARCustomerWLTranCollection Search(SearchFilter SearchKey)
        {
            ARCustomerWLTranCollection collection = new ARCustomerWLTranCollection();

            using (var reader = SqlHelper.ExecuteReader("ARCustomerWLTran_Search", SearchFilterManager.SqlSearchDynParam(SearchKey)))
            {
                while (reader.Read())
                {
                    ARCustomerWLTran obj = new ARCustomerWLTran();
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
Exemplo n.º 2
0
        public static ARCustomerWLTranCollection GetbyUser(string CreatedUser, int CompanyID)
        {
            ARCustomerWLTranCollection collection = new ARCustomerWLTranCollection();
            ARCustomerWLTran           obj;
            var sqlParams = new SqlParameter[]
            {
                new SqlParameter("@CreatedUser", CreatedUser),
                new SqlParameter("@CompanyID", CompanyID),
            };

            using (var reader = SqlHelper.ExecuteReader("ARCustomerWLTran_GetAll_byUser", sqlParams))
            {
                while (reader.Read())
                {
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }