/// <summary> /// 获取订单分页数据 /// </summary> /// <param name="PageSize">页大小</param> /// <param name="PageNum">页码</param> /// <param name="WhereStr">条件</param> /// <param name="OrderBy">排序</param> /// <returns>返回订单数据集合</returns> public DataTable GetAllOrders(int PageSize, int PageNum, string WhereStr, string OrderBy) { DataTable dt = new DataTable(); dt = os.GetAllOrders(PageSize, PageNum, WhereStr, OrderBy); foreach (DataRow row in dt.Rows) { if (string.IsNullOrEmpty(row["Source"].ToString())) { row["Source"] = "用户注册"; } } return(dt); }