관리자페이지 개발

This commit is contained in:
hassong
2026-07-03 16:43:53 +09:00
parent 5d6ee943f6
commit 5022eba196
26 changed files with 3940 additions and 758 deletions

View File

@@ -36,18 +36,17 @@
DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle();
DataGridViewCellStyle dataGridViewCellStyle7 = new DataGridViewCellStyle();
pannGray = new Panel();
pannGray = new RoundedPanel();
lblTotCnt = new Label();
lblGrayTitle = new Label();
pannBlue = new Panel();
pannBlue = new RoundedPanel();
lblRunningCnt = new Label();
lblBlueTitle = new Label();
grdTotList = new DataGridView();
btnLog = new Button();
btnRegister = new Button();
btnDataUpdate = new Button();
txtSearch = new TextBox();
pictureBox1 = new PictureBox();
imgSearch = new PictureBox();
Col0 = new DataGridViewTextBoxColumn();
Col1 = new DataGridViewTextBoxColumn();
Col2 = new DataGridViewTextBoxColumn();
@@ -55,10 +54,13 @@
Col4 = new DataGridViewTextBoxColumn();
Col5 = new DataGridViewTextBoxColumn();
Col8 = new DataGridViewTextBoxColumn();
Col9 = new DataGridViewTextBoxColumn();
Col10 = new DataGridViewTextBoxColumn();
Col11 = new DataGridViewTextBoxColumn();
pannGray.SuspendLayout();
pannBlue.SuspendLayout();
((System.ComponentModel.ISupportInitialize)grdTotList).BeginInit();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
((System.ComponentModel.ISupportInitialize)imgSearch).BeginInit();
SuspendLayout();
//
// pannGray
@@ -69,12 +71,11 @@
pannGray.Name = "pannGray";
pannGray.Size = new Size(190, 120);
pannGray.TabIndex = 0;
pannGray.Paint += pannGray_Paint;
//
// lblTotCnt
//
lblTotCnt.Font = new Font("휴먼둥근헤드라인", 19.8000011F, FontStyle.Regular, GraphicsUnit.Point, 129);
lblTotCnt.ForeColor = SystemColors.HighlightText;
lblTotCnt.ForeColor = SystemColors.GrayText;
lblTotCnt.Location = new Point(0, 56);
lblTotCnt.Name = "lblTotCnt";
lblTotCnt.Size = new Size(190, 48);
@@ -84,10 +85,11 @@
//
// lblGrayTitle
//
lblGrayTitle.AutoSize = true;
lblGrayTitle.Location = new Point(33, 20);
lblGrayTitle.Font = new Font("맑은 고딕", 9F, FontStyle.Bold, GraphicsUnit.Point, 129);
lblGrayTitle.ForeColor = SystemColors.ControlDarkDark;
lblGrayTitle.Location = new Point(0, 20);
lblGrayTitle.Name = "lblGrayTitle";
lblGrayTitle.Size = new Size(124, 20);
lblGrayTitle.Size = new Size(190, 20);
lblGrayTitle.TabIndex = 0;
lblGrayTitle.Text = "현재 단말기 대수";
lblGrayTitle.TextAlign = ContentAlignment.MiddleCenter;
@@ -100,12 +102,11 @@
pannBlue.Name = "pannBlue";
pannBlue.Size = new Size(190, 120);
pannBlue.TabIndex = 2;
pannBlue.Paint += pannBlue_Paint;
//
// lblRunningCnt
//
lblRunningCnt.Font = new Font("휴먼둥근헤드라인", 19.8000011F, FontStyle.Regular, GraphicsUnit.Point, 129);
lblRunningCnt.ForeColor = SystemColors.HighlightText;
lblRunningCnt.ForeColor = SystemColors.HotTrack;
lblRunningCnt.Location = new Point(0, 56);
lblRunningCnt.Name = "lblRunningCnt";
lblRunningCnt.Size = new Size(190, 48);
@@ -115,6 +116,8 @@
//
// lblBlueTitle
//
lblBlueTitle.Font = new Font("맑은 고딕", 9F, FontStyle.Bold, GraphicsUnit.Point, 129);
lblBlueTitle.ForeColor = SystemColors.ControlDarkDark;
lblBlueTitle.Location = new Point(0, 20);
lblBlueTitle.Name = "lblBlueTitle";
lblBlueTitle.Size = new Size(190, 20);
@@ -134,7 +137,7 @@
grdTotList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
grdTotList.ColumnHeadersHeight = 29;
grdTotList.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
grdTotList.Columns.AddRange(new DataGridViewColumn[] { Col0, Col1, Col2, Col3, Col4, Col5, Col8 });
grdTotList.Columns.AddRange(new DataGridViewColumn[] { Col0, Col1, Col2, Col3, Col4, Col5, Col8, Col9, Col10, Col11 });
dataGridViewCellStyle8.Alignment = DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = SystemColors.Window;
dataGridViewCellStyle8.Font = new Font("맑은 고딕", 9F);
@@ -148,61 +151,61 @@
grdTotList.RowHeadersWidth = 51;
grdTotList.Size = new Size(1000, 417);
grdTotList.TabIndex = 3;
grdTotList.CellMouseClick += grdTotList_CellMouseClick;
//
// btnLog
//
btnLog.Location = new Point(1009, 244);
btnLog.Name = "btnLog";
btnLog.Size = new Size(150, 44);
btnLog.TabIndex = 4;
btnLog.Text = "제어 이력 조회";
btnLog.UseVisualStyleBackColor = true;
btnLog.MouseClick += btnLog_MouseClick;
grdTotList.CellContentClick += grdTotList_CellContentClick;
//
// btnRegister
//
btnRegister.Location = new Point(880, 244);
btnRegister.BackColor = Color.RoyalBlue;
btnRegister.ForeColor = SystemColors.HighlightText;
btnRegister.Image = Properties.Resources.imgDataRegister;
btnRegister.ImageAlign = ContentAlignment.MiddleLeft;
btnRegister.Location = new Point(1029, 242);
btnRegister.Name = "btnRegister";
btnRegister.Size = new Size(123, 44);
btnRegister.Size = new Size(130, 50);
btnRegister.TabIndex = 5;
btnRegister.Text = "단말기 등록";
btnRegister.UseVisualStyleBackColor = true;
btnRegister.TextAlign = ContentAlignment.MiddleRight;
btnRegister.UseVisualStyleBackColor = false;
btnRegister.MouseClick += btnRegister_MouseClick;
//
// btnDataUpdate
//
btnDataUpdate.Location = new Point(750, 244);
btnDataUpdate.Image = Properties.Resources.imgDataUpdate;
btnDataUpdate.ImageAlign = ContentAlignment.MiddleLeft;
btnDataUpdate.Location = new Point(893, 242);
btnDataUpdate.Name = "btnDataUpdate";
btnDataUpdate.Size = new Size(123, 44);
btnDataUpdate.Size = new Size(130, 50);
btnDataUpdate.TabIndex = 6;
btnDataUpdate.Text = "데이터 갱신";
btnDataUpdate.TextAlign = ContentAlignment.MiddleRight;
btnDataUpdate.UseVisualStyleBackColor = true;
btnDataUpdate.MouseClick += btnDataUpdate_MouseClick;
btnDataUpdate.Click += btnDataUpdate_Click;
//
// txtSearch
//
txtSearch.Font = new Font("맑은 고딕", 12F, FontStyle.Regular, GraphicsUnit.Point, 129);
txtSearch.Location = new Point(159, 244);
txtSearch.Multiline = true;
txtSearch.Name = "txtSearch";
txtSearch.Size = new Size(256, 44);
txtSearch.TabIndex = 7;
txtSearch.TextAlign = HorizontalAlignment.Center;
txtSearch.TextChanged += txtSearch_TextChanged;
//
// pictureBox1
// imgSearch
//
pictureBox1.Image = Properties.Resources.button_search;
pictureBox1.Location = new Point(430, 244);
pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new Size(44, 44);
pictureBox1.TabIndex = 8;
pictureBox1.TabStop = false;
imgSearch.Image = Properties.Resources.button_search;
imgSearch.Location = new Point(430, 244);
imgSearch.Name = "imgSearch";
imgSearch.Size = new Size(44, 44);
imgSearch.TabIndex = 8;
imgSearch.TabStop = false;
imgSearch.MouseClick += imgSearch_MouseClick;
//
// Col0
//
dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col0.DefaultCellStyle = dataGridViewCellStyle2;
Col0.Frozen = true;
Col0.HeaderText = "단말기명";
Col0.MinimumWidth = 6;
Col0.Name = "Col0";
@@ -212,7 +215,6 @@
//
dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col1.DefaultCellStyle = dataGridViewCellStyle3;
Col1.Frozen = true;
Col1.HeaderText = "MAC주소";
Col1.MinimumWidth = 6;
Col1.Name = "Col1";
@@ -222,7 +224,6 @@
//
dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col2.DefaultCellStyle = dataGridViewCellStyle4;
Col2.Frozen = true;
Col2.HeaderText = "IP";
Col2.MinimumWidth = 6;
Col2.Name = "Col2";
@@ -232,7 +233,6 @@
//
dataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col3.DefaultCellStyle = dataGridViewCellStyle5;
Col3.Frozen = true;
Col3.HeaderText = "통신설정";
Col3.MinimumWidth = 6;
Col3.Name = "Col3";
@@ -242,7 +242,6 @@
//
dataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col4.DefaultCellStyle = dataGridViewCellStyle6;
Col4.Frozen = true;
Col4.HeaderText = "프로그램";
Col4.MinimumWidth = 6;
Col4.Name = "Col4";
@@ -252,7 +251,6 @@
//
dataGridViewCellStyle7.Alignment = DataGridViewContentAlignment.MiddleCenter;
Col5.DefaultCellStyle = dataGridViewCellStyle7;
Col5.Frozen = true;
Col5.HeaderText = "마지막 통신 시간";
Col5.MinimumWidth = 6;
Col5.Name = "Col5";
@@ -267,44 +265,71 @@
Col8.Visible = false;
Col8.Width = 125;
//
// Col9
//
Col9.HeaderText = "표출시간";
Col9.MinimumWidth = 6;
Col9.Name = "Col9";
Col9.ReadOnly = true;
Col9.Visible = false;
Col9.Width = 125;
//
// Col10
//
Col10.HeaderText = "프로그램ON시간";
Col10.MinimumWidth = 6;
Col10.Name = "Col10";
Col10.ReadOnly = true;
Col10.Visible = false;
Col10.Width = 125;
//
// Col11
//
Col11.HeaderText = "프로그램OFF시간";
Col11.MinimumWidth = 6;
Col11.Name = "Col11";
Col11.ReadOnly = true;
Col11.Visible = false;
Col11.Width = 125;
//
// Form1
//
AutoScaleDimensions = new SizeF(9F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1357, 737);
Controls.Add(pictureBox1);
Controls.Add(imgSearch);
Controls.Add(txtSearch);
Controls.Add(btnDataUpdate);
Controls.Add(btnRegister);
Controls.Add(btnLog);
Controls.Add(grdTotList);
Controls.Add(pannBlue);
Controls.Add(pannGray);
Name = "Form1";
Text = "Form1";
Load += Form1_Load_1;
pannGray.ResumeLayout(false);
pannGray.PerformLayout();
pannBlue.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)grdTotList).EndInit();
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
((System.ComponentModel.ISupportInitialize)imgSearch).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private Panel pannGray;
private Panel pannBlue;
//private Panel pannGray;
//private Panel pannBlue;
private RoundedPanel pannGray;
private RoundedPanel pannBlue;
private Label lblGrayTitle;
private Label lblBlueTitle;
private Label lblTotCnt;
private Label lblRunningCnt;
private DataGridView grdTotList;
private Button btnLog;
private Button btnRegister;
private Button btnDataUpdate;
private TextBox txtSearch;
private PictureBox pictureBox1;
private PictureBox imgSearch;
private DataGridViewTextBoxColumn Col0;
private DataGridViewTextBoxColumn Col1;
private DataGridViewTextBoxColumn Col2;
@@ -312,5 +337,8 @@
private DataGridViewTextBoxColumn Col4;
private DataGridViewTextBoxColumn Col5;
private DataGridViewTextBoxColumn Col8;
private DataGridViewTextBoxColumn Col9;
private DataGridViewTextBoxColumn Col10;
private DataGridViewTextBoxColumn Col11;
}
}