/// <summary> /// 改用户待发货、待收货、待签收订单 /// </summary> /// <param name="userid"></param> /// <param name="type"></param> /// <returns></returns> public IEnumerable<dynamic> Query_AwaitLogisticsOrderList(string userid, string type) { //Init Data int iLogisticsState = 0; //默认未发货 //DAL OrderListInfoDAL dal = new OrderListInfoDAL(); //Result IEnumerable<dynamic> list = null; switch (type) { case "awaitDelivery": //待发货 iLogisticsState = 0; list = dal.QueryAwaitLogisticsListInfo(userid, iLogisticsState); break; case "awaitReceive": //待收货 iLogisticsState = 1; list = dal.QueryAwaitLogisticsListInfo(userid, iLogisticsState); break; case "awaitCheck": //待签收 iLogisticsState = 2; list = dal.QueryAwaitLogisticsListInfo(userid, iLogisticsState); break; default: break; } return list; }
/// <summary> /// 该用户待付款列表 /// </summary> /// <param name="userid"></param> /// <returns></returns> public IEnumerable<dynamic> Query_AwaitPayOrderList(string userid) { IEnumerable<dynamic> list = new OrderListInfoDAL().QueryAwaitPayListInfo(userid); return list; }