//================================ 事件 ================================ #region 商品期货持仓限制管理窗体 PositionRangeValManageUI_Load /// <summary> /// 商品期货持仓限制管理窗体 PositionRangeValManageUI_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PositionRangeValManageUI_Load(object sender, EventArgs e) { try { //绑定查询条件交割月份类型 this.cmbDeliveryMonthTypeID.Properties.Items.Clear(); this.cmbDeliveryMonthTypeID.Properties.Items.AddRange(BindData.GetBindListQHCFPositionMonthType()); //this.cmbDeliveryMonthTypeID.SelectedIndex = 0; //绑定查询条件持仓控制类型 this.cmbPositionBailTypeID.Properties.Items.Clear(); this.cmbPositionBailTypeID.Properties.Items.AddRange(BindData.GetBindListQHPositionBailType()); // this.cmbPositionBailTypeID.SelectedIndex = 0; //绑定上限是否相等 this.ddlUpperLimitIfEquation.DataSource = BindData.GetBindListYesOrNo(); this.ddlUpperLimitIfEquation.ValueMember = "ValueIndex"; this.ddlUpperLimitIfEquation.DisplayMember = "TextTitleValue"; //绑定下限是否相等 this.ddlLowerLimitIfEquation.DataSource = BindData.GetBindListYesOrNo(); this.ddlLowerLimitIfEquation.ValueMember = "ValueIndex"; this.ddlLowerLimitIfEquation.DisplayMember = "TextTitleValue"; //绑定交割月份类型 this.ddlDeliveryMonthTypeID.DataSource = BindData.GetBindListQHCFPositionMonthType(); this.ddlDeliveryMonthTypeID.ValueMember = "ValueIndex"; this.ddlDeliveryMonthTypeID.DisplayMember = "TextTitleValue"; //绑定持仓控制类型 this.ddlPositionBailTypeID.DataSource = BindData.GetBindListQHPositionBailType(); this.ddlPositionBailTypeID.ValueMember = "ValueIndex"; this.ddlPositionBailTypeID.DisplayMember = "TextTitleValue"; //绑定持仓取值类型 this.ddlPositionValueTypeID.DataSource = BindData.GetBindListQHPositionValueType(); this.ddlPositionValueTypeID.ValueMember = "ValueIndex"; this.ddlPositionValueTypeID.DisplayMember = "TextTitleValue"; //#region 绑定持仓类型 add by 董鹏 2010-01-21 //this.ddlPositionLimitType.DataSource = BindData.GetBindListQHPositionLimitType(); //this.ddlPositionLimitType.ValueMember = "ValueIndex"; //this.ddlPositionLimitType.DisplayMember = "TextTitleValue"; //#endregion //绑定查询结果 this.m_pageNo = 1; this.gdPositionLimitValueResult.DataSource = this.QueryQHPositionLimitValue(); this.ShowDataPage(); } catch (Exception ex) { string errCode = "GL-6460"; string errMsg = "商品期货持仓限制管理窗体加载失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return; } }
/// <summary> /// 绑定(商品)期货持仓限制初始化数据 /// </summary> private void InitBindData() { try { //绑定(商品)期货品种类型的品种名称 this.cmbBreedClassID.Properties.Items.Clear(); this.GetBindSpQhTypeBreedClassName(); this.cmbBreedClassID.SelectedIndex = 0; //绑定交割月份类型 this.cmbDeliveryMonthTypeID.Properties.Items.Clear(); this.cmbDeliveryMonthTypeID.Properties.Items.AddRange(BindData.GetBindListQHCFPositionMonthType()); this.cmbDeliveryMonthTypeID.SelectedIndex = 0; //绑定持仓控制类型 this.cmbPositionBailTypeID.Properties.Items.Clear(); this.cmbPositionBailTypeID.Properties.Items.AddRange(BindData.GetBindListQHPositionBailType()); this.cmbPositionBailTypeID.SelectedIndex = 0; ////绑定上限是否相等 //this.cmbUpperLimitIfEquation.Properties.Items.Clear(); //this.cmbUpperLimitIfEquation.Properties.Items.AddRange(BindData.GetBindListYesOrNo()); //this.cmbUpperLimitIfEquation.SelectedIndex = 0; ////绑定下限是否相等 //this.cmbLowerLimitIfEquation.Properties.Items.Clear(); //this.cmbLowerLimitIfEquation.Properties.Items.AddRange(BindData.GetBindListYesOrNo()); //this.cmbLowerLimitIfEquation.SelectedIndex = 0; ////绑定持仓取值类型 //this.cmbPositionValueTypeID.Properties.Items.Clear(); //this.cmbPositionValueTypeID.Properties.Items.AddRange(BindData.GetBindListQHPositionValueType()); //this.cmbPositionValueTypeID.SelectedIndex = 0; //#region 绑定持仓限制设置类型 add by 董鹏 2010-01-21 //cmbPositionLimitType.Properties.Items.Clear(); //this.cmbPositionLimitType.Properties.Items.AddRange(BindData.GetBindListQHPositionLimitType()); //this.cmbPositionLimitType.SelectedIndex = 0; //#endregion } catch (Exception ex) { string errCode = "GL-6421"; string errMsg = "绑定(商品)期货持仓限制初始化数据失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return; } }