/// <summary> /// 获取阿里订单下载计划详情 /// </summary> /// <param name="agentID"></param> /// <returns></returns> public AliOrderDownloadPlan GetAliOrderDownloadPlanDetail(string clientID) { DataTable dt = AliOrderDAL.BaseProvider.GetAliOrderDownloadPlanDetail(clientID); if (dt.Rows.Count == 1) { AliOrderDownloadPlan item = new AliOrderDownloadPlan(); item.FillData(dt.Rows[0]); return item; } else return null; }
/// <summary> /// 获取阿里订单下载计划列表 /// </summary> /// <param name="status">计划状态 1:正常;2:token失效;3;系统异常</param> /// <returns></returns> public List<AliOrderDownloadPlan> GetAliOrderDownloadPlans() { List<AliOrderDownloadPlan> list = new List<AliOrderDownloadPlan>(); DataTable dt = AliOrderDAL.BaseProvider.GetAliOrderDownloadPlans(); foreach (DataRow dr in dt.Rows) { AliOrderDownloadPlan item = new AliOrderDownloadPlan(); item.FillData(dr); list.Add(item); } return list; }