Exemplo n.º 1
0
        /// <summary>
        /// 订单发货
        /// </summary>
        /// <param name="storeOrderIDs"></param>
        /// <returns></returns>
        public static string Consign(List <StoreOrderModel> lsom)
        {
            bool   isSucceed    = true;
            string storeOrderID = "";

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

                if (som.IsGeneOutBill == "Y")
                {
                    StoreOrderDAL.UpdStoreOrderIsSent(lsom[i]);
                }
                else
                {
                    isSucceed = false;

                    storeOrderID = lsom[i].StoreorderId;

                    break;
                }
            }

            if (isSucceed)
            {
                return("Y");
            }
            else
            {
                return(storeOrderID);
            }
        }