public DgnSdtq(CLDC_DataCore.Struct.StDgnConfig DgnItem) : base(DgnItem) { InitializeComponent(); base.SetPanel = Panel_Back; //this.InitPrj(); }
/// <summary> /// 加载多功能配置字典 /// </summary> public void Load() { string _ErrorString = ""; XmlNode _XmlNode = clsXmlControl.LoadXml(Application.StartupPath + Const.Variable.CONST_DGNDICTIONARY, out _ErrorString); if (_ErrorString != "" || _XmlNode.ChildNodes.Count < 28) //新增加5条 { #region 初始化多功能参数信息 _XmlNode = clsXmlControl.CreateXmlNode("DgnConfig"); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "001", "Name", "通信测试", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "002", "Name", "日计时误差", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "003", "Name", "费率时段检查", "OutPramerter", "1|1|1|Imax|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "004", "Name", "时段投切", "OutPramerter", "1|1|1|Imax|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "005", "Name", "计度器示值组合误差", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "006", "Name", "费率时段示值误差", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "007", "Name", "GPS对时", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "008", "Name", "闰年判断功能", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "009", "Name", "事件记录检查", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "010", "Name", "需量清空", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "011", "Name", "电压逐渐变化", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "012", "Name", "电压跌落", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "013", "Name", "时间误差", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "014", "Name", "最大需量0.1Ib", "OutPramerter", "1|1|1|0.1Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "015", "Name", "最大需量1.0Ib", "OutPramerter", "1|1|1|1.0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "016", "Name", "最大需量Imax", "OutPramerter", "1|1|1|Imax|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "017", "Name", "读取电量", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "018", "Name", "电量清零", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "019", "Name", "电量寄存器检查", "OutPramerter", "1|1|1|1.0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "020", "Name", "需量寄存器检查", "OutPramerter", "1|1|1|1.0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "021", "Name", "瞬时寄存器检查", "OutPramerter", "1|1|1|1.0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "022", "Name", "状态寄存器检查", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "023", "Name", "失压寄存器检查", "OutPramerter", "1|1|0.6|1.0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "024", "Name", "校对电量", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "025", "Name", "校对需量", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "026", "Name", "检查电表运行状态", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "027", "Name", "预付费检测", "OutPramerter", "1|1|1|0Ib|1.0")); _XmlNode.AppendChild(clsXmlControl.CreateXmlNode("R", "ID", "037", "Name", "电压短时中断", "OutPramerter", "1|1|1|0Ib|1.0")); clsXmlControl.SaveXml(_XmlNode, Application.StartupPath + Const.Variable.CONST_DGNDICTIONARY); #endregion } _DgnConfig.Clear(); for (int _i = 0; _i < _XmlNode.ChildNodes.Count; _i++) { Struct.StDgnConfig _Dgn = new CLDC_DataCore.Struct.StDgnConfig(); _Dgn.DgnPrjID = _XmlNode.ChildNodes[_i].Attributes[0].Value; _Dgn.DgnPrjName = _XmlNode.ChildNodes[_i].Attributes[1].Value; _Dgn.OutPramerter = new CLDC_DataCore.Struct.StPowerPramerter(); _Dgn.OutPramerter.Split(_XmlNode.ChildNodes[_i].Attributes[2].Value); _DgnConfig.Add(_Dgn.DgnPrjID, _Dgn); } }
public DgnReadDl(CLDC_DataCore.Struct.StDgnConfig Item) : base(Item) { InitializeComponent(); base.SetPanel = Panel_Back; }
public DgnDlMemory(CLDC_DataCore.Struct.StDgnConfig Item) : base(Item) { InitializeComponent(); base.SetPanel = this.Panel_Back; }
/// <summary> /// 构造函数 /// </summary> /// <param name="DgnItem"></param> public DgnBase(CLDC_DataCore.Struct.StDgnConfig DgnItem) { InitializeComponent(); _DgnItem = DgnItem; }
public PreDayClock(CLDC_DataCore.Struct.StDgnConfig Item) : base(Item) { InitializeComponent(); base.SetPanel = Panel_Back; }
/// <summary> /// UI初始化 /// </summary> private void InitUI() { base.FaNameCombInit(Cmb_Fa, CLDC_DataCore.Const.Variable.CONST_FA_PREPARE_FOLDERNAME); PrjUI.PrjPrePare.PreBase Item; DgnControlUI = new ControlLocation(Panel_Prjs); CLDC_DataCore.SystemModel.Item.csDgnDic _DgnItem = new CLDC_DataCore.SystemModel.Item.csDgnDic(); _DgnItem.Load(); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.通信测试).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.PreDayClock(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.日计时误差).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.费率时段检查).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.GPS对时).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.需量清空).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); //Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjDgn.DgnReadDl(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.读取电量).ToString("000"))); //Item.PanelBackColor = Color.LightBlue; //Item.CaptionColor = Color.White; //Item.CaptionColorTwo = Color.LightBlue; //this.Panel_Prjs.Controls.Add(Item); //DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(_DgnItem.getDgnPrj(((int)CLDC_Comm.Enum.Cus_DgnItem.电量清零).ToString("000"))); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); #region lsx Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj("正向有功"); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj("反向有功"); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj("正向无功"); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj("反向无功"); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); #endregion CLDC_DataCore.Struct.StDgnConfig stW = new CLDC_DataCore.Struct.StDgnConfig(); stW.DgnPrjID = ((int)CLDC_Comm.Enum.Cus_PrepareItem.接线检查).ToString("000"); stW.DgnPrjName = CLDC_Comm.Enum.Cus_PrepareItem.接线检查.ToString(); Item = new CLDC_MeterUI.UI_FA.FAPrj.PrjUI.PrjPrePare.NotParmPrj(stW); Item.PanelBackColor = Color.LightBlue; Item.CaptionColor = Color.White; Item.CaptionColorTwo = Color.LightBlue; this.Panel_Prjs.Controls.Add(Item); DgnControlUI.Add(Item); //DgnControlUI.Sort(); this.SizeChanged += new EventHandler(UI_Dgn_SizeChanged); }