| | |
| | | } |
| | | } |
| | | |
| | | var Bianhao = _PlanOrderBLL.GetModelByorderid(HideKeyid.Value.ToInt32().Value).Max(x => x.Bianhao); |
| | | |
| | | if (Bianhao.HasValue && Bianhao.Value > 0) |
| | | { |
| | | Bianhao = Bianhao.Value + 1; |
| | | } |
| | | else |
| | | { |
| | | Bianhao = 1; |
| | | } |
| | | |
| | | |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | |
| | | if (coreCmsPlanOrder == null) |
| | | { |
| | | CoreCmsPlanOrder order = new CoreCmsPlanOrder(); |
| | | order.Bianhao = Bianhao; |
| | | order.status = 1; |
| | | order.shipMobile = lie[j].shipMobile; |
| | | order.shipAddress = lie[j].shipAddress; |
| | |
| | | |
| | | |
| | | var id = _PlanOrderBLL.InsertModelIden(order); |
| | | Bianhao = Bianhao + 1; |
| | | var ssss = false; |
| | | foreach (var cmsPlanOrderItem in cmsPlanOrderItems) |
| | | { |