/// <summary> /// 信息加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UI_FA_WcLimit_Load(object sender, EventArgs e) { CLDC_DataCore.DataBase.clsWcLimitDataControl _Wc = new CLDC_DataCore.DataBase.clsWcLimitDataControl(); List <CLDC_DataCore.DataBase.IDAndValue> _WcLimitNames = _Wc.WcLimitName(); for (int i = 0; i < _WcLimitNames.Count; i++) { TreeNode _Node = Tvw_Limit.Nodes.Add(_WcLimitNames[i].Value); _Node.Tag = _WcLimitNames[i]; } if (Tvw_Limit.Nodes.Count > 0) { Tvw_Limit.SelectedNode = Tvw_Limit.Nodes[0]; this.SetWcParmControl(true); this.SetWcLimitInfo((CLDC_DataCore.DataBase.IDAndValue)Tvw_Limit.SelectedNode.Tag); } Lab_Info.Text = string.Format("内控误差限文件数量: {0:D} 个", Tvw_Limit.Nodes.Count); }
/// <summary> /// 加载误差限信息(在初始化UI和误差限更改的时候重载) /// </summary> private void LoadWcLimit() { CLDC_DataCore.DataBase.clsWcLimitDataControl _WcLimit = new CLDC_DataCore.DataBase.clsWcLimitDataControl(); List <CLDC_DataCore.DataBase.IDAndValue> _WcLimitNames = _WcLimit.WcLimitName(); Cmb_WcLimit.Items.Clear(); Cmb_WcLimit.Items.Add("规程误差限"); for (int i = 0; i < _WcLimitNames.Count; i++) { Cmb_WcLimit.Items.Add(_WcLimitNames[i].Value); } Cmb_WcLimit.SelectedIndex = 0; _WcLimit.Close(); _WcLimit = null; }
/// <summary> /// 构造函数 /// </summary> /// <param name="FaList">方案列表</param> /// <param name="CzFzd">参照负载点</param> /// <param name="CzQs">参照圈数</param> public WcPrjView(ref CLDC_DataCore.Model.DnbModel.DnbGroupInfo MeterGroup) { _DnbGroup = MeterGroup; InitializeComponent(); #region 加载电流倍数字典列表 CLDC_DataCore.SystemModel.Item.csxIbDic _xIbDic = new CLDC_DataCore.SystemModel.Item.csxIbDic(); _xIbDic.Load(); List <string> _xIbs = _xIbDic.getxIb(); Cmb_xIb.Items.Clear(); for (int i = 0; i < _xIbs.Count; i++) { Cmb_xIb.Items.Add(_xIbs[i]); } _xIbs = null; _xIbDic = null; #endregion #region 加载误差限列表 CLDC_DataCore.DataBase.clsWcLimitDataControl _WcLimit = new CLDC_DataCore.DataBase.clsWcLimitDataControl(); List <CLDC_DataCore.DataBase.IDAndValue> _WcLimitNames = _WcLimit.WcLimitName(); Cmb_WcLimit.Items.Add("规程误差限"); for (int i = 0; i < _WcLimitNames.Count; i++) { Cmb_WcLimit.Items.Add(_WcLimitNames[i].Value); } _WcLimitNames = null; _WcLimit = null; #endregion this.CreateFaInfo(); }