V1.0.0.7 - 2025/12/22

* Database improved all
This commit is contained in:
2025-12-22 12:46:46 +09:00
parent 79fea6964b
commit 0af235eb3d
14 changed files with 642 additions and 364 deletions

View File

@@ -1,14 +1,15 @@
using System;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.Utils;
using LFP_Manager.DataStructure;
namespace LFP_Manager.Controls
{
@@ -35,6 +36,11 @@ namespace LFP_Manager.Controls
#region PUBLIC UPDATE
public void UpdateConfig(CommConfig aConfig)
{
this.Config = aConfig;
}
public void EventUpdate(int id, string aEvent)
{
if (this.InvokeRequired)
@@ -123,21 +129,38 @@ namespace LFP_Manager.Controls
meDataLog.Text = "";
}
private void BtnRefresh_Click(object sender, EventArgs e)
private async void BtnRefresh_Click(object sender, EventArgs e)
{
if (Config != null)
{
try
{
string modelName = csConstData.UART_MODEL[Config.UartModelIndex];
AlarmHistory = csDbUtils.GetBmsAlarmDataByDataTable(modelName, DateTime.Now, "");
if (Config == null) return;
AlarmHistoryUpdate(AlarmHistory);
}
catch (Exception ex)
BtnRefresh.Enabled = false;
Cursor = Cursors.WaitCursor;
try
{
// DB 조회는 백그라운드에서
var now = DateTime.Now;
var table = await Task.Run(() => csDbUtils.GetBmsAlarmDataByDataTable(Config, now, ""));
// UI 바인딩
Action bind = () =>
{
_ = MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
AlarmHistory = table ?? new DataTable();
GvAlarmHistory.DataSource = AlarmHistory;
};
if (InvokeRequired)
BeginInvoke(new MethodInvoker(() => bind())); // ← 새 MethodInvoker 생성
else
bind();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
Cursor = Cursors.Default;
BtnRefresh.Enabled = true;
}
}
@@ -166,8 +189,7 @@ namespace LFP_Manager.Controls
{
try
{
string modelName = csConstData.UART_MODEL[Config.UartModelIndex];
AlarmHistory = csDbUtils.GetBmsAlarmDataByDataTable(modelName, DateTime.Now, "");
AlarmHistory = csDbUtils.GetBmsAlarmDataByDataTable(Config, DateTime.Now, "");
AlarmHistoryUpdate(AlarmHistory);
}
@@ -180,8 +202,7 @@ namespace LFP_Manager.Controls
{
try
{
string modelName = csConstData.UART_MODEL[Config.UartModelIndex];
AlarmHistory = csDbUtils.GetBmsAlarmDataByDataTable(modelName, DateTime.Now, "");
AlarmHistory = csDbUtils.GetBmsAlarmDataByDataTable(Config, DateTime.Now, "");
AlarmHistoryUpdate(AlarmHistory);
}

View File

@@ -29,6 +29,7 @@
private void InitializeComponent()
{
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.CbLogType = new DevExpress.XtraEditors.ComboBoxEdit();
this.btnSearch = new System.Windows.Forms.Button();
this.dtpEnd = new System.Windows.Forms.DateTimePicker();
this.dtpStart = new System.Windows.Forms.DateTimePicker();
@@ -48,11 +49,17 @@
this.slbEndDate = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem();
this.lcgbSearchResult = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.DbWaitForm = new DevExpress.XtraSplashScreen.SplashScreenManager(this, typeof(global::LFP_Manager.Forms.fmxWait), true, true, typeof(System.Windows.Forms.UserControl));
this.CbMdNo = new DevExpress.XtraEditors.ComboBoxEdit();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.simpleLabelItem2 = new DevExpress.XtraLayout.SimpleLabelItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.CbLogType.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xtcSearchResult)).BeginInit();
this.xtcSearchResult.SuspendLayout();
this.pgGrid.SuspendLayout();
@@ -70,12 +77,19 @@
((System.ComponentModel.ISupportInitialize)(this.slbEndDate)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcgbSearchResult)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.CbMdNo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.CbMdNo);
this.layoutControl1.Controls.Add(this.CbLogType);
this.layoutControl1.Controls.Add(this.btnSearch);
this.layoutControl1.Controls.Add(this.dtpEnd);
this.layoutControl1.Controls.Add(this.dtpStart);
@@ -85,15 +99,27 @@
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(947, 249, 650, 400);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(850, 635);
this.layoutControl1.Size = new System.Drawing.Size(890, 635);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// CbLogType
//
this.CbLogType.Location = new System.Drawing.Point(552, 28);
this.CbLogType.Name = "CbLogType";
this.CbLogType.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 11F);
this.CbLogType.Properties.Appearance.Options.UseFont = true;
this.CbLogType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.CbLogType.Size = new System.Drawing.Size(69, 24);
this.CbLogType.StyleController = this.layoutControl1;
this.CbLogType.TabIndex = 8;
//
// btnSearch
//
this.btnSearch.Location = new System.Drawing.Point(592, 28);
this.btnSearch.Location = new System.Drawing.Point(730, 28);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(251, 25);
this.btnSearch.Size = new System.Drawing.Size(153, 25);
this.btnSearch.TabIndex = 7;
this.btnSearch.Text = "SEARCH";
this.btnSearch.UseVisualStyleBackColor = true;
@@ -104,9 +130,9 @@
this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm:ss";
this.dtpEnd.Font = new System.Drawing.Font("Tahoma", 11F);
this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpEnd.Location = new System.Drawing.Point(395, 28);
this.dtpEnd.Location = new System.Drawing.Point(327, 28);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(193, 25);
this.dtpEnd.Size = new System.Drawing.Size(176, 25);
this.dtpEnd.TabIndex = 6;
//
// dtpStart
@@ -115,9 +141,9 @@
this.dtpStart.CustomFormat = "yyyy-MM-dd HH:mm:ss";
this.dtpStart.Font = new System.Drawing.Font("Tahoma", 11F);
this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dtpStart.Location = new System.Drawing.Point(102, 28);
this.dtpStart.Location = new System.Drawing.Point(77, 28);
this.dtpStart.Name = "dtpStart";
this.dtpStart.Size = new System.Drawing.Size(194, 25);
this.dtpStart.Size = new System.Drawing.Size(176, 25);
this.dtpStart.TabIndex = 5;
//
// xtcSearchResult
@@ -125,7 +151,7 @@
this.xtcSearchResult.Location = new System.Drawing.Point(7, 86);
this.xtcSearchResult.Name = "xtcSearchResult";
this.xtcSearchResult.SelectedTabPage = this.pgGrid;
this.xtcSearchResult.Size = new System.Drawing.Size(836, 542);
this.xtcSearchResult.Size = new System.Drawing.Size(876, 542);
this.xtcSearchResult.TabIndex = 4;
this.xtcSearchResult.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.pgGrid});
@@ -134,7 +160,7 @@
//
this.pgGrid.Controls.Add(this.layoutControl3);
this.pgGrid.Name = "pgGrid";
this.pgGrid.Size = new System.Drawing.Size(834, 516);
this.pgGrid.Size = new System.Drawing.Size(874, 516);
this.pgGrid.Text = "Result Data";
//
// layoutControl3
@@ -146,15 +172,15 @@
this.layoutControl3.Name = "layoutControl3";
this.layoutControl3.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1120, 298, 650, 400);
this.layoutControl3.Root = this.Root;
this.layoutControl3.Size = new System.Drawing.Size(834, 516);
this.layoutControl3.Size = new System.Drawing.Size(874, 516);
this.layoutControl3.TabIndex = 0;
this.layoutControl3.Text = "layoutControl3";
//
// btnExportExcel
//
this.btnExportExcel.Location = new System.Drawing.Point(728, 481);
this.btnExportExcel.Location = new System.Drawing.Point(763, 481);
this.btnExportExcel.Name = "btnExportExcel";
this.btnExportExcel.Size = new System.Drawing.Size(103, 32);
this.btnExportExcel.Size = new System.Drawing.Size(108, 32);
this.btnExportExcel.StyleController = this.layoutControl3;
this.btnExportExcel.TabIndex = 5;
this.btnExportExcel.Text = "Export Excel";
@@ -166,7 +192,7 @@
this.gridSearchResult.Location = new System.Drawing.Point(3, 3);
this.gridSearchResult.Name = "gridSearchResult";
this.gridSearchResult.RowTemplate.Height = 23;
this.gridSearchResult.Size = new System.Drawing.Size(828, 474);
this.gridSearchResult.Size = new System.Drawing.Size(868, 474);
this.gridSearchResult.TabIndex = 4;
this.gridSearchResult.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gridSearchResult_CellFormatting);
//
@@ -180,7 +206,7 @@
this.emptySpaceItem1});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(834, 516);
this.Root.Size = new System.Drawing.Size(874, 516);
this.Root.TextVisible = false;
//
// layoutControlItem5
@@ -189,7 +215,7 @@
this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem5.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(832, 478);
this.layoutControlItem5.Size = new System.Drawing.Size(872, 478);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
@@ -197,10 +223,10 @@
// layoutControlItem6
//
this.layoutControlItem6.Control = this.btnExportExcel;
this.layoutControlItem6.Location = new System.Drawing.Point(725, 478);
this.layoutControlItem6.Location = new System.Drawing.Point(760, 478);
this.layoutControlItem6.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(107, 36);
this.layoutControlItem6.Size = new System.Drawing.Size(112, 36);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
@@ -210,7 +236,7 @@
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 478);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(725, 36);
this.emptySpaceItem1.Size = new System.Drawing.Size(760, 36);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlGroup1
@@ -223,7 +249,7 @@
this.lcgbSearchResult});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(850, 635);
this.layoutControlGroup1.Size = new System.Drawing.Size(890, 635);
this.layoutControlGroup1.TextVisible = false;
//
// lcgbSelectDatetime
@@ -233,31 +259,35 @@
this.layoutControlItem2,
this.slbEndDate,
this.layoutControlItem4,
this.layoutControlItem3});
this.layoutControlItem3,
this.layoutControlItem7,
this.simpleLabelItem1,
this.layoutControlItem8,
this.simpleLabelItem2});
this.lcgbSelectDatetime.Location = new System.Drawing.Point(0, 0);
this.lcgbSelectDatetime.Name = "lcgbSelectDatetime";
this.lcgbSelectDatetime.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.lcgbSelectDatetime.Size = new System.Drawing.Size(848, 58);
this.lcgbSelectDatetime.Size = new System.Drawing.Size(888, 58);
this.lcgbSelectDatetime.Text = "Select Datetime";
//
// slbStartDate
//
this.slbStartDate.AllowHotTrack = false;
this.slbStartDate.Location = new System.Drawing.Point(0, 0);
this.slbStartDate.MinSize = new System.Drawing.Size(95, 18);
this.slbStartDate.MinSize = new System.Drawing.Size(70, 18);
this.slbStartDate.Name = "slbStartDate";
this.slbStartDate.Size = new System.Drawing.Size(95, 29);
this.slbStartDate.Size = new System.Drawing.Size(70, 29);
this.slbStartDate.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.slbStartDate.Text = " Start Datetime";
this.slbStartDate.TextSize = new System.Drawing.Size(85, 14);
this.slbStartDate.Text = " Start Time";
this.slbStartDate.TextSize = new System.Drawing.Size(62, 14);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.dtpStart;
this.layoutControlItem2.Location = new System.Drawing.Point(95, 0);
this.layoutControlItem2.MinSize = new System.Drawing.Size(24, 24);
this.layoutControlItem2.Location = new System.Drawing.Point(70, 0);
this.layoutControlItem2.MinSize = new System.Drawing.Size(180, 24);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(198, 29);
this.layoutControlItem2.Size = new System.Drawing.Size(180, 29);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
@@ -265,22 +295,22 @@
// slbEndDate
//
this.slbEndDate.AllowHotTrack = false;
this.slbEndDate.Location = new System.Drawing.Point(293, 0);
this.slbEndDate.MinSize = new System.Drawing.Size(95, 18);
this.slbEndDate.Location = new System.Drawing.Point(250, 0);
this.slbEndDate.MinSize = new System.Drawing.Size(70, 18);
this.slbEndDate.Name = "slbEndDate";
this.slbEndDate.Size = new System.Drawing.Size(95, 29);
this.slbEndDate.Size = new System.Drawing.Size(70, 29);
this.slbEndDate.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.slbEndDate.Text = " End Datetime";
this.slbEndDate.TextSize = new System.Drawing.Size(85, 14);
this.slbEndDate.Text = " End Time";
this.slbEndDate.TextSize = new System.Drawing.Size(62, 14);
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.btnSearch;
this.layoutControlItem4.Location = new System.Drawing.Point(585, 0);
this.layoutControlItem4.Location = new System.Drawing.Point(723, 0);
this.layoutControlItem4.MaxSize = new System.Drawing.Size(0, 29);
this.layoutControlItem4.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(255, 29);
this.layoutControlItem4.Size = new System.Drawing.Size(157, 29);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
@@ -288,14 +318,38 @@
// layoutControlItem3
//
this.layoutControlItem3.Control = this.dtpEnd;
this.layoutControlItem3.Location = new System.Drawing.Point(388, 0);
this.layoutControlItem3.MinSize = new System.Drawing.Size(24, 24);
this.layoutControlItem3.Location = new System.Drawing.Point(320, 0);
this.layoutControlItem3.MinSize = new System.Drawing.Size(180, 24);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(197, 29);
this.layoutControlItem3.Size = new System.Drawing.Size(180, 29);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.CbLogType;
this.layoutControlItem7.Location = new System.Drawing.Point(545, 0);
this.layoutControlItem7.MaxSize = new System.Drawing.Size(73, 0);
this.layoutControlItem7.MinSize = new System.Drawing.Size(73, 24);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(73, 29);
this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// simpleLabelItem1
//
this.simpleLabelItem1.AllowHotTrack = false;
this.simpleLabelItem1.Location = new System.Drawing.Point(500, 0);
this.simpleLabelItem1.MaxSize = new System.Drawing.Size(45, 0);
this.simpleLabelItem1.MinSize = new System.Drawing.Size(45, 18);
this.simpleLabelItem1.Name = "simpleLabelItem1";
this.simpleLabelItem1.Size = new System.Drawing.Size(45, 29);
this.simpleLabelItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.simpleLabelItem1.Text = " Type";
this.simpleLabelItem1.TextSize = new System.Drawing.Size(62, 14);
//
// lcgbSearchResult
//
this.lcgbSearchResult.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
@@ -303,7 +357,7 @@
this.lcgbSearchResult.Location = new System.Drawing.Point(0, 58);
this.lcgbSearchResult.Name = "lcgbSearchResult";
this.lcgbSearchResult.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.lcgbSearchResult.Size = new System.Drawing.Size(848, 575);
this.lcgbSearchResult.Size = new System.Drawing.Size(888, 575);
this.lcgbSearchResult.Text = "Search Result";
//
// layoutControlItem1
@@ -312,19 +366,54 @@
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(840, 546);
this.layoutControlItem1.Size = new System.Drawing.Size(880, 546);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// CbMdNo
//
this.CbMdNo.Location = new System.Drawing.Point(670, 28);
this.CbMdNo.Name = "CbMdNo";
this.CbMdNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 11F);
this.CbMdNo.Properties.Appearance.Options.UseFont = true;
this.CbMdNo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.CbMdNo.Size = new System.Drawing.Size(56, 24);
this.CbMdNo.StyleController = this.layoutControl1;
this.CbMdNo.TabIndex = 9;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.CbMdNo;
this.layoutControlItem8.Location = new System.Drawing.Point(663, 0);
this.layoutControlItem8.MinSize = new System.Drawing.Size(60, 28);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(60, 29);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// simpleLabelItem2
//
this.simpleLabelItem2.AllowHotTrack = false;
this.simpleLabelItem2.Location = new System.Drawing.Point(618, 0);
this.simpleLabelItem2.MinSize = new System.Drawing.Size(45, 18);
this.simpleLabelItem2.Name = "simpleLabelItem2";
this.simpleLabelItem2.Size = new System.Drawing.Size(45, 29);
this.simpleLabelItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.simpleLabelItem2.Text = " M No.";
this.simpleLabelItem2.TextSize = new System.Drawing.Size(62, 14);
//
// ucHistroy
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.layoutControl1);
this.Name = "ucHistroy";
this.Size = new System.Drawing.Size(850, 635);
this.Size = new System.Drawing.Size(890, 635);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.CbLogType.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xtcSearchResult)).EndInit();
this.xtcSearchResult.ResumeLayout(false);
this.pgGrid.ResumeLayout(false);
@@ -342,8 +431,13 @@
((System.ComponentModel.ISupportInitialize)(this.slbEndDate)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcgbSearchResult)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.CbMdNo.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).EndInit();
this.ResumeLayout(false);
}
@@ -373,5 +467,11 @@
private DevExpress.XtraEditors.SimpleButton btnExportExcel;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraEditors.ComboBoxEdit CbLogType;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem1;
private DevExpress.XtraEditors.ComboBoxEdit CbMdNo;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem2;
}
}

View File

@@ -36,6 +36,19 @@ namespace LFP_Manager.Controls
InitializeComponent();
dtHistory = new DataTable();
CbLogType.Properties.Items.Add("Cycle");
CbLogType.Properties.Items.Add("Event");
CbLogType.SelectedIndex = 0;
CbMdNo.Properties.Items.Clear();
CbMdNo.Properties.Items.Add("All");
for (int i = 1; i <= csConstData.SystemInfo.MAX_MODULE_SIZE; i++)
{
CbMdNo.Properties.Items.Add(i.ToString());
}
CbMdNo.SelectedIndex = 0;
}
public void SetCommCofig(CommConfig aConfig)
@@ -123,6 +136,19 @@ namespace LFP_Manager.Controls
{
quary = String.Format(" where create_date > '{0:yyyy-MM-dd HH:mm:ss}'", start);
quary += String.Format(" and create_date < '{0:yyyy-MM-dd HH:mm:ss}'", end);
if (CbLogType.Text == "")
quary += "";
else if (CbLogType.SelectedIndex == 0)
quary += " and log_type = '0'";
else
quary += " and log_type = '1'";
if ((CbMdNo.Text == "") || (CbMdNo.Text == "All") || (CbMdNo.SelectedIndex == 0))
quary += "";
else
quary += $" and module_no = '{CbMdNo.SelectedIndex}'";
dDt[0] = csDbUtils.BmsDataSelectToDataTable(Config, start, quary);
if (dDt[0] == null)
MessageBox.Show("No data", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
@@ -143,11 +169,23 @@ namespace LFP_Manager.Controls
if (i == 0)
{
quary = String.Format(" where create_date > '{0:yyyy-MM-dd HH:mm:ss}'", start);
if (CbLogType.Text == "")
quary += "";
if (CbLogType.SelectedIndex == 0)
quary += " and log_type = '0'";
else
quary += " and log_type = '1'";
dDt[i] = csDbUtils.BmsDataSelectToDataTable(Config, start, quary);
}
else if (i == total_days)
{
quary = String.Format(" where create_date < '{0:yyyy-MM-dd HH:mm:ss}'", end);
if (CbLogType.Text == "")
quary += "";
if (CbLogType.SelectedIndex == 0)
quary += " and log_type = '0'";
else
quary += " and log_type = '1'";
dDt[i] = csDbUtils.BmsDataSelectToDataTable(Config, end, quary);
}
else

View File

@@ -31,6 +31,7 @@ namespace LFP_Manager.Controls
{
this.components = new System.ComponentModel.Container();
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.lbMdNo = new System.Windows.Forms.Label();
this.gaugeControl6 = new DevExpress.XtraGauges.Win.GaugeControl();
this.gaugeTempMax = new DevExpress.XtraGauges.Win.Gauges.Digital.DigitalGauge();
this.digitalBackgroundLayerComponent7 = new DevExpress.XtraGauges.Win.Gauges.Digital.DigitalBackgroundLayerComponent();
@@ -61,15 +62,14 @@ namespace LFP_Manager.Controls
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.lcItemModuleDetail = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.lbMdFwVer = new DevExpress.XtraLayout.SimpleLabelItem();
this.LbMdSN = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.digitalGauge1 = new DevExpress.XtraGauges.Win.Gauges.Digital.DigitalGauge();
this.digitalBackgroundLayerComponent5 = new DevExpress.XtraGauges.Win.Gauges.Digital.DigitalBackgroundLayerComponent();
this.lbModuleNumber = new DevExpress.XtraEditors.LabelControl();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.lcitemModuleNumber = new DevExpress.XtraLayout.LayoutControlItem();
this.lbMdNo = new System.Windows.Forms.Label();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gaugeTempMax)).BeginInit();
@@ -95,12 +95,12 @@ namespace LFP_Manager.Controls
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemModuleDetail)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lbMdFwVer)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.LbMdSN)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.digitalGauge1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.digitalBackgroundLayerComponent5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemModuleNumber)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
@@ -123,6 +123,16 @@ namespace LFP_Manager.Controls
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// lbMdNo
//
this.lbMdNo.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
this.lbMdNo.Location = new System.Drawing.Point(29, 6);
this.lbMdNo.Name = "lbMdNo";
this.lbMdNo.Size = new System.Drawing.Size(44, 41);
this.lbMdNo.TabIndex = 12;
this.lbMdNo.Text = "#01";
this.lbMdNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// gaugeControl6
//
this.gaugeControl6.Gauges.AddRange(new DevExpress.XtraGauges.Base.IGauge[] {
@@ -335,7 +345,7 @@ namespace LFP_Manager.Controls
this.layoutControlItem1,
this.lcItemModuleDetail,
this.layoutControlItem3,
this.lbMdFwVer,
this.LbMdSN,
this.layoutControlItem2});
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup2.Name = "layoutControlGroup2";
@@ -471,16 +481,27 @@ namespace LFP_Manager.Controls
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// lbMdFwVer
// LbMdSN
//
this.lbMdFwVer.AllowHotTrack = false;
this.lbMdFwVer.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 10F);
this.lbMdFwVer.AppearanceItemCaption.Options.UseFont = true;
this.lbMdFwVer.Location = new System.Drawing.Point(168, 0);
this.lbMdFwVer.Name = "lbMdFwVer";
this.lbMdFwVer.Size = new System.Drawing.Size(59, 45);
this.lbMdFwVer.Text = "----";
this.lbMdFwVer.TextSize = new System.Drawing.Size(40, 16);
this.LbMdSN.AllowHotTrack = false;
this.LbMdSN.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 10F);
this.LbMdSN.AppearanceItemCaption.Options.UseFont = true;
this.LbMdSN.Location = new System.Drawing.Point(168, 0);
this.LbMdSN.Name = "LbMdSN";
this.LbMdSN.Size = new System.Drawing.Size(59, 45);
this.LbMdSN.Text = "----";
this.LbMdSN.TextSize = new System.Drawing.Size(40, 16);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.lbMdNo;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem2.MinSize = new System.Drawing.Size(24, 24);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(48, 45);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// tmrDisplay
//
@@ -547,27 +568,6 @@ namespace LFP_Manager.Controls
this.lcitemModuleNumber.TextSize = new System.Drawing.Size(0, 0);
this.lcitemModuleNumber.TextVisible = false;
//
// lbMdNo
//
this.lbMdNo.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
this.lbMdNo.Location = new System.Drawing.Point(29, 6);
this.lbMdNo.Name = "lbMdNo";
this.lbMdNo.Size = new System.Drawing.Size(44, 41);
this.lbMdNo.TabIndex = 12;
this.lbMdNo.Text = "#01";
this.lbMdNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.lbMdNo;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem2.MinSize = new System.Drawing.Size(24, 24);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(48, 45);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// ucModuleMainB
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
@@ -602,12 +602,12 @@ namespace LFP_Manager.Controls
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemModuleDetail)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lbMdFwVer)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.LbMdSN)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.digitalGauge1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.digitalBackgroundLayerComponent5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemModuleNumber)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
this.ResumeLayout(false);
}
@@ -648,7 +648,7 @@ namespace LFP_Manager.Controls
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraGauges.Win.Gauges.Digital.DigitalGauge gaugeVoltage;
private DevExpress.XtraGauges.Win.Gauges.Digital.DigitalBackgroundLayerComponent digitalBackgroundLayerComponent1;
private DevExpress.XtraLayout.SimpleLabelItem lbMdFwVer;
private DevExpress.XtraLayout.SimpleLabelItem LbMdSN;
private DevExpress.XtraEditors.LabelControl lbModuleNumber;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraLayout.LayoutControlItem lcitemModuleNumber;

View File

@@ -60,6 +60,7 @@ namespace LFP_Manager.Controls
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
DisplayMainStatus();
DisplayStatusAndAlarm();
}
@@ -84,12 +85,15 @@ namespace LFP_Manager.Controls
{
lbMdNo.BackColor = Color.Orange;
}
}
private void DisplayValue()
{
lbMdFwVer.Text = ModuleData.Information.SwProductRev;
string sn = ModuleData.Information.HwSerialNumber;
if (sn.Length > 9)
sn = sn.Substring(sn.Length - 9, 9);
LbMdSN.Text = sn;
gaugeVoltage.Text = String.Format("{0:0.0}", (double)ModuleData.ValueData.voltage / 10);
gaugeCurrent.Text = String.Format("{0:0.0}", (double)ModuleData.ValueData.current / 10);
gaugeSOC.Text = String.Format("{0:0.0}", (double)ModuleData.ValueData.SOC / 10);
@@ -100,91 +104,75 @@ namespace LFP_Manager.Controls
private void DisplayStatusAndAlarm()
{
if (ModuleData.CommFail == false)
if (ModuleData.ShelfCommFail == false)
{
if (ModuleData.ShelfCommFail == false)
switch (ModuleData.StatusData.status)
{
lbMdNo.BackColor = Color.Green;
switch (ModuleData.StatusData.status)
{
case 0x0000: // Stand by
slbOpStatus.Text = "STANDBY";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 0x0001: // Charging
slbOpStatus.Text = "CHARGING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Blue;
break;
case 0x0002: // Discharging
slbOpStatus.Text = "DISCHARGING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Magenta;
break;
case 0x0003: // Float Charging
slbOpStatus.Text = "FLOATING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 0x0004: // Warming Up
slbOpStatus.Text = "WARMING UP";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
default:
slbOpStatus.Text = "UNKNOWN";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
}
// Alarm Display
switch (ModuleData.StatusData.batteryStatus)
{
case 0: // NORMAL
slbAlarm.Text = "NORMAL";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Green;
break;
case 1: // WARNING
slbAlarm.Text = "WARNING";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Orange;
break;
case 2: // FAULT
slbAlarm.Text = "FAULT";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
case 3: // WARMING UP
slbAlarm.Text = "WARMING UP";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 4: // FAULT (Anti-Theft Comm.)
slbAlarm.Text = "FAULT1";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
case 5: // FAULT (Anti-Theft Gyro-Scope)
slbAlarm.Text = "FAULT2";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
default:
slbAlarm.Text = string.Format("UNKNOWN ({0})", ModuleData.StatusData.batteryStatus);
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
}
case 0x0000: // Stand by
slbOpStatus.Text = "STANDBY";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 0x0001: // Charging
slbOpStatus.Text = "CHARGING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Blue;
break;
case 0x0002: // Discharging
slbOpStatus.Text = "DISCHARGING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Magenta;
break;
case 0x0003: // Float Charging
slbOpStatus.Text = "FLOATING";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 0x0004: // Warming Up
slbOpStatus.Text = "WARMING UP";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
default:
slbOpStatus.Text = "UNKNOWN";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
}
else
// Alarm Display
switch (ModuleData.StatusData.batteryStatus)
{
slbOpStatus.Text = "COMM FAIL";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
slbAlarm.Text = "COMM FAIL";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
lbMdNo.BackColor = System.Drawing.Color.Orange;
case 0: // NORMAL
slbAlarm.Text = "NORMAL";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Green;
break;
case 1: // WARNING
slbAlarm.Text = "WARNING";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Orange;
break;
case 2: // FAULT
slbAlarm.Text = "FAULT";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
case 3: // WARMING UP
slbAlarm.Text = "WARMING UP";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Black;
break;
case 4: // FAULT (Anti-Theft Comm.)
slbAlarm.Text = "FAULT1";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
case 5: // FAULT (Anti-Theft Gyro-Scope)
slbAlarm.Text = "FAULT2";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
default:
slbAlarm.Text = string.Format("UNKNOWN ({0})", ModuleData.StatusData.batteryStatus);
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
break;
}
}
else
{
slbOpStatus.Text = "OFF LINE";
slbOpStatus.Text = "COMM FAIL";
slbOpStatus.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
slbAlarm.Text = "OFF LINE";
slbAlarm.Text = "COMM FAIL";
slbAlarm.AppearanceItemCaption.ForeColor = System.Drawing.Color.Red;
lbMdNo.BackColor = System.Drawing.Color.Orange;
}
// Charge Relay Status Display
}
#endregion

View File

@@ -41,7 +41,7 @@
this.simpleLabelItem8 = new DevExpress.XtraLayout.SimpleLabelItem();
this.simpleLabelItem9 = new DevExpress.XtraLayout.SimpleLabelItem();
this.simpleLabelItem10 = new DevExpress.XtraLayout.SimpleLabelItem();
this.lbFwVer = new DevExpress.XtraLayout.SimpleLabelItem();
this.LbSN = new DevExpress.XtraLayout.SimpleLabelItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
@@ -55,7 +55,7 @@
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lbFwVer)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.LbSN)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
@@ -96,7 +96,7 @@
this.simpleLabelItem8,
this.simpleLabelItem9,
this.simpleLabelItem10,
this.lbFwVer});
this.LbSN});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
@@ -237,16 +237,16 @@
this.simpleLabelItem10.Text = "Cell V Gap [V]";
this.simpleLabelItem10.TextSize = new System.Drawing.Size(82, 14);
//
// lbFwVer
// LbSN
//
this.lbFwVer.AllowHotTrack = false;
this.lbFwVer.AppearanceItemCaption.Options.UseTextOptions = true;
this.lbFwVer.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.lbFwVer.Location = new System.Drawing.Point(150, 0);
this.lbFwVer.Name = "lbFwVer";
this.lbFwVer.Size = new System.Drawing.Size(86, 23);
this.lbFwVer.Text = "FW Ver";
this.lbFwVer.TextSize = new System.Drawing.Size(82, 14);
this.LbSN.AllowHotTrack = false;
this.LbSN.AppearanceItemCaption.Options.UseTextOptions = true;
this.LbSN.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.LbSN.Location = new System.Drawing.Point(150, 0);
this.LbSN.Name = "LbSN";
this.LbSN.Size = new System.Drawing.Size(86, 23);
this.LbSN.Text = "S/N";
this.LbSN.TextSize = new System.Drawing.Size(82, 14);
//
// ucModuleMainHeader
//
@@ -270,7 +270,7 @@
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lbFwVer)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.LbSN)).EndInit();
this.ResumeLayout(false);
}
@@ -290,6 +290,6 @@
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem8;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem9;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem10;
private DevExpress.XtraLayout.SimpleLabelItem lbFwVer;
private DevExpress.XtraLayout.SimpleLabelItem LbSN;
}
}