//采购用 public static DataTable GetProductInfoTableBycondition(ProductInfoModel model, int pageIndex, int pageCount, string OrderBy, ref int totalCount) { try { return(ProductInfoDBHelper.GetProductInfoTableBycondition(model, pageIndex, pageCount, OrderBy, ref totalCount)); } catch (Exception ex) { throw ex; } }
public static DataTable GetProductInfoTableBycondition(ProductInfoModel model, string QueryID, string EFIndex, string EFDesc, int pageIndex, int pageCount, string OrderBy, ref int totalCount) { try { DataTable dt = new DataTable(); if (QueryID == "-1") { return(ProductInfoDBHelper.GetProductInfoBycondition(model)); } else { return(ProductInfoDBHelper.GetProductInfoTableBycondition(model, QueryID, EFIndex, EFDesc, pageIndex, pageCount, OrderBy, ref totalCount)); } } catch (Exception ex) { return(null); throw ex; } }