You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using DSWeb.MvcShipping.Models.BIReport;
|
|
using Microsoft.Practices.EnterpriseLibrary.Data;
|
|
using DSWeb.Areas.CommMng.Models;
|
|
using HcUtility.Comm;
|
|
using System.Web.Mvc;//ContentResult
|
|
using DSWeb.TruckMng.Helper.Repository;//ModelObjectRepository
|
|
using DSWeb.MvcShipping.Helper;
|
|
using DSWeb.Areas.CommMng.DAL;//使用获取权限子句
|
|
using DSWeb.Areas.SysMng.DAL.SysTask;
|
|
using DSWeb.MvcShipping.DAL.ChMonthCloseDAL;
|
|
using DSWeb.MvcShipping.DAL.MsSysBillNoSet;
|
|
using HcUtility.Core;
|
|
using DSWeb.MvcShipping.Models.MsChFee;
|
|
using DSWeb.MvcShipping.DAL.MsChFeeDAL;
|
|
using DSWeb.Common.DB;
|
|
using System.Linq;
|
|
|
|
namespace DSWeb.Areas.MvcShipping.DAL.BIReport
|
|
{
|
|
public class BIReportDAL
|
|
{
|
|
#region BI报表查询
|
|
|
|
static public List<BIREPORT_BILLmb> GetSumList_BILL (int start,int limit, string strCondition,string USERID,out int count,List<string> GroupFields,List<string> SumFields, string sort = "" )
|
|
{
|
|
var _BI = new BIREPORT_BILLmb();
|
|
var strSql= _BI.getSumSql(start, limit, strCondition, out count, GroupFields, SumFields,sort);
|
|
|
|
return SetData(strSql);
|
|
}
|
|
#endregion
|
|
|
|
private static List<BIREPORT_BILLmb> SetData(string strSql)
|
|
{
|
|
var headList = new List<BIREPORT_BILLmb>();
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
using (IDataReader reader = db.ExecuteReader(CommandType.Text, strSql))
|
|
{
|
|
while (reader.Read())
|
|
{
|
|
|
|
////根据字段名设定同名属性值
|
|
BIREPORT_BILLmb data = new BIREPORT_BILLmb();
|
|
data.SetExtendValue(reader);
|
|
|
|
headList.Add(data);
|
|
}
|
|
reader.Close();
|
|
}
|
|
|
|
return headList;
|
|
}
|
|
|
|
}
|
|
}
|