| | |
| | | |
| | | using Common; |
| | | using Model; |
| | | using Oracle.DataAccess.Client; |
| | | using Oracle.ManagedDataAccess.Client; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data.Common; |
| | |
| | | { |
| | | public class GwDmDao : IDisposable |
| | | { |
| | | public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, out int recordcount, int pageSize, int PageIndex) |
| | | public List<GwDm> LoadInfoList(string ApID, string OpID, string spID, string DestnationId, string sDate, string permissionsSQL, out int recordcount, int pageSize, int PageIndex) |
| | | { |
| | | List<GwDm> list1 = new List<GwDm>(); |
| | | recordcount = 0; |
| | |
| | | list2.Add(oracleParameter); |
| | | stringBuilder.Append(" and SP_ID=:SP_ID "); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader(" select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, list2.ToArray())) |
| | | { |
| | | while (((DbDataReader) reader).Read()) |
| | |
| | | { |
| | | } |
| | | |
| | | public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, out int recordcount, int pageSize, int pageIndex) |
| | | public List<GwDm> LoadInfoList(string clientID, string spID, string destnationId, string sDate, string beginTime, string endTime, string permissionsSQL, out int recordcount, int pageSize, int pageIndex) |
| | | { |
| | | List<GwDm> list = new List<GwDm>(); |
| | | recordcount = 0; |
| | |
| | | ((DbParameter) oracleParameterArray[0]).Value = (object) destnationId; |
| | | stringBuilder.Append(" and MOBILE=:DestnationId"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select count(*) as count " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) |
| | | { |
| | | while (((DbDataReader) reader).Read()) |