Beispiel #1
0
    protected void btnCancel_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.CancelOrder(orderNo, this.CurrentUser.Code);
                }
                ShowSuccessMessage("MasterData.Order.BatchCancel.Successfully");
                InitPageParameter(this.FlowCode);
            }
            catch (BusinessErrorException ex)
            {
                this.ShowErrorMessage(ex);
            }
        }
    }