예제 #1
0
    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);
            }
        }
    }
예제 #2
0
    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);
        }
    }
예제 #3
0
    public bool confirmRequisitionOrder(string requisitionOrderNo, string userCode)
    {
        TheOrderMgr.StartOrder(requisitionOrderNo, userCode);

        return(true);
    }
예제 #4
0
 protected void btnOrderNo_Click(object sender, EventArgs e)
 {
     TheOrderMgr.StartOrder(this.tbOrderNo.Text.Trim(), this.CurrentUser);
     this.gvOnline.DataBind();
 }