private void baseButtonEnd_Click(object sender, EventArgs e) { try { if (GlobalMessageBox.Show("期初客户库存只能录入一次,确定录入完毕?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } TabPageClose(this.CurrentTabPage, this.SourceCtrlType); GlobalUtil.SaveParameters(ParameterConfigKey.IsHideCreatePfStore, "1"); End?.Invoke(this); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void baseButtonEnd_Click(object sender, EventArgs e) { try { if (GlobalMessageBox.Show("期初库存只能录入一次,确定录入完毕?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult result = GlobalCache.ServerProxy.HideCreateStore(); switch (result.ExeResult) { case ExeResult.Success: TabPageClose(this.CurrentTabPage, this.SourceCtrlType); GlobalUtil.SaveParameters(ParameterConfigKey.IsHideCreateStore, "1"); End?.Invoke(this); break; case ExeResult.Error: GlobalMessageBox.Show(result.Msg); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }