Esempio n. 1
0
        /// <summary>
        /// 获取客户信息列表 2014-08-29 14:58:50 By 唐有炜
        /// </summary>
        /// <param name="compNum">企业编号</param>
        /// <param name="selectFields">选择的字段(格式:new string[]{"id,cus_sname"},id必须要有)</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">每页的数目</param>
        /// <param name="strWhere">筛选条件(字段名="值",字段名 in (值1,值2))</param>
        /// <param name="filedOrder">排序字段(字段名)</param>
        /// <param name="recordCount">总数</param>
        /// <returns>DataTable</returns>
        public DataTable GetCustomerLsit(string compNum, string[] selectFields, int pageIndex, int pageSize,
                                         string strWhere, string filedOrder, out int recordCount)
        {
            DataTable table = CusBaseDao.GetCustomerLsit(compNum, selectFields, pageIndex, pageSize, strWhere,
                                                         filedOrder, out recordCount);

            return(table);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取客户信息列表 2014-08-29 14:58:50 By 唐有炜
        /// </summary>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">每页的数目</param>
        /// <param name="selector">要查询的字段</param>
        /// <param name="expFields">存储扩展字段值的字段</param>
        /// <param name="expSelector">要查询的扩展字段</param>
        /// <param name="predicate">查询条件</param>
        /// <param name="ordering">排序</param>
        /// <param name="recordCount">记录结果数</param>
        /// <param name="values">参数</param>
        /// <returns>客户信息列表</returns>
        public List <Dictionary <string, object> > GetCustomerLsit(int pageIndex, int pageSize, string selector,
                                                                   string expFields, string expSelector,
                                                                   string predicate, string ordering,
                                                                   out int recordCount, params object[] values)
        {
            var customers = CusBaseDao.GetCustomerLsit(pageIndex, pageSize, selector, expFields, expSelector, predicate,
                                                       ordering,
                                                       out recordCount, values);

            return(customers);
        }