| | |
| | | /// <param name="clientName">联系人</param> |
| | | /// <param name="telphone">联系电话</param> |
| | | /// <param name="agent">业务员</param> |
| | | /// <param name="company">公司名称</param> |
| | | /// <param name="salesman">归属业务员</param> |
| | | /// <param name="supportStaff">归属客服人员</param> |
| | | /// <param name="productId">产品ID</param> |
| | | /// <returns></returns> |
| | | //public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string productId, string permissionsSQL ) |
| | | public List<GwClient> LoadInfoList(out int recordCount, int pageIndex, int pageSizestring, string clientID, string clientName, string telphone, string agent, string company, string salesman, string supportStaff, string productId, string permissionsSQL ) |
| | | { |
| | | |
| | | List<GwClient> list = new List<GwClient>(); |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | stringBuilder.Append("from GW_CLIENT where 1=1"); |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[6]; |
| | | OracleParameter[] oracleParameterArray = new OracleParameter[7]; |
| | | if (clientID != null && clientID != "") |
| | | { |
| | | oracleParameterArray[0] = new OracleParameter(":ClientID", (OracleDbType)126); |
| | |
| | | oracleParameterArray[5] = new OracleParameter(":Agent", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[5]).Value = (object)("%" + agent + "%"); |
| | | stringBuilder.Append(" and Agent like :Agent"); |
| | | } |
| | | if (supportStaff != null && supportStaff != "") |
| | | { |
| | | oracleParameterArray[6] = new OracleParameter(":SupportStaff", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[6]).Value = (object)(supportStaff); |
| | | stringBuilder.Append(" and SUPPORT_STAFF = :SupportStaff"); |
| | | } |
| | | |
| | | if (productId != null && productId != "") |
| | |
| | | /** |
| | | * 查询统计功能 |
| | | */ |
| | | public List<GwClient> LoadInfoList(string clientID, string clientName, string company, string agent) |
| | | public List<GwClient> LoadInfoList(string clientID, string clientName, string company, string agent, string permissionsSQL) |
| | | { |
| | | |
| | | |
| | |
| | | ((DbParameter)oracleParameterArray[3]).Value = (object)("%" + agent + "%"); |
| | | stringBuilder.Append(" and Agent like :Agent"); |
| | | } |
| | | |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | | |
| | | stringBuilder.Append(" order by CREATE_TIME DESC,CLIENT_ID DESC"); |
| | | using (OracleDataReader reader = OracleHelper.ExecuteReader("select * " + stringBuilder.ToString(), OracleHelper.Connection, oracleParameterArray)) |
| | | { |