示例#1
0
        public static OrderInfo GetCanRequestOrder(int customerSysNo, int soSysNo)
        {
            RMAQueryInfo query = new RMAQueryInfo();

            query.SOID          = soSysNo.ToString();
            query.CustomerSysNo = customerSysNo;
            query.PagingInfo    = new PageInfo()
            {
                PageIndex = 1,
                PageSize  = 1
            };
            QueryResult <OrderInfo> result = RequestDA.QueryCanRequestOrders(query);

            if (result.ResultList == null || result.ResultList.Count <= 0)
            {
                return(new OrderInfo()
                {
                    SOItemList = new List <SOItemInfo>(0)
                });
            }
            return(result.ResultList[0]);
        }
示例#2
0
 public static QueryResult <OrderInfo> QueryCanRequestOrders(RMAQueryInfo query)
 {
     return(RequestDA.QueryCanRequestOrders(query));
 }