From 94fd4dbe30c1398206ecd1337e0862ee282cff82 Mon Sep 17 00:00:00 2001 From: Crudelis Date: Fri, 26 May 2023 18:12:01 +0900 Subject: [PATCH] =?UTF-8?q?-=20=EA=B8=B0=EB=8A=A5=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 대기자 리스트 - 당첨처리, 순위 출력 이용자 리스트 - 연장 처리 지역 구분 삭제 엑셀 Export 기초 --- .../CustomForm/DeleteReason.Designer.cs | 168 ++++++++ .../CustomForm/DeleteReason.cs | 51 +++ .../CustomForm/DeleteReason.resx | 120 ++++++ .../CustomForm/Promotion.Designer.cs | 124 ++++++ .../CustomForm/Promotion.cs | 32 ++ .../CustomForm/Promotion.resx | 120 ++++++ .../CustomForm/WaitingCount.Designer.cs | 217 ++++++++++ .../CustomForm/WaitingCount.cs | 63 +++ .../CustomForm/WaitingCount.resx | 120 ++++++ .../ApplicantControl.Designer.cs | 56 +-- .../CustomUserControl/ApplicantControl.cs | 49 +-- .../ApplicantList.Designer.cs | 377 +++++++++--------- .../CustomUserControl/ApplicantList.cs | 240 +++++++++-- .../CustomUserControl/ApplicantList.resx | 3 + .../CustomUserControl/UserList.Designer.cs | 307 ++++++++++++++ .../CustomUserControl/UserList.cs | 165 ++++++++ .../CustomUserControl/UserList.resx | 123 ++++++ .../CustomUserControl/WaitingList.Designer.cs | 322 +++++++++++++++ .../CustomUserControl/WaitingList.cs | 228 +++++++++++ .../CustomUserControl/WaitingList.resx | 123 ++++++ .../DataModel.cs | 20 +- .../Database.cs | 283 +++++++++++-- .../ExcelWrapper.cs | 77 ++++ ...SUCO_Cargo_Garage_Operation_Program.csproj | 53 +++ .../Master.Designer.cs | 108 ++--- .../Master.cs | 20 +- .../Properties/Resources.Designer.cs | 58 +-- .../Properties/Resources.resx | 17 +- .../Resources/file_type_excel_icon_130611.png | Bin 0 -> 14950 bytes .../TextFile1.txt | 5 + .../packages.config | 1 + database.sqlite | 0 32 files changed, 3217 insertions(+), 433 deletions(-) create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.Designer.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/DeleteReason.resx create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.Designer.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/Promotion.resx create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.Designer.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomForm/WaitingCount.resx create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.Designer.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/UserList.resx create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.Designer.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/CustomUserControl/WaitingList.resx create mode 100644 HSUCO_Cargo_Garage_Operation_Program/ExcelWrapper.cs create mode 100644 HSUCO_Cargo_Garage_Operation_Program/Resources/file_type_excel_icon_130611.png create mode 100644 HSUCO_Cargo_Garage_Operation_Program/TextFile1.txt create mode 100644 database.sqlite 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 0000000000000000000000000000000000000000..c3463f3d0681fab32da7f2a8c813b71649c84b1a GIT binary patch literal 14950 zcmeHuXH-*L6y^;mSSb4Jw4ewoBA|dkD8WiEN(U(lh;#%(hXfl6(!!$?QR&i=jt~%O zQl%F|=#T^wS_qKBT;9xD^LzfyS~L6zB;1^P?ml~e``h0+`-6d=I`=WYV*mhfYiito z3;=B4pKQPp4)E8O|Ii))z;0;XzhmS-v5NCU2^uqL>wVq0dQp`_=>9`&8g$4&5U;Q> z=IVQt@Yk#2f?Fq#Trxg=;*Qfl-!477cbE6eVJ^W-f?Sx(SxG%rN`26@az9!k!Tb3l zbCx%;UdFrEPh&B7FW!frXP4=mJ({kd}({m^t$3(6>Try@+@xAB2lN$S&3Qn zcZ>@)8(POBdZO6TWX@ZeRs+GBP+0V4qJw3;y&^BRlsP6JPfj*H1iYD(vODHd$*pKK z@Bv-<{jw545`vcXoR>ahnHo>#D5p3mj&Mi4g~-FdGxLiy{o1(M05*Qa4cX|OU#T!3)$SdQCm%Q9h5(wSS&p#d zz4A6w?khuC^vB$T6>APflX_43oCYJgSU`W0h@0thx%C9Gvn(^7tSxs4@ULpSfye6* z1GNV7vgm982mj;pLV8v39^+m-Swj@O;1)5OQsgq3&3U;f*~bPDKFlYm?w6`?N)14{ zh`6hK!)o=yFLUeHNdd8!qC~suf=KOBX4eVPTlc{Wn1zXW1zaDM9r$tKvG~8_SecRJ zm!rwiO|F^l`(zVzw0<2Fh&73>z%9lXQZD0SvX20stuI$>BH>cNiT4Z3uU5sFZSVCT zEWC=Y8);mvpVaQv)1q-0YepkY}#aD z(cT&ZOaRsGS+Sd_Z&hkNfD;Bj=R9zGT^%QTl@JQ3B`QRJS04xgKNV{)tJbdL1!5Hw zzlRK1fuG#gCSAcD20Hk(pB)9Bf0row38K@gTAk?}IPG;YYyN`4bQTKnYv||NQ?K z{~ubz;NE~BYFz91*>eI{2-d?JdiXRSntt?enXNod68t2aU_`10ABd1AU32 z1!l3sLu%)N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d z^Z9@kfGT`B|0BT%3YxC7s!;Rbit;uz)91flsGKiF$Hlr(mEu4Lx){Bw@jpM@pJL*D zHEEY|;BEt#wp4e`CLCQ~e z|Mo1|<`U5KdhyxjwZtv0gV8EpW+|GyrrwB>a}-MefYF@jw3?a%0|ldjii7^OYXg$G zK4VLBpD?LD>Ve>Q;|bL|fqhl0A(tH=4un8Zr(aZOdFa*8)vAO2Z5}2Af@-j$z^xG* zvbZ@-)8Y!)aEJQx96aJURxv52uTdwGAk7ZgsMaDjCRd}YO0(dixO0GXl&B-xSlsnF zaTbo}J)f%8#?(xF?MdSFtOAOLQK-lMcs7qu5ztPwr+Sg0KMZ}!%pxZE1lg16OSx7jA zW#vbwS4*^~8eLV03HBn*SI3jj1OHe32n+2)wN6SJJ5=0AI+&Q|1HJpjcWqz&55u_Y An*aa+ literal 0 HcmV?d00001 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