protected void btnShip_Click(object sender, EventArgs e) { string pickListNo = this.tbPickListNo.Text; try { TheOrderMgr.ShipOrder(pickListNo, this.CurrentUser); ShowSuccessMessage("MasterData.PickList.ShipPickList.Successfully", this.tbPickListNo.Text.Trim()); DoSearch(); } catch (BusinessErrorException ex) { this.ShowErrorMessage(ex); } }
private void ShipRender(object sender, EventArgs e) { OrderHead orderHead = (OrderHead)sender; try { InProcessLocation inProcessLocation = TheOrderMgr.ShipOrder(orderHead.OrderDetails, this.CurrentUser); this.FV_Order.DataBind(); UpdateView(); ShowSuccessMessage("MasterData.Order.OrderHead.Update.Successfully", this.OrderNo); } catch (BusinessErrorException ex) { this.ShowErrorMessage(ex); } }
public bool sendDeliveryOrder(DeliveryOrder order, string userCode) { IList <OrderDetail> orderDetailList = new List <OrderDetail>(); if (order != null && order.deliveryOrderItems != null && order.deliveryOrderItems.Length > 0) { foreach (DeliveryOrderItem item in order.deliveryOrderItems) { OrderDetail orderDetail = TheOrderDetailMgr.LoadOrderDetail(int.Parse(item.id)); orderDetail.CurrentShipQty = Convert.ToDecimal(item.deliveryQuantity); orderDetailList.Add(orderDetail); } TheOrderMgr.ShipOrder(orderDetailList, userCode); } return(true); }
private void ShipRender(object sender, EventArgs e) { OrderHead orderHead = (OrderHead)sender; try { TheOrderMgr.ShipOrder(orderHead.OrderDetails, this.CurrentUser); this.FV_Order.DataBind(); UpdateView(); ShowSuccessMessage("MasterData.Order.OrderHead.Ship.Successfully", this.OrderNo); // if (inProcessLocation != null) // { // IList<object> huDetailObj = new List<object>(); // IList<HuDetail> huDetailList = new List<HuDetail>(); // IList<InProcessLocationDetail> inProcessLocationDetailList = inProcessLocation.InProcessLocationDetails; // if (inProcessLocationDetailList != null && inProcessLocationDetailList.Count > 0) // { // foreach (InProcessLocationDetail inProcessLocationDetail in inProcessLocationDetailList) // { // HuDetail huDetail = TheHuDetailMgr.LoadHuDetail(inProcessLocationDetail.HuId, inProcessLocationDetail.LotNo, inProcessLocationDetail.OrderLocationTransaction.Item.Code); // if (huDetail != null) // { // huDetailList.Add(huDetail); // } // } // if (huDetailList != null && huDetailList.Count > 0) // { // huDetailObj.Add(huDetailList); // huDetailObj.Add(CurrentUser.Code); // //TheReportBarCodeMgr.FillValues("BarCode.xls", huDetailObj); // string barCodeUrl = TheReportMgr.WriteToFile("BarCode.xls", huDetailObj,"BarCode.xls"); // Page.ClientScript.RegisterStartupScript(GetType(), "method", " <script language='javascript' type='text/javascript'>PrintOrder('" + barCodeUrl + "'); </script>"); // } // } // } } catch (BusinessErrorException ex) { this.ShowErrorMessage(ex); } }