コード例 #1
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     try
     {
         TheCycleCountMgr.CancelCycleCount(this.CacheResolver.Code, this.CurrentUser);
         this.CacheResolver.Status = BusinessConstants.CODE_MASTER_STATUS_VALUE_CANCEL;
         this.EditMode             = false;
         this.Refresh();
         ShowSuccessMessage("MasterData.Order.OrderHead.Cancel.Successfully", this.CacheResolver.Code);
     }
     catch (BusinessErrorException ex)
     {
         ShowErrorMessage(ex);
     }
 }
コード例 #2
0
    protected void btnCancel_Click(object sender, EventArgs e)
    {
        try
        {
            TheCycleCountMgr.CancelCycleCount(this.OrderNo, this.CurrentUser);
            this.Refresh();

            if (TabEvent != null)
            {
                TabEvent(new object[] { false, "" }, e);
            }

            ShowSuccessMessage("Common.Business.Result.Cancel.Successfully", this.OrderNo);
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage(ex);
        }
    }