Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                this.btnAdd.Enabled = false;

                var stockInfo = this.luStock.GetSelectedDataRow() as StockInfoModel;
                if (stockInfo == null)
                {
                    return;
                }

                _IDService.AddInvestmentPlanRecord(SerialNo, stockInfo.FullCode, stockInfo.Name, LoginInfo.CurrentUser.UserCode, AnalysisDate);
                BindIPR();
            }
            catch (Exception ex)
            {
                DXMessage.ShowError(ex.Message);
            }
            finally
            {
                this.btnAdd.Enabled = true;
            }
        }