//================================ 事件 ================================ #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; } }