diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.Designer.cs
new file mode 100644
index 0000000..29f6f2b
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.Designer.cs
@@ -0,0 +1,168 @@
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ partial class DeleteReason
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroTextBox_Name = new MetroFramework.Controls.MetroTextBox();
+ this.metroTextBox_Reason = new MetroFramework.Controls.MetroTextBox();
+ this.metroButton_Delete = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Cancel = new MetroFramework.Controls.MetroButton();
+ this.SuspendLayout();
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 100);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(83, 19);
+ this.metroLabel1.TabIndex = 0;
+ this.metroLabel1.Text = "요청자 이름";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(44, 140);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(69, 19);
+ this.metroLabel2.TabIndex = 0;
+ this.metroLabel2.Text = "삭제 사유";
+ //
+ // metroTextBox_Name
+ //
+ //
+ //
+ //
+ this.metroTextBox_Name.CustomButton.Image = null;
+ this.metroTextBox_Name.CustomButton.Location = new System.Drawing.Point(168, 1);
+ this.metroTextBox_Name.CustomButton.Name = "";
+ this.metroTextBox_Name.CustomButton.Size = new System.Drawing.Size(21, 21);
+ this.metroTextBox_Name.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Name.CustomButton.TabIndex = 1;
+ this.metroTextBox_Name.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Name.CustomButton.UseSelectable = true;
+ this.metroTextBox_Name.CustomButton.Visible = false;
+ this.metroTextBox_Name.Lines = new string[0];
+ this.metroTextBox_Name.Location = new System.Drawing.Point(120, 96);
+ this.metroTextBox_Name.MaxLength = 32767;
+ this.metroTextBox_Name.Name = "metroTextBox_Name";
+ this.metroTextBox_Name.PasswordChar = '\0';
+ this.metroTextBox_Name.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Name.SelectedText = "";
+ this.metroTextBox_Name.SelectionLength = 0;
+ this.metroTextBox_Name.SelectionStart = 0;
+ this.metroTextBox_Name.ShortcutsEnabled = true;
+ this.metroTextBox_Name.Size = new System.Drawing.Size(190, 23);
+ this.metroTextBox_Name.TabIndex = 1;
+ this.metroTextBox_Name.UseSelectable = true;
+ this.metroTextBox_Name.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Name.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroTextBox_Reason
+ //
+ //
+ //
+ //
+ this.metroTextBox_Reason.CustomButton.Image = null;
+ this.metroTextBox_Reason.CustomButton.Location = new System.Drawing.Point(202, 2);
+ this.metroTextBox_Reason.CustomButton.Name = "";
+ this.metroTextBox_Reason.CustomButton.Size = new System.Drawing.Size(195, 195);
+ this.metroTextBox_Reason.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Reason.CustomButton.TabIndex = 1;
+ this.metroTextBox_Reason.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Reason.CustomButton.UseSelectable = true;
+ this.metroTextBox_Reason.CustomButton.Visible = false;
+ this.metroTextBox_Reason.Lines = new string[0];
+ this.metroTextBox_Reason.Location = new System.Drawing.Point(120, 140);
+ this.metroTextBox_Reason.MaxLength = 32767;
+ this.metroTextBox_Reason.Multiline = true;
+ this.metroTextBox_Reason.Name = "metroTextBox_Reason";
+ this.metroTextBox_Reason.PasswordChar = '\0';
+ this.metroTextBox_Reason.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Reason.SelectedText = "";
+ this.metroTextBox_Reason.SelectionLength = 0;
+ this.metroTextBox_Reason.SelectionStart = 0;
+ this.metroTextBox_Reason.ShortcutsEnabled = true;
+ this.metroTextBox_Reason.Size = new System.Drawing.Size(400, 200);
+ this.metroTextBox_Reason.TabIndex = 2;
+ this.metroTextBox_Reason.UseSelectable = true;
+ this.metroTextBox_Reason.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Reason.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroButton_Delete
+ //
+ this.metroButton_Delete.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Delete.Location = new System.Drawing.Point(314, 346);
+ this.metroButton_Delete.Name = "metroButton_Delete";
+ this.metroButton_Delete.Size = new System.Drawing.Size(100, 50);
+ this.metroButton_Delete.TabIndex = 3;
+ this.metroButton_Delete.Text = "삭 제";
+ this.metroButton_Delete.UseSelectable = true;
+ this.metroButton_Delete.Click += new System.EventHandler(this.metroButton_Delete_Click);
+ //
+ // metroButton_Cancel
+ //
+ this.metroButton_Cancel.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Cancel.Location = new System.Drawing.Point(420, 346);
+ this.metroButton_Cancel.Name = "metroButton_Cancel";
+ this.metroButton_Cancel.Size = new System.Drawing.Size(100, 50);
+ this.metroButton_Cancel.TabIndex = 4;
+ this.metroButton_Cancel.Text = "취 소";
+ this.metroButton_Cancel.UseSelectable = true;
+ this.metroButton_Cancel.Click += new System.EventHandler(this.metroButton_Cancel_Click);
+ //
+ // DeleteReason
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
+ this.ClientSize = new System.Drawing.Size(570, 430);
+ this.Controls.Add(this.metroButton_Cancel);
+ this.Controls.Add(this.metroButton_Delete);
+ this.Controls.Add(this.metroTextBox_Reason);
+ this.Controls.Add(this.metroTextBox_Name);
+ this.Controls.Add(this.metroLabel2);
+ this.Controls.Add(this.metroLabel1);
+ this.Name = "DeleteReason";
+ this.Text = "삭제 사유 입력";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Name;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Reason;
+ private MetroFramework.Controls.MetroButton metroButton_Delete;
+ private MetroFramework.Controls.MetroButton metroButton_Cancel;
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.cs
new file mode 100644
index 0000000..7112fec
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.cs
@@ -0,0 +1,51 @@
+using MetroFramework;
+using MetroFramework.Forms;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ public partial class DeleteReason : MetroForm
+ {
+ public string ResultName { get; set; }
+ public string ResultReason { get; set; }
+ public DeleteReason()
+ {
+ InitializeComponent();
+ }
+
+ private void metroButton_Delete_Click(object sender, EventArgs e)
+ {
+ string name = metroTextBox_Name.Text.Trim();
+ string reason = metroTextBox_Reason.Text.Trim();
+ if(name == string.Empty)
+ {
+ MetroMessageBox.Show(this, "요청자 이름이 입력되지 않았습니다.", "삭제", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
+ metroTextBox_Name.Focus();
+ return;
+ }
+ if(reason == string.Empty)
+ {
+ MetroMessageBox.Show(this, "삭제 사유가 입력되지 않았습니다.", "삭제", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);
+ metroTextBox_Reason.Focus();
+ return;
+ }
+
+ this.ResultName = name;
+ this.ResultReason = reason;
+ this.DialogResult = DialogResult.OK;
+ }
+
+ private void metroButton_Cancel_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.Cancel;
+ }
+ }
+}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.Designer.cs
new file mode 100644
index 0000000..15b7dac
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.Designer.cs
@@ -0,0 +1,124 @@
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ partial class Promotion
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroButton_Promotion = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Cancel = new MetroFramework.Controls.MetroButton();
+ this.metroDateTime_Start = new MetroFramework.Controls.MetroDateTime();
+ this.metroDateTime_End = new MetroFramework.Controls.MetroDateTime();
+ this.SuspendLayout();
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 100);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(83, 19);
+ this.metroLabel1.TabIndex = 0;
+ this.metroLabel1.Text = "이용 시작일";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(30, 140);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(83, 19);
+ this.metroLabel2.TabIndex = 0;
+ this.metroLabel2.Text = "이용 종료일";
+ //
+ // metroButton_Promotion
+ //
+ this.metroButton_Promotion.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Promotion.Location = new System.Drawing.Point(131, 188);
+ this.metroButton_Promotion.Name = "metroButton_Promotion";
+ this.metroButton_Promotion.Size = new System.Drawing.Size(100, 50);
+ this.metroButton_Promotion.TabIndex = 3;
+ this.metroButton_Promotion.Text = "확 정";
+ this.metroButton_Promotion.UseSelectable = true;
+ this.metroButton_Promotion.Click += new System.EventHandler(this.metroButton_Promotion_Click);
+ //
+ // metroButton_Cancel
+ //
+ this.metroButton_Cancel.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Cancel.Location = new System.Drawing.Point(237, 188);
+ this.metroButton_Cancel.Name = "metroButton_Cancel";
+ this.metroButton_Cancel.Size = new System.Drawing.Size(100, 50);
+ this.metroButton_Cancel.TabIndex = 4;
+ this.metroButton_Cancel.Text = "취 소";
+ this.metroButton_Cancel.UseSelectable = true;
+ this.metroButton_Cancel.Click += new System.EventHandler(this.metroButton_Cancel_Click);
+ //
+ // metroDateTime_Start
+ //
+ this.metroDateTime_Start.Location = new System.Drawing.Point(131, 100);
+ this.metroDateTime_Start.MinimumSize = new System.Drawing.Size(0, 29);
+ this.metroDateTime_Start.Name = "metroDateTime_Start";
+ this.metroDateTime_Start.Size = new System.Drawing.Size(200, 29);
+ this.metroDateTime_Start.TabIndex = 5;
+ //
+ // metroDateTime_End
+ //
+ this.metroDateTime_End.Location = new System.Drawing.Point(131, 135);
+ this.metroDateTime_End.MinimumSize = new System.Drawing.Size(0, 29);
+ this.metroDateTime_End.Name = "metroDateTime_End";
+ this.metroDateTime_End.Size = new System.Drawing.Size(200, 29);
+ this.metroDateTime_End.TabIndex = 6;
+ //
+ // Promotion
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
+ this.ClientSize = new System.Drawing.Size(376, 294);
+ this.Controls.Add(this.metroDateTime_End);
+ this.Controls.Add(this.metroDateTime_Start);
+ this.Controls.Add(this.metroButton_Cancel);
+ this.Controls.Add(this.metroButton_Promotion);
+ this.Controls.Add(this.metroLabel2);
+ this.Controls.Add(this.metroLabel1);
+ this.Name = "Promotion";
+ this.Text = "이용자 시작일, 종료일";
+ this.Load += new System.EventHandler(this.Promotion_Load);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroButton metroButton_Promotion;
+ private MetroFramework.Controls.MetroButton metroButton_Cancel;
+ private MetroFramework.Controls.MetroDateTime metroDateTime_Start;
+ private MetroFramework.Controls.MetroDateTime metroDateTime_End;
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.cs
new file mode 100644
index 0000000..3b7c327
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.cs
@@ -0,0 +1,32 @@
+using MetroFramework.Forms;
+using System;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ public partial class Promotion : MetroForm
+ {
+ public DateTime StartDate { get; set; }
+ public DateTime EndDate { get; set; }
+ public Promotion() => InitializeComponent();
+
+ void metroButton_Promotion_Click(object sender, EventArgs e)
+ {
+ StartDate = metroDateTime_Start.Value;
+ EndDate = metroDateTime_End.Value;
+ DialogResult = DialogResult.OK;
+ }
+
+ void metroButton_Cancel_Click(object sender, EventArgs e)
+ {
+ DialogResult = DialogResult.Cancel;
+ }
+
+ void Promotion_Load(object sender, EventArgs e)
+ {
+ var year = DateTime.Now.Year + 1;
+ metroDateTime_Start.Value = DateTime.Parse(year + "-01-01");
+ metroDateTime_End.Value = DateTime.Parse(year + "-12-31");
+ }
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.Designer.cs
new file mode 100644
index 0000000..ddb3169
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.Designer.cs
@@ -0,0 +1,217 @@
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ partial class WaitingCount
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel_MaxCount = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel_WaitingCount = new MetroFramework.Controls.MetroLabel();
+ this.metroTextBox_Count = new MetroFramework.Controls.MetroTextBox();
+ this.metroButton_Ok = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Cancel = new MetroFramework.Controls.MetroButton();
+ this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
+ this.metroDateTime_End = new MetroFramework.Controls.MetroDateTime();
+ this.metroDateTime_Start = new MetroFramework.Controls.MetroDateTime();
+ this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
+ this.SuspendLayout();
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 100);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(101, 19);
+ this.metroLabel1.TabIndex = 0;
+ this.metroLabel1.Text = "전체 대기자 수";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(30, 120);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(133, 19);
+ this.metroLabel2.TabIndex = 1;
+ this.metroLabel2.Text = "순번 있는 대기자 수";
+ //
+ // metroLabel_MaxCount
+ //
+ this.metroLabel_MaxCount.AutoSize = true;
+ this.metroLabel_MaxCount.Location = new System.Drawing.Point(170, 100);
+ this.metroLabel_MaxCount.Name = "metroLabel_MaxCount";
+ this.metroLabel_MaxCount.Size = new System.Drawing.Size(30, 19);
+ this.metroLabel_MaxCount.TabIndex = 3;
+ this.metroLabel_MaxCount.Text = "0명";
+ //
+ // metroLabel_WaitingCount
+ //
+ this.metroLabel_WaitingCount.AutoSize = true;
+ this.metroLabel_WaitingCount.Location = new System.Drawing.Point(170, 120);
+ this.metroLabel_WaitingCount.Name = "metroLabel_WaitingCount";
+ this.metroLabel_WaitingCount.Size = new System.Drawing.Size(30, 19);
+ this.metroLabel_WaitingCount.TabIndex = 2;
+ this.metroLabel_WaitingCount.Text = "0명";
+ //
+ // metroTextBox_Count
+ //
+ //
+ //
+ //
+ this.metroTextBox_Count.CustomButton.Image = null;
+ this.metroTextBox_Count.CustomButton.Location = new System.Drawing.Point(53, 1);
+ this.metroTextBox_Count.CustomButton.Name = "";
+ this.metroTextBox_Count.CustomButton.Size = new System.Drawing.Size(21, 21);
+ this.metroTextBox_Count.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Count.CustomButton.TabIndex = 1;
+ this.metroTextBox_Count.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Count.CustomButton.UseSelectable = true;
+ this.metroTextBox_Count.CustomButton.Visible = false;
+ this.metroTextBox_Count.Lines = new string[0];
+ this.metroTextBox_Count.Location = new System.Drawing.Point(190, 146);
+ this.metroTextBox_Count.MaxLength = 32767;
+ this.metroTextBox_Count.Name = "metroTextBox_Count";
+ this.metroTextBox_Count.PasswordChar = '\0';
+ this.metroTextBox_Count.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Count.SelectedText = "";
+ this.metroTextBox_Count.SelectionLength = 0;
+ this.metroTextBox_Count.SelectionStart = 0;
+ this.metroTextBox_Count.ShortcutsEnabled = true;
+ this.metroTextBox_Count.Size = new System.Drawing.Size(120, 23);
+ this.metroTextBox_Count.TabIndex = 4;
+ this.metroTextBox_Count.UseSelectable = true;
+ this.metroTextBox_Count.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Count.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroButton_Ok
+ //
+ this.metroButton_Ok.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Ok.Location = new System.Drawing.Point(96, 273);
+ this.metroButton_Ok.Name = "metroButton_Ok";
+ this.metroButton_Ok.Size = new System.Drawing.Size(144, 78);
+ this.metroButton_Ok.TabIndex = 5;
+ this.metroButton_Ok.Text = "확인";
+ this.metroButton_Ok.UseSelectable = true;
+ this.metroButton_Ok.Click += new System.EventHandler(this.metroButton_Ok_Click);
+ //
+ // metroButton_Cancel
+ //
+ this.metroButton_Cancel.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Cancel.Location = new System.Drawing.Point(246, 273);
+ this.metroButton_Cancel.Name = "metroButton_Cancel";
+ this.metroButton_Cancel.Size = new System.Drawing.Size(144, 78);
+ this.metroButton_Cancel.TabIndex = 6;
+ this.metroButton_Cancel.Text = "취소";
+ this.metroButton_Cancel.UseSelectable = true;
+ this.metroButton_Cancel.Click += new System.EventHandler(this.metroButton_Cancel_Click);
+ //
+ // metroLabel3
+ //
+ this.metroLabel3.AutoSize = true;
+ this.metroLabel3.Location = new System.Drawing.Point(70, 150);
+ this.metroLabel3.Name = "metroLabel3";
+ this.metroLabel3.Size = new System.Drawing.Size(115, 19);
+ this.metroLabel3.TabIndex = 7;
+ this.metroLabel3.Text = "등록할 대기자 수";
+ //
+ // metroDateTime_End
+ //
+ this.metroDateTime_End.Location = new System.Drawing.Point(190, 220);
+ this.metroDateTime_End.MinimumSize = new System.Drawing.Size(0, 29);
+ this.metroDateTime_End.Name = "metroDateTime_End";
+ this.metroDateTime_End.Size = new System.Drawing.Size(200, 29);
+ this.metroDateTime_End.TabIndex = 11;
+ //
+ // metroDateTime_Start
+ //
+ this.metroDateTime_Start.Location = new System.Drawing.Point(190, 180);
+ this.metroDateTime_Start.MinimumSize = new System.Drawing.Size(0, 29);
+ this.metroDateTime_Start.Name = "metroDateTime_Start";
+ this.metroDateTime_Start.Size = new System.Drawing.Size(200, 29);
+ this.metroDateTime_Start.TabIndex = 10;
+ //
+ // metroLabel4
+ //
+ this.metroLabel4.AutoSize = true;
+ this.metroLabel4.Location = new System.Drawing.Point(101, 230);
+ this.metroLabel4.Name = "metroLabel4";
+ this.metroLabel4.Size = new System.Drawing.Size(83, 19);
+ this.metroLabel4.TabIndex = 8;
+ this.metroLabel4.Text = "이용 종료일";
+ //
+ // metroLabel5
+ //
+ this.metroLabel5.AutoSize = true;
+ this.metroLabel5.Location = new System.Drawing.Point(101, 190);
+ this.metroLabel5.Name = "metroLabel5";
+ this.metroLabel5.Size = new System.Drawing.Size(83, 19);
+ this.metroLabel5.TabIndex = 9;
+ this.metroLabel5.Text = "이용 시작일";
+ //
+ // WaitingCount
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
+ this.ClientSize = new System.Drawing.Size(420, 370);
+ this.Controls.Add(this.metroDateTime_End);
+ this.Controls.Add(this.metroDateTime_Start);
+ this.Controls.Add(this.metroLabel4);
+ this.Controls.Add(this.metroLabel5);
+ this.Controls.Add(this.metroLabel3);
+ this.Controls.Add(this.metroButton_Cancel);
+ this.Controls.Add(this.metroButton_Ok);
+ this.Controls.Add(this.metroTextBox_Count);
+ this.Controls.Add(this.metroLabel_MaxCount);
+ this.Controls.Add(this.metroLabel_WaitingCount);
+ this.Controls.Add(this.metroLabel2);
+ this.Controls.Add(this.metroLabel1);
+ this.Name = "WaitingCount";
+ this.Text = "WaitingCount";
+ this.Load += new System.EventHandler(this.WaitingCount_Load);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroLabel metroLabel_MaxCount;
+ private MetroFramework.Controls.MetroLabel metroLabel_WaitingCount;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Count;
+ private MetroFramework.Controls.MetroButton metroButton_Ok;
+ private MetroFramework.Controls.MetroButton metroButton_Cancel;
+ private MetroFramework.Controls.MetroLabel metroLabel3;
+ private MetroFramework.Controls.MetroDateTime metroDateTime_End;
+ private MetroFramework.Controls.MetroDateTime metroDateTime_Start;
+ private MetroFramework.Controls.MetroLabel metroLabel4;
+ private MetroFramework.Controls.MetroLabel metroLabel5;
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.cs
new file mode 100644
index 0000000..a134d7f
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.cs
@@ -0,0 +1,63 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomForm
+{
+ public partial class WaitingCount : MetroFramework.Forms.MetroForm
+ {
+ public int ResultCount { get; set; }
+ public DateTime StartDate { get; set; }
+ public DateTime EndDate { get; set; }
+
+ private int _MaxCount = 0; // 대기자 전체 카운트
+ private int _WaitngCount = 0; // 순번이 있는 대기자 카운트
+ public WaitingCount(int maxCount, int waitngCount)
+ {
+ InitializeComponent();
+ _MaxCount = maxCount;
+ _WaitngCount = waitngCount;
+
+ metroLabel_MaxCount.Text = _MaxCount + "명";
+ metroLabel_WaitingCount.Text = _WaitngCount + "명";
+ }
+
+ private void metroButton_Ok_Click(object sender, EventArgs e)
+ {
+ int count = int.Parse(metroLabel_WaitingCount.Text);
+ if(count < 1)
+ {
+ DialogResult = DialogResult.Cancel;
+ }
+ if (count > _MaxCount)
+ {
+ count = _MaxCount;
+ }
+ ResultCount=count;
+ StartDate = metroDateTime_Start.Value;
+ EndDate = metroDateTime_End.Value;
+ DialogResult = DialogResult.OK;
+
+
+
+ }
+
+ private void metroButton_Cancel_Click(object sender, EventArgs e)
+ {
+ DialogResult = DialogResult.Cancel;
+ }
+
+ private void WaitingCount_Load(object sender, EventArgs e)
+ {
+ var year = DateTime.Now.Year + 1;
+ metroDateTime_Start.Value = DateTime.Parse(year + "-01-01");
+ metroDateTime_End.Value = DateTime.Parse(year + "-12-31");
+ }
+ }
+}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.Designer.cs
index 34a58e5..45c2046 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.Designer.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.Designer.cs
@@ -36,14 +36,12 @@
this.metroLabel_Name = new MetroFramework.Controls.MetroLabel();
this.metroLabel_Phone = new MetroFramework.Controls.MetroLabel();
this.metroLabel_Address = new MetroFramework.Controls.MetroLabel();
- this.metroLabel_ResidentsType = new MetroFramework.Controls.MetroLabel();
this.metroLabel_Inspection = new MetroFramework.Controls.MetroLabel();
this.metroTextBox_RegistrationNumberTruck = new MetroFramework.Controls.MetroTextBox();
this.metroTextBox_RegistrationNumberPassenger = new MetroFramework.Controls.MetroTextBox();
this.metroTextBox_Name = new MetroFramework.Controls.MetroTextBox();
this.maskedTextBox_Phone = new System.Windows.Forms.MaskedTextBox();
this.metroTextBox_Address = new MetroFramework.Controls.MetroTextBox();
- this.metroTextBox_ResidentsType = new MetroFramework.Controls.MetroTextBox();
this.metroCheckBox_Inspection = new MetroFramework.Controls.MetroCheckBox();
this.metroButton_Register = new MetroFramework.Controls.MetroButton();
this.metroButton_Cancel = new MetroFramework.Controls.MetroButton();
@@ -130,19 +128,10 @@
this.metroLabel_Address.TabIndex = 5;
this.metroLabel_Address.Text = "주소";
//
- // metroLabel_ResidentsType
- //
- this.metroLabel_ResidentsType.AutoSize = true;
- this.metroLabel_ResidentsType.Location = new System.Drawing.Point(30, 230);
- this.metroLabel_ResidentsType.Name = "metroLabel_ResidentsType";
- this.metroLabel_ResidentsType.Size = new System.Drawing.Size(83, 19);
- this.metroLabel_ResidentsType.TabIndex = 6;
- this.metroLabel_ResidentsType.Text = "거주지 구분";
- //
// metroLabel_Inspection
//
this.metroLabel_Inspection.AutoSize = true;
- this.metroLabel_Inspection.Location = new System.Drawing.Point(30, 260);
+ this.metroLabel_Inspection.Location = new System.Drawing.Point(30, 230);
this.metroLabel_Inspection.Name = "metroLabel_Inspection";
this.metroLabel_Inspection.Size = new System.Drawing.Size(69, 19);
this.metroLabel_Inspection.TabIndex = 8;
@@ -280,46 +269,13 @@
this.metroTextBox_Address.UseSelectable = true;
this.metroTextBox_Address.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.metroTextBox_Address.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
- this.metroTextBox_Address.Leave += new System.EventHandler(this.metroTextBox_Address_Leave);
- //
- // metroTextBox_ResidentsType
- //
- //
- //
- //
- this.metroTextBox_ResidentsType.CustomButton.Image = null;
- this.metroTextBox_ResidentsType.CustomButton.Location = new System.Drawing.Point(106, 1);
- this.metroTextBox_ResidentsType.CustomButton.Name = "";
- this.metroTextBox_ResidentsType.CustomButton.Size = new System.Drawing.Size(21, 21);
- this.metroTextBox_ResidentsType.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
- this.metroTextBox_ResidentsType.CustomButton.TabIndex = 1;
- this.metroTextBox_ResidentsType.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
- this.metroTextBox_ResidentsType.CustomButton.UseSelectable = true;
- this.metroTextBox_ResidentsType.CustomButton.Visible = false;
- this.metroTextBox_ResidentsType.Lines = new string[0];
- this.metroTextBox_ResidentsType.Location = new System.Drawing.Point(140, 230);
- this.metroTextBox_ResidentsType.MaxLength = 32767;
- this.metroTextBox_ResidentsType.Name = "metroTextBox_ResidentsType";
- this.metroTextBox_ResidentsType.PasswordChar = '\0';
- this.metroTextBox_ResidentsType.ReadOnly = true;
- this.metroTextBox_ResidentsType.ScrollBars = System.Windows.Forms.ScrollBars.None;
- this.metroTextBox_ResidentsType.SelectedText = "";
- this.metroTextBox_ResidentsType.SelectionLength = 0;
- this.metroTextBox_ResidentsType.SelectionStart = 0;
- this.metroTextBox_ResidentsType.ShortcutsEnabled = true;
- this.metroTextBox_ResidentsType.Size = new System.Drawing.Size(128, 23);
- this.metroTextBox_ResidentsType.TabIndex = 7;
- this.metroTextBox_ResidentsType.TabStop = false;
- this.metroTextBox_ResidentsType.UseSelectable = true;
- this.metroTextBox_ResidentsType.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
- this.metroTextBox_ResidentsType.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// metroCheckBox_Inspection
//
this.metroCheckBox_Inspection.AutoSize = true;
this.metroCheckBox_Inspection.Checked = true;
this.metroCheckBox_Inspection.CheckState = System.Windows.Forms.CheckState.Checked;
- this.metroCheckBox_Inspection.Location = new System.Drawing.Point(140, 264);
+ this.metroCheckBox_Inspection.Location = new System.Drawing.Point(140, 234);
this.metroCheckBox_Inspection.Name = "metroCheckBox_Inspection";
this.metroCheckBox_Inspection.Size = new System.Drawing.Size(74, 15);
this.metroCheckBox_Inspection.TabIndex = 8;
@@ -329,7 +285,7 @@
// metroButton_Register
//
this.metroButton_Register.FontSize = MetroFramework.MetroButtonSize.Tall;
- this.metroButton_Register.Location = new System.Drawing.Point(100, 300);
+ this.metroButton_Register.Location = new System.Drawing.Point(100, 270);
this.metroButton_Register.Name = "metroButton_Register";
this.metroButton_Register.Size = new System.Drawing.Size(170, 50);
this.metroButton_Register.TabIndex = 9;
@@ -340,7 +296,7 @@
// metroButton_Cancel
//
this.metroButton_Cancel.FontSize = MetroFramework.MetroButtonSize.Tall;
- this.metroButton_Cancel.Location = new System.Drawing.Point(283, 300);
+ this.metroButton_Cancel.Location = new System.Drawing.Point(283, 270);
this.metroButton_Cancel.Name = "metroButton_Cancel";
this.metroButton_Cancel.Size = new System.Drawing.Size(170, 50);
this.metroButton_Cancel.TabIndex = 10;
@@ -357,13 +313,11 @@
this.Controls.Add(this.metroButton_Register);
this.Controls.Add(this.metroCheckBox_Inspection);
this.Controls.Add(this.maskedTextBox_Phone);
- this.Controls.Add(this.metroTextBox_ResidentsType);
this.Controls.Add(this.metroTextBox_Address);
this.Controls.Add(this.metroTextBox_Name);
this.Controls.Add(this.metroTextBox_RegistrationNumberPassenger);
this.Controls.Add(this.metroTextBox_RegistrationNumberTruck);
this.Controls.Add(this.metroLabel_Inspection);
- this.Controls.Add(this.metroLabel_ResidentsType);
this.Controls.Add(this.metroLabel_Address);
this.Controls.Add(this.metroLabel_Phone);
this.Controls.Add(this.metroLabel_Name);
@@ -390,14 +344,12 @@
private MetroFramework.Controls.MetroLabel metroLabel_Name;
private MetroFramework.Controls.MetroLabel metroLabel_Phone;
private MetroFramework.Controls.MetroLabel metroLabel_Address;
- private MetroFramework.Controls.MetroLabel metroLabel_ResidentsType;
private MetroFramework.Controls.MetroLabel metroLabel_Inspection;
private MetroFramework.Controls.MetroTextBox metroTextBox_RegistrationNumberTruck;
private MetroFramework.Controls.MetroTextBox metroTextBox_RegistrationNumberPassenger;
private MetroFramework.Controls.MetroTextBox metroTextBox_Name;
private System.Windows.Forms.MaskedTextBox maskedTextBox_Phone;
private MetroFramework.Controls.MetroTextBox metroTextBox_Address;
- private MetroFramework.Controls.MetroTextBox metroTextBox_ResidentsType;
private MetroFramework.Controls.MetroCheckBox metroCheckBox_Inspection;
private MetroFramework.Controls.MetroButton metroButton_Register;
private MetroFramework.Controls.MetroButton metroButton_Cancel;
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.cs
index 0a761e8..ef9642c 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantControl.cs
@@ -10,44 +10,6 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
InitializeComponent();
}
- void metroTextBox_Address_Leave(object sender, EventArgs e)
- {
- switch (GetResidentsType(metroTextBox_Address.Text.Trim()))
- {
- case 0:
- metroTextBox_ResidentsType.Text = "화성";
- break;
-
- case 1:
- metroTextBox_ResidentsType.Text = "경기";
- break;
-
- case 2:
- metroTextBox_ResidentsType.Text = "그외";
- break;
-
- default:
- break;
- }
- }
-
- int GetResidentsType(string address)
- {
- int result;
- if(address.Trim().Contains("화성"))
- {
- result = 0;
- }
- else if (address.Trim().Contains("경기"))
- {
- result = 1;
- }
- else
- {
- result = 2;
- }
- return result;
- }
void metroButton_Register_Click(object sender, EventArgs e)
{
@@ -100,7 +62,15 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
metroTextBox_RegistrationNumberTruck.Focus();
return;
}
-
+
+ already = Database.UserListCheckAlready(metroTextBox_RegistrationNumberTruck.Text.Trim());
+ if (already)
+ {
+ MessageBox.Show(this, metroTextBox_RegistrationNumberTruck.Text.Trim() + "현재 사용중인 차량입니다.", "Fatal Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ ResetInput();
+ metroTextBox_RegistrationNumberTruck.Focus();
+ return;
+ }
var applicant = new Applicant();
applicant.ApplicantType = metroRadioButton_Draw.Checked; // 추첨이 true, 대기가 false
applicant.RegistrationNumberTruck = metroTextBox_RegistrationNumberTruck.Text.Trim();
@@ -108,7 +78,6 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
applicant.Name = metroTextBox_Name.Text.Trim();
applicant.Phone = maskedTextBox_Phone.Text.Trim();
applicant.Address = metroTextBox_Address.Text.Trim();
- applicant.ResidentsType = GetResidentsType(applicant.Address);
applicant.DateOfApplication = DateTime.Now;
applicant.Inspection = metroCheckBox_Inspection.Checked;
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.Designer.cs
index 289b1a2..295452d 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.Designer.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.Designer.cs
@@ -30,33 +30,34 @@
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.metroRadioButton1 = new MetroFramework.Controls.MetroRadioButton();
- this.metroRadioButton2 = new MetroFramework.Controls.MetroRadioButton();
- this.metroRadioButton3 = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionFalse = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionTrue = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionAll = new MetroFramework.Controls.MetroRadioButton();
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
- this.dataGridView_List = new System.Windows.Forms.DataGridView();
- this.metroButton2 = new MetroFramework.Controls.MetroButton();
- this.metroButton3 = new MetroFramework.Controls.MetroButton();
- this.metroButton4 = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Delete = new MetroFramework.Controls.MetroButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.metroComboBox2 = new MetroFramework.Controls.MetroComboBox();
- this.metroButton5 = new MetroFramework.Controls.MetroButton();
- this.metroTextBox2 = new MetroFramework.Controls.MetroTextBox();
- this.metroButton1 = new MetroFramework.Controls.MetroButton();
- this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroButton_Search = new MetroFramework.Controls.MetroButton();
+ this.metroTextBox_Search = new MetroFramework.Controls.MetroTextBox();
+ this.metroComboBox_SearchType = new MetroFramework.Controls.MetroComboBox();
+ this.metroButton_InspectionFalse = new MetroFramework.Controls.MetroButton();
+ this.metroButton_InspectionTrue = new MetroFramework.Controls.MetroButton();
+ this.metroButton_UpdateUser = new MetroFramework.Controls.MetroButton();
+ this.dataGridView_List = new System.Windows.Forms.DataGridView();
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
this.groupBox1.SuspendLayout();
this.metroPanel1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).BeginInit();
this.groupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.BackColor = System.Drawing.Color.Transparent;
- this.groupBox1.Controls.Add(this.metroRadioButton3);
- this.groupBox1.Controls.Add(this.metroRadioButton2);
- this.groupBox1.Controls.Add(this.metroRadioButton1);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionFalse);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionTrue);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionAll);
this.groupBox1.Location = new System.Drawing.Point(20, 20);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(150, 90);
@@ -64,45 +65,45 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "그룹 필터";
//
- // metroRadioButton1
+ // metroRadioButton_InspectionFalse
//
- this.metroRadioButton1.AutoSize = true;
- this.metroRadioButton1.Checked = true;
- this.metroRadioButton1.Location = new System.Drawing.Point(30, 20);
- this.metroRadioButton1.Name = "metroRadioButton1";
- this.metroRadioButton1.Size = new System.Drawing.Size(47, 15);
- this.metroRadioButton1.TabIndex = 0;
- this.metroRadioButton1.TabStop = true;
- this.metroRadioButton1.Text = "전체";
- this.metroRadioButton1.UseSelectable = true;
+ this.metroRadioButton_InspectionFalse.AutoSize = true;
+ this.metroRadioButton_InspectionFalse.Location = new System.Drawing.Point(30, 60);
+ this.metroRadioButton_InspectionFalse.Name = "metroRadioButton_InspectionFalse";
+ this.metroRadioButton_InspectionFalse.Size = new System.Drawing.Size(74, 15);
+ this.metroRadioButton_InspectionFalse.TabIndex = 2;
+ this.metroRadioButton_InspectionFalse.Text = "서류 미비";
+ this.metroRadioButton_InspectionFalse.UseSelectable = true;
//
- // metroRadioButton2
+ // metroRadioButton_InspectionTrue
//
- this.metroRadioButton2.AutoSize = true;
- this.metroRadioButton2.Location = new System.Drawing.Point(30, 40);
- this.metroRadioButton2.Name = "metroRadioButton2";
- this.metroRadioButton2.Size = new System.Drawing.Size(74, 15);
- this.metroRadioButton2.TabIndex = 1;
- this.metroRadioButton2.Text = "서류 완료";
- this.metroRadioButton2.UseSelectable = true;
+ this.metroRadioButton_InspectionTrue.AutoSize = true;
+ this.metroRadioButton_InspectionTrue.Location = new System.Drawing.Point(30, 40);
+ this.metroRadioButton_InspectionTrue.Name = "metroRadioButton_InspectionTrue";
+ this.metroRadioButton_InspectionTrue.Size = new System.Drawing.Size(74, 15);
+ this.metroRadioButton_InspectionTrue.TabIndex = 1;
+ this.metroRadioButton_InspectionTrue.Text = "서류 완료";
+ this.metroRadioButton_InspectionTrue.UseSelectable = true;
//
- // metroRadioButton3
+ // metroRadioButton_InspectionAll
//
- this.metroRadioButton3.AutoSize = true;
- this.metroRadioButton3.Location = new System.Drawing.Point(30, 60);
- this.metroRadioButton3.Name = "metroRadioButton3";
- this.metroRadioButton3.Size = new System.Drawing.Size(74, 15);
- this.metroRadioButton3.TabIndex = 2;
- this.metroRadioButton3.Text = "서류 미비";
- this.metroRadioButton3.UseSelectable = true;
+ this.metroRadioButton_InspectionAll.AutoSize = true;
+ this.metroRadioButton_InspectionAll.Checked = true;
+ this.metroRadioButton_InspectionAll.Location = new System.Drawing.Point(30, 20);
+ this.metroRadioButton_InspectionAll.Name = "metroRadioButton_InspectionAll";
+ this.metroRadioButton_InspectionAll.Size = new System.Drawing.Size(47, 15);
+ this.metroRadioButton_InspectionAll.TabIndex = 0;
+ this.metroRadioButton_InspectionAll.TabStop = true;
+ this.metroRadioButton_InspectionAll.Text = "전체";
+ this.metroRadioButton_InspectionAll.UseSelectable = true;
//
// metroPanel1
//
- this.metroPanel1.Controls.Add(this.metroButton1);
+ this.metroPanel1.Controls.Add(this.metroButton_Delete);
this.metroPanel1.Controls.Add(this.groupBox2);
- this.metroPanel1.Controls.Add(this.metroButton4);
- this.metroPanel1.Controls.Add(this.metroButton3);
- this.metroPanel1.Controls.Add(this.metroButton2);
+ this.metroPanel1.Controls.Add(this.metroButton_InspectionFalse);
+ this.metroPanel1.Controls.Add(this.metroButton_InspectionTrue);
+ this.metroPanel1.Controls.Add(this.metroButton_UpdateUser);
this.metroPanel1.Controls.Add(this.dataGridView_List);
this.metroPanel1.Controls.Add(this.groupBox1);
this.metroPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -118,6 +119,144 @@
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
//
+ // metroButton_Delete
+ //
+ this.metroButton_Delete.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_Delete.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Delete.Location = new System.Drawing.Point(626, 276);
+ this.metroButton_Delete.Name = "metroButton_Delete";
+ this.metroButton_Delete.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_Delete.TabIndex = 10;
+ this.metroButton_Delete.Text = "삭제";
+ this.metroButton_Delete.UseSelectable = true;
+ this.metroButton_Delete.Click += new System.EventHandler(this.metroButton_Delete_Click);
+ //
+ // groupBox2
+ //
+ this.groupBox2.BackColor = System.Drawing.Color.Transparent;
+ this.groupBox2.Controls.Add(this.metroLabel2);
+ this.groupBox2.Controls.Add(this.metroLabel1);
+ this.groupBox2.Controls.Add(this.metroButton_Search);
+ this.groupBox2.Controls.Add(this.metroTextBox_Search);
+ this.groupBox2.Controls.Add(this.metroComboBox_SearchType);
+ this.groupBox2.Location = new System.Drawing.Point(200, 20);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(530, 90);
+ this.groupBox2.TabIndex = 8;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "검색";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(156, 16);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(51, 19);
+ this.metroLabel2.TabIndex = 6;
+ this.metroLabel2.Text = "검색어";
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 20);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(69, 19);
+ this.metroLabel1.TabIndex = 6;
+ this.metroLabel1.Text = "검색 종류";
+ //
+ // metroButton_Search
+ //
+ this.metroButton_Search.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Search.Location = new System.Drawing.Point(328, 20);
+ this.metroButton_Search.Name = "metroButton_Search";
+ this.metroButton_Search.Size = new System.Drawing.Size(131, 49);
+ this.metroButton_Search.TabIndex = 5;
+ this.metroButton_Search.Text = "조회";
+ this.metroButton_Search.UseSelectable = true;
+ this.metroButton_Search.Click += new System.EventHandler(this.metroButton_Search_Click);
+ //
+ // metroTextBox_Search
+ //
+ //
+ //
+ //
+ this.metroTextBox_Search.CustomButton.Image = null;
+ this.metroTextBox_Search.CustomButton.Location = new System.Drawing.Point(144, 1);
+ this.metroTextBox_Search.CustomButton.Name = "";
+ this.metroTextBox_Search.CustomButton.Size = new System.Drawing.Size(21, 21);
+ this.metroTextBox_Search.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Search.CustomButton.TabIndex = 1;
+ this.metroTextBox_Search.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Search.CustomButton.UseSelectable = true;
+ this.metroTextBox_Search.CustomButton.Visible = false;
+ this.metroTextBox_Search.Lines = new string[0];
+ this.metroTextBox_Search.Location = new System.Drawing.Point(156, 46);
+ this.metroTextBox_Search.MaxLength = 32767;
+ this.metroTextBox_Search.Name = "metroTextBox_Search";
+ this.metroTextBox_Search.PasswordChar = '\0';
+ this.metroTextBox_Search.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Search.SelectedText = "";
+ this.metroTextBox_Search.SelectionLength = 0;
+ this.metroTextBox_Search.SelectionStart = 0;
+ this.metroTextBox_Search.ShortcutsEnabled = true;
+ this.metroTextBox_Search.Size = new System.Drawing.Size(166, 23);
+ this.metroTextBox_Search.TabIndex = 4;
+ this.metroTextBox_Search.UseSelectable = true;
+ this.metroTextBox_Search.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Search.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroComboBox_SearchType
+ //
+ this.metroComboBox_SearchType.FormattingEnabled = true;
+ this.metroComboBox_SearchType.ItemHeight = 23;
+ this.metroComboBox_SearchType.Items.AddRange(new object[] {
+ "차량번호(화물)",
+ "차량번호(승용)",
+ "이름",
+ "연락처",
+ "주소"});
+ this.metroComboBox_SearchType.Location = new System.Drawing.Point(30, 40);
+ this.metroComboBox_SearchType.Name = "metroComboBox_SearchType";
+ this.metroComboBox_SearchType.Size = new System.Drawing.Size(120, 29);
+ this.metroComboBox_SearchType.TabIndex = 3;
+ this.metroComboBox_SearchType.UseSelectable = true;
+ //
+ // metroButton_InspectionFalse
+ //
+ this.metroButton_InspectionFalse.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_InspectionFalse.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_InspectionFalse.Location = new System.Drawing.Point(626, 230);
+ this.metroButton_InspectionFalse.Name = "metroButton_InspectionFalse";
+ this.metroButton_InspectionFalse.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_InspectionFalse.TabIndex = 9;
+ this.metroButton_InspectionFalse.Text = "서류 미비 전환";
+ this.metroButton_InspectionFalse.UseSelectable = true;
+ this.metroButton_InspectionFalse.Click += new System.EventHandler(this.metroButton_InspectionFalse_Click);
+ //
+ // metroButton_InspectionTrue
+ //
+ this.metroButton_InspectionTrue.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_InspectionTrue.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_InspectionTrue.Location = new System.Drawing.Point(626, 184);
+ this.metroButton_InspectionTrue.Name = "metroButton_InspectionTrue";
+ this.metroButton_InspectionTrue.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_InspectionTrue.TabIndex = 8;
+ this.metroButton_InspectionTrue.Text = "서류 완료 전환";
+ this.metroButton_InspectionTrue.UseSelectable = true;
+ this.metroButton_InspectionTrue.Click += new System.EventHandler(this.metroButton_InspectionTrue_Click);
+ //
+ // metroButton_UpdateUser
+ //
+ this.metroButton_UpdateUser.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_UpdateUser.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_UpdateUser.Location = new System.Drawing.Point(626, 138);
+ this.metroButton_UpdateUser.Name = "metroButton_UpdateUser";
+ this.metroButton_UpdateUser.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_UpdateUser.TabIndex = 7;
+ this.metroButton_UpdateUser.Text = "당첨 처리";
+ this.metroButton_UpdateUser.UseSelectable = true;
+ this.metroButton_UpdateUser.Click += new System.EventHandler(this.metroButton_UpdateUser_Click);
+ //
// dataGridView_List
//
this.dataGridView_List.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@@ -138,131 +277,10 @@
this.dataGridView_List.Name = "dataGridView_List";
this.dataGridView_List.ReadOnly = true;
this.dataGridView_List.RowTemplate.Height = 23;
+ this.dataGridView_List.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView_List.Size = new System.Drawing.Size(600, 330);
this.dataGridView_List.TabIndex = 6;
//
- // metroButton2
- //
- this.metroButton2.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.metroButton2.Location = new System.Drawing.Point(640, 138);
- this.metroButton2.Name = "metroButton2";
- this.metroButton2.Size = new System.Drawing.Size(90, 40);
- this.metroButton2.TabIndex = 7;
- this.metroButton2.Text = "metroButton2";
- this.metroButton2.UseSelectable = true;
- //
- // metroButton3
- //
- this.metroButton3.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.metroButton3.Location = new System.Drawing.Point(640, 184);
- this.metroButton3.Name = "metroButton3";
- this.metroButton3.Size = new System.Drawing.Size(90, 40);
- this.metroButton3.TabIndex = 8;
- this.metroButton3.Text = "metroButton2";
- this.metroButton3.UseSelectable = true;
- //
- // metroButton4
- //
- this.metroButton4.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.metroButton4.Location = new System.Drawing.Point(640, 230);
- this.metroButton4.Name = "metroButton4";
- this.metroButton4.Size = new System.Drawing.Size(90, 40);
- this.metroButton4.TabIndex = 9;
- this.metroButton4.Text = "metroButton2";
- this.metroButton4.UseSelectable = true;
- //
- // groupBox2
- //
- this.groupBox2.BackColor = System.Drawing.Color.Transparent;
- this.groupBox2.Controls.Add(this.metroLabel2);
- this.groupBox2.Controls.Add(this.metroLabel1);
- this.groupBox2.Controls.Add(this.metroButton5);
- this.groupBox2.Controls.Add(this.metroTextBox2);
- this.groupBox2.Controls.Add(this.metroComboBox2);
- this.groupBox2.Location = new System.Drawing.Point(200, 20);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(530, 90);
- this.groupBox2.TabIndex = 8;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "검색";
- //
- // metroComboBox2
- //
- this.metroComboBox2.FormattingEnabled = true;
- this.metroComboBox2.ItemHeight = 23;
- this.metroComboBox2.Location = new System.Drawing.Point(30, 40);
- this.metroComboBox2.Name = "metroComboBox2";
- this.metroComboBox2.Size = new System.Drawing.Size(208, 29);
- this.metroComboBox2.TabIndex = 3;
- this.metroComboBox2.UseSelectable = true;
- //
- // metroButton5
- //
- this.metroButton5.Location = new System.Drawing.Point(422, 40);
- this.metroButton5.Name = "metroButton5";
- this.metroButton5.Size = new System.Drawing.Size(75, 23);
- this.metroButton5.TabIndex = 5;
- this.metroButton5.Text = "검색";
- this.metroButton5.UseSelectable = true;
- //
- // metroTextBox2
- //
- //
- //
- //
- this.metroTextBox2.CustomButton.Image = null;
- this.metroTextBox2.CustomButton.Location = new System.Drawing.Point(144, 1);
- this.metroTextBox2.CustomButton.Name = "";
- this.metroTextBox2.CustomButton.Size = new System.Drawing.Size(21, 21);
- this.metroTextBox2.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
- this.metroTextBox2.CustomButton.TabIndex = 1;
- this.metroTextBox2.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
- this.metroTextBox2.CustomButton.UseSelectable = true;
- this.metroTextBox2.CustomButton.Visible = false;
- this.metroTextBox2.Lines = new string[0];
- this.metroTextBox2.Location = new System.Drawing.Point(250, 40);
- this.metroTextBox2.MaxLength = 32767;
- this.metroTextBox2.Name = "metroTextBox2";
- this.metroTextBox2.PasswordChar = '\0';
- this.metroTextBox2.ScrollBars = System.Windows.Forms.ScrollBars.None;
- this.metroTextBox2.SelectedText = "";
- this.metroTextBox2.SelectionLength = 0;
- this.metroTextBox2.SelectionStart = 0;
- this.metroTextBox2.ShortcutsEnabled = true;
- this.metroTextBox2.Size = new System.Drawing.Size(166, 23);
- this.metroTextBox2.TabIndex = 4;
- this.metroTextBox2.UseSelectable = true;
- this.metroTextBox2.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
- this.metroTextBox2.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
- //
- // metroButton1
- //
- this.metroButton1.Anchor = System.Windows.Forms.AnchorStyles.Right;
- this.metroButton1.Location = new System.Drawing.Point(640, 276);
- this.metroButton1.Name = "metroButton1";
- this.metroButton1.Size = new System.Drawing.Size(90, 40);
- this.metroButton1.TabIndex = 10;
- this.metroButton1.Text = "metroButton2";
- this.metroButton1.UseSelectable = true;
- //
- // metroLabel1
- //
- this.metroLabel1.AutoSize = true;
- this.metroLabel1.Location = new System.Drawing.Point(30, 20);
- this.metroLabel1.Name = "metroLabel1";
- this.metroLabel1.Size = new System.Drawing.Size(69, 19);
- this.metroLabel1.TabIndex = 6;
- this.metroLabel1.Text = "검색 종류";
- //
- // metroLabel2
- //
- this.metroLabel2.AutoSize = true;
- this.metroLabel2.Location = new System.Drawing.Point(250, 20);
- this.metroLabel2.Name = "metroLabel2";
- this.metroLabel2.Size = new System.Drawing.Size(51, 19);
- this.metroLabel2.TabIndex = 6;
- this.metroLabel2.Text = "검색어";
- //
// ApplicantList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -274,9 +292,9 @@
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.metroPanel1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).EndInit();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).EndInit();
this.ResumeLayout(false);
}
@@ -284,20 +302,21 @@
#endregion
private System.Windows.Forms.GroupBox groupBox1;
- private MetroFramework.Controls.MetroRadioButton metroRadioButton3;
- private MetroFramework.Controls.MetroRadioButton metroRadioButton2;
- private MetroFramework.Controls.MetroRadioButton metroRadioButton1;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionFalse;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionTrue;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionAll;
private MetroFramework.Controls.MetroPanel metroPanel1;
private System.Windows.Forms.GroupBox groupBox2;
- private MetroFramework.Controls.MetroButton metroButton5;
- private MetroFramework.Controls.MetroTextBox metroTextBox2;
- private MetroFramework.Controls.MetroComboBox metroComboBox2;
- private MetroFramework.Controls.MetroButton metroButton4;
- private MetroFramework.Controls.MetroButton metroButton3;
- private MetroFramework.Controls.MetroButton metroButton2;
+ private MetroFramework.Controls.MetroButton metroButton_Search;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Search;
+ private MetroFramework.Controls.MetroComboBox metroComboBox_SearchType;
+ private MetroFramework.Controls.MetroButton metroButton_InspectionFalse;
+ private MetroFramework.Controls.MetroButton metroButton_InspectionTrue;
+ private MetroFramework.Controls.MetroButton metroButton_UpdateUser;
private System.Windows.Forms.DataGridView dataGridView_List;
- private MetroFramework.Controls.MetroButton metroButton1;
+ private MetroFramework.Controls.MetroButton metroButton_Delete;
private MetroFramework.Controls.MetroLabel metroLabel2;
private MetroFramework.Controls.MetroLabel metroLabel1;
+ private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
}
}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.cs
index 73a38a6..1cfb3c2 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.cs
@@ -1,53 +1,231 @@
-using System;
+using HSUCO_Cargo_Garage_Operation_Program.CustomForm;
+using MetroFramework;
+using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
-using System.Drawing;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
{
public partial class ApplicantList : UserControl
{
- public ApplicantList()
+ public ApplicantList() => InitializeComponent();
+
+ void ApplicantList_Load(object sender, EventArgs e)
{
- InitializeComponent();
+ metroComboBox_SearchType.SelectedIndex = 0;
}
- private void ApplicantList_Load(object sender, EventArgs e)
+ List InspectionType()
{
- InitializeDataGrid();
- // 최초 데이타 로딩
-
- }
- private void InitializeDataGrid()
- {
- dataGridView_List.Rows.Clear();
- dataGridView_List.Columns.Clear();
+ var applicants = Database.GetApplicant();
+ List nowApplicants;
- var checkColumn = new DataGridViewCheckBoxColumn
+ if (metroRadioButton_InspectionTrue.Checked)
{
- Name = "check",
- HeaderText = "선택"
+ nowApplicants = applicants.Where(x => x.Inspection).ToList();
+ }
+ else if (metroRadioButton_InspectionFalse.Checked)
+ {
+ nowApplicants = applicants.Where(x => !x.Inspection).ToList();
+ }
+ else
+ {
+ nowApplicants = applicants;
+ }
- };
- dataGridView_List.Columns.Add(checkColumn);
- dataGridView_List.Columns.Add("RegistrationNumberTruck", "차량번호(화물)");
-
- dataGridView_List.Columns.Add("RegistrationNumberPassenger", "차량번호(승용)");
- dataGridView_List.Columns.Add("Name", "이름");
- dataGridView_List.Columns.Add("Phone", "연락처");
- dataGridView_List.Columns.Add("Address", "주소");
- dataGridView_List.Columns.Add("DateOfApplication", "신청일");
- dataGridView_List.Columns.Add("Inspection", "서류 검토");
+ return nowApplicants;
+ }
+
+ void DataChange()
+ {
+ var nowApplicants = InspectionType();
+
+ switch (metroComboBox_SearchType.SelectedIndex)
+ {
+ case 0:
+ nowApplicants = nowApplicants.Where(x => x.RegistrationNumberTruck.Contains(metroTextBox_Search.Text.Trim())).ToList();
+
+ break;
+ case 1:
+ nowApplicants = nowApplicants.Where(x => x.RegistrationNumberPassenger.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 2:
+ nowApplicants = nowApplicants.Where(x => x.Name.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 3:
+ nowApplicants = nowApplicants.Where(x => x.Phone.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 4:
+ nowApplicants = nowApplicants.Where(x => x.Address.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+
+ }
+
+ var dataTable = new DataTable();
+ dataTable.Columns.Add("차량번호(화물)");
+ dataTable.Columns.Add("차량번호(승용)");
+ dataTable.Columns.Add("이름");
+ dataTable.Columns.Add("연락처");
+ dataTable.Columns.Add("주소");
+ dataTable.Columns.Add("신청일");
+ dataTable.Columns.Add("서류 검토");
+
+ for (int i = 0; i < nowApplicants.Count; i++)
+ {
+ dataTable.Rows
+ .Add(
+ nowApplicants[i].RegistrationNumberTruck,
+ nowApplicants[i].RegistrationNumberPassenger,
+ nowApplicants[i].Name,
+ nowApplicants[i].Phone,
+ nowApplicants[i].Address,
+ nowApplicants[i].DateOfApplication,
+ nowApplicants[i].Inspection ? "Y" : "N"
+
+ );
+ }
+
+ dataGridView_List.DataSource = dataTable;
+ dataGridView_List.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
+ dataGridView_List.Columns[0].MinimumWidth = 100;
+ dataGridView_List.Columns[0].FillWeight = 100;
+
+ dataGridView_List.Columns[1].MinimumWidth = 100;
+ dataGridView_List.Columns[1].FillWeight = 100;
+ dataGridView_List.Columns[2].MinimumWidth = 60;
+ dataGridView_List.Columns[2].FillWeight = 60;
-
+ }
+ void metroButton_Search_Click(object sender, EventArgs e) => DataChange();
+
+ void metroButton_InspectionTrue_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[6].Value.ToString() == "N")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 전환할수 있는 건수가 없습니다.", "서류 완료 전환", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ var message = "선태하신 전체 건수(" + allCount + ")중 서류 미비 상태인 건수(" + RegistrationNumberTruck.Count + ")를 서류 완료 상태로 전환합니다.";
+
+ if (MetroMessageBox.Show(this, message, "서류 완료 전환", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ Database.ChangeInspection(RegistrationNumberTruck, true);
+ }
+ }
+
+ DataChange();
+ }
+
+ void metroButton_InspectionFalse_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[6].Value.ToString() == "Y")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 전환할수 있는 건수가 없습니다.", "서류 미비 전환", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ var message = "선태하신 전체 건수(" + allCount + ")중 서류 완료 상태인 건수(" + RegistrationNumberTruck.Count + ")를 서류 미비 상태로 전환합니다.";
+
+ if (MetroMessageBox.Show(this, message, "서류 미비 전환", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ Database.ChangeInspection(RegistrationNumberTruck, false);
+ }
+ }
+
+ DataChange();
+ }
+
+ void metroButton_Delete_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+
+ var message = "선태하신 " + allCount + "건을 삭제 하시겠습니까?";
+
+ if (MetroMessageBox.Show(this, message, "삭제", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ var deleteReason = new DeleteReason();
+
+ if (deleteReason.ShowDialog() == DialogResult.OK)
+ {
+ Database.DeleteInspection(RegistrationNumberTruck, deleteReason.ResultName, deleteReason.ResultReason);
+ DataChange();
+ }
+ }
+ }
+
+ void metroButton_UpdateUser_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[6].Value.ToString() == "Y")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 당첨 처리 할수 있는 건이 없습니다.", "당첨 처리", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+
+ var message = "선태하신 " + allCount + "건을 당첨 하시겠습니까?";
+
+ if (MetroMessageBox.Show(this, message, "이용자로 변경", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ var promotion = new Promotion();
+
+ if (promotion.ShowDialog() == DialogResult.OK)
+ {
+ Database.AddUserList(RegistrationNumberTruck, promotion.StartDate, promotion.EndDate);
+ DataChange();
+ }
+ }
}
}
-}
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.resx
index 1af7de1..69f943d 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.resx
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/ApplicantList.resx
@@ -117,4 +117,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 17, 17
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.Designer.cs
new file mode 100644
index 0000000..b5a2b12
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.Designer.cs
@@ -0,0 +1,307 @@
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
+{
+ partial class UserList
+ {
+ ///
+ /// 필수 디자이너 변수입니다.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 사용 중인 모든 리소스를 정리합니다.
+ ///
+ /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 구성 요소 디자이너에서 생성한 코드
+
+ ///
+ /// 디자이너 지원에 필요한 메서드입니다.
+ /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.metroRadioButton_EndUser = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_UseUser = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionAll = new MetroFramework.Controls.MetroRadioButton();
+ this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
+ this.metroButton_ExportExcel = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Refund = new MetroFramework.Controls.MetroButton();
+ this.metroButton_Extended = new MetroFramework.Controls.MetroButton();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroButton_Search = new MetroFramework.Controls.MetroButton();
+ this.metroTextBox_Search = new MetroFramework.Controls.MetroTextBox();
+ this.metroComboBox_SearchType = new MetroFramework.Controls.MetroComboBox();
+ this.dataGridView_List = new System.Windows.Forms.DataGridView();
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
+ this.groupBox1.SuspendLayout();
+ this.metroPanel1.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).BeginInit();
+ this.SuspendLayout();
+ //
+ // groupBox1
+ //
+ this.groupBox1.BackColor = System.Drawing.Color.Transparent;
+ this.groupBox1.Controls.Add(this.metroRadioButton_EndUser);
+ this.groupBox1.Controls.Add(this.metroRadioButton_UseUser);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionAll);
+ this.groupBox1.Location = new System.Drawing.Point(20, 20);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(150, 90);
+ this.groupBox1.TabIndex = 4;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "그룹 필터";
+ //
+ // metroRadioButton_EndUser
+ //
+ this.metroRadioButton_EndUser.AutoSize = true;
+ this.metroRadioButton_EndUser.Location = new System.Drawing.Point(30, 60);
+ this.metroRadioButton_EndUser.Name = "metroRadioButton_EndUser";
+ this.metroRadioButton_EndUser.Size = new System.Drawing.Size(98, 15);
+ this.metroRadioButton_EndUser.TabIndex = 2;
+ this.metroRadioButton_EndUser.Text = "종료된 이용자";
+ this.metroRadioButton_EndUser.UseSelectable = true;
+ //
+ // metroRadioButton_UseUser
+ //
+ this.metroRadioButton_UseUser.AutoSize = true;
+ this.metroRadioButton_UseUser.Location = new System.Drawing.Point(30, 40);
+ this.metroRadioButton_UseUser.Name = "metroRadioButton_UseUser";
+ this.metroRadioButton_UseUser.Size = new System.Drawing.Size(74, 15);
+ this.metroRadioButton_UseUser.TabIndex = 1;
+ this.metroRadioButton_UseUser.Text = "현 이용자";
+ this.metroRadioButton_UseUser.UseSelectable = true;
+ //
+ // metroRadioButton_InspectionAll
+ //
+ this.metroRadioButton_InspectionAll.AutoSize = true;
+ this.metroRadioButton_InspectionAll.Checked = true;
+ this.metroRadioButton_InspectionAll.Location = new System.Drawing.Point(30, 20);
+ this.metroRadioButton_InspectionAll.Name = "metroRadioButton_InspectionAll";
+ this.metroRadioButton_InspectionAll.Size = new System.Drawing.Size(47, 15);
+ this.metroRadioButton_InspectionAll.TabIndex = 0;
+ this.metroRadioButton_InspectionAll.TabStop = true;
+ this.metroRadioButton_InspectionAll.Text = "전체";
+ this.metroRadioButton_InspectionAll.UseSelectable = true;
+ //
+ // metroPanel1
+ //
+ this.metroPanel1.Controls.Add(this.metroButton_ExportExcel);
+ this.metroPanel1.Controls.Add(this.metroButton_Refund);
+ this.metroPanel1.Controls.Add(this.metroButton_Extended);
+ this.metroPanel1.Controls.Add(this.groupBox2);
+ this.metroPanel1.Controls.Add(this.dataGridView_List);
+ this.metroPanel1.Controls.Add(this.groupBox1);
+ this.metroPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.metroPanel1.HorizontalScrollbarBarColor = true;
+ this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
+ this.metroPanel1.HorizontalScrollbarSize = 10;
+ this.metroPanel1.Location = new System.Drawing.Point(0, 0);
+ this.metroPanel1.Margin = new System.Windows.Forms.Padding(0);
+ this.metroPanel1.Name = "metroPanel1";
+ this.metroPanel1.Size = new System.Drawing.Size(750, 470);
+ this.metroPanel1.TabIndex = 0;
+ this.metroPanel1.VerticalScrollbarBarColor = true;
+ this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
+ this.metroPanel1.VerticalScrollbarSize = 10;
+ //
+ // metroButton_ExportExcel
+ //
+ this.metroButton_ExportExcel.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_ExportExcel.BackgroundImage = global::HSUCO_Cargo_Garage_Operation_Program.Properties.Resources.file_type_excel_icon_130611;
+ this.metroButton_ExportExcel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
+ this.metroButton_ExportExcel.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_ExportExcel.Location = new System.Drawing.Point(626, 212);
+ this.metroButton_ExportExcel.Name = "metroButton_ExportExcel";
+ this.metroButton_ExportExcel.Size = new System.Drawing.Size(121, 115);
+ this.metroButton_ExportExcel.TabIndex = 9;
+ this.metroButton_ExportExcel.UseSelectable = true;
+ this.metroButton_ExportExcel.Click += new System.EventHandler(this.metroButton_ExportExcel_Click);
+ //
+ // metroButton_Refund
+ //
+ this.metroButton_Refund.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_Refund.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Refund.Location = new System.Drawing.Point(626, 166);
+ this.metroButton_Refund.Name = "metroButton_Refund";
+ this.metroButton_Refund.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_Refund.TabIndex = 8;
+ this.metroButton_Refund.Text = "환불";
+ this.metroButton_Refund.UseSelectable = true;
+ //
+ // metroButton_Extended
+ //
+ this.metroButton_Extended.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_Extended.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Extended.Location = new System.Drawing.Point(626, 120);
+ this.metroButton_Extended.Name = "metroButton_Extended";
+ this.metroButton_Extended.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_Extended.TabIndex = 8;
+ this.metroButton_Extended.Text = "연장 처리";
+ this.metroButton_Extended.UseSelectable = true;
+ this.metroButton_Extended.Click += new System.EventHandler(this.metroButton_Extended_Click);
+ //
+ // groupBox2
+ //
+ this.groupBox2.BackColor = System.Drawing.Color.Transparent;
+ this.groupBox2.Controls.Add(this.metroLabel2);
+ this.groupBox2.Controls.Add(this.metroLabel1);
+ this.groupBox2.Controls.Add(this.metroButton_Search);
+ this.groupBox2.Controls.Add(this.metroTextBox_Search);
+ this.groupBox2.Controls.Add(this.metroComboBox_SearchType);
+ this.groupBox2.Location = new System.Drawing.Point(200, 20);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(530, 90);
+ this.groupBox2.TabIndex = 8;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "검색";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(156, 16);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(51, 19);
+ this.metroLabel2.TabIndex = 6;
+ this.metroLabel2.Text = "검색어";
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 20);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(69, 19);
+ this.metroLabel1.TabIndex = 6;
+ this.metroLabel1.Text = "검색 종류";
+ //
+ // metroButton_Search
+ //
+ this.metroButton_Search.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Search.Location = new System.Drawing.Point(328, 20);
+ this.metroButton_Search.Name = "metroButton_Search";
+ this.metroButton_Search.Size = new System.Drawing.Size(131, 49);
+ this.metroButton_Search.TabIndex = 5;
+ this.metroButton_Search.Text = "조회";
+ this.metroButton_Search.UseSelectable = true;
+ this.metroButton_Search.Click += new System.EventHandler(this.metroButton_Search_Click);
+ //
+ // metroTextBox_Search
+ //
+ //
+ //
+ //
+ this.metroTextBox_Search.CustomButton.Image = null;
+ this.metroTextBox_Search.CustomButton.Location = new System.Drawing.Point(144, 1);
+ this.metroTextBox_Search.CustomButton.Name = "";
+ this.metroTextBox_Search.CustomButton.Size = new System.Drawing.Size(21, 21);
+ this.metroTextBox_Search.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Search.CustomButton.TabIndex = 1;
+ this.metroTextBox_Search.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Search.CustomButton.UseSelectable = true;
+ this.metroTextBox_Search.CustomButton.Visible = false;
+ this.metroTextBox_Search.Lines = new string[0];
+ this.metroTextBox_Search.Location = new System.Drawing.Point(156, 46);
+ this.metroTextBox_Search.MaxLength = 32767;
+ this.metroTextBox_Search.Name = "metroTextBox_Search";
+ this.metroTextBox_Search.PasswordChar = '\0';
+ this.metroTextBox_Search.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Search.SelectedText = "";
+ this.metroTextBox_Search.SelectionLength = 0;
+ this.metroTextBox_Search.SelectionStart = 0;
+ this.metroTextBox_Search.ShortcutsEnabled = true;
+ this.metroTextBox_Search.Size = new System.Drawing.Size(166, 23);
+ this.metroTextBox_Search.TabIndex = 4;
+ this.metroTextBox_Search.UseSelectable = true;
+ this.metroTextBox_Search.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Search.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroComboBox_SearchType
+ //
+ this.metroComboBox_SearchType.FormattingEnabled = true;
+ this.metroComboBox_SearchType.ItemHeight = 23;
+ this.metroComboBox_SearchType.Items.AddRange(new object[] {
+ "차량번호(화물)",
+ "차량번호(승용)",
+ "이름",
+ "연락처",
+ "주소"});
+ this.metroComboBox_SearchType.Location = new System.Drawing.Point(30, 40);
+ this.metroComboBox_SearchType.Name = "metroComboBox_SearchType";
+ this.metroComboBox_SearchType.Size = new System.Drawing.Size(120, 29);
+ this.metroComboBox_SearchType.TabIndex = 3;
+ this.metroComboBox_SearchType.UseSelectable = true;
+ //
+ // dataGridView_List
+ //
+ this.dataGridView_List.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView_List.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.dataGridView_List.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridView_List.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.dataGridView_List.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView_List.Location = new System.Drawing.Point(20, 120);
+ this.dataGridView_List.Name = "dataGridView_List";
+ this.dataGridView_List.ReadOnly = true;
+ this.dataGridView_List.RowTemplate.Height = 23;
+ this.dataGridView_List.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView_List.Size = new System.Drawing.Size(600, 330);
+ this.dataGridView_List.TabIndex = 6;
+ //
+ // UserList
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.metroPanel1);
+ this.Name = "UserList";
+ this.Size = new System.Drawing.Size(750, 470);
+ this.Load += new System.EventHandler(this.ApplicantList_Load);
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ this.metroPanel1.ResumeLayout(false);
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.GroupBox groupBox1;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_EndUser;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_UseUser;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionAll;
+ private MetroFramework.Controls.MetroPanel metroPanel1;
+ private System.Windows.Forms.GroupBox groupBox2;
+ private MetroFramework.Controls.MetroButton metroButton_Search;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Search;
+ private MetroFramework.Controls.MetroComboBox metroComboBox_SearchType;
+ private System.Windows.Forms.DataGridView dataGridView_List;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
+ private MetroFramework.Controls.MetroButton metroButton_Refund;
+ private MetroFramework.Controls.MetroButton metroButton_Extended;
+ private MetroFramework.Controls.MetroButton metroButton_ExportExcel;
+ }
+}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.cs
new file mode 100644
index 0000000..24fdcc4
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.cs
@@ -0,0 +1,165 @@
+using MetroFramework;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Diagnostics;
+using System.Linq;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
+{
+ public partial class UserList : UserControl
+ {
+ public UserList() => InitializeComponent();
+
+ void ApplicantList_Load(object sender, EventArgs e)
+ {
+ metroComboBox_SearchType.SelectedIndex = 0;
+ }
+
+ List UserType()
+ {
+ // 순위?
+ var userList = Database.GetUserList();
+ List nowUserList;
+
+ if (metroRadioButton_UseUser.Checked)
+ {
+ nowUserList = userList.Where(x => x.DateEnd >= DateTime.Now && !x.RefundCheck).ToList();
+ }
+ else if (metroRadioButton_EndUser.Checked)
+ {
+ nowUserList = userList.Where(x => x.DateEnd <= DateTime.Now || x.RefundCheck).ToList();
+ }
+ else
+ {
+ nowUserList = userList;
+ }
+
+ return nowUserList;
+ }
+
+ void DataChange()
+ {
+ var nowUserList = UserType();
+
+ switch (metroComboBox_SearchType.SelectedIndex)
+ {
+ case 0:
+ nowUserList = nowUserList.Where(x => x.RegistrationNumberTruck.Contains(metroTextBox_Search.Text.Trim())).ToList();
+
+ break;
+ case 1:
+ nowUserList = nowUserList.Where(x => x.RegistrationNumberPassenger.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 2:
+ nowUserList = nowUserList.Where(x => x.Name.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 3:
+ nowUserList = nowUserList.Where(x => x.Phone.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 4:
+ nowUserList = nowUserList.Where(x => x.Address.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+
+ }
+
+ var dataTable = new DataTable();
+
+ dataTable.Columns.Add("차량번호(화물)");
+ dataTable.Columns.Add("차량번호(승용)");
+ dataTable.Columns.Add("이름");
+ dataTable.Columns.Add("연락처");
+ dataTable.Columns.Add("주소");
+ dataTable.Columns.Add("당첨처리일");
+ dataTable.Columns.Add("이용시작일");
+ dataTable.Columns.Add("이용종료일");
+ dataTable.Columns.Add("연장여부");
+ dataTable.Columns.Add("환불령부");
+
+ for (int i = 0; i < nowUserList.Count; i++)
+ {
+ dataTable.Rows
+ .Add(
+
+ nowUserList[i].RegistrationNumberTruck,
+ nowUserList[i].RegistrationNumberPassenger,
+ nowUserList[i].Name,
+ nowUserList[i].Phone,
+ nowUserList[i].Address,
+ nowUserList[i].DateOfApplicant,
+ nowUserList[i].DateStart,
+ nowUserList[i].DateEnd,
+ nowUserList[i].Extended ? "Y" : "N",
+ nowUserList[i].RefundCheck ? "Y" : "N"
+
+ );
+ }
+
+ dataGridView_List.DataSource = dataTable;
+ dataGridView_List.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
+ dataGridView_List.Columns[0].MinimumWidth = 100;
+ dataGridView_List.Columns[0].FillWeight = 100;
+
+ dataGridView_List.Columns[1].MinimumWidth = 100;
+ dataGridView_List.Columns[1].FillWeight = 100;
+ dataGridView_List.Columns[2].MinimumWidth = 60;
+ dataGridView_List.Columns[2].FillWeight = 60;
+ }
+
+ void metroButton_Search_Click(object sender, EventArgs e) => DataChange();
+
+ void metroButton_ExportExcel_Click(object sender, EventArgs e)
+ {
+ var excelWrapper = new ExcelWrapper();
+
+ var saveFileDialog = new SaveFileDialog();
+ saveFileDialog.Filter = "XLSX files (*.xlsx)|*.xlsx";
+
+ if (saveFileDialog.ShowDialog() == DialogResult.OK)
+ {
+ var result = excelWrapper.WriteDataTableToExcel((DataTable)dataGridView_List.DataSource, "UserList", saveFileDialog.FileName);
+
+ if (!result)
+ {
+ Debug.Write("실패");
+ }
+ }
+ }
+
+ void metroButton_Extended_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var extendeds = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[8].Value.ToString() == "N")
+ {
+ var extended = new Extended();
+ extended.RegistrationNumberTruck = dataGridView_List.SelectedRows[i].Cells[0].Value.ToString();
+ extended.DateEnd = DateTime.Parse(dataGridView_List.SelectedRows[i].Cells[7].Value.ToString());
+ extendeds.Add(extended);
+ }
+ }
+
+ if (extendeds.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 연장할수 있는 건수가 없습니다.", "서류 완료 전환", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ var message = "선태하신 전체 건수(" + allCount + ")중 미연장 이였던 건수(" + extendeds.Count + ")를 1년 연장 처리합니다 .";
+
+ if (MetroMessageBox.Show(this, message, "1년 연장", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ Database.UpdateExtended(extendeds);
+ }
+ }
+
+ DataChange();
+ }
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.resx
new file mode 100644
index 0000000..69f943d
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.Designer.cs
new file mode 100644
index 0000000..0b9528d
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.Designer.cs
@@ -0,0 +1,322 @@
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
+{
+ partial class WaitingList
+ {
+ ///
+ /// 필수 디자이너 변수입니다.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 사용 중인 모든 리소스를 정리합니다.
+ ///
+ /// 관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 구성 요소 디자이너에서 생성한 코드
+
+ ///
+ /// 디자이너 지원에 필요한 메서드입니다.
+ /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
+ ///
+ private void InitializeComponent()
+ {
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.metroRadioButton_InspectionFalse = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionTrue = new MetroFramework.Controls.MetroRadioButton();
+ this.metroRadioButton_InspectionAll = new MetroFramework.Controls.MetroRadioButton();
+ this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
+ this.metroButton_Delete = new MetroFramework.Controls.MetroButton();
+ this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
+ this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
+ this.metroButton_Search = new MetroFramework.Controls.MetroButton();
+ this.metroTextBox_Search = new MetroFramework.Controls.MetroTextBox();
+ this.metroComboBox_SearchType = new MetroFramework.Controls.MetroComboBox();
+ this.metroButton_InspectionFalse = new MetroFramework.Controls.MetroButton();
+ this.metroButton_InspectionTrue = new MetroFramework.Controls.MetroButton();
+ this.metroButton_UpdateUser = new MetroFramework.Controls.MetroButton();
+ this.dataGridView_List = new System.Windows.Forms.DataGridView();
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
+ this.groupBox1.SuspendLayout();
+ this.metroPanel1.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).BeginInit();
+ this.SuspendLayout();
+ //
+ // groupBox1
+ //
+ this.groupBox1.BackColor = System.Drawing.Color.Transparent;
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionFalse);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionTrue);
+ this.groupBox1.Controls.Add(this.metroRadioButton_InspectionAll);
+ this.groupBox1.Location = new System.Drawing.Point(20, 20);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(150, 90);
+ this.groupBox1.TabIndex = 4;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "그룹 필터";
+ //
+ // metroRadioButton_InspectionFalse
+ //
+ this.metroRadioButton_InspectionFalse.AutoSize = true;
+ this.metroRadioButton_InspectionFalse.Location = new System.Drawing.Point(30, 60);
+ this.metroRadioButton_InspectionFalse.Name = "metroRadioButton_InspectionFalse";
+ this.metroRadioButton_InspectionFalse.Size = new System.Drawing.Size(74, 15);
+ this.metroRadioButton_InspectionFalse.TabIndex = 2;
+ this.metroRadioButton_InspectionFalse.Text = "서류 미비";
+ this.metroRadioButton_InspectionFalse.UseSelectable = true;
+ //
+ // metroRadioButton_InspectionTrue
+ //
+ this.metroRadioButton_InspectionTrue.AutoSize = true;
+ this.metroRadioButton_InspectionTrue.Location = new System.Drawing.Point(30, 40);
+ this.metroRadioButton_InspectionTrue.Name = "metroRadioButton_InspectionTrue";
+ this.metroRadioButton_InspectionTrue.Size = new System.Drawing.Size(74, 15);
+ this.metroRadioButton_InspectionTrue.TabIndex = 1;
+ this.metroRadioButton_InspectionTrue.Text = "서류 완료";
+ this.metroRadioButton_InspectionTrue.UseSelectable = true;
+ //
+ // metroRadioButton_InspectionAll
+ //
+ this.metroRadioButton_InspectionAll.AutoSize = true;
+ this.metroRadioButton_InspectionAll.Checked = true;
+ this.metroRadioButton_InspectionAll.Location = new System.Drawing.Point(30, 20);
+ this.metroRadioButton_InspectionAll.Name = "metroRadioButton_InspectionAll";
+ this.metroRadioButton_InspectionAll.Size = new System.Drawing.Size(47, 15);
+ this.metroRadioButton_InspectionAll.TabIndex = 0;
+ this.metroRadioButton_InspectionAll.TabStop = true;
+ this.metroRadioButton_InspectionAll.Text = "전체";
+ this.metroRadioButton_InspectionAll.UseSelectable = true;
+ //
+ // metroPanel1
+ //
+ this.metroPanel1.Controls.Add(this.metroButton_Delete);
+ this.metroPanel1.Controls.Add(this.groupBox2);
+ this.metroPanel1.Controls.Add(this.metroButton_InspectionFalse);
+ this.metroPanel1.Controls.Add(this.metroButton_InspectionTrue);
+ this.metroPanel1.Controls.Add(this.metroButton_UpdateUser);
+ this.metroPanel1.Controls.Add(this.dataGridView_List);
+ this.metroPanel1.Controls.Add(this.groupBox1);
+ this.metroPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.metroPanel1.HorizontalScrollbarBarColor = true;
+ this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
+ this.metroPanel1.HorizontalScrollbarSize = 10;
+ this.metroPanel1.Location = new System.Drawing.Point(0, 0);
+ this.metroPanel1.Margin = new System.Windows.Forms.Padding(0);
+ this.metroPanel1.Name = "metroPanel1";
+ this.metroPanel1.Size = new System.Drawing.Size(750, 470);
+ this.metroPanel1.TabIndex = 0;
+ this.metroPanel1.VerticalScrollbarBarColor = true;
+ this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
+ this.metroPanel1.VerticalScrollbarSize = 10;
+ //
+ // metroButton_Delete
+ //
+ this.metroButton_Delete.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_Delete.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Delete.Location = new System.Drawing.Point(626, 276);
+ this.metroButton_Delete.Name = "metroButton_Delete";
+ this.metroButton_Delete.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_Delete.TabIndex = 10;
+ this.metroButton_Delete.Text = "삭제";
+ this.metroButton_Delete.UseSelectable = true;
+ this.metroButton_Delete.Click += new System.EventHandler(this.metroButton_Delete_Click);
+ //
+ // groupBox2
+ //
+ this.groupBox2.BackColor = System.Drawing.Color.Transparent;
+ this.groupBox2.Controls.Add(this.metroLabel2);
+ this.groupBox2.Controls.Add(this.metroLabel1);
+ this.groupBox2.Controls.Add(this.metroButton_Search);
+ this.groupBox2.Controls.Add(this.metroTextBox_Search);
+ this.groupBox2.Controls.Add(this.metroComboBox_SearchType);
+ this.groupBox2.Location = new System.Drawing.Point(200, 20);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(530, 90);
+ this.groupBox2.TabIndex = 8;
+ this.groupBox2.TabStop = false;
+ this.groupBox2.Text = "검색";
+ //
+ // metroLabel2
+ //
+ this.metroLabel2.AutoSize = true;
+ this.metroLabel2.Location = new System.Drawing.Point(156, 16);
+ this.metroLabel2.Name = "metroLabel2";
+ this.metroLabel2.Size = new System.Drawing.Size(51, 19);
+ this.metroLabel2.TabIndex = 6;
+ this.metroLabel2.Text = "검색어";
+ //
+ // metroLabel1
+ //
+ this.metroLabel1.AutoSize = true;
+ this.metroLabel1.Location = new System.Drawing.Point(30, 20);
+ this.metroLabel1.Name = "metroLabel1";
+ this.metroLabel1.Size = new System.Drawing.Size(69, 19);
+ this.metroLabel1.TabIndex = 6;
+ this.metroLabel1.Text = "검색 종류";
+ //
+ // metroButton_Search
+ //
+ this.metroButton_Search.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_Search.Location = new System.Drawing.Point(328, 20);
+ this.metroButton_Search.Name = "metroButton_Search";
+ this.metroButton_Search.Size = new System.Drawing.Size(131, 49);
+ this.metroButton_Search.TabIndex = 5;
+ this.metroButton_Search.Text = "조회";
+ this.metroButton_Search.UseSelectable = true;
+ this.metroButton_Search.Click += new System.EventHandler(this.metroButton_Search_Click);
+ //
+ // metroTextBox_Search
+ //
+ //
+ //
+ //
+ this.metroTextBox_Search.CustomButton.Image = null;
+ this.metroTextBox_Search.CustomButton.Location = new System.Drawing.Point(144, 1);
+ this.metroTextBox_Search.CustomButton.Name = "";
+ this.metroTextBox_Search.CustomButton.Size = new System.Drawing.Size(21, 21);
+ this.metroTextBox_Search.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
+ this.metroTextBox_Search.CustomButton.TabIndex = 1;
+ this.metroTextBox_Search.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
+ this.metroTextBox_Search.CustomButton.UseSelectable = true;
+ this.metroTextBox_Search.CustomButton.Visible = false;
+ this.metroTextBox_Search.Lines = new string[0];
+ this.metroTextBox_Search.Location = new System.Drawing.Point(156, 46);
+ this.metroTextBox_Search.MaxLength = 32767;
+ this.metroTextBox_Search.Name = "metroTextBox_Search";
+ this.metroTextBox_Search.PasswordChar = '\0';
+ this.metroTextBox_Search.ScrollBars = System.Windows.Forms.ScrollBars.None;
+ this.metroTextBox_Search.SelectedText = "";
+ this.metroTextBox_Search.SelectionLength = 0;
+ this.metroTextBox_Search.SelectionStart = 0;
+ this.metroTextBox_Search.ShortcutsEnabled = true;
+ this.metroTextBox_Search.Size = new System.Drawing.Size(166, 23);
+ this.metroTextBox_Search.TabIndex = 4;
+ this.metroTextBox_Search.UseSelectable = true;
+ this.metroTextBox_Search.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
+ this.metroTextBox_Search.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
+ //
+ // metroComboBox_SearchType
+ //
+ this.metroComboBox_SearchType.FormattingEnabled = true;
+ this.metroComboBox_SearchType.ItemHeight = 23;
+ this.metroComboBox_SearchType.Items.AddRange(new object[] {
+ "차량번호(화물)",
+ "차량번호(승용)",
+ "이름",
+ "연락처",
+ "주소"});
+ this.metroComboBox_SearchType.Location = new System.Drawing.Point(30, 40);
+ this.metroComboBox_SearchType.Name = "metroComboBox_SearchType";
+ this.metroComboBox_SearchType.Size = new System.Drawing.Size(120, 29);
+ this.metroComboBox_SearchType.TabIndex = 3;
+ this.metroComboBox_SearchType.UseSelectable = true;
+ //
+ // metroButton_InspectionFalse
+ //
+ this.metroButton_InspectionFalse.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_InspectionFalse.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_InspectionFalse.Location = new System.Drawing.Point(626, 230);
+ this.metroButton_InspectionFalse.Name = "metroButton_InspectionFalse";
+ this.metroButton_InspectionFalse.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_InspectionFalse.TabIndex = 9;
+ this.metroButton_InspectionFalse.Text = "서류 미비 전환";
+ this.metroButton_InspectionFalse.UseSelectable = true;
+ this.metroButton_InspectionFalse.Click += new System.EventHandler(this.metroButton_InspectionFalse_Click);
+ //
+ // metroButton_InspectionTrue
+ //
+ this.metroButton_InspectionTrue.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_InspectionTrue.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_InspectionTrue.Location = new System.Drawing.Point(626, 184);
+ this.metroButton_InspectionTrue.Name = "metroButton_InspectionTrue";
+ this.metroButton_InspectionTrue.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_InspectionTrue.TabIndex = 8;
+ this.metroButton_InspectionTrue.Text = "서류 완료 전환";
+ this.metroButton_InspectionTrue.UseSelectable = true;
+ this.metroButton_InspectionTrue.Click += new System.EventHandler(this.metroButton_InspectionTrue_Click);
+ //
+ // metroButton_UpdateUser
+ //
+ this.metroButton_UpdateUser.Anchor = System.Windows.Forms.AnchorStyles.Right;
+ this.metroButton_UpdateUser.FontSize = MetroFramework.MetroButtonSize.Tall;
+ this.metroButton_UpdateUser.Location = new System.Drawing.Point(626, 138);
+ this.metroButton_UpdateUser.Name = "metroButton_UpdateUser";
+ this.metroButton_UpdateUser.Size = new System.Drawing.Size(121, 40);
+ this.metroButton_UpdateUser.TabIndex = 7;
+ this.metroButton_UpdateUser.Text = "대기자 당첨";
+ this.metroButton_UpdateUser.UseSelectable = true;
+ this.metroButton_UpdateUser.Click += new System.EventHandler(this.metroButton_UpdateUser_Click);
+ //
+ // dataGridView_List
+ //
+ this.dataGridView_List.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dataGridView_List.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
+ this.dataGridView_List.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.dataGridView_List.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+ this.dataGridView_List.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dataGridView_List.Location = new System.Drawing.Point(20, 120);
+ this.dataGridView_List.Name = "dataGridView_List";
+ this.dataGridView_List.ReadOnly = true;
+ this.dataGridView_List.RowTemplate.Height = 23;
+ this.dataGridView_List.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.dataGridView_List.Size = new System.Drawing.Size(600, 330);
+ this.dataGridView_List.TabIndex = 6;
+ //
+ // WaitingList
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.metroPanel1);
+ this.Name = "WaitingList";
+ this.Size = new System.Drawing.Size(750, 470);
+ this.Load += new System.EventHandler(this.ApplicantList_Load);
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
+ this.metroPanel1.ResumeLayout(false);
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.dataGridView_List)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.GroupBox groupBox1;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionFalse;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionTrue;
+ private MetroFramework.Controls.MetroRadioButton metroRadioButton_InspectionAll;
+ private MetroFramework.Controls.MetroPanel metroPanel1;
+ private System.Windows.Forms.GroupBox groupBox2;
+ private MetroFramework.Controls.MetroButton metroButton_Search;
+ private MetroFramework.Controls.MetroTextBox metroTextBox_Search;
+ private MetroFramework.Controls.MetroComboBox metroComboBox_SearchType;
+ private MetroFramework.Controls.MetroButton metroButton_InspectionFalse;
+ private MetroFramework.Controls.MetroButton metroButton_InspectionTrue;
+ private MetroFramework.Controls.MetroButton metroButton_UpdateUser;
+ private System.Windows.Forms.DataGridView dataGridView_List;
+ private MetroFramework.Controls.MetroButton metroButton_Delete;
+ private MetroFramework.Controls.MetroLabel metroLabel2;
+ private MetroFramework.Controls.MetroLabel metroLabel1;
+ private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
+ }
+}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.cs b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.cs
new file mode 100644
index 0000000..a8ebf40
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.cs
@@ -0,0 +1,228 @@
+using HSUCO_Cargo_Garage_Operation_Program.CustomForm;
+using MetroFramework;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Linq;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
+{
+ public partial class WaitingList : UserControl
+ {
+ public WaitingList() => InitializeComponent();
+
+ void ApplicantList_Load(object sender, EventArgs e)
+ {
+ metroComboBox_SearchType.SelectedIndex = 0;
+ }
+
+ List InspectionType()
+ {
+ // 순위?
+ var applicants = Database.GetApplicantWiat();
+ List nowApplicants;
+
+ if (metroRadioButton_InspectionTrue.Checked)
+ {
+ nowApplicants = applicants.Where(x => x.Inspection).ToList();
+ }
+ else if (metroRadioButton_InspectionFalse.Checked)
+ {
+ nowApplicants = applicants.Where(x => !x.Inspection).ToList();
+ }
+ else
+ {
+ nowApplicants = applicants;
+ }
+
+ return nowApplicants;
+ }
+
+ void DataChange()
+ {
+ var nowApplicants = InspectionType();
+
+ switch (metroComboBox_SearchType.SelectedIndex)
+ {
+ case 0:
+ nowApplicants = nowApplicants.Where(x => x.RegistrationNumberTruck.Contains(metroTextBox_Search.Text.Trim())).ToList();
+
+ break;
+ case 1:
+ nowApplicants = nowApplicants.Where(x => x.RegistrationNumberPassenger.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 2:
+ nowApplicants = nowApplicants.Where(x => x.Name.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 3:
+ nowApplicants = nowApplicants.Where(x => x.Phone.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+ case 4:
+ nowApplicants = nowApplicants.Where(x => x.Address.Contains(metroTextBox_Search.Text.Trim())).ToList();
+ break;
+
+ }
+ // 소팅
+ // 가져올때?
+ var dataTable = new DataTable();
+ dataTable.Columns.Add("순위");
+ dataTable.Columns.Add("차량번호(화물)");
+ dataTable.Columns.Add("차량번호(승용)");
+ dataTable.Columns.Add("이름");
+ dataTable.Columns.Add("연락처");
+ dataTable.Columns.Add("주소");
+ dataTable.Columns.Add("신청일");
+ dataTable.Columns.Add("서류 검토");
+
+ for (int i = 0; i < nowApplicants.Count; i++)
+ {
+ dataTable.Rows
+ .Add(
+ (nowApplicants[i].Inspection ? i + 1 : 0),
+ nowApplicants[i].RegistrationNumberTruck,
+ nowApplicants[i].RegistrationNumberPassenger,
+ nowApplicants[i].Name,
+ nowApplicants[i].Phone,
+ nowApplicants[i].Address,
+ nowApplicants[i].DateOfApplication,
+ nowApplicants[i].Inspection ? "Y" : "N"
+
+ );
+ }
+
+ dataGridView_List.DataSource = dataTable;
+ dataGridView_List.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
+ dataGridView_List.Columns[0].MinimumWidth = 100;
+ dataGridView_List.Columns[0].FillWeight = 100;
+
+ dataGridView_List.Columns[1].MinimumWidth = 100;
+ dataGridView_List.Columns[1].FillWeight = 100;
+ dataGridView_List.Columns[2].MinimumWidth = 60;
+ dataGridView_List.Columns[2].FillWeight = 60;
+ }
+
+ void metroButton_Search_Click(object sender, EventArgs e) => DataChange();
+
+ void metroButton_InspectionTrue_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[6].Value.ToString() == "N")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 전환할수 있는 건수가 없습니다.", "서류 완료 전환", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ var message = "선태하신 전체 건수(" + allCount + ")중 서류 미비 상태인 건수(" + RegistrationNumberTruck.Count + ")를 서류 완료 상태로 전환합니다.";
+
+ if (MetroMessageBox.Show(this, message, "서류 완료 전환", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ Database.ChangeInspection(RegistrationNumberTruck, true);
+ }
+ }
+
+ DataChange();
+ }
+
+ void metroButton_InspectionFalse_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ if (dataGridView_List.SelectedRows[i].Cells[6].Value.ToString() == "Y")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "선택하신 건수 중에 전환할수 있는 건수가 없습니다.", "서류 미비 전환", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ else
+ {
+ var message = "선태하신 전체 건수(" + allCount + ")중 서류 완료 상태인 건수(" + RegistrationNumberTruck.Count + ")를 서류 미비 상태로 전환합니다.";
+
+ if (MetroMessageBox.Show(this, message, "서류 미비 전환", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ Database.ChangeInspection(RegistrationNumberTruck, false);
+ }
+ }
+
+ DataChange();
+ }
+
+ void metroButton_Delete_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.SelectedRows.Count;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < dataGridView_List.SelectedRows.Count; i++)
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.SelectedRows[i].Cells[0].Value.ToString());
+ }
+
+ var message = "선태하신 " + allCount + "건을 삭제 하시겠습니까?";
+
+ if (MetroMessageBox.Show(this, message, "삭제", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
+ {
+ var deleteReason = new DeleteReason();
+
+ if (deleteReason.ShowDialog() == DialogResult.OK)
+ {
+ Database.DeleteInspection(RegistrationNumberTruck, deleteReason.ResultName, deleteReason.ResultReason);
+ DataChange();
+ }
+ }
+ }
+
+ void metroButton_UpdateUser_Click(object sender, EventArgs e)
+ {
+ var allCount = dataGridView_List.Rows.Count - 1;
+ if (allCount == 0) return;
+
+ var RegistrationNumberTruck = new List();
+
+ for (int i = 0; i < allCount; i++)
+ {
+ if (dataGridView_List.Rows[i].Cells[7].Value.ToString() == "Y")
+ {
+ RegistrationNumberTruck.Add(dataGridView_List.Rows[i].Cells[1].Value.ToString());
+ }
+ }
+
+ if (RegistrationNumberTruck.Count == 0)
+ {
+ MetroMessageBox.Show(this, "당첨 처리 할수 있는 건이 없습니다.", "당첨 처리", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+
+ var waitingCount = new WaitingCount(allCount, RegistrationNumberTruck.Count);
+
+ if (waitingCount.ShowDialog() == DialogResult.OK)
+ {
+ var list = RegistrationNumberTruck.GetRange(0, waitingCount.ResultCount);
+ Database.AddUserList(list, waitingCount.StartDate, waitingCount.EndDate);
+ DataChange();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.resx b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.resx
new file mode 100644
index 0000000..69f943d
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/DataModel.cs b/HSUCO_Cargo_Garage_Operation_Program/DataModel.cs
index 3347dd8..a2235b9 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/DataModel.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/DataModel.cs
@@ -10,9 +10,27 @@ namespace HSUCO_Cargo_Garage_Operation_Program
public string Name{ get; set; }
public string Phone{ get; set; }
public string Address{ get; set; }
- public int ResidentsType{ get; set; }
public DateTime DateOfApplication{ get; set; }
public bool Inspection{ get; set; }
}
+ public struct User
+ {
+ public string RegistrationNumberTruck { get; set; }
+ public string RegistrationNumberPassenger { get; set; }
+ public string Name { get; set; }
+ public string Phone { get; set; }
+ public string Address { get; set; }
+ public DateTime DateOfApplicant { get; set; }
+ public DateTime DateStart { get; set; }
+ public DateTime DateEnd { get; set; }
+ public bool Extended { get; set; }
+ public bool RefundCheck { get; set; }
+ }
+
+ public struct Extended
+ {
+ public string RegistrationNumberTruck { get; set; }
+ public DateTime DateEnd { get; set; }
+ }
}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Database.cs b/HSUCO_Cargo_Garage_Operation_Program/Database.cs
index 59c5714..a85a590 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/Database.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/Database.cs
@@ -1,23 +1,21 @@
-using System;
+using HSUCO_Cargo_Garage_Operation_Program.CustomUserControl;
+using System;
+using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
namespace HSUCO_Cargo_Garage_Operation_Program
{
-
public static class Database
{
- private static readonly string DBLocation = "database.sqlite";
- private static SQLiteConnection _sqLiteConnection;
+ static readonly string DBLocation = "database.sqlite";
+ static SQLiteConnection _sqLiteConnection;
- private static readonly string CONNECTION_STRING = $"Data Source={DBLocation}; Version=3; Integrated Security=true;";
+ static readonly string CONNECTION_STRING = $"Data Source={DBLocation}; Version=3; Integrated Security=true;";
- static Database()
- {
- CreateDatabaseIfNotExist();
- }
+ static Database() => CreateDatabaseIfNotExist();
- private static void CreateDatabaseIfNotExist()
+ static void CreateDatabaseIfNotExist()
{
if (!File.Exists(DBLocation))
{
@@ -27,12 +25,11 @@ namespace HSUCO_Cargo_Garage_Operation_Program
var createKeyTable = @"
CREATE TABLE ""ApplicantList"" (
""ApplicantType"" INTEGER NOT NULL,
- ""RegistrationNumberTrunk"" INTEGER NOT NULL,
+ ""RegistrationNumberTruck"" TEXT NOT NULL,
""RegistrationNumberPassenger"" TEXT NOT NULL,
""Name"" TEXT NOT NULL,
- ""Phone"" BLOB NOT NULL,
+ ""Phone"" TEXT NOT NULL,
""Address"" TEXT NOT NULL,
- ""ResidentsType"" INTEGER NOT NULL,
""DateOfApplicant"" TEXT NOT NULL,
""Inspection"" INTEGER NOT NULL
);
@@ -45,12 +42,11 @@ namespace HSUCO_Cargo_Garage_Operation_Program
);
CREATE TABLE ""DeleteList"" (
""ApplicantType"" INTEGER NOT NULL,
- ""RegistrationNumberTrunk"" INTEGER NOT NULL,
+ ""RegistrationNumberTruck"" TEXT NOT NULL,
""RegistrationNumberPassenger"" TEXT NOT NULL,
""Name"" TEXT NOT NULL,
""Phone"" TEXT NOT NULL,
""Address"" TEXT NOT NULL,
- ""ResidentsType"" INTEGER NOT NULL,
""DateOfApplicant"" TEXT NOT NULL,
""Inspection"" INTEGER NOT NULL,
""DeleteDate"" TEXT NOT NULL,
@@ -74,14 +70,12 @@ namespace HSUCO_Cargo_Garage_Operation_Program
CREATE TABLE ""UserList"" (
""No"" INTEGER NOT NULL UNIQUE,
- ""RegistrationNumberTrunk"" INTEGER NOT NULL,
+ ""RegistrationNumberTruck"" TEXT NOT NULL,
""RegistrationNumberPassenger"" TEXT NOT NULL,
""Name"" TEXT NOT NULL,
- ""Phone"" BLOB NOT NULL,
+ ""Phone"" TEXT NOT NULL,
""Address"" TEXT NOT NULL,
- ""ResidentsType"" INTEGER NOT NULL,
""DateOfApplicant"" TEXT NOT NULL,
- ""Inspection"" INTEGER NOT NULL,
""DateStart"" TEXT NOT NULL,
""DateEnd"" TEXT NOT NULL,
""Extended"" INTEGER NOT NULL,
@@ -101,7 +95,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
}
- private static SQLiteConnection OpenConnection()
+ static SQLiteConnection OpenConnection()
{
_sqLiteConnection = new SQLiteConnection(CONNECTION_STRING);
_sqLiteConnection.Open();
@@ -109,9 +103,6 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return _sqLiteConnection;
}
- // TODO: 사용자 리스트, 이용자 리스트 기한 지난거 처리 프로세스
-
-
///
/// 신청자 리스트에서 화물차 번호로 중복자 조회
///
@@ -119,35 +110,263 @@ namespace HSUCO_Cargo_Garage_Operation_Program
///
public static bool ApplicantCheckAlready(string RegistrationNumberTruck)
{
- int count = 0;
- string query = String.Format("SELECT COUNT(*) From ApplicantList Where RegistrationNumberTrunk = '{0}';", RegistrationNumberTruck.Trim());
+ var count = 0;
+ var query = string.Format("SELECT COUNT(*) From ApplicantList Where RegistrationNumberTruck = '{0}';", RegistrationNumberTruck.Trim());
+
using (var command = _sqLiteConnection.CreateCommand())
{
command.CommandText = query;
+
using (var reader = command.ExecuteReader())
{
while (reader.Read())
- {
count = int.Parse(reader[0].ToString());
- }
}
}
+
return count > 0;
}
+
+ public static bool UserListCheckAlready(string RegistrationNumberTruck)
+ {
+ var count = 0;
+ var query = "SELECT COUNT(*) From UserList WHERE DateEnd >= \"" + DateTime.Now + "\" And RegistrationNumberTruck = \"" + RegistrationNumberTruck + "\"";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+
+ using (var reader = command.ExecuteReader())
+ {
+ while (reader.Read())
+ count = int.Parse(reader[0].ToString());
+ }
+ }
+
+ return count > 0;
+ }
+
public static bool ApplicantInsert(Applicant applicant)
{
- int result = 0;
+ var result = 0;
+
+ var query = $"INSERT INTO ApplicantList VALUES('{applicant.ApplicantType.BoolToInt()}','{applicant.RegistrationNumberTruck}','{applicant.RegistrationNumberPassenger}','{applicant.Name}','{applicant.Phone}','{applicant.Address}','{applicant.DateOfApplication}','{applicant.Inspection.BoolToInt()}') ";
- string query = $"INSERT INTO ApplicantList VALUES('{applicant.ApplicantType}','{applicant.RegistrationNumberTruck}','{applicant.RegistrationNumberPassenger}','{applicant.Name}','{applicant.Phone}','{applicant.Address}','{applicant.ResidentsType}','{applicant.DateOfApplication}','{applicant.Inspection}') ";
using (var command = _sqLiteConnection.CreateCommand())
{
command.CommandText = query;
result = command.ExecuteNonQuery();
-
}
+
return result > 0;
}
- }
-
+ public static List GetApplicant()
+ {
+ var applicants = new List();
+ var query = $"SELECT * From ApplicantList Where ApplicantType=1";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+
+ using (var reader = command.ExecuteReader())
+ {
+ while (reader.Read())
+ {
+ var applicant = new Applicant();
+ applicant.ApplicantType = reader["ApplicantType"].ToString() == "1";
+ applicant.RegistrationNumberTruck = reader["RegistrationNumberTruck"].ToString();
+ applicant.RegistrationNumberPassenger = reader["RegistrationNumberPassenger"].ToString();
+ applicant.Name = reader["Name"].ToString();
+ applicant.Phone = reader["Phone"].ToString();
+ applicant.Address = reader["Address"].ToString();
+ applicant.DateOfApplication = DateTime.Parse(reader["DateOfApplicant"].ToString());
+ applicant.Inspection = reader["Inspection"].ToString() == "1";
+
+ applicants.Add(applicant);
+ }
+ }
+ }
+
+ return applicants;
+ }
+
+ public static List GetApplicantWiat()
+ {
+ var applicants = new List();
+ var query = $"SELECT * From ApplicantList Where ApplicantType=0 Order By Inspection DESC, DateOfApplicant";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+
+ using (var reader = command.ExecuteReader())
+ {
+ while (reader.Read())
+ {
+ var applicant = new Applicant();
+ applicant.ApplicantType = reader["ApplicantType"].ToString() == "1";
+ applicant.RegistrationNumberTruck = reader["RegistrationNumberTruck"].ToString();
+ applicant.RegistrationNumberPassenger = reader["RegistrationNumberPassenger"].ToString();
+ applicant.Name = reader["Name"].ToString();
+ applicant.Phone = reader["Phone"].ToString();
+ applicant.Address = reader["Address"].ToString();
+ applicant.DateOfApplication = DateTime.Parse(reader["DateOfApplicant"].ToString());
+ applicant.Inspection = reader["Inspection"].ToString() == "1";
+
+ applicants.Add(applicant);
+ }
+ }
+ }
+
+ return applicants;
+ }
+
+ public static List GetUserList()
+ {
+ var userList = new List();
+ var query = $"SELECT * From UserList";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+
+ using (var reader = command.ExecuteReader())
+ {
+ while (reader.Read())
+ {
+ var user = new User();
+ user.RegistrationNumberTruck = reader["RegistrationNumberTruck"].ToString();
+ user.RegistrationNumberPassenger = reader["RegistrationNumberPassenger"].ToString();
+ user.Name = reader["Name"].ToString();
+ user.Phone = reader["Phone"].ToString();
+ user.Address = reader["Address"].ToString();
+ user.DateOfApplicant = DateTime.Parse(reader["DateOfApplicant"].ToString());
+ user.DateStart = DateTime.Parse(reader["DateStart"].ToString());
+ user.DateEnd = DateTime.Parse(reader["DateEnd"].ToString());
+ user.Extended = reader["Extended"].ToString() == "1";
+ user.RefundCheck = reader["RefundCheck"].ToString() == "1";
+
+ userList.Add(user);
+ }
+ }
+ }
+
+ return userList;
+ }
+
+ public static void ChangeInspection(List RegistrationNumberTruck, bool result)
+ {
+ for (int i = 0; i < RegistrationNumberTruck.Count; i++)
+ {
+ var query = "UPDATE ApplicantList SET Inspection=" + result.BoolToInt() + ", DateOfApplicant=\"" + DateTime.Now + "\" Where RegistrationNumberTruck=\"" + RegistrationNumberTruck[i] + "\"";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+ command.ExecuteNonQuery();
+ }
+ }
+ }
+
+ public static void UpdateExtended(List extendeds)
+ {
+ for (int i =0; i < extendeds.Count; i++)
+ {
+ var query = "UPDATE UserList Set DateEnd=\"" + extendeds[i].DateEnd.AddYears(1) + "\" Extended=\"" + true.BoolToInt() + "\" Where RegistrationNumberTruck=\"" + extendeds[i].RegistrationNumberTruck + "\"";
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+ command.ExecuteNonQuery();
+ }
+
+ }
+ }
+
+
+ public static List GetApplicantList(List RegistrationNumberTruck)
+ {
+ var applicants = new List();
+
+ for (int i = 0; i < RegistrationNumberTruck.Count; i++)
+ {
+ var query = $"SELECT * From ApplicantList Where RegistrationNumberTruck='{RegistrationNumberTruck[i]}'";
+
+ using (var command = _sqLiteConnection.CreateCommand())
+ {
+ command.CommandText = query;
+
+ using (var reader = command.ExecuteReader())
+ {
+ while (reader.Read())
+ {
+ var applicant = new Applicant();
+ applicant.ApplicantType = reader["ApplicantType"].ToString() == "1";
+ applicant.RegistrationNumberTruck = reader["RegistrationNumberTruck"].ToString();
+ applicant.RegistrationNumberPassenger = reader["RegistrationNumberPassenger"].ToString();
+ applicant.Name = reader["Name"].ToString();
+ applicant.Phone = reader["Phone"].ToString();
+ applicant.Address = reader["Address"].ToString();
+ applicant.DateOfApplication = DateTime.Parse(reader["DateOfApplicant"].ToString());
+ applicant.Inspection = reader["Inspection"].ToString() == "1";
+ applicants.Add(applicant);
+ }
+ }
+ }
+ }
+
+ return applicants;
+ }
+
+ public static void AddUserList(List RegistrationNumberTruck, DateTime start, DateTime end)
+ {
+ var applicants = GetApplicantList(RegistrationNumberTruck);
+
+ for (int i = 0; i < applicants.Count; i++)
+ {
+ var query = $"INSERT INTO UserList (RegistrationNumberTruck,RegistrationNumberPassenger,Name,Phone,Address,ResidentsType,DateOfApplicant,DateStart,DateEnd,Extended,RefundCheck) VALUES('{applicants[i].RegistrationNumberTruck}','{applicants[i].RegistrationNumberPassenger}','{applicants[i].Name}','{applicants[i].Phone}','{applicants[i].Address}','{applicants[i].DateOfApplication}','{start}','{end}','0','0') ";
+
+ using (var insertCommand = _sqLiteConnection.CreateCommand())
+ {
+ insertCommand.CommandText = query;
+ insertCommand.ExecuteNonQuery();
+ }
+
+ query = $"DELETE FROM ApplicantList Where RegistrationNumberTruck=\"{applicants[i].RegistrationNumberTruck}\"";
+
+ using (var deleteCommand = _sqLiteConnection.CreateCommand())
+ {
+ deleteCommand.CommandText = query;
+ deleteCommand.ExecuteNonQuery();
+ }
+ }
+ }
+
+ public static void DeleteInspection(List RegistrationNumberTruck, string DeleterName, string Reason)
+ {
+ var applicants = GetApplicantList(RegistrationNumberTruck);
+
+ for (int i = 0; i < applicants.Count; i++)
+ {
+ var query = $"INSERT INTO DeleteList VALUES('{applicants[i].ApplicantType.BoolToInt()}','{applicants[i].RegistrationNumberTruck}','{applicants[i].RegistrationNumberPassenger}','{applicants[i].Name}','{applicants[i].Phone}','{applicants[i].Address}','{applicants[i].DateOfApplication}','{applicants[i].Inspection.BoolToInt()}','{DateTime.Now.ToString()}','{DeleterName}','{Reason}') ";
+
+ using (var insertCommand = _sqLiteConnection.CreateCommand())
+ {
+ insertCommand.CommandText = query;
+ insertCommand.ExecuteNonQuery();
+ }
+
+ query = $"DELETE FROM ApplicantList Where RegistrationNumberTruck=\"{applicants[i].RegistrationNumberTruck}\"";
+
+ using (var deleteCommand = _sqLiteConnection.CreateCommand())
+ {
+ deleteCommand.CommandText = query;
+ deleteCommand.ExecuteNonQuery();
+ }
+ }
+ }
+
+ public static int BoolToInt(this bool value) => value ? 1 : 0;
+ }
}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/ExcelWrapper.cs b/HSUCO_Cargo_Garage_Operation_Program/ExcelWrapper.cs
new file mode 100644
index 0000000..1bbfc0d
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/ExcelWrapper.cs
@@ -0,0 +1,77 @@
+using Microsoft.Office.Interop.Excel;
+using System;
+using System.Data;
+using System.Windows.Forms;
+
+namespace HSUCO_Cargo_Garage_Operation_Program
+{
+ internal class ExcelWrapper
+ {
+
+ public bool WriteDataTableToExcel
+ (System.Data.DataTable dataTable, string worksheetName, string saveAsLocation)
+ {
+ Microsoft.Office.Interop.Excel.Application excel;
+ Microsoft.Office.Interop.Excel.Workbook excelworkBook;
+ Microsoft.Office.Interop.Excel.Worksheet excelSheet;
+ Microsoft.Office.Interop.Excel.Range excelCellrange;
+
+ try
+ {
+ // get Application object.
+ excel = new Microsoft.Office.Interop.Excel.Application();
+ excel.Visible = false;
+ excel.DisplayAlerts = false;
+
+ // Creation a new Workbook
+ excelworkBook = excel.Workbooks.Add(Type.Missing);
+
+ // Workk sheet
+ excelSheet = (Microsoft.Office.Interop.Excel.Worksheet)excelworkBook.ActiveSheet;
+ excelSheet.Name = worksheetName;
+
+ var rowCount = 1;
+ // 타이틀
+ for (int i = 0; i < dataTable.Columns.Count; i++)
+ {
+ excelSheet.Cells[rowCount, i + 1] = dataTable.Columns[i].ColumnName;
+ }
+ excelCellrange = excelSheet.Range[excelSheet.Cells[1, 1], excelSheet.Cells[1, dataTable.Columns.Count]];
+ excelCellrange.HorizontalAlignment = XlHAlign.xlHAlignCenter;
+ excelCellrange.Borders.LineStyle = XlLineStyle.xlContinuous;
+
+
+
+
+ foreach (DataRow datarow in dataTable.Rows)
+ {
+ rowCount += 1;
+
+ for (int i = 1; i <= dataTable.Columns.Count; i++)
+ {
+ excelSheet.Cells[rowCount, i] = datarow[i - 1].ToString();
+ }
+ }
+ excelCellrange = excelSheet.Range[excelSheet.Cells[1, 1], excelSheet.Cells[rowCount, dataTable.Columns.Count]];
+ excelCellrange.Columns.AutoFit();
+
+ // now save the workbook and exit Excel
+ excelworkBook.SaveAs(saveAsLocation);
+ excelworkBook.Close();
+ excel.Quit();
+ return true;
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.Message);
+ return false;
+ }
+ finally
+ {
+ excelSheet = null;
+ excelCellrange = null;
+ excelworkBook = null;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/HSUCO_Cargo_Garage_Operation_Program.csproj b/HSUCO_Cargo_Garage_Operation_Program/HSUCO_Cargo_Garage_Operation_Program.csproj
index 87583fc..dc3bc73 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/HSUCO_Cargo_Garage_Operation_Program.csproj
+++ b/HSUCO_Cargo_Garage_Operation_Program/HSUCO_Cargo_Garage_Operation_Program.csproj
@@ -55,6 +55,10 @@
..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.Fonts.dll
+
+ ..\packages\Microsoft.Office.Interop.Excel.15.0.4795.1001\lib\net20\Microsoft.Office.Interop.Excel.dll
+ True
+
@@ -78,6 +82,24 @@
+
+ Form
+
+
+ Promotion.cs
+
+
+ Form
+
+
+ DeleteReason.cs
+
+
+ Form
+
+
+ WaitingCount.cs
+
Form
@@ -90,6 +112,18 @@
ApplicantControl.cs
+
+ UserControl
+
+
+ UserList.cs
+
+
+ UserControl
+
+
+ WaitingList.cs
+
UserControl
@@ -98,6 +132,7 @@
+
Form
@@ -106,12 +141,27 @@
+
+ Promotion.cs
+
+
+ DeleteReason.cs
+
+
+ WaitingCount.cs
+
AboutBox1.cs
ApplicantControl.cs
+
+ UserList.cs
+
+
+ WaitingList.cs
+
ApplicantList.cs
@@ -126,6 +176,7 @@
True
Resources.resx
+ True
@@ -143,6 +194,8 @@
+
+
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Master.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/Master.Designer.cs
index d51514e..83c290b 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/Master.Designer.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/Master.Designer.cs
@@ -31,25 +31,28 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Master));
this.metroTabControl_Main = new MetroFramework.Controls.MetroTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
- this.metroTabControl_ = new MetroFramework.Controls.MetroTabControl();
+ this.metroTabControl_Applicant = new MetroFramework.Controls.MetroTabControl();
this.tabPage5 = new System.Windows.Forms.TabPage();
+ this.applicant1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ApplicantControl();
this.tabPage6 = new System.Windows.Forms.TabPage();
+ this.applicantList1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ApplicantList();
this.tabPage7 = new System.Windows.Forms.TabPage();
+ this.waitingList1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.WaitingList();
this.tabPage8 = new System.Windows.Forms.TabPage();
- this.tabPage9 = new System.Windows.Forms.TabPage();
this.tabPage_Certificate = new System.Windows.Forms.TabPage();
this.metroTabControl_Certificate = new MetroFramework.Controls.MetroTabControl();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.metroTabControl2 = new MetroFramework.Controls.MetroTabControl();
- this.applicant1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ApplicantControl();
- this.applicantList1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ApplicantList();
+ this.userList1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.UserList();
this.metroTabControl_Main.SuspendLayout();
this.tabPage1.SuspendLayout();
- this.metroTabControl_.SuspendLayout();
+ this.metroTabControl_Applicant.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage6.SuspendLayout();
+ this.tabPage7.SuspendLayout();
+ this.tabPage8.SuspendLayout();
this.tabPage_Certificate.SuspendLayout();
this.metroTabControl_Certificate.SuspendLayout();
this.tabPage2.SuspendLayout();
@@ -70,27 +73,26 @@
//
// tabPage1
//
- this.tabPage1.Controls.Add(this.metroTabControl_);
+ this.tabPage1.Controls.Add(this.metroTabControl_Applicant);
this.tabPage1.Location = new System.Drawing.Point(4, 38);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(976, 646);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "신청접수";
//
- // metroTabControl_
+ // metroTabControl_Applicant
//
- this.metroTabControl_.Controls.Add(this.tabPage5);
- this.metroTabControl_.Controls.Add(this.tabPage6);
- this.metroTabControl_.Controls.Add(this.tabPage7);
- this.metroTabControl_.Controls.Add(this.tabPage8);
- this.metroTabControl_.Controls.Add(this.tabPage9);
- this.metroTabControl_.Dock = System.Windows.Forms.DockStyle.Fill;
- this.metroTabControl_.Location = new System.Drawing.Point(0, 0);
- this.metroTabControl_.Name = "metroTabControl_";
- this.metroTabControl_.SelectedIndex = 1;
- this.metroTabControl_.Size = new System.Drawing.Size(976, 646);
- this.metroTabControl_.TabIndex = 0;
- this.metroTabControl_.UseSelectable = true;
+ this.metroTabControl_Applicant.Controls.Add(this.tabPage5);
+ this.metroTabControl_Applicant.Controls.Add(this.tabPage6);
+ this.metroTabControl_Applicant.Controls.Add(this.tabPage7);
+ this.metroTabControl_Applicant.Controls.Add(this.tabPage8);
+ this.metroTabControl_Applicant.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.metroTabControl_Applicant.Location = new System.Drawing.Point(0, 0);
+ this.metroTabControl_Applicant.Name = "metroTabControl_Applicant";
+ this.metroTabControl_Applicant.SelectedIndex = 1;
+ this.metroTabControl_Applicant.Size = new System.Drawing.Size(976, 646);
+ this.metroTabControl_Applicant.TabIndex = 0;
+ this.metroTabControl_Applicant.UseSelectable = true;
//
// tabPage5
//
@@ -101,6 +103,16 @@
this.tabPage5.TabIndex = 0;
this.tabPage5.Text = "신규 접수";
//
+ // applicant1
+ //
+ this.applicant1.BackColor = System.Drawing.Color.White;
+ this.applicant1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.applicant1.Location = new System.Drawing.Point(0, 0);
+ this.applicant1.Margin = new System.Windows.Forms.Padding(0);
+ this.applicant1.Name = "applicant1";
+ this.applicant1.Size = new System.Drawing.Size(968, 604);
+ this.applicant1.TabIndex = 1;
+ //
// tabPage6
//
this.tabPage6.Controls.Add(this.applicantList1);
@@ -110,30 +122,40 @@
this.tabPage6.TabIndex = 1;
this.tabPage6.Text = "신청자 리스트";
//
+ // applicantList1
+ //
+ this.applicantList1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.applicantList1.Location = new System.Drawing.Point(0, 0);
+ this.applicantList1.Name = "applicantList1";
+ this.applicantList1.Size = new System.Drawing.Size(968, 604);
+ this.applicantList1.TabIndex = 0;
+ //
// tabPage7
//
+ this.tabPage7.Controls.Add(this.waitingList1);
this.tabPage7.Location = new System.Drawing.Point(4, 38);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Size = new System.Drawing.Size(968, 604);
this.tabPage7.TabIndex = 2;
this.tabPage7.Text = "대기자 리스트";
//
+ // waitingList1
+ //
+ this.waitingList1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.waitingList1.Location = new System.Drawing.Point(0, 0);
+ this.waitingList1.Name = "waitingList1";
+ this.waitingList1.Size = new System.Drawing.Size(968, 604);
+ this.waitingList1.TabIndex = 0;
+ //
// tabPage8
//
+ this.tabPage8.Controls.Add(this.userList1);
this.tabPage8.Location = new System.Drawing.Point(4, 38);
this.tabPage8.Name = "tabPage8";
this.tabPage8.Size = new System.Drawing.Size(968, 604);
this.tabPage8.TabIndex = 3;
this.tabPage8.Text = "이용자 리스트";
//
- // tabPage9
- //
- this.tabPage9.Location = new System.Drawing.Point(4, 38);
- this.tabPage9.Name = "tabPage9";
- this.tabPage9.Size = new System.Drawing.Size(968, 604);
- this.tabPage9.TabIndex = 4;
- this.tabPage9.Text = "환불처리";
- //
// tabPage_Certificate
//
this.tabPage_Certificate.Controls.Add(this.metroTabControl_Certificate);
@@ -188,23 +210,13 @@
this.metroTabControl2.TabIndex = 1;
this.metroTabControl2.UseSelectable = true;
//
- // applicant1
+ // userList1
//
- this.applicant1.BackColor = System.Drawing.Color.White;
- this.applicant1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.applicant1.Location = new System.Drawing.Point(0, 0);
- this.applicant1.Margin = new System.Windows.Forms.Padding(0);
- this.applicant1.Name = "applicant1";
- this.applicant1.Size = new System.Drawing.Size(968, 604);
- this.applicant1.TabIndex = 1;
- //
- // applicantList1
- //
- this.applicantList1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.applicantList1.Location = new System.Drawing.Point(0, 0);
- this.applicantList1.Name = "applicantList1";
- this.applicantList1.Size = new System.Drawing.Size(968, 604);
- this.applicantList1.TabIndex = 0;
+ this.userList1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.userList1.Location = new System.Drawing.Point(0, 0);
+ this.userList1.Name = "userList1";
+ this.userList1.Size = new System.Drawing.Size(968, 604);
+ this.userList1.TabIndex = 0;
//
// Master
//
@@ -215,12 +227,13 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Master";
this.Text = "화성도시공사 화물차고지 운영 프로그램";
- this.Load += new System.EventHandler(this.Master_Load);
this.metroTabControl_Main.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
- this.metroTabControl_.ResumeLayout(false);
+ this.metroTabControl_Applicant.ResumeLayout(false);
this.tabPage5.ResumeLayout(false);
this.tabPage6.ResumeLayout(false);
+ this.tabPage7.ResumeLayout(false);
+ this.tabPage8.ResumeLayout(false);
this.tabPage_Certificate.ResumeLayout(false);
this.metroTabControl_Certificate.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
@@ -234,7 +247,7 @@
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage_Certificate;
- private MetroFramework.Controls.MetroTabControl metroTabControl_;
+ private MetroFramework.Controls.MetroTabControl metroTabControl_Applicant;
private MetroFramework.Controls.MetroTabControl metroTabControl2;
private MetroFramework.Controls.MetroTabControl metroTabControl_Certificate;
private System.Windows.Forms.TabPage tabPage3;
@@ -243,9 +256,10 @@
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.TabPage tabPage8;
- private System.Windows.Forms.TabPage tabPage9;
private CustomUserControl.ApplicantControl applicant1;
private CustomUserControl.ApplicantList applicantList1;
+ private CustomUserControl.WaitingList waitingList1;
+ private CustomUserControl.UserList userList1;
}
}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Master.cs b/HSUCO_Cargo_Garage_Operation_Program/Master.cs
index 01711c0..7034abf 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/Master.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/Master.cs
@@ -1,26 +1,10 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
namespace HSUCO_Cargo_Garage_Operation_Program
{
public partial class Master : MetroFramework.Forms.MetroForm
{
-
- public Master()
- {
- InitializeComponent();
- }
+ public Master() => InitializeComponent();
- private void Master_Load(object sender, EventArgs e)
- {
-
- }
}
-}
+}
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.Designer.cs b/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.Designer.cs
index 71d5e0c..3fdb16b 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.Designer.cs
+++ b/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.Designer.cs
@@ -8,64 +8,66 @@
//
//------------------------------------------------------------------------------
-namespace HSUCO_Cargo_Garage_Operation_Program.Properties
-{
-
-
+namespace HSUCO_Cargo_Garage_Operation_Program.Properties {
+ using System;
+
+
///
/// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다.
///
// 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder
// 클래스에서 자동으로 생성되었습니다.
- // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여
- // ResGen을 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을
+ // 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
+ internal class Resources {
+
private static global::System.Resources.ResourceManager resourceMan;
-
+
private static global::System.Globalization.CultureInfo resourceCulture;
-
+
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
+ internal Resources() {
}
-
+
///
/// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HSUCO_Cargo_Garage_Operation_Program.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
-
+
///
/// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을
/// 재정의합니다.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
return resourceCulture;
}
- set
- {
+ set {
resourceCulture = value;
}
}
+
+ ///
+ /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다.
+ ///
+ internal static System.Drawing.Bitmap file_type_excel_icon_130611 {
+ get {
+ object obj = ResourceManager.GetObject("file_type_excel_icon_130611", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
}
}
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.resx b/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.resx
index af7dbeb..447bb44 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.resx
+++ b/HSUCO_Cargo_Garage_Operation_Program/Properties/Resources.resx
@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
@@ -60,6 +60,7 @@
: and then encoded with base64 encoding.
-->
+
@@ -68,9 +69,10 @@
-
+
+
@@ -85,9 +87,10 @@
-
+
+
@@ -109,9 +112,13 @@
2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ ..\Resources\file_type_excel_icon_130611.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/Resources/file_type_excel_icon_130611.png b/HSUCO_Cargo_Garage_Operation_Program/Resources/file_type_excel_icon_130611.png
new file mode 100644
index 0000000..c3463f3
Binary files /dev/null and b/HSUCO_Cargo_Garage_Operation_Program/Resources/file_type_excel_icon_130611.png differ
diff --git a/HSUCO_Cargo_Garage_Operation_Program/TextFile1.txt b/HSUCO_Cargo_Garage_Operation_Program/TextFile1.txt
new file mode 100644
index 0000000..1ed9fb6
--- /dev/null
+++ b/HSUCO_Cargo_Garage_Operation_Program/TextFile1.txt
@@ -0,0 +1,5 @@
+중요 개발 사항
+
+ApplicantType
+1 Ture = 추첨
+0 False = 대기
\ No newline at end of file
diff --git a/HSUCO_Cargo_Garage_Operation_Program/packages.config b/HSUCO_Cargo_Garage_Operation_Program/packages.config
index 281f540..06b9d4f 100644
--- a/HSUCO_Cargo_Garage_Operation_Program/packages.config
+++ b/HSUCO_Cargo_Garage_Operation_Program/packages.config
@@ -2,6 +2,7 @@
+
diff --git a/database.sqlite b/database.sqlite
new file mode 100644
index 0000000..e69de29