//================================ 私有 方法 ================================ #region 绑定初始化数据 InitBindData() /// <summary> ///绑定初始化数据 /// </summary> private void InitBindData() { try { //绑定最后交易日类型 this.cmbLastTradingDayType.Properties.Items.Clear(); this.cmbLastTradingDayType.Properties.Items.AddRange(BindData.GetBindListQHLastTradingDayType()); this.cmbLastTradingDayType.SelectedIndex = 0; //绑定星期几 this.cmbWeek.Properties.Items.Clear(); this.cmbWeek.Properties.Items.AddRange(BindData.GetBindListQHWeek()); this.cmbWeek.SelectedIndex = 0; this.cmbWeek.EditValue = string.Empty; //绑定期货最后交易日是顺数或倒数 this.cmbSequence.Properties.Items.Clear(); this.cmbSequence.Properties.Items.AddRange(BindData.GetBindListQHLastTradDayIsSequence()); this.cmbSequence.SelectedIndex = 0; this.cmbSequence.EditValue = string.Empty; //this.speWhatWeek.Value=Convert.ToDecimal(DBNull.Value); } catch (Exception ex) { string errCode = "GL-5843"; string errMsg = "绑定初始化数据失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return; } }