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); } }
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); } }
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); } }