old commit < 250527-232400

This commit is contained in:
SeungHo Yang
2025-05-27 23:26:37 +09:00
parent 7b0aeb30e9
commit 9edbfab45a
129 changed files with 7512 additions and 300413 deletions

View File

@@ -0,0 +1,836 @@
namespace UniMarc
{
partial class From_User_manage_List
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.dgvList = new System.Windows.Forms.DataGridView();
this.dbIDX = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.compidx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.comp_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.boss = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bubin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cobin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uptae = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.jongmok = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.zip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.addr = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fax = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bank_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bank_no = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.email = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.barea = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tbIP = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.tb_barea = new System.Windows.Forms.TextBox();
this.tb_bank_no = new System.Windows.Forms.TextBox();
this.tb_boss = new System.Windows.Forms.TextBox();
this.tb_fax = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.tb_sangho = new System.Windows.Forms.TextBox();
this.tb_jongmok = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.tb_cobin = new System.Windows.Forms.TextBox();
this.tb_bank_comp = new System.Windows.Forms.TextBox();
this.tb_bubin = new System.Windows.Forms.TextBox();
this.tb_uptae = new System.Windows.Forms.TextBox();
this.tb_email = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
this.tb_addr = new System.Windows.Forms.TextBox();
this.tb_zip = new System.Windows.Forms.TextBox();
this.tb_tel = new System.Windows.Forms.TextBox();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.nudCompIDX = new System.Windows.Forms.NumericUpDown();
this.btnUpdate = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnDelete = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.btnInsert = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dgvList)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCompIDX)).BeginInit();
this.tableLayoutPanel2.SuspendLayout();
this.SuspendLayout();
//
// dgvList
//
this.dgvList.AllowUserToAddRows = false;
this.dgvList.AllowUserToDeleteRows = false;
this.dgvList.BackgroundColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, 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.dgvList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dbIDX,
this.compidx,
this.ip,
this.comp_name,
this.boss,
this.bubin,
this.cobin,
this.uptae,
this.jongmok,
this.zip,
this.addr,
this.tel,
this.fax,
this.bank_comp,
this.bank_no,
this.email,
this.barea,
this.grade});
this.dgvList.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvList.Location = new System.Drawing.Point(0, 268);
this.dgvList.MultiSelect = false;
this.dgvList.Name = "dgvList";
this.dgvList.ReadOnly = true;
this.dgvList.RowHeadersWidth = 20;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dgvList.RowsDefaultCellStyle = dataGridViewCellStyle2;
this.dgvList.RowTemplate.Height = 23;
this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvList.Size = new System.Drawing.Size(589, 569);
this.dgvList.TabIndex = 1;
this.dgvList.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dgvList_MouseClick);
//
// dbIDX
//
this.dbIDX.HeaderText = "IDX";
this.dbIDX.Name = "dbIDX";
this.dbIDX.ReadOnly = true;
this.dbIDX.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dbIDX.Visible = false;
this.dbIDX.Width = 70;
//
// compidx
//
this.compidx.HeaderText = "고유번호";
this.compidx.Name = "compidx";
this.compidx.ReadOnly = true;
//
// ip
//
this.ip.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.ip.HeaderText = "IP";
this.ip.Name = "ip";
this.ip.ReadOnly = true;
this.ip.Width = 120;
//
// comp_name
//
this.comp_name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.comp_name.HeaderText = "상호";
this.comp_name.Name = "comp_name";
this.comp_name.ReadOnly = true;
this.comp_name.Width = 150;
//
// boss
//
this.boss.HeaderText = "대표자명";
this.boss.Name = "boss";
this.boss.ReadOnly = true;
//
// bubin
//
this.bubin.HeaderText = "등록번호";
this.bubin.Name = "bubin";
this.bubin.ReadOnly = true;
//
// cobin
//
this.cobin.HeaderText = "법인번호";
this.cobin.Name = "cobin";
this.cobin.ReadOnly = true;
//
// uptae
//
this.uptae.HeaderText = "업태";
this.uptae.Name = "uptae";
this.uptae.ReadOnly = true;
//
// jongmok
//
this.jongmok.HeaderText = "종목";
this.jongmok.Name = "jongmok";
this.jongmok.ReadOnly = true;
//
// zip
//
this.zip.HeaderText = "우편번호";
this.zip.Name = "zip";
this.zip.ReadOnly = true;
//
// addr
//
this.addr.HeaderText = "주소";
this.addr.Name = "addr";
this.addr.ReadOnly = true;
//
// tel
//
this.tel.HeaderText = "전화번호";
this.tel.Name = "tel";
this.tel.ReadOnly = true;
//
// fax
//
this.fax.HeaderText = "팩스번호";
this.fax.Name = "fax";
this.fax.ReadOnly = true;
//
// bank_comp
//
this.bank_comp.HeaderText = "은행명";
this.bank_comp.Name = "bank_comp";
this.bank_comp.ReadOnly = true;
//
// bank_no
//
this.bank_no.HeaderText = "계좌번호";
this.bank_no.Name = "bank_no";
this.bank_no.ReadOnly = true;
//
// email
//
this.email.HeaderText = "이메일";
this.email.Name = "email";
this.email.ReadOnly = true;
//
// barea
//
this.barea.HeaderText = "발송처";
this.barea.Name = "barea";
this.barea.ReadOnly = true;
//
// grade
//
this.grade.HeaderText = "등급";
this.grade.Name = "grade";
this.grade.ReadOnly = true;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
this.tableLayoutPanel1.ColumnCount = 4;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F));
this.tableLayoutPanel1.Controls.Add(this.tbIP, 1, 7);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.label12, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label14, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.label20, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.tb_barea, 3, 6);
this.tableLayoutPanel1.Controls.Add(this.tb_bank_no, 3, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_boss, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.tb_fax, 3, 4);
this.tableLayoutPanel1.Controls.Add(this.label22, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_sangho, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.tb_jongmok, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.label23, 0, 6);
this.tableLayoutPanel1.Controls.Add(this.tb_cobin, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.tb_bank_comp, 1, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_bubin, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.tb_uptae, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.tb_email, 1, 6);
this.tableLayoutPanel1.Controls.Add(this.panel7, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.tb_tel, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.label27, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.label28, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label29, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.label30, 2, 4);
this.tableLayoutPanel1.Controls.Add(this.label31, 2, 5);
this.tableLayoutPanel1.Controls.Add(this.label32, 2, 6);
this.tableLayoutPanel1.Controls.Add(this.label25, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 8);
this.tableLayoutPanel1.Controls.Add(this.label4, 2, 8);
this.tableLayoutPanel1.Controls.Add(this.label9, 2, 7);
this.tableLayoutPanel1.Controls.Add(this.nudCompIDX, 1, 8);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 9;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(589, 230);
this.tableLayoutPanel1.TabIndex = 2;
//
// tbIP
//
this.tbIP.BackColor = System.Drawing.SystemColors.Info;
this.tbIP.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbIP.Location = new System.Drawing.Point(90, 177);
this.tbIP.Margin = new System.Windows.Forms.Padding(0);
this.tbIP.Name = "tbIP";
this.tbIP.Size = new System.Drawing.Size(202, 23);
this.tbIP.TabIndex = 7;
this.tbIP.Text = "ALL";
//
// label1
//
this.label1.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(2, 2);
this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(86, 23);
this.label1.TabIndex = 1;
this.label1.Text = "상 호";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Location = new System.Drawing.Point(2, 27);
this.label3.Margin = new System.Windows.Forms.Padding(0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(86, 23);
this.label3.TabIndex = 1;
this.label3.Text = "등록번호";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label12.Dock = System.Windows.Forms.DockStyle.Fill;
this.label12.Location = new System.Drawing.Point(2, 52);
this.label12.Margin = new System.Windows.Forms.Padding(0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(86, 23);
this.label12.TabIndex = 1;
this.label12.Text = "업 태";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label14
//
this.label14.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label14.Dock = System.Windows.Forms.DockStyle.Fill;
this.label14.Location = new System.Drawing.Point(2, 77);
this.label14.Margin = new System.Windows.Forms.Padding(0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(86, 23);
this.label14.TabIndex = 1;
this.label14.Text = "회사주소";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label20
//
this.label20.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label20.Dock = System.Windows.Forms.DockStyle.Fill;
this.label20.Location = new System.Drawing.Point(2, 102);
this.label20.Margin = new System.Windows.Forms.Padding(0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(86, 23);
this.label20.TabIndex = 1;
this.label20.Text = "전화번호";
this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_barea
//
this.tb_barea.Location = new System.Drawing.Point(382, 152);
this.tb_barea.Margin = new System.Windows.Forms.Padding(0);
this.tb_barea.Name = "tb_barea";
this.tb_barea.Size = new System.Drawing.Size(205, 23);
this.tb_barea.TabIndex = 0;
//
// tb_bank_no
//
this.tb_bank_no.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bank_no.Location = new System.Drawing.Point(382, 127);
this.tb_bank_no.Margin = new System.Windows.Forms.Padding(0);
this.tb_bank_no.Name = "tb_bank_no";
this.tb_bank_no.Size = new System.Drawing.Size(205, 23);
this.tb_bank_no.TabIndex = 0;
//
// tb_boss
//
this.tb_boss.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_boss.Location = new System.Drawing.Point(382, 2);
this.tb_boss.Margin = new System.Windows.Forms.Padding(0);
this.tb_boss.Name = "tb_boss";
this.tb_boss.Size = new System.Drawing.Size(205, 23);
this.tb_boss.TabIndex = 0;
//
// tb_fax
//
this.tb_fax.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_fax.Location = new System.Drawing.Point(382, 102);
this.tb_fax.Margin = new System.Windows.Forms.Padding(0);
this.tb_fax.Name = "tb_fax";
this.tb_fax.Size = new System.Drawing.Size(205, 23);
this.tb_fax.TabIndex = 0;
//
// label22
//
this.label22.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label22.Dock = System.Windows.Forms.DockStyle.Fill;
this.label22.Location = new System.Drawing.Point(2, 127);
this.label22.Margin = new System.Windows.Forms.Padding(0);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(86, 23);
this.label22.TabIndex = 1;
this.label22.Text = "은 행 명";
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_sangho
//
this.tb_sangho.BackColor = System.Drawing.SystemColors.Info;
this.tb_sangho.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_sangho.Location = new System.Drawing.Point(90, 2);
this.tb_sangho.Margin = new System.Windows.Forms.Padding(0);
this.tb_sangho.Name = "tb_sangho";
this.tb_sangho.Size = new System.Drawing.Size(202, 23);
this.tb_sangho.TabIndex = 0;
//
// tb_jongmok
//
this.tb_jongmok.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_jongmok.Location = new System.Drawing.Point(382, 52);
this.tb_jongmok.Margin = new System.Windows.Forms.Padding(0);
this.tb_jongmok.Name = "tb_jongmok";
this.tb_jongmok.Size = new System.Drawing.Size(205, 23);
this.tb_jongmok.TabIndex = 0;
//
// label23
//
this.label23.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label23.Dock = System.Windows.Forms.DockStyle.Fill;
this.label23.Location = new System.Drawing.Point(2, 152);
this.label23.Margin = new System.Windows.Forms.Padding(0);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(86, 23);
this.label23.TabIndex = 1;
this.label23.Text = "이 메 일";
this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_cobin
//
this.tb_cobin.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_cobin.Location = new System.Drawing.Point(382, 27);
this.tb_cobin.Margin = new System.Windows.Forms.Padding(0);
this.tb_cobin.Name = "tb_cobin";
this.tb_cobin.Size = new System.Drawing.Size(205, 23);
this.tb_cobin.TabIndex = 0;
//
// tb_bank_comp
//
this.tb_bank_comp.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bank_comp.Location = new System.Drawing.Point(90, 127);
this.tb_bank_comp.Margin = new System.Windows.Forms.Padding(0);
this.tb_bank_comp.Name = "tb_bank_comp";
this.tb_bank_comp.Size = new System.Drawing.Size(202, 23);
this.tb_bank_comp.TabIndex = 0;
//
// tb_bubin
//
this.tb_bubin.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bubin.Location = new System.Drawing.Point(90, 27);
this.tb_bubin.Margin = new System.Windows.Forms.Padding(0);
this.tb_bubin.Name = "tb_bubin";
this.tb_bubin.Size = new System.Drawing.Size(202, 23);
this.tb_bubin.TabIndex = 0;
//
// tb_uptae
//
this.tb_uptae.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_uptae.Location = new System.Drawing.Point(90, 52);
this.tb_uptae.Margin = new System.Windows.Forms.Padding(0);
this.tb_uptae.Name = "tb_uptae";
this.tb_uptae.Size = new System.Drawing.Size(202, 23);
this.tb_uptae.TabIndex = 0;
//
// tb_email
//
this.tb_email.BackColor = System.Drawing.SystemColors.Info;
this.tb_email.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_email.Location = new System.Drawing.Point(90, 152);
this.tb_email.Margin = new System.Windows.Forms.Padding(0);
this.tb_email.Name = "tb_email";
this.tb_email.Size = new System.Drawing.Size(202, 23);
this.tb_email.TabIndex = 0;
//
// panel7
//
this.tableLayoutPanel1.SetColumnSpan(this.panel7, 3);
this.panel7.Controls.Add(this.tb_addr);
this.panel7.Controls.Add(this.tb_zip);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(90, 77);
this.panel7.Margin = new System.Windows.Forms.Padding(0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(497, 23);
this.panel7.TabIndex = 2;
//
// tb_addr
//
this.tb_addr.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_addr.Location = new System.Drawing.Point(95, 0);
this.tb_addr.Margin = new System.Windows.Forms.Padding(0);
this.tb_addr.Name = "tb_addr";
this.tb_addr.Size = new System.Drawing.Size(402, 23);
this.tb_addr.TabIndex = 0;
//
// tb_zip
//
this.tb_zip.Dock = System.Windows.Forms.DockStyle.Left;
this.tb_zip.Location = new System.Drawing.Point(0, 0);
this.tb_zip.Margin = new System.Windows.Forms.Padding(0);
this.tb_zip.Name = "tb_zip";
this.tb_zip.Size = new System.Drawing.Size(95, 23);
this.tb_zip.TabIndex = 0;
this.tb_zip.Text = " -";
//
// tb_tel
//
this.tb_tel.BackColor = System.Drawing.SystemColors.Info;
this.tb_tel.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_tel.Location = new System.Drawing.Point(90, 102);
this.tb_tel.Margin = new System.Windows.Forms.Padding(0);
this.tb_tel.Name = "tb_tel";
this.tb_tel.Size = new System.Drawing.Size(202, 23);
this.tb_tel.TabIndex = 0;
//
// label27
//
this.label27.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label27.Dock = System.Windows.Forms.DockStyle.Fill;
this.label27.Location = new System.Drawing.Point(294, 2);
this.label27.Margin = new System.Windows.Forms.Padding(0);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(86, 23);
this.label27.TabIndex = 1;
this.label27.Text = "대표자명";
this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label28
//
this.label28.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label28.Dock = System.Windows.Forms.DockStyle.Fill;
this.label28.Location = new System.Drawing.Point(294, 27);
this.label28.Margin = new System.Windows.Forms.Padding(0);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(86, 23);
this.label28.TabIndex = 1;
this.label28.Text = "법인번호";
this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label29
//
this.label29.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label29.Dock = System.Windows.Forms.DockStyle.Fill;
this.label29.Location = new System.Drawing.Point(294, 52);
this.label29.Margin = new System.Windows.Forms.Padding(0);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(86, 23);
this.label29.TabIndex = 1;
this.label29.Text = "종 목";
this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label30
//
this.label30.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label30.Dock = System.Windows.Forms.DockStyle.Fill;
this.label30.Location = new System.Drawing.Point(294, 102);
this.label30.Margin = new System.Windows.Forms.Padding(0);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(86, 23);
this.label30.TabIndex = 1;
this.label30.Text = "팩스번호";
this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label31
//
this.label31.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label31.Dock = System.Windows.Forms.DockStyle.Fill;
this.label31.Location = new System.Drawing.Point(294, 127);
this.label31.Margin = new System.Windows.Forms.Padding(0);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(86, 23);
this.label31.TabIndex = 1;
this.label31.Text = "계좌번호";
this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label32
//
this.label32.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label32.Dock = System.Windows.Forms.DockStyle.Fill;
this.label32.Location = new System.Drawing.Point(294, 152);
this.label32.Margin = new System.Windows.Forms.Padding(0);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(86, 23);
this.label32.TabIndex = 1;
this.label32.Text = "발 송 처";
this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label25
//
this.label25.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label25.Dock = System.Windows.Forms.DockStyle.Fill;
this.label25.Location = new System.Drawing.Point(2, 177);
this.label25.Margin = new System.Windows.Forms.Padding(0);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(86, 23);
this.label25.TabIndex = 1;
this.label25.Text = "IP";
this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(2, 202);
this.label2.Margin = new System.Windows.Forms.Padding(0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(86, 26);
this.label2.TabIndex = 1;
this.label2.Text = "고유번호";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.tableLayoutPanel1.SetColumnSpan(this.label4, 2);
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Location = new System.Drawing.Point(297, 202);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(287, 26);
this.label4.TabIndex = 8;
this.label4.Text = "고유번호는 숫자만 입력 될 수 있습니다.";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label9
//
this.tableLayoutPanel1.SetColumnSpan(this.label9, 2);
this.label9.Dock = System.Windows.Forms.DockStyle.Fill;
this.label9.Location = new System.Drawing.Point(297, 177);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(287, 23);
this.label9.TabIndex = 8;
this.label9.Text = "IP 확인 : http://ipinfo.io/ip 예시(127.0.0.1)";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// nudCompIDX
//
this.nudCompIDX.Dock = System.Windows.Forms.DockStyle.Fill;
this.nudCompIDX.Location = new System.Drawing.Point(90, 202);
this.nudCompIDX.Margin = new System.Windows.Forms.Padding(0);
this.nudCompIDX.Name = "nudCompIDX";
this.nudCompIDX.Size = new System.Drawing.Size(202, 23);
this.nudCompIDX.TabIndex = 9;
this.nudCompIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// btnUpdate
//
this.btnUpdate.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnUpdate.Location = new System.Drawing.Point(147, 0);
this.btnUpdate.Margin = new System.Windows.Forms.Padding(0);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(147, 38);
this.btnUpdate.TabIndex = 0;
this.btnUpdate.Text = "수정";
this.btnUpdate.UseVisualStyleBackColor = true;
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// btnClose
//
this.btnClose.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnClose.Location = new System.Drawing.Point(441, 0);
this.btnClose.Margin = new System.Windows.Forms.Padding(0);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(148, 38);
this.btnClose.TabIndex = 0;
this.btnClose.Text = "닫기";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnDelete
//
this.btnDelete.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnDelete.Location = new System.Drawing.Point(294, 0);
this.btnDelete.Margin = new System.Windows.Forms.Padding(0);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(147, 38);
this.btnDelete.TabIndex = 0;
this.btnDelete.Text = "삭제";
this.btnDelete.UseVisualStyleBackColor = true;
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 4;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.Controls.Add(this.btnUpdate, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.btnClose, 3, 0);
this.tableLayoutPanel2.Controls.Add(this.btnDelete, 2, 0);
this.tableLayoutPanel2.Controls.Add(this.btnInsert, 0, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Top;
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 230);
this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(589, 38);
this.tableLayoutPanel2.TabIndex = 3;
//
// btnInsert
//
this.btnInsert.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnInsert.Location = new System.Drawing.Point(0, 0);
this.btnInsert.Margin = new System.Windows.Forms.Padding(0);
this.btnInsert.Name = "btnInsert";
this.btnInsert.Size = new System.Drawing.Size(147, 38);
this.btnInsert.TabIndex = 0;
this.btnInsert.Text = "추가";
this.btnInsert.UseVisualStyleBackColor = true;
this.btnInsert.Click += new System.EventHandler(this.btnInsert_Click);
//
// From_User_manage_List
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(589, 837);
this.Controls.Add(this.dgvList);
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.tableLayoutPanel1);
this.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "From_User_manage_List";
this.Text = "사업자 등록 관리";
this.Load += new System.EventHandler(this.From_User_manage_List_Load);
((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCompIDX)).EndInit();
this.tableLayoutPanel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dgvList;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox tb_sangho;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.TextBox tb_bank_comp;
private System.Windows.Forms.TextBox tb_bubin;
private System.Windows.Forms.TextBox tb_uptae;
private System.Windows.Forms.TextBox tb_email;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.TextBox tb_zip;
private System.Windows.Forms.TextBox tb_addr;
private System.Windows.Forms.TextBox tb_tel;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tbIP;
private System.Windows.Forms.Button btnDelete;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.TextBox tb_barea;
private System.Windows.Forms.TextBox tb_bank_no;
private System.Windows.Forms.TextBox tb_boss;
private System.Windows.Forms.TextBox tb_fax;
private System.Windows.Forms.TextBox tb_jongmok;
private System.Windows.Forms.TextBox tb_cobin;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Button btnInsert;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.NumericUpDown nudCompIDX;
private System.Windows.Forms.DataGridViewTextBoxColumn dbIDX;
private System.Windows.Forms.DataGridViewTextBoxColumn compidx;
private System.Windows.Forms.DataGridViewTextBoxColumn ip;
private System.Windows.Forms.DataGridViewTextBoxColumn comp_name;
private System.Windows.Forms.DataGridViewTextBoxColumn boss;
private System.Windows.Forms.DataGridViewTextBoxColumn bubin;
private System.Windows.Forms.DataGridViewTextBoxColumn cobin;
private System.Windows.Forms.DataGridViewTextBoxColumn uptae;
private System.Windows.Forms.DataGridViewTextBoxColumn jongmok;
private System.Windows.Forms.DataGridViewTextBoxColumn zip;
private System.Windows.Forms.DataGridViewTextBoxColumn addr;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn fax;
private System.Windows.Forms.DataGridViewTextBoxColumn bank_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn bank_no;
private System.Windows.Forms.DataGridViewTextBoxColumn email;
private System.Windows.Forms.DataGridViewTextBoxColumn barea;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
}
}

View File

@@ -0,0 +1,217 @@
using ExcelTest;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc
{
public partial class From_User_manage_List : Form
{
Helper_DB mDb = new Helper_DB();
public From_User_manage_List()
{
InitializeComponent();
}
private void CheckText()
{
string[] tNeedText = {
tb_sangho.Text, tb_tel.Text, tb_email.Text
};
foreach (string tCheckText in tNeedText)
{
if (tCheckText == "")
{
MessageBox.Show("전화번호, 상호, 이메일, IP, 고유번호는 필수 입력 사항입니다.");
return;
}
}
}
private void btnInsert_Click(object sender, EventArgs e)
{
CheckText();
string tCmd = string.Format("SELECT * FROM `Comp` WHERE `comp_name` = \"{0}\"", tb_sangho.Text);
string tResult = mDb.DB_Send_CMD_Search(tCmd);
if (tResult != "")
{
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
return;
}
tCmd = string.Format("SELECT * FROM `comp` WHERE `compidx` = \"{0}\"", nudCompIDX.Value.ToString());
tResult = mDb.DB_Send_CMD_Search(tCmd);
if (tResult != "")
{
MessageBox.Show("고유번호가 중복되었습니다.\n다시 확인해주세요.");
return;
}
string[] tInsertCol = {
"comp_name", "boss", "bubin", "cobin", "uptae",
"jongmok", "zip", "addr", "tel", "fax",
"bank_comp", "bank_no", "email", "barea", "grade"
,"compidx", "IP"
}; // 15
string[] tInsertData = {
tb_sangho.Text, tb_boss.Text, tb_bubin.Text, tb_cobin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text,
tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체"
,nudCompIDX.Value.ToString(),tbIP.Text
}; // 15
tCmd = mDb.DB_INSERT("Comp", tInsertCol, tInsertData);
mDb.DB_Send_CMD_reVoid(tCmd);
//// IP 적용
//string[] IP_Col = { "compidx", "comp", "IP" };
//string[] IP_Data = { mDb.chk_comp(tb_sangho.Text), tb_sangho.Text, tbIP.Text };//cb_IPList.Text
//tCmd = mDb.DB_INSERT("Comp_IP", IP_Col, IP_Data);
//mDb.DB_Send_CMD_reVoid(tCmd);
RefreshList();
}
private void btnUpdate_Click(object sender, EventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("수정할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 수정 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
if (CUtill.MsgQ(tText) == DialogResult.Yes)
{
CheckText();
string[] tEdit_tbl = {
"comp_name", "boss", "bubin", "cobin", "uptae",
"jongmok", "zip", "addr", "tel", "fax",
"bank_comp", "bank_no", "email", "barea", "grade" };
string[] tEdit_col = {
tb_sangho.Text, tb_boss.Text, tb_bubin.Text, tb_cobin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text,
tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체"
};
string[] tSearch_tbl = { "idx" };
string[] tSearch_col = { dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString() };
string U_cmd = mDb.More_Update("Comp", tEdit_tbl, tEdit_col, tSearch_tbl, tSearch_col);
mDb.DB_Send_CMD_reVoid(U_cmd);
}
RefreshList();
}
private void btnDelete_Click(object sender, EventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("삭제할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
if (CUtill.MsgQ(tText) == DialogResult.Yes)
{
string tD_cmd = mDb.DB_Delete("Comp", "idx", dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString(), "comp_name", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
mDb.DB_Send_CMD_reVoid(tD_cmd);
TextClear();
}
RefreshList();
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void RefreshList()
{
mDb.DBcon();
dgvList.Rows.Clear();
string tArea = string.Format("idx,compidx,ip,comp_name, boss, bubin, cobin, uptae,jongmok, zip, addr, tel, fax,bank_comp, bank_no, email, barea, grade");
string tCmd = string.Format("SELECT {0} FROM Comp", tArea);
List<string> tData = mDb.DB_Send_CMD_Search(tCmd).Split('|').ToList();
for (int i = 0; i < tData.Count; i = i + 18)
{
if (i + 18 > tData.Count) break;
string[] tDgvData = { tData[i], tData[i+1], tData[i+2], tData[i+3], tData[i+4]
,tData[i+5],tData[i+6],tData[i+7],tData[i+8],tData[i+9]
,tData[i+10],tData[i+11],tData[i+12],tData[i+13],tData[i+14],tData[i+15],tData[i+16],tData[i+17]};
dgvList.Rows.Add(tDgvData);
}
dgvList.ClearSelection();
}
private void From_User_manage_List_Load(object sender, EventArgs e)
{
RefreshList();
}
public class CompIpData
{
public string mIP = string.Empty;
public string mCompName = string.Empty;
public string mCompIDX = string.Empty;
public CompIpData(string pIP, string pCompName, string pCompIDX)
{
mIP = pIP;
mCompName = pCompName;
mCompIDX = pCompIDX;
}
}
private void dgvList_MouseClick(object sender, MouseEventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count==0) return;
tb_sangho.InvokeText(dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
tb_boss.InvokeText(dgvList.SelectedRows[0].Cells["boss"].Value.ToString());
tb_bubin.InvokeText(dgvList.SelectedRows[0].Cells["bubin"].Value.ToString());
tb_cobin.InvokeText(dgvList.SelectedRows[0].Cells["cobin"].Value.ToString());
tb_uptae.InvokeText(dgvList.SelectedRows[0].Cells["uptae"].Value.ToString());
tb_jongmok.InvokeText(dgvList.SelectedRows[0].Cells["jongmok"].Value.ToString());
tb_zip.InvokeText(dgvList.SelectedRows[0].Cells["zip"].Value.ToString());
tb_addr.InvokeText(dgvList.SelectedRows[0].Cells["addr"].Value.ToString());
tb_tel.InvokeText(dgvList.SelectedRows[0].Cells["tel"].Value.ToString());
tb_fax.InvokeText(dgvList.SelectedRows[0].Cells["fax"].Value.ToString());
tb_bank_comp.InvokeText(dgvList.SelectedRows[0].Cells["bank_comp"].Value.ToString());
tb_bank_no.InvokeText(dgvList.SelectedRows[0].Cells["bank_no"].Value.ToString());
tb_email.InvokeText(dgvList.SelectedRows[0].Cells["email"].Value.ToString());
tb_barea.InvokeText(dgvList.SelectedRows[0].Cells["barea"].Value.ToString());
tbIP.InvokeText(dgvList.SelectedRows[0].Cells["ip"].Value.ToString());
int tValue = 0;
int.TryParse(dgvList.SelectedRows[0].Cells["compidx"].Value.ToString(), out tValue);
nudCompIDX.InvokeNumeric(tValue);
}
private void TextClear()
{
tb_sangho.InvokeText("");
tb_boss.InvokeText("");
tb_bubin.InvokeText("");
tb_cobin.InvokeText("");
tb_uptae.InvokeText("");
tb_jongmok.InvokeText("");
tb_zip.InvokeText("");
tb_addr.InvokeText("");
tb_tel.InvokeText("");
tb_fax.InvokeText("");
tb_bank_comp.InvokeText("");
tb_bank_no.InvokeText("");
tb_email.InvokeText("");
tb_barea.InvokeText("");
tbIP.InvokeText("");
}
}
}

View File

@@ -0,0 +1,174 @@
<?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>
<metadata name="dbIDX.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="compidx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ip.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="comp_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="boss.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bubin.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cobin.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="uptae.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="jongmok.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="zip.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="addr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fax.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bank_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bank_no.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="email.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="barea.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="grade.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -32,6 +32,7 @@
this.btn_save = new System.Windows.Forms.Button();
this.label11 = new System.Windows.Forms.Label();
this.panel12 = new System.Windows.Forms.Panel();
this.cb_IPList = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.tb_pw = new System.Windows.Forms.TextBox();
this.tb_id = new System.Windows.Forms.TextBox();
@@ -81,7 +82,8 @@
this.label6 = new System.Windows.Forms.Label();
this.panel7 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.cb_IPList = new System.Windows.Forms.ComboBox();
this.tbIP = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.panel12.SuspendLayout();
this.panel16.SuspendLayout();
this.panel20.SuspendLayout();
@@ -134,6 +136,8 @@
// panel12
//
this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel12.Controls.Add(this.label9);
this.panel12.Controls.Add(this.tbIP);
this.panel12.Controls.Add(this.cb_IPList);
this.panel12.Controls.Add(this.button1);
this.panel12.Controls.Add(this.tb_pw);
@@ -172,6 +176,16 @@
this.panel12.Size = new System.Drawing.Size(475, 244);
this.panel12.TabIndex = 11;
//
// cb_IPList
//
this.cb_IPList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_IPList.FormattingEnabled = true;
this.cb_IPList.Location = new System.Drawing.Point(432, 218);
this.cb_IPList.Name = "cb_IPList";
this.cb_IPList.Size = new System.Drawing.Size(36, 20);
this.cb_IPList.TabIndex = 6;
this.cb_IPList.Visible = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(178, 190);
@@ -606,14 +620,22 @@
this.label7.TabIndex = 0;
this.label7.Text = "허가 IP";
//
// cb_IPList
// tbIP
//
this.cb_IPList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_IPList.FormattingEnabled = true;
this.cb_IPList.Location = new System.Drawing.Point(64, 218);
this.cb_IPList.Name = "cb_IPList";
this.cb_IPList.Size = new System.Drawing.Size(182, 20);
this.cb_IPList.TabIndex = 6;
this.tbIP.Location = new System.Drawing.Point(64, 218);
this.tbIP.Name = "tbIP";
this.tbIP.Size = new System.Drawing.Size(182, 21);
this.tbIP.TabIndex = 7;
this.tbIP.Text = "ALL";
//
// label9
//
this.label9.Location = new System.Drawing.Point(252, 218);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(174, 21);
this.label9.TabIndex = 8;
this.label9.Text = "IP 확인 : http://ipinfo.io/ip";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// User_manage
//
@@ -722,5 +744,7 @@
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.ComboBox cb_IPList;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tbIP;
}
}

View File

@@ -109,9 +109,9 @@ namespace WindowsFormsApp1
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp", InsertCol, InsertData));
// IP 적용
string[] IP_Col = { "compidx", "IP" };
string[] IP_Data = { db.chk_comp(tb_sangho.Text), cb_IPList.Text };
string[] IP_Col = { "compidx","comp", "IP" };
string[] IP_Data = { db.chk_comp(tb_sangho.Text), tb_sangho.Text,tbIP.Text };//cb_IPList.Text
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp_IP", IP_Col, IP_Data));
InsertAccount(tb_sangho.Text);