/// <summary>
        /// 修改熔断_时间段标识
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnModify_Click(object sender, EventArgs e)
        {
            try
            {
                CM_FuseTimesection cM_FuseTimesection = new CM_FuseTimesection();
                if (m_TimesectionID == AppGlobalVariable.INIT_INT)
                {
                    ShowMessageBox.ShowInformation("请选择更新数据!");
                    return;
                }
                cM_FuseTimesection.TimesectionID = m_TimesectionID;
                cM_FuseTimesection.CommodityCode = m_CommodityCode;
                cM_FuseTimesection.StartTime     = Convert.ToDateTime(this.tmStartTime.EditValue);
                cM_FuseTimesection.EndTime       = Convert.ToDateTime(this.tmEndTime.EditValue);
                string msg = string.Empty; //错误信息提示变量
                // m_Result = CommonParameterSetCommon.UpdateCMFuseTimesection(cM_FuseTimesection);
                m_Result = CommonParameterSetCommon.UpdateCMFuseTimesection(cM_FuseTimesection, ref msg);

                if (m_Result)
                {
                    ShowMessageBox.ShowInformation("修改成功!");
                    this.ClearAll();
                    //btnAdd.Enabled = true;
                    //btnModify.Enabled = false;
                }
                else
                {
                    //MessageBox.Show("修改失败!", "系统提示");
                    ShowMessageBox.ShowInformation(msg);
                }
                this.QueryCMFuseTimesection();
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-6822";
                string      errMsg    = " 修改熔断_时间段标识失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }
        /// <summary>
        /// 添加熔断_时间段标识
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            try
            {
                CM_FuseTimesection cM_FuseTimesection = new CM_FuseTimesection();
                if (m_CommodityCode != AppGlobalVariable.INIT_STRING)
                {
                    cM_FuseTimesection.CommodityCode = m_CommodityCode;
                }
                else
                {
                    ShowMessageBox.ShowInformation("商品代码不能为空!");
                    return;
                }

                if (!string.IsNullOrEmpty(this.tmStartTime.Text))
                {
                    cM_FuseTimesection.StartTime = Convert.ToDateTime(this.tmStartTime.EditValue);
                }
                else
                {
                    cM_FuseTimesection.StartTime = AppGlobalVariable.INIT_DATETIME;
                }
                if (!string.IsNullOrEmpty(this.tmEndTime.Text))
                {
                    if (!(Convert.ToDateTime(this.tmEndTime.EditValue) < Convert.ToDateTime(this.tmStartTime.EditValue)))
                    {
                        cM_FuseTimesection.EndTime = Convert.ToDateTime(this.tmEndTime.EditValue);
                    }
                    else
                    {
                        ShowMessageBox.ShowInformation("结束时间不能小于开始时间!");
                        return;
                    }
                }
                else
                {
                    cM_FuseTimesection.EndTime = AppGlobalVariable.INIT_DATETIME;
                }
                string msg = string.Empty; //错误信息提示变量
                //int Result = CommonParameterSetCommon.AddCMFuseTimesection(cM_FuseTimesection);
                int Result = CommonParameterSetCommon.AddCMFuseTimesection(cM_FuseTimesection, ref msg);

                if (Result != AppGlobalVariable.INIT_INT)
                {
                    ShowMessageBox.ShowInformation("添加成功!");
                    this.ClearAll();
                    this.QueryCMFuseTimesection();
                }
                else
                {
                    ShowMessageBox.ShowInformation(msg);
                }
            }
            catch (Exception ex)
            {
                string      errCode   = "GL-6821";
                string      errMsg    = " 添加熔断_时间段标识失败!";
                VTException exception = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(exception.ToString(), exception.InnerException);
                return;
            }
        }