#region 报表查询
/// <summary>
/// 报表查询
/// </summary>
/// <param name="flag">0查询成功</param>
/// <param name="PageCount">总条数</param>
/// <param name="PageIndex">第几页</param>
/// <param name="total">总条数</param>
/// <returns></returns>
public static List<CWSub> GetCW3(string sNbid, int iSub, DateTime strtime, DateTime endtime, int PageIndex, int PageCount, out int flag, out int total)
{
List<CWSub> list = new List<CWSub>();
SqlParameter[] pars = new SqlParameter[]
{
new SqlParameter("@OV_iReturnValue", SqlDbType.Int),
new SqlParameter("@OV_iTotalRow", SqlDbType.Int),
new SqlParameter("@V_PageIndex", PageIndex),
new SqlParameter("@V_PageCount", PageCount),
new SqlParameter("@V_iSub", iSub),
new SqlParameter("@V_snbid", sNbid),
new SqlParameter("@V_dtStart", strtime),
new SqlParameter("@V_dtEnd", endtime)