protected void btnSubmit_Click(object sender, EventArgs e) { try { CycleCount cycleCount = TheCycleCountMgr.LoadCycleCount(this.OrderNo); if (cycleCount.Type == BusinessConstants.CODE_MASTER_PHYCNT_TYPE_WHOLECHECK) { TheCycleCountMgr.ReleaseCycleCount(this.OrderNo, this.CurrentUser); } else { if (cycleCount.IsScanHu) { cycleCount.Bins = this.ucStorageBinList.GetBins(); } cycleCount.Items = this.ucItemList.GetItems(); TheCycleCountMgr.ReleaseCycleCount(cycleCount, this.CurrentUser); } if (TabEvent != null) { TabEvent(new object[] { true, this.OrderNo }, e); } ShowSuccessMessage("Common.Business.Result.Submit.Successfully"); this.InitPageParameter(this.OrderNo); } catch (BusinessErrorException ex) { ShowErrorMessage(ex); } }