AreaSetting 기초 폼 생성

This commit is contained in:
2023-10-26 01:11:06 +09:00
parent 692c7270e8
commit e84fe77968
8 changed files with 859 additions and 91 deletions

View File

@@ -0,0 +1,347 @@
namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
{
partial class AreaSettingControl
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
this.metroListView_Area = new MetroFramework.Controls.MetroListView();
this.columnHeader_No = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader_Area = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader_Type = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.metroButton_Read = new MetroFramework.Controls.MetroButton();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.metroComboBox_NewAreaType = new MetroFramework.Controls.MetroComboBox();
this.metroButton_NewArea = new MetroFramework.Controls.MetroButton();
this.metroTextBox_NewAreaName = new MetroFramework.Controls.MetroTextBox();
this.groupBox_NameChange = new System.Windows.Forms.GroupBox();
this.metroButton_ChangeAreaName = new MetroFramework.Controls.MetroButton();
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
this.metroTextBox_ChangeAreaName = new MetroFramework.Controls.MetroTextBox();
this.groupBox_TypeChange = new System.Windows.Forms.GroupBox();
this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
this.metroComboBox_ChangeAreaType = new MetroFramework.Controls.MetroComboBox();
this.metroButton__ChangeAreaType = new MetroFramework.Controls.MetroButton();
this.groupBox1.SuspendLayout();
this.groupBox_NameChange.SuspendLayout();
this.groupBox_TypeChange.SuspendLayout();
this.SuspendLayout();
//
// metroListView_Area
//
this.metroListView_Area.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader_No,
this.columnHeader_Area,
this.columnHeader_Type});
this.metroListView_Area.Font = new System.Drawing.Font("Segoe UI", 12F);
this.metroListView_Area.FullRowSelect = true;
this.metroListView_Area.Location = new System.Drawing.Point(50, 50);
this.metroListView_Area.Name = "metroListView_Area";
this.metroListView_Area.OwnerDraw = true;
this.metroListView_Area.Size = new System.Drawing.Size(340, 560);
this.metroListView_Area.TabIndex = 0;
this.metroListView_Area.UseCompatibleStateImageBehavior = false;
this.metroListView_Area.UseSelectable = true;
this.metroListView_Area.View = System.Windows.Forms.View.Details;
this.metroListView_Area.SelectedIndexChanged += new System.EventHandler(this.metroListView_Area_SelectedIndexChanged);
//
// columnHeader_No
//
this.columnHeader_No.Text = "고유번호";
this.columnHeader_No.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.columnHeader_No.Width = 100;
//
// columnHeader_Area
//
this.columnHeader_Area.Text = "구역 이름";
this.columnHeader_Area.Width = 100;
//
// columnHeader_Type
//
this.columnHeader_Type.Text = "구역 타입";
this.columnHeader_Type.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.columnHeader_Type.Width = 100;
//
// metroButton_Read
//
this.metroButton_Read.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.metroButton_Read.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton_Read.Location = new System.Drawing.Point(400, 60);
this.metroButton_Read.Name = "metroButton_Read";
this.metroButton_Read.Size = new System.Drawing.Size(280, 30);
this.metroButton_Read.TabIndex = 1;
this.metroButton_Read.Text = "구역 조회";
this.metroButton_Read.UseSelectable = true;
this.metroButton_Read.Click += new System.EventHandler(this.metroButton_Read_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.metroLabel2);
this.groupBox1.Controls.Add(this.metroLabel1);
this.groupBox1.Controls.Add(this.metroComboBox_NewAreaType);
this.groupBox1.Controls.Add(this.metroButton_NewArea);
this.groupBox1.Controls.Add(this.metroTextBox_NewAreaName);
this.groupBox1.Location = new System.Drawing.Point(400, 110);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(280, 120);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "구역 추가";
//
// metroLabel2
//
this.metroLabel2.AutoSize = true;
this.metroLabel2.FontSize = MetroFramework.MetroLabelSize.Tall;
this.metroLabel2.Location = new System.Drawing.Point(10, 50);
this.metroLabel2.Name = "metroLabel2";
this.metroLabel2.Size = new System.Drawing.Size(89, 25);
this.metroLabel2.TabIndex = 9;
this.metroLabel2.Text = "구역 타입";
//
// metroLabel1
//
this.metroLabel1.AutoSize = true;
this.metroLabel1.FontSize = MetroFramework.MetroLabelSize.Tall;
this.metroLabel1.Location = new System.Drawing.Point(10, 20);
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Size = new System.Drawing.Size(91, 25);
this.metroLabel1.TabIndex = 8;
this.metroLabel1.Text = "구 역 명";
//
// metroComboBox_NewAreaType
//
this.metroComboBox_NewAreaType.FormattingEnabled = true;
this.metroComboBox_NewAreaType.ItemHeight = 23;
this.metroComboBox_NewAreaType.Items.AddRange(new object[] {
"이용 불가",
"대형",
"특대형"});
this.metroComboBox_NewAreaType.Location = new System.Drawing.Point(109, 46);
this.metroComboBox_NewAreaType.Name = "metroComboBox_NewAreaType";
this.metroComboBox_NewAreaType.Size = new System.Drawing.Size(161, 29);
this.metroComboBox_NewAreaType.TabIndex = 7;
this.metroComboBox_NewAreaType.UseSelectable = true;
//
// metroButton_NewArea
//
this.metroButton_NewArea.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton_NewArea.Location = new System.Drawing.Point(10, 80);
this.metroButton_NewArea.Name = "metroButton_NewArea";
this.metroButton_NewArea.Size = new System.Drawing.Size(260, 30);
this.metroButton_NewArea.TabIndex = 6;
this.metroButton_NewArea.Text = "구역 추가";
this.metroButton_NewArea.UseSelectable = true;
this.metroButton_NewArea.Click += new System.EventHandler(this.metroButton_NewArea_Click);
//
// metroTextBox_NewAreaName
//
//
//
//
this.metroTextBox_NewAreaName.CustomButton.Image = null;
this.metroTextBox_NewAreaName.CustomButton.Location = new System.Drawing.Point(139, 1);
this.metroTextBox_NewAreaName.CustomButton.Name = "";
this.metroTextBox_NewAreaName.CustomButton.Size = new System.Drawing.Size(21, 21);
this.metroTextBox_NewAreaName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.metroTextBox_NewAreaName.CustomButton.TabIndex = 1;
this.metroTextBox_NewAreaName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.metroTextBox_NewAreaName.CustomButton.UseSelectable = true;
this.metroTextBox_NewAreaName.CustomButton.Visible = false;
this.metroTextBox_NewAreaName.Lines = new string[0];
this.metroTextBox_NewAreaName.Location = new System.Drawing.Point(109, 22);
this.metroTextBox_NewAreaName.MaxLength = 32767;
this.metroTextBox_NewAreaName.Name = "metroTextBox_NewAreaName";
this.metroTextBox_NewAreaName.PasswordChar = '\0';
this.metroTextBox_NewAreaName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.metroTextBox_NewAreaName.SelectedText = "";
this.metroTextBox_NewAreaName.SelectionLength = 0;
this.metroTextBox_NewAreaName.SelectionStart = 0;
this.metroTextBox_NewAreaName.ShortcutsEnabled = true;
this.metroTextBox_NewAreaName.Size = new System.Drawing.Size(161, 23);
this.metroTextBox_NewAreaName.TabIndex = 0;
this.metroTextBox_NewAreaName.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.metroTextBox_NewAreaName.UseSelectable = true;
this.metroTextBox_NewAreaName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.metroTextBox_NewAreaName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// groupBox_NameChange
//
this.groupBox_NameChange.Controls.Add(this.metroButton_ChangeAreaName);
this.groupBox_NameChange.Controls.Add(this.metroLabel3);
this.groupBox_NameChange.Controls.Add(this.metroTextBox_ChangeAreaName);
this.groupBox_NameChange.Location = new System.Drawing.Point(400, 250);
this.groupBox_NameChange.Name = "groupBox_NameChange";
this.groupBox_NameChange.Size = new System.Drawing.Size(280, 90);
this.groupBox_NameChange.TabIndex = 4;
this.groupBox_NameChange.TabStop = false;
this.groupBox_NameChange.Text = "구역 이름 변경";
//
// metroButton_ChangeAreaName
//
this.metroButton_ChangeAreaName.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton_ChangeAreaName.Location = new System.Drawing.Point(10, 50);
this.metroButton_ChangeAreaName.Name = "metroButton_ChangeAreaName";
this.metroButton_ChangeAreaName.Size = new System.Drawing.Size(260, 30);
this.metroButton_ChangeAreaName.TabIndex = 11;
this.metroButton_ChangeAreaName.Text = "구역 이름 변경";
this.metroButton_ChangeAreaName.UseSelectable = true;
this.metroButton_ChangeAreaName.Click += new System.EventHandler(this.metroButton_ChangeAreaName_Click);
//
// metroLabel3
//
this.metroLabel3.AutoSize = true;
this.metroLabel3.FontSize = MetroFramework.MetroLabelSize.Tall;
this.metroLabel3.Location = new System.Drawing.Point(10, 20);
this.metroLabel3.Name = "metroLabel3";
this.metroLabel3.Size = new System.Drawing.Size(91, 25);
this.metroLabel3.TabIndex = 10;
this.metroLabel3.Text = "구 역 명";
//
// metroTextBox_ChangeAreaName
//
//
//
//
this.metroTextBox_ChangeAreaName.CustomButton.Image = null;
this.metroTextBox_ChangeAreaName.CustomButton.Location = new System.Drawing.Point(139, 1);
this.metroTextBox_ChangeAreaName.CustomButton.Name = "";
this.metroTextBox_ChangeAreaName.CustomButton.Size = new System.Drawing.Size(21, 21);
this.metroTextBox_ChangeAreaName.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.metroTextBox_ChangeAreaName.CustomButton.TabIndex = 1;
this.metroTextBox_ChangeAreaName.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.metroTextBox_ChangeAreaName.CustomButton.UseSelectable = true;
this.metroTextBox_ChangeAreaName.CustomButton.Visible = false;
this.metroTextBox_ChangeAreaName.Lines = new string[0];
this.metroTextBox_ChangeAreaName.Location = new System.Drawing.Point(109, 20);
this.metroTextBox_ChangeAreaName.MaxLength = 32767;
this.metroTextBox_ChangeAreaName.Name = "metroTextBox_ChangeAreaName";
this.metroTextBox_ChangeAreaName.PasswordChar = '\0';
this.metroTextBox_ChangeAreaName.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.metroTextBox_ChangeAreaName.SelectedText = "";
this.metroTextBox_ChangeAreaName.SelectionLength = 0;
this.metroTextBox_ChangeAreaName.SelectionStart = 0;
this.metroTextBox_ChangeAreaName.ShortcutsEnabled = true;
this.metroTextBox_ChangeAreaName.Size = new System.Drawing.Size(161, 23);
this.metroTextBox_ChangeAreaName.TabIndex = 9;
this.metroTextBox_ChangeAreaName.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.metroTextBox_ChangeAreaName.UseSelectable = true;
this.metroTextBox_ChangeAreaName.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.metroTextBox_ChangeAreaName.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// groupBox_TypeChange
//
this.groupBox_TypeChange.Controls.Add(this.metroLabel4);
this.groupBox_TypeChange.Controls.Add(this.metroComboBox_ChangeAreaType);
this.groupBox_TypeChange.Controls.Add(this.metroButton__ChangeAreaType);
this.groupBox_TypeChange.Location = new System.Drawing.Point(400, 360);
this.groupBox_TypeChange.Name = "groupBox_TypeChange";
this.groupBox_TypeChange.Size = new System.Drawing.Size(280, 100);
this.groupBox_TypeChange.TabIndex = 5;
this.groupBox_TypeChange.TabStop = false;
this.groupBox_TypeChange.Text = "구역 타입 변경";
//
// metroLabel4
//
this.metroLabel4.AutoSize = true;
this.metroLabel4.FontSize = MetroFramework.MetroLabelSize.Tall;
this.metroLabel4.Location = new System.Drawing.Point(10, 20);
this.metroLabel4.Name = "metroLabel4";
this.metroLabel4.Size = new System.Drawing.Size(89, 25);
this.metroLabel4.TabIndex = 12;
this.metroLabel4.Text = "구역 타입";
//
// metroComboBox_ChangeAreaType
//
this.metroComboBox_ChangeAreaType.FormattingEnabled = true;
this.metroComboBox_ChangeAreaType.ItemHeight = 23;
this.metroComboBox_ChangeAreaType.Items.AddRange(new object[] {
"대형",
"특대형",
"미할당"});
this.metroComboBox_ChangeAreaType.Location = new System.Drawing.Point(109, 16);
this.metroComboBox_ChangeAreaType.Name = "metroComboBox_ChangeAreaType";
this.metroComboBox_ChangeAreaType.Size = new System.Drawing.Size(161, 29);
this.metroComboBox_ChangeAreaType.TabIndex = 11;
this.metroComboBox_ChangeAreaType.UseSelectable = true;
//
// metroButton__ChangeAreaType
//
this.metroButton__ChangeAreaType.FontSize = MetroFramework.MetroButtonSize.Tall;
this.metroButton__ChangeAreaType.Location = new System.Drawing.Point(10, 51);
this.metroButton__ChangeAreaType.Name = "metroButton__ChangeAreaType";
this.metroButton__ChangeAreaType.Size = new System.Drawing.Size(260, 30);
this.metroButton__ChangeAreaType.TabIndex = 10;
this.metroButton__ChangeAreaType.Text = "구역 타입 변경";
this.metroButton__ChangeAreaType.UseSelectable = true;
this.metroButton__ChangeAreaType.Click += new System.EventHandler(this.metroButton__ChangeAreaType_Click);
//
// AreaSettingControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.groupBox_TypeChange);
this.Controls.Add(this.groupBox_NameChange);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.metroButton_Read);
this.Controls.Add(this.metroListView_Area);
this.Name = "AreaSettingControl";
this.Size = new System.Drawing.Size(720, 650);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox_NameChange.ResumeLayout(false);
this.groupBox_NameChange.PerformLayout();
this.groupBox_TypeChange.ResumeLayout(false);
this.groupBox_TypeChange.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private MetroFramework.Controls.MetroListView metroListView_Area;
private System.Windows.Forms.ColumnHeader columnHeader_Area;
private System.Windows.Forms.ColumnHeader columnHeader_Type;
private MetroFramework.Controls.MetroButton metroButton_Read;
private System.Windows.Forms.ColumnHeader columnHeader_No;
private System.Windows.Forms.GroupBox groupBox1;
private MetroFramework.Controls.MetroButton metroButton_NewArea;
private MetroFramework.Controls.MetroTextBox metroTextBox_NewAreaName;
private MetroFramework.Controls.MetroLabel metroLabel2;
private MetroFramework.Controls.MetroLabel metroLabel1;
private MetroFramework.Controls.MetroComboBox metroComboBox_NewAreaType;
private System.Windows.Forms.GroupBox groupBox_NameChange;
private System.Windows.Forms.GroupBox groupBox_TypeChange;
private MetroFramework.Controls.MetroButton metroButton_ChangeAreaName;
private MetroFramework.Controls.MetroLabel metroLabel3;
private MetroFramework.Controls.MetroTextBox metroTextBox_ChangeAreaName;
private MetroFramework.Controls.MetroLabel metroLabel4;
private MetroFramework.Controls.MetroComboBox metroComboBox_ChangeAreaType;
private MetroFramework.Controls.MetroButton metroButton__ChangeAreaType;
}
}

View File

@@ -0,0 +1,168 @@
using MetroFramework;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Windows.Forms;
namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
{
public partial class AreaSettingControl : UserControl
{
private List<AreaSetting> mAreaSettings;
public AreaSettingControl()
{
InitializeComponent();
}
private string GetAreaTypeString(EAreaType eAreaType)
{
string typeString = string.Empty;
switch (eAreaType)
{
case EAreaType.None:
typeString = "이용 불가";
break;
case EAreaType.Big:
typeString = "대형";
break;
case EAreaType.OverSized:
typeString = "특대형";
break;
}
return typeString;
}
private ListViewItem CreateListViewItem(AreaSetting areaSetting)
{
ListViewItem listViewItem = new ListViewItem();
listViewItem.Text = areaSetting.No.ToString();
listViewItem.SubItems.Add(areaSetting.AreaName);
string typeString = GetAreaTypeString(areaSetting.AreaType);
listViewItem.SubItems.Add(typeString);
return listViewItem;
}
private void metroButton_Read_Click(object sender, EventArgs e)
{
mAreaSettings = Database.GetAreaSettings();
metroListView_Area.Items.Clear();
foreach (AreaSetting areaSetting in mAreaSettings)
{
ListViewItem listViewItem = CreateListViewItem(areaSetting);
metroListView_Area.Items.Add(listViewItem);
}
}
private void metroButton_NewArea_Click(object sender, EventArgs e)
{
if (metroComboBox_NewAreaType.SelectedIndex == -1)
{
MetroMessageBox.Show(this, "구역 타입이 선택되지 않았습니다..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
string areaName = metroTextBox_NewAreaName.Text.Trim();
if (areaName == string.Empty)
{
MetroMessageBox.Show(this, "구역 이름은 공백일수없습니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
bool result = Database.CheckDuplicateAreaSettingName(areaName);
if (result)
{
MetroMessageBox.Show(this, "이미 있는 구역 이름 입니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
AreaSetting areaSetting = new AreaSetting();
areaSetting.AreaName = areaName;
areaSetting.AreaType = (EAreaType)metroComboBox_NewAreaType.SelectedIndex;
areaSetting.No = Database.SetAreaSetting(areaSetting);
metroListView_Area.Items.Add(CreateListViewItem(areaSetting));
metroTextBox_NewAreaName.Text = string.Empty;
MetroMessageBox.Show(this, "추가 하였습니다.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
metroTextBox_NewAreaName.Focus();
}
private void metroButton_ChangeAreaName_Click(object sender, EventArgs e)
{
string areaName = metroTextBox_ChangeAreaName.Text.Trim();
if (areaName == string.Empty)
{
MetroMessageBox.Show(this, "구역 이름은 공백일수없습니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
int no = Convert.ToInt32(metroListView_Area.SelectedItems[0].Text);
AreaSetting areaSetting = mAreaSettings.Where(x => x.No == no).Single();
if(areaName == areaSetting.AreaName)
{
MetroMessageBox.Show(this, "이름이 변경되지 않았습니다..", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
bool result = Database.CheckDuplicateAreaSettingName(areaName);
if (result)
{
MetroMessageBox.Show(this, "이미 있는 구역 이름 입니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
areaSetting.AreaName = areaName;
Database.UpdateAreaSetting(areaSetting);
for (int i = 0; i < mAreaSettings.Count; i++)
{
if (mAreaSettings[i].No == no)
{
mAreaSettings[i] = areaSetting;
}
}
metroListView_Area.SelectedItems[0].SubItems[1].Text = areaSetting.AreaName;
}
private void metroButton__ChangeAreaType_Click(object sender, EventArgs e)
{
int changeType = metroComboBox_ChangeAreaType.SelectedIndex;
if(changeType == -1)
{
MetroMessageBox.Show(this, "구역 타입이 선택되지 않았습니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
EAreaType eAreaType = (EAreaType)changeType;
int no = Convert.ToInt32(metroListView_Area.SelectedItems[0].Text);
AreaSetting areaSetting = mAreaSettings.Where(x => x.No == no).Single();
if(areaSetting.AreaType == eAreaType)
{
MetroMessageBox.Show(this, "구역 타입이 변경되지 않았습니다.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
areaSetting.AreaType = eAreaType;
Database.UpdateAreaSetting(areaSetting);
for (int i = 0; i < mAreaSettings.Count; i++)
{
if (mAreaSettings[i].No == no)
{
mAreaSettings[i] = areaSetting;
}
}
metroListView_Area.SelectedItems[0].SubItems[2].Text = GetAreaTypeString(areaSetting.AreaType);
}
private void metroListView_Area_SelectedIndexChanged(object sender, EventArgs e)
{
if(metroListView_Area.SelectedItems.Count < 1)
{
return;
}
int no = Convert.ToInt32(metroListView_Area.SelectedItems[0].Text);
AreaSetting areaSetting = mAreaSettings.Single(x => x.No == no);
metroTextBox_ChangeAreaName.Text = areaSetting.AreaName;
metroComboBox_ChangeAreaType.SelectedIndex = Convert.ToInt32(areaSetting.AreaType)-1;
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -418,7 +418,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program.CustomUserControl
return;
}
string no = dataGridView_List.SelectedRows[0].Cells[0].Value.ToString();
//TODO: 결재 완료자만 인증 가능
var result = MetroMessageBox.Show(this, "발급 하시겠습니까?", "증명서 발급", MessageBoxButtons.YesNo,
MessageBoxIcon.Question);
if (result == DialogResult.No) return;

View File

@@ -195,7 +195,19 @@ namespace HSUCO_Cargo_Garage_Operation_Program
public int CargoLargeCertificateFee { get; set; }
public int CargoOversizedCertificateFee { get; set; }
}
public struct AreaSetting
{
public int No { get; set; } // 고유번호 중복 불가
public string AreaName { get; set; } // 자리 이름 중복 불가
public EAreaType AreaType { get; set; } // 타입
}
public enum EAreaType
{
None, // 이용 불가
Big, // 대형
OverSized // 특대형
}
public enum EProceedsType
{
Fees,

View File

@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Diagnostics;
using System.Drawing.Printing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Windows;
namespace HSUCO_Cargo_Garage_Operation_Program
{
@@ -74,6 +71,13 @@ namespace HSUCO_Cargo_Garage_Operation_Program
""SettingDate"" TEXT NOT NULL
);
CREATE TABLE ""AreaSetting"" (
""No"" INTEGER NOT NULL,
""AreaName"" TEXT NOT NULL,
""AreaType"" INTEGER NOT NULL,
PRIMARY KEY(""No"" AUTOINCREMENT)
);
CREATE TABLE ""UserInformation"" (
""UID"" INTEGER NOT NULL,
""Owner"" INTEGER NOT NULL,
@@ -168,6 +172,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
OpenConnection();
}
}
/// <summary>
/// Dtabase 연결
/// </summary>
@@ -230,6 +235,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return count > 0;
}
public static EPaymentStatus CheckPaymentStatus(string no)
{
EPaymentStatus paymentStatus = new EPaymentStatus();
@@ -246,6 +252,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return paymentStatus;
}
public static string SetApplicant(ApplicantInformation applicant)
{
int year = DateTime.Now.Year;
@@ -297,6 +304,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return string.Empty;
}
}
public static PrintFilingReceiptInformation GetApplicantData(string no)
{
PrintFilingReceiptInformation printFilingReceiptInformation = new PrintFilingReceiptInformation();
@@ -325,6 +333,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return printFilingReceiptInformation;
}
public static List<ApplicantInformation> GetApplicant()
{
var applicants = new List<ApplicantInformation>();
@@ -402,11 +411,8 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return applicants;
}
public static bool DeleteApplicantList(string no)
{
var query = $"UPDATE ApplicantList SET RegistrationStatus={(int)ERegistrationStatus.Delete} Where No='{no}'";
using (var updateCommand = _sqLiteConnection.CreateCommand())
{
@@ -530,6 +536,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return users;
}
public static GetPaymentBaseInformation GetPaymentBase(string no)
{
GetPaymentBaseInformation getPaymentBaseInformation = new GetPaymentBaseInformation();
@@ -545,14 +552,13 @@ namespace HSUCO_Cargo_Garage_Operation_Program
DateTime end = DateTime.Parse(reader["DateEnd"].ToString(), new CultureInfo("ko-KR"));
getPaymentBaseInformation.Month = Extends.GetProgressDays(start, end).Month;
getPaymentBaseInformation.VehicleType = (EVehicleType)int.Parse(reader["VehicleType"].ToString());
}
}
}
return getPaymentBaseInformation;
}
public static void AcceptUser(string no, int pay)
{
var query = $"UPDATE UserList Set PaymentStatus={(int)EPaymentStatus.Use} Where No='{no}'";
@@ -560,17 +566,16 @@ namespace HSUCO_Cargo_Garage_Operation_Program
{
command.CommandText = query;
command.ExecuteNonQuery();
}
query = $"INSERT INTO LedgerProceeds(UserNo, Type, Amount, Date) VALUES('{no}',{(int)EProceedsType.Fees},{pay},'{DateTime.Now.DateTimeDatabase()}')";
using (var command = _sqLiteConnection.CreateCommand())
{
command.CommandText = query;
command.ExecuteNonQuery();
}
return;
}
public static void DeleteUser(string no)
{
string query = $"UPDATE UserList Set PaymentStatus={(int)EPaymentStatus.Delete} Where No='{no}'";
@@ -580,6 +585,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
command.ExecuteNonQuery();
}
}
public static bool DeleteUserUndo(string no)
{
bool result = false;
@@ -622,7 +628,6 @@ namespace HSUCO_Cargo_Garage_Operation_Program
command.ExecuteNonQuery();
}
return true;
}
/// <summary>
@@ -786,7 +791,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
public static List<ResultSetUserListInformation> SetUserListForApplicant(LeftAreaInformation leftAreaInformation, DateTime endDate)
{
List<SetUserListInformation> tempUserList = new List<SetUserListInformation>();
var query = $"SELECT * From ViewApplicantList Where ApplicantType={(int)EApplicantType.Lots} And RegistrationStatus={(int)ERegistrationStatus.Wait}";
using (var command = _sqLiteConnection.CreateCommand())
{
@@ -804,24 +809,24 @@ namespace HSUCO_Cargo_Garage_Operation_Program
setUserListInformation.CargoVehicleNumber = reader["CargoVehicleNumber"].ToString();
string address = reader["Address"].ToString();
setUserListInformation.Inside = address.IndexOf("화성시") != -1;
tempUserList.Add(setUserListInformation);
tempUserList.Add(setUserListInformation);
}
}
}
// 사용자 랜덤
tempUserList.Shuffle();
int countInsideLarge = tempUserList.Count( x => x.Inside && (x.VehicleType == EVehicleType.Large_Up || x.VehicleType == EVehicleType.Large_Down));
int countInsideLarge = tempUserList.Count(x => x.Inside && (x.VehicleType == EVehicleType.Large_Up || x.VehicleType == EVehicleType.Large_Down));
int countInsideOversized = tempUserList.Count(x => x.Inside && (x.VehicleType == EVehicleType.Oversized_Up || x.VehicleType == EVehicleType.Oversized_Down));
List<SetUserListInformation> setUserListInformationLarge = new List<SetUserListInformation>();
List<SetUserListInformation> setUserListInformationOversized = new List<SetUserListInformation>();
// Large 차량들이 남은 자리보다 작을때
if(leftAreaInformation.Large.Count > countInsideLarge)
if (leftAreaInformation.Large.Count > countInsideLarge)
{
int tmepCount = leftAreaInformation.Large.Count - countInsideLarge;
setUserListInformationLarge.AddRange(tempUserList.Where(x => x.Inside && (x.VehicleType == EVehicleType.Large_Up || x.VehicleType == EVehicleType.Large_Down)));
setUserListInformationLarge.AddRange(tempUserList.Where(x => !x.Inside && (x.VehicleType == EVehicleType.Large_Up || x.VehicleType == EVehicleType.Large_Down)).Take(tmepCount));
}
@@ -831,26 +836,25 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
// OverSized 차량들이 남은 자리보다 적을때
if(leftAreaInformation.OverSized.Count > countInsideOversized)
if (leftAreaInformation.OverSized.Count > countInsideOversized)
{
int tmepCount = leftAreaInformation.OverSized.Count - countInsideOversized;
setUserListInformationOversized.AddRange(tempUserList.Where(x => x.Inside &&( x.VehicleType == EVehicleType.Oversized_Up || x.VehicleType == EVehicleType.Oversized_Down)));
setUserListInformationOversized.AddRange(tempUserList.Where(x => x.Inside && (x.VehicleType == EVehicleType.Oversized_Up || x.VehicleType == EVehicleType.Oversized_Down)));
setUserListInformationOversized.AddRange(tempUserList.Where(x => !x.Inside && (x.VehicleType == EVehicleType.Oversized_Up || x.VehicleType == EVehicleType.Oversized_Down)).Take(tmepCount));
}
else // 화성
{
setUserListInformationOversized.AddRange(tempUserList.Where(x => x.Inside && (x.VehicleType == EVehicleType.Oversized_Up || x.VehicleType == EVehicleType.Oversized_Down)).Take(leftAreaInformation.OverSized.Count));
}
List<SetUserListInformation> setUserListInformationFinal = new List<SetUserListInformation>();
string test = "";
for (int i = 0; i < setUserListInformationLarge.Count; i++)
{
var mm = setUserListInformationLarge.Where(x => x.UID == setUserListInformationLarge[i].UID);
test += mm.Count();
SetUserListInformation setUserListInformation = setUserListInformationLarge[i];
setUserListInformation.Area = "대형-" + leftAreaInformation.Large[i];
setUserListInformationFinal.Add(setUserListInformation);
@@ -895,6 +899,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return result;
}
public static bool SetManualUserList(string no, int area, DateTime startDate, DateTime endDate)
{
SetUserListInformation setUserListInformation = new SetUserListInformation();
@@ -912,7 +917,6 @@ namespace HSUCO_Cargo_Garage_Operation_Program
setUserListInformation.CargoVehicleNumber = reader["CargoVehicleNumber"].ToString();
setUserListInformation.Date = DateTime.Parse(reader["Date"].ToString());
setUserListInformation.VehicleType = (EVehicleType)int.Parse(reader["VehicleType"].ToString());
}
}
}
@@ -953,9 +957,8 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
}
}
}
List<SetUserListInformation> setUserListInformationLarge = new List<SetUserListInformation>();
List<SetUserListInformation> setUserListInformationOversized = new List<SetUserListInformation>();
setUserListInformationLarge.AddRange(setUserListInformations.Where(x => x.VehicleType == EVehicleType.Large_Down || x.VehicleType == EVehicleType.Large_Up).Take(leftAreaInformation.Large.Count));
@@ -1012,6 +1015,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return ResultSetUserListInformations;
}
public static List<ProceedsData> GetLedgerProceeds(DateTime startDateTime, DateTime endDateTime)
{
var proceedsDatas = new List<ProceedsData>();
@@ -1122,7 +1126,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
}
}
/// Amount 의
/// Amount 의
query = $"SELECT SUM(AMOUNT) FROM LedgerProceeds Where UserNo='{no}' And (Type={(int)EProceedsType.Fees} Or Type={(int)EProceedsType.ExtensionFees})";
using (var command = _sqLiteConnection.CreateCommand())
{
@@ -1137,13 +1141,13 @@ namespace HSUCO_Cargo_Garage_Operation_Program
int.TryParse(amountString, out amount);
certificateInformation.Amount = amount;
}
}
}
return certificateInformation;
}
/// <summary>
/// 발급 번호로 발급데이터 조회
/// </summary>
@@ -1242,6 +1246,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return lastNo;
}
public static int GetLastDropOrder(DateTime DropDate)
{
var lastDropOrder = 0;
@@ -1262,6 +1267,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return lastDropOrder;
}
public static bool SetCertificate(SetCertificateInformation setCertificateInformation)
{
var query =
@@ -1285,6 +1291,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
return insertCommand.ExecuteNonQuery() > 0;
}
}
public static EVehicleType GetApplicantVehicleType(string no)
{
var query = $"SELECT VehicleType From ViewApplicantList Where No='{no}'";
@@ -1303,6 +1310,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return (EVehicleType)type;
}
public static EVehicleType GetUserListVehicleType(string no)
{
var query = $"SELECT VehicleType From ViewUserList Where No='{no}'";
@@ -1367,6 +1375,7 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
return leftAreaInformation;
}
public static LeftUserInformation GetLeftUserLots(DateTime startDateTime)
{
LeftUserInformation leftUserInformation = new LeftUserInformation();
@@ -1385,9 +1394,10 @@ namespace HSUCO_Cargo_Garage_Operation_Program
leftUserInformation.OverSized = 0;
var query = $"SELECT VehicleType , COUNT(VehicleType) as Count From ViewApplicantList Where (ApplicantType={(int)EApplicantType.LotsOut} OR ApplicantType={(int)EApplicantType.Wait}) And RegistrationStatus={(int)ERegistrationStatus.Wait} Group By VehicleType";
leftUserInformation = GetLeftUser(startDateTime, leftUserInformation, query);
return leftUserInformation;
}
public static LeftUserInformation GetLeftUser(DateTime startDateTime, LeftUserInformation leftUserInformation, string query)
{
LeftUserInformation leftUser = leftUserInformation;
@@ -1407,17 +1417,18 @@ namespace HSUCO_Cargo_Garage_Operation_Program
case EVehicleType.Large_Up:
leftUser.Large += count;
break;
case EVehicleType.Oversized_Down:
case EVehicleType.Oversized_Up:
leftUser.OverSized += count;
break;
}
}
}
}
return leftUser;
}
public static Settings LoadSettings()
{
var settings = new Settings();
@@ -1560,5 +1571,82 @@ namespace HSUCO_Cargo_Garage_Operation_Program
}
}
}
#region AreaSetting
public static int SetAreaSetting(AreaSetting areaSetting)
{
int no = 0;
var query = $"INSERT INTO AreaSetting(AreaName, AreaType) VALUES(@name,@type);" +
$"select last_insert_rowid();";
using (var insertCommand = _sqLiteConnection.CreateCommand())
{
insertCommand.CommandText = query;
insertCommand.Parameters.AddWithValue("@name", areaSetting.AreaName);
insertCommand.Parameters.AddWithValue("@type", (int)areaSetting.AreaType);
no = Convert.ToInt32(insertCommand.ExecuteScalar().ToString());
}
return no;
}
public static bool CheckDuplicateAreaSettingName(string areaName)
{
bool result = true;
var query = $"SELECT COUNT(*) FROM AreaSetting WHERE AreaName=@name;";
using (var command = _sqLiteConnection.CreateCommand())
{
command.CommandText = query;
command.Parameters.AddWithValue("@name", areaName);
using (var reader = command.ExecuteReader())
{
while (reader.Read())
{
result = Convert.ToInt32(reader[0].ToString()) != 0;
}
}
}
return result;
}
public static bool UpdateAreaSetting(AreaSetting areaSetting)
{
bool result = false;
var query = "UPDATE AreaSetting Set AreaName=@name, AreaType=@type WHERE No=@no";
using (var updateCommand = _sqLiteConnection.CreateCommand())
{
updateCommand.CommandText = query;
updateCommand.Parameters.AddWithValue("@name", areaSetting.AreaName);
updateCommand.Parameters.AddWithValue("@type", areaSetting.AreaType);
updateCommand.Parameters.AddWithValue("@no", areaSetting.No);
var updateResult = updateCommand.ExecuteNonQuery();
result = updateResult > 0;
}
return result;
}
public static List<AreaSetting> GetAreaSettings()
{
List<AreaSetting> areaSettings = new List<AreaSetting>();
var query = $"SELECT * FROM AreaSetting;";
using (var command = _sqLiteConnection.CreateCommand())
{
command.CommandText = query;
using (var reader = command.ExecuteReader())
{
while (reader.Read())
{
AreaSetting areaSetting = new AreaSetting();
areaSetting.No = Convert.ToInt32(reader["No"].ToString());
areaSetting.AreaName = reader["AreaName"].ToString();
areaSetting.AreaType = (EAreaType)Convert.ToInt32(reader["AreaType"].ToString());
areaSettings.Add(areaSetting);
}
}
}
return areaSettings;
}
#endregion AreaSetting
}
}

View File

@@ -128,6 +128,12 @@
<Compile Include="CustomUserControl\ApplicantControl.Designer.cs">
<DependentUpon>ApplicantControl.cs</DependentUpon>
</Compile>
<Compile Include="CustomUserControl\AreaSettingControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="CustomUserControl\AreaSettingControl.Designer.cs">
<DependentUpon>AreaSettingControl.cs</DependentUpon>
</Compile>
<Compile Include="CustomUserControl\ListCertificate.cs">
<SubType>UserControl</SubType>
</Compile>
@@ -207,6 +213,9 @@
<DependentUpon>ApplicantControl.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="CustomUserControl\AreaSettingControl.resx">
<DependentUpon>AreaSettingControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CustomUserControl\ListCertificate.resx">
<DependentUpon>ListCertificate.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -35,19 +35,21 @@
this.tabPage1 = new System.Windows.Forms.TabPage();
this.metroTabControl_Applicant = new MetroFramework.Controls.MetroTabControl();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage();
this.tabPage9 = new System.Windows.Forms.TabPage();
this.tabPage10 = new System.Windows.Forms.TabPage();
this.tabPage2 = 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.userList1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.UserList();
this.tabPage9 = new System.Windows.Forms.TabPage();
this.listProceeds = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ListProceeds();
this.tabPage10 = new System.Windows.Forms.TabPage();
this.listCertificate1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.ListCertificate();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.settings1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.SettingControl();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.areaSettingControl1 = new HSUCO_Cargo_Garage_Operation_Program.CustomUserControl.AreaSettingControl();
this.metroTabControl_Main.SuspendLayout();
this.Main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -60,6 +62,7 @@
this.tabPage9.SuspendLayout();
this.tabPage10.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// metroTabControl_Main
@@ -67,10 +70,11 @@
this.metroTabControl_Main.Controls.Add(this.Main);
this.metroTabControl_Main.Controls.Add(this.tabPage1);
this.metroTabControl_Main.Controls.Add(this.tabPage2);
this.metroTabControl_Main.Controls.Add(this.tabPage3);
this.metroTabControl_Main.Dock = System.Windows.Forms.DockStyle.Fill;
this.metroTabControl_Main.Location = new System.Drawing.Point(20, 60);
this.metroTabControl_Main.Name = "metroTabControl_Main";
this.metroTabControl_Main.SelectedIndex = 0;
this.metroTabControl_Main.SelectedIndex = 3;
this.metroTabControl_Main.Size = new System.Drawing.Size(984, 688);
this.metroTabControl_Main.TabIndex = 0;
this.metroTabControl_Main.UseSelectable = true;
@@ -131,60 +135,6 @@
this.tabPage5.TabIndex = 0;
this.tabPage5.Text = "신규 접수";
//
// tabPage6
//
this.tabPage6.Controls.Add(this.applicantList1);
this.tabPage6.Location = new System.Drawing.Point(4, 38);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Size = new System.Drawing.Size(968, 604);
this.tabPage6.TabIndex = 1;
this.tabPage6.Text = "신청자 리스트";
//
// 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 = "대기자 리스트";
//
// 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.Controls.Add(this.listProceeds);
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 = "수익금 대장";
//
// tabPage10
//
this.tabPage10.Controls.Add(this.listCertificate1);
this.tabPage10.Location = new System.Drawing.Point(4, 38);
this.tabPage10.Name = "tabPage10";
this.tabPage10.Size = new System.Drawing.Size(968, 604);
this.tabPage10.TabIndex = 5;
this.tabPage10.Text = "증명서발급 대장";
//
// tabPage2
//
this.tabPage2.Controls.Add(this.settings1);
this.tabPage2.Location = new System.Drawing.Point(4, 38);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(976, 646);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "설정";
//
// applicant1
//
this.applicant1.BackColor = System.Drawing.Color.White;
@@ -195,6 +145,15 @@
this.applicant1.Size = new System.Drawing.Size(968, 604);
this.applicant1.TabIndex = 1;
//
// tabPage6
//
this.tabPage6.Controls.Add(this.applicantList1);
this.tabPage6.Location = new System.Drawing.Point(4, 38);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Size = new System.Drawing.Size(968, 604);
this.tabPage6.TabIndex = 1;
this.tabPage6.Text = "신청자 리스트";
//
// applicantList1
//
this.applicantList1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -203,6 +162,15 @@
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;
@@ -211,6 +179,15 @@
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 = "이용자 리스트";
//
// userList1
//
this.userList1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -219,6 +196,15 @@
this.userList1.Size = new System.Drawing.Size(968, 604);
this.userList1.TabIndex = 0;
//
// tabPage9
//
this.tabPage9.Controls.Add(this.listProceeds);
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 = "수익금 대장";
//
// listProceeds
//
this.listProceeds.BackColor = System.Drawing.Color.White;
@@ -228,6 +214,15 @@
this.listProceeds.Size = new System.Drawing.Size(968, 604);
this.listProceeds.TabIndex = 0;
//
// tabPage10
//
this.tabPage10.Controls.Add(this.listCertificate1);
this.tabPage10.Location = new System.Drawing.Point(4, 38);
this.tabPage10.Name = "tabPage10";
this.tabPage10.Size = new System.Drawing.Size(968, 604);
this.tabPage10.TabIndex = 5;
this.tabPage10.Text = "증명서발급 대장";
//
// listCertificate1
//
this.listCertificate1.BackColor = System.Drawing.Color.White;
@@ -237,6 +232,15 @@
this.listCertificate1.Size = new System.Drawing.Size(968, 604);
this.listCertificate1.TabIndex = 0;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.settings1);
this.tabPage2.Location = new System.Drawing.Point(4, 38);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(976, 646);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "설정";
//
// settings1
//
this.settings1.BackColor = System.Drawing.Color.White;
@@ -246,6 +250,23 @@
this.settings1.Size = new System.Drawing.Size(976, 646);
this.settings1.TabIndex = 0;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.areaSettingControl1);
this.tabPage3.Location = new System.Drawing.Point(4, 38);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(976, 646);
this.tabPage3.TabIndex = 3;
this.tabPage3.Text = "구역설정";
//
// areaSettingControl1
//
this.areaSettingControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.areaSettingControl1.Location = new System.Drawing.Point(0, 0);
this.areaSettingControl1.Name = "areaSettingControl1";
this.areaSettingControl1.Size = new System.Drawing.Size(976, 646);
this.areaSettingControl1.TabIndex = 0;
//
// Master
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -269,6 +290,7 @@
this.tabPage9.ResumeLayout(false);
this.tabPage10.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -294,6 +316,8 @@
private CustomUserControl.ListCertificate listCertificate1;
private System.Windows.Forms.TabPage Main;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TabPage tabPage3;
private CustomUserControl.AreaSettingControl areaSettingControl1;
}
}