| | |
| | | return list1; |
| | | } |
| | | |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string clientName, int routerType, string opID, int chargeType, int pageIndex, int pageSize |
| | | public List<GwSp> LoadInfoList(string spId, string apId, string clientId, string company, int routerType, string opId, int chargeType, int pageIndex, int pageSize |
| | | , string resendStatus, string productId, string permissionsSQL, out int recordCount) |
| | | { |
| | | List<GwSp> list1 = new List<GwSp>(); |
| | |
| | | list2.Add(new OracleParameter(":ClientID", (object)('%' + clientId + '%'))); |
| | | stringBuilder.Append(" and CLIENT_ID like :ClientID"); |
| | | } |
| | | if (clientName != null && clientName != "") |
| | | if (company != null && company != "") |
| | | { |
| | | stringBuilder.Append(" and CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE CLIENT_NAME like '%" + clientName + "%' )"); |
| | | stringBuilder.Append(" and CLIENT_ID IN (SELECT CLIENT_ID FROM GW_CLIENT WHERE COMPANY like '%" + company + "%' )"); |
| | | } |
| | | /** |
| | | if (chargeType > 0) |
| | |
| | | { |
| | | list2.Add(new OracleParameter(":ROUTER_TYPE", (object)routerType)); |
| | | stringBuilder.Append(" and ROUTER_TYPE=:ROUTER_TYPE"); |
| | | if (!string.IsNullOrEmpty(opID)) |
| | | if (!string.IsNullOrEmpty(opId)) |
| | | { |
| | | stringBuilder.Append(" and (CM_OP_ID=:OPID) OR (CT_OP_ID=:OPID) OR (UN_OP_ID=:OPID) "); |
| | | list2.Add(new OracleParameter(":OPID", (object)opID)); |
| | | list2.Add(new OracleParameter(":OPID", (object)opId)); |
| | | } |
| | | } |
| | | if (routerType == 3) |
| | | { |
| | | list2.Add(new OracleParameter(":ROUTER_TYPE", (object)routerType)); |
| | | stringBuilder.Append(" and ROUTER_TYPE=:ROUTER_TYPE"); |
| | | if (!string.IsNullOrEmpty(opID)) |
| | | if (!string.IsNullOrEmpty(opId)) |
| | | { |
| | | stringBuilder.Append(" and (CM_GROUP_ID=:OPID) OR (CU_GROUP_ID=:OPID) OR (CT_GROUP_ID=:OPID) "); |
| | | list2.Add(new OracleParameter(":OPID", (object)opID)); |
| | | list2.Add(new OracleParameter(":OPID", (object)opId)); |
| | | } |
| | | } |
| | | } |