示例#1
0
文件: OrderHelper.cs 项目: zwkjgs/XKD
        public static void SetOrderShipNumber(string[] orderIds, string startNumber, string ExpressCom = "")
        {
            string   text     = startNumber;
            OrderDao orderDao = new OrderDao();

            for (int i = 0; i < orderIds.Length; i++)
            {
                if (i != 0)
                {
                    text = OrderHelper.GetNextExpress(ExpressCom, text);
                }
                else
                {
                    OrderHelper.GetNextExpress(ExpressCom, text);
                }
                orderDao.EditOrderShipNumber(orderIds[i], text);
            }
        }
示例#2
0
        public static void SetOrderShipNumber(string[] orderIds, string startNumber, string ExpressCom = "")
        {
            string   strno = startNumber;
            OrderDao dao   = new OrderDao();

            for (int i = 0; i < orderIds.Length; i++)
            {
                if (i != 0)
                {
                    strno = GetNextExpress(ExpressCom, strno);
                }
                else
                {
                    GetNextExpress(ExpressCom, strno);
                }
                dao.EditOrderShipNumber(orderIds[i], strno);
            }
        }
示例#3
0
        public static void SetOrderShipNumber(string[] orderIds, string startNumber, [Optional, DefaultParameterValue("")] string ExpressCom)
        {
            string   strno = startNumber;
            OrderDao dao   = new OrderDao();

            for (int i = 0; i < orderIds.Length; i++)
            {
                if (i != 0)
                {
                    strno = GetNextExpress(ExpressCom, strno);
                }
                else
                {
                    GetNextExpress(ExpressCom, strno);
                }
                dao.EditOrderShipNumber(orderIds[i], strno);
            }
        }