private DataSet GetBill(BillType billType, string billNum) { DataSet rds = new DataSet(); DataTable dt = new DataTable(); switch (billType) { case BillType.SortedDeliver: var bill = SortBillController.GetBill(rdb, billNum); dt = ConvertHelper.EntityToDataTable(bill); rds.Tables.Add(dt); var details = SortDetailController.GetList(rdb, billNum); dt = ConvertHelper.ListToDataTable(details); rds.Tables.Add(dt); break; } return(rds); }
public TS_SORT_DETAIL[] GetSortDetailList(string billNum) { return(SortDetailController.GetList(rdb, billNum).ToArray()); }