Beispiel #1
0
        /// <summary>
        /// 显示订单信息用于修改功能
        /// </summary>
        /// <param name="storeOrderId">ID</param>
        /// <returns></returns>
        public StoreOrderModel GetStoreOrderModelEffectUpdUpdStoreOrderItem(string id)
        {
            //StoreOrderModel storeOrder = new StoreOrderModel(id);

            //return storeOrder;

            return(StoreOrderDAL.GetStoreOrderModel(id));
        }
Beispiel #2
0
        /// <summary>
        /// 合并单据
        /// </summary>
        /// <param name="lsom"></param>
        /// <returns></returns>
        public static string SetUniteForm(List <StoreOrderModel> lsom)
        {
            bool   isSucceed    = true;
            string err          = "";
            string storeorderId = "";
            string storeID      = "";

            for (int i = 0; i < lsom.Count; i++)
            {
                StoreOrderModel som = StoreOrderDAL.GetStoreOrderModel(lsom[i].StoreorderId);

                if (som.IsGeneOutBill == "Y")
                {
                    if (storeID == "")
                    {
                        storeID = som.StoreId;
                    }
                    else
                    {
                        if (storeID != som.StoreId)
                        {
                            isSucceed = false;

                            err = "1";

                            break;
                        }
                    }
                }
                else
                {
                    isSucceed = false;

                    err          = "2";
                    storeorderId = lsom[i].StoreorderId;

                    break;
                }
            }

            if (isSucceed)
            {
                return("Y");
            }
            else
            {
                if (err == "1")
                {
                    return("不在同一个店铺下不能合单");
                }
                //else if (err == "2")
                return("订单号 : " + storeorderId + ", 没有出库");
            }
        }
Beispiel #3
0
 public static StoreOrderModel GetStoreOrderModel(string storeOrderID)
 {
     return(StoreOrderDAL.GetStoreOrderModel(storeOrderID));
 }
Beispiel #4
0
 /// <summary>
 /// 获取订单信息
 /// </summary>
 /// <param name="orderId"></param>
 /// <returns></returns>
 public static StoreOrderModel GetOrder(string orderId)
 {
     return(StoreOrderDAL.GetStoreOrderModel(orderId));
 }