示例#1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            CycleCount cycleCount = TheCycleCountMgr.LoadCycleCount(this.OrderNo);

            if (cycleCount.IsScanHu)
            {
                cycleCount.Bins = this.ucStorageBinList.GetBins();
            }
            cycleCount.Items = this.ucItemList.GetItems();
            TheCycleCountMgr.UpdateCycleCount(cycleCount);
            this.Refresh();

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

            ShowSuccessMessage("Common.Business.Result.Update.Successfully");
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage("Common.Business.Result.Update.Failed.Reason", ex.Message);
        }
    }