| | |
| | | |
| | | |
| | | //flag: 0-待审核订单(已提交、审核中);1-已完成订单(审核通过、审核不通过、取消) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string clientName, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, string permissionsSQL, out int recordcount) |
| | | public List<GwOrder> LoadInfoList(string spId, string clientId, string compay, int flag, DateTime startDate, DateTime endDate, int pageSize, int PageIndex, string permissionsSQL, out int recordcount) |
| | | { |
| | | |
| | | List<GwOrder> list = new List<GwOrder>(); |
| | |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | stringBuilder.Append(" FROM ( "); |
| | | stringBuilder.Append("SELECT GWO.*, GWC.CLIENT_NAME "); |
| | | stringBuilder.Append("SELECT GWO.*, GWC.CLIENT_NAME, GWC.COMPANY "); |
| | | stringBuilder.Append(" FROM GW_ORDER GWO "); |
| | | stringBuilder.Append(" LEFT JOIN GW_SP GWS ON GWS.SP_ID = GWO.SP_ID "); |
| | | stringBuilder.Append(" LEFT JOIN GW_CLIENT GWC ON GWC.CLIENT_ID = GWO.CLIENT_ID "); |
| | |
| | | { |
| | | stringBuilder.Append(" and GWO.CLIENT_ID like '%" + clientId + "%'"); |
| | | } |
| | | if ((clientName != null) && (clientName != "")) |
| | | if ((compay != null) && (compay != "")) |
| | | { |
| | | stringBuilder.Append(" and GWC.CLIENT_NAME like '%" + clientName + "%'"); |
| | | stringBuilder.Append(" and GWC.COMPANY like '%" + compay + "%'"); |
| | | } |
| | | //客户权限SQL脚本 |
| | | stringBuilder.Append(permissionsSQL); |
| | |
| | | o.OrderId = oracleReaderWrapper.GetString("ORDER_ID", ""); |
| | | o.SpId = oracleReaderWrapper.GetString("SP_ID", ""); |
| | | o.ClientId = oracleReaderWrapper.GetString("CLIENT_ID", ""); |
| | | o.Company = oracleReaderWrapper.GetString("COMPANY", ""); |
| | | o.ClientName = oracleReaderWrapper.GetString("CLIENT_NAME", ""); |
| | | o.ProductId = oracleReaderWrapper.GetString("PRODUCT_ID", ""); |
| | | o.ComboId = oracleReaderWrapper.GetString("COMBO_ID", ""); |