public static bool CheckAuthrize(PickList pickList, User user) { bool partyFromAuthrized = false; //bool partyToAuthrized = false; foreach (Permission permission in user.Permissions) { if (permission.Code == pickList.PartyFrom.Code) { partyFromAuthrized = true; break; } //if (permission.Code == pickList.PartyTo.Code) //{ // partyToAuthrized = true; //} //if (partyFromAuthrized && partyToAuthrized) //{ // break; //} } //if (!(partyFromAuthrized && partyToAuthrized)) if (!partyFromAuthrized) { //没有该订单的操作权限 throw new BusinessErrorException("Order.Error.PickUp.NoPermission", pickList.PickListNo); } return true; }
private ReceiptNote PickList2ReceiptNote(PickList pickList) { ReceiptNote receiptNote = new ReceiptNote(); receiptNote.OrderNo = pickList.PickListNo; receiptNote.CreateDate = pickList.CreateDate; receiptNote.CreateUser = pickList.CreateUser == null ? string.Empty : pickList.CreateUser.Code; receiptNote.Status = pickList.Status; return receiptNote; }
/* * 填充报表头 * * Param pickList 订单头对象 */ private void FillHead(PickList pickList) { //订单号: string orderCode = Utility.BarcodeHelper.GetBarcodeStr(pickList.PickListNo, this.barCodeFontName); this.SetRowCell(0, 7, orderCode); //Order No.: this.SetRowCell(1, 7, pickList.PickListNo); if (pickList.PickListDetails == null || pickList.PickListDetails[0] == null || pickList.PickListDetails[0].OrderLocationTransaction == null || pickList.PickListDetails[0].OrderLocationTransaction.OrderDetail == null || pickList.PickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead == null || "Normal".Equals(pickList.PickListDetails[0].OrderLocationTransaction.OrderDetail.OrderHead.Priority)) { this.SetRowCell(2, 4, ""); } else { this.SetRowCell(1, 4, ""); } //源超市: if (pickList.Flow != null && pickList.Flow.Trim() != string.Empty) { Flow flow = this.flowMgrE.LoadFlow(pickList.Flow); this.SetRowCell(2, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Code); //目的超市: this.SetRowCell(3, 2, pickList.Flow); //领料地点: this.SetRowCell(4, 2, flow.LocationFrom == null ? string.Empty : flow.LocationFrom.Region.Code); } //窗口时间 this.SetRowCell(2, 8, pickList.WindowTime.ToString("yyyy-MM-dd HH:mm")); //订单时间 this.SetRowCell(3, 8, pickList.CreateDate.ToString("yyyy-MM-dd HH:mm")); }
public InProcessLocation ShipOrder(PickList pickList, string userCode) { return ShipOrder(pickList.PickListNo, this.userMgrE.CheckAndLoadUser(userCode)); }
public InProcessLocation ShipOrder(PickList pickList, User user) { return ShipOrder(pickList.PickListNo, user); }
public virtual void UpdatePickList(PickList entity) { entityDao.UpdatePickList(entity); }
public virtual void DeletePickList(PickList entity) { entityDao.DeletePickList(entity); }
public virtual void CreatePickList(PickList entity) { entityDao.CreatePickList(entity); }
/* * 填充报表头 * * Param pickList 订单头对象 */ private void FillHead(PickList pickList) { string pickListCode = Utility.BarcodeHelper.GetBarcodeStr(pickList.PickListNo, this.barCodeFontName); //拣货单号 this.SetRowCell(2, 7, pickListCode); //拣货单号 this.SetRowCell(3, 7, pickList.PickListNo); //创建时间 this.SetRowCell(4, 7, pickList.CreateDate.ToString("yyyy-MM-dd HH:mm")); }
public virtual void DeletePickList(PickList entity) { Delete(entity); }
public virtual void UpdatePickList(PickList entity) { Update(entity); }
public virtual void CreatePickList(PickList entity) { Create(entity); }