/// <summary> /// 根据查询条件,获取(商品)期货_持仓限制 /// </summary> /// <returns></returns> private bool QueryQHPositionLimitValue() { try { string BreedClassName = this.txtBreedClassName.Text; int PositionBailTypeID = AppGlobalVariable.INIT_INT; int DeliveryMonthTypeID = AppGlobalVariable.INIT_INT; if (!string.IsNullOrEmpty(cmbPositionBailTypeID.Text)) { PositionBailTypeID = ((UComboItem)cmbPositionBailTypeID.SelectedItem).ValueIndex; } if (!string.IsNullOrEmpty(cmbDeliveryMonthTypeID.Text)) { DeliveryMonthTypeID = ((UComboItem)cmbDeliveryMonthTypeID.SelectedItem).ValueIndex; } DataSet _dsQHPositionLimitV = FuturesManageCommon.GetAllQHPositionLimitValue(BreedClassName, DeliveryMonthTypeID, PositionBailTypeID, m_pageNo, m_pageSize, out m_rowCount); DataTable _dtQHPositionLimitV; if (_dsQHPositionLimitV == null || _dsQHPositionLimitV.Tables[0].Rows.Count == 0) { _dtQHPositionLimitV = new DataTable(); } else { _dtQHPositionLimitV = _dsQHPositionLimitV.Tables[0]; } //绑定商品期货类型的品种名称 this.ddlBreedClassID.DataSource = CommonParameterSetCommon.GetSpQhTypeBreedClassName().Tables[0]; this.ddlBreedClassID.ValueMember = CommonParameterSetCommon.GetSpQhTypeBreedClassName().Tables[0].Columns["BreedClassID"].ToString(); this.ddlBreedClassID.DisplayMember = CommonParameterSetCommon.GetSpQhTypeBreedClassName().Tables[0].Columns["BreedClassName"].ToString(); this.gdPositionLimitValueResult.DataSource = _dtQHPositionLimitV; } catch (Exception ex) { string errCode = "GL-6465"; string errMsg = "根据查询条件,获取(商品)期货_持仓限制失败!"; VTException exception = new VTException(errCode, errMsg, ex); LogHelper.WriteError(exception.ToString(), exception.InnerException); return(false); } return(true); }