protected void btnStart_Click(object sender, EventArgs e) { IList <string> orderList = GetSelectOrder(); if (orderList.Count == 0) { ShowErrorMessage("MasterData.Order.BatchCheckIn.PleaseSelectOrder"); } else { try { foreach (string orderNo in orderList) { TheOrderMgr.StartOrder(orderNo, this.CurrentUser.Code); } ShowSuccessMessage("MasterData.Order.BatchStart.Successfully"); InitPageParameter(this.FlowCode); } catch (BusinessErrorException ex) { this.ShowErrorMessage(ex); } } }
protected void lbtnOrder_Click(object sender, EventArgs e) { try { string orderNo = ((LinkButton)sender).CommandArgument; OrderHead orderHead = TheOrderMgr.LoadOrder(orderNo, this.CurrentUser); if (orderHead.Status == BusinessConstants.CODE_MASTER_STATUS_VALUE_SUBMIT) { TheOrderMgr.StartOrder(orderNo, this.CurrentUser); } List <string> orderNoList = new List <string>(); orderNoList.Add(orderNo); if (EditEvent != null) { EditEvent(new Object[] { orderNoList }, e); } } catch (BusinessErrorException ex) { ShowErrorMessage(ex); } }
public bool confirmRequisitionOrder(string requisitionOrderNo, string userCode) { TheOrderMgr.StartOrder(requisitionOrderNo, userCode); return(true); }
protected void btnOrderNo_Click(object sender, EventArgs e) { TheOrderMgr.StartOrder(this.tbOrderNo.Text.Trim(), this.CurrentUser); this.gvOnline.DataBind(); }