| | |
| | | /// <param name="telphone">联系电话</param> |
| | | /// <param name="agent">业务员</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 company, string clientName, string telphone, string agent) |
| | | { |
| | | |
| | | List<GwClient> list = new List<GwClient>(); |
| | |
| | | oracleParameterArray[0] = new OracleParameter(":ClientID", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[0]).Value = (object)('%' + clientID + '%'); |
| | | stringBuilder.Append(" and CLIENT_ID like :ClientID"); |
| | | } |
| | | if (company != null && company != "") |
| | | { |
| | | oracleParameterArray[1] = new OracleParameter(":Company", (OracleDbType)126); |
| | | ((DbParameter)oracleParameterArray[1]).Value = (object)('%' + company + '%'); |
| | | stringBuilder.Append(" and Company like :Company"); |
| | | } |
| | | if (clientName != null && clientName != "") |
| | | { |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |