=====* UniMarc [0.0136] 버전 업데이트 내용 *=====

** ERP 작업 전면 중단 (마크우선) **
*** 마크작성 - 칸채우기 버그 수정을 위해 테스트 계정 제외하고 잠금***

1. 메인
ㄴ> 즐겨찾기 추가된 아이콘 색 추가해서 변경.

2. 복본조사
ㄴ> 필터 적용 메시지박스로 표출되게 변경. (복본조사 실행할 시 조건에 맞춰 적용한 후, 본 조사가 들어가게 됨)
This commit is contained in:
SeungHo Yang
2022-03-17 09:02:54 +09:00
parent 2fe96d3861
commit 723818aa34
34 changed files with 846 additions and 62 deletions

Binary file not shown.

View File

@@ -38,7 +38,11 @@ namespace WindowsFormsApp1
string db_res = db.DB_Send_CMD_Search(cmd); string db_res = db.DB_Send_CMD_Search(cmd);
string[] result = db_res.Split('|'); string[] result = db_res.Split('|');
((Main)(this.Owner)).User_Name = ID_text.Text; ((Main)(this.Owner)).User_Name = ID_text.Text;
if (db_res == "") { return; } if (db_res == "") {
MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
return;
}
if (ID_text.Text == result[1]) { if (ID_text.Text == result[1]) {
if (PW_text.Text == result[2]) if (PW_text.Text == result[2])
{ {

View File

@@ -124,6 +124,8 @@
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.botUserLabel = new System.Windows.Forms.ToolStripLabel(); this.botUserLabel = new System.Windows.Forms.ToolStripLabel();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
@@ -162,28 +164,28 @@
// 사업체정보 // 사업체정보
// //
this..Name = "사업체정보"; this..Name = "사업체정보";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "사업체 정보"; this..Text = "사업체 정보";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 사용자관리 // 사용자관리
// //
this..Name = "사용자관리"; this..Name = "사용자관리";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "사용자 관리"; this..Text = "사용자 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 납품거래처관리 // 납품거래처관리
// //
this..Name = "납품거래처관리"; this..Name = "납품거래처관리";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "납품 / 거래처 관리"; this..Text = "납품 / 거래처 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 주문처관리 // 주문처관리
// //
this..Name = "주문처관리"; this..Name = "주문처관리";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "주문처 관리"; this..Text = "주문처 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -191,14 +193,14 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "비밀번호변경"; this..Name = "비밀번호변경";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "비밀번호 변경"; this..Text = "비밀번호 변경";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 도서정보관리 // 도서정보관리
// //
this..Name = "도서정보관리"; this..Name = "도서정보관리";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "도서정보 관리"; this..Text = "도서정보 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -206,7 +208,7 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "사용대장"; this..Name = "사용대장";
this..Size = new System.Drawing.Size(175, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "사용대장"; this..Text = "사용대장";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -625,14 +627,14 @@
// 캘린더 // 캘린더
// //
this..Name = "캘린더"; this..Name = "캘린더";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "캘린더"; this..Text = "캘린더";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 채팅 // 채팅
// //
this..Name = "채팅"; this..Name = "채팅";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "채팅"; this..Text = "채팅";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -640,14 +642,14 @@
// 퀵메뉴 // 퀵메뉴
// //
this..Name = "퀵메뉴"; this..Name = "퀵메뉴";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "퀵메뉴"; this..Text = "퀵메뉴";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 게시판 // 게시판
// //
this..Name = "게시판"; this..Name = "게시판";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "게시판"; this..Text = "게시판";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -655,7 +657,7 @@
// 공지발송 // 공지발송
// //
this..Name = "공지발송"; this..Name = "공지발송";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "공지발송"; this..Text = "공지발송";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -668,35 +670,35 @@
this., this.,
this.}); this.});
this..Name = "판매"; this..Name = "판매";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "판매"; this..Text = "판매";
this..Visible = false; this..Visible = false;
// //
// 판매1 // 판매1
// //
this.1.Name = "판매1"; this.1.Name = "판매1";
this.1.Size = new System.Drawing.Size(122, 22); this.1.Size = new System.Drawing.Size(180, 22);
this.1.Text = "판매"; this.1.Text = "판매";
this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 정산 // 정산
// //
this..Name = "정산"; this..Name = "정산";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "정산"; this..Text = "정산";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 판매마감 // 판매마감
// //
this..Name = "판매마감"; this..Name = "판매마감";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "판매마감"; this..Text = "판매마감";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 회원관리 // 회원관리
// //
this..Name = "회원관리"; this..Name = "회원관리";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "회원관리"; this..Text = "회원관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -715,43 +717,45 @@
// //
// 이용자관리ToolStripMenuItem // 이용자관리ToolStripMenuItem
// //
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "이용자관리ToolStripMenuItem"; this.ToolStripMenuItem.Name = "이용자관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "이용자 관리"; this.ToolStripMenuItem.Text = "이용자 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 공지발송ToolStripMenuItem1 // 공지발송ToolStripMenuItem1
// //
this.ToolStripMenuItem1.Name = "공지발송ToolStripMenuItem1"; this.ToolStripMenuItem1.Name = "공지발송ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem1.Text = "공지 발송"; this.ToolStripMenuItem1.Text = "공지 발송";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 매출내역ToolStripMenuItem // 매출내역ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "매출내역ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매출내역ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "매출내역"; this.ToolStripMenuItem.Text = "매출내역";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 이용자거래처조회ToolStripMenuItem // 이용자거래처조회ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "이용자거래처조회ToolStripMenuItem"; this.ToolStripMenuItem.Name = "이용자거래처조회ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "이용자 거래처 조회"; this.ToolStripMenuItem.Text = "이용자 거래처 조회";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 마크설정ToolStripMenuItem // 마크설정ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "마크설정ToolStripMenuItem"; this.ToolStripMenuItem.Name = "마크설정ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크설정"; this.ToolStripMenuItem.Text = "마크설정";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 일괄처리관리ToolStripMenuItem // 일괄처리관리ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "일괄처리관리ToolStripMenuItem"; this.ToolStripMenuItem.Name = "일괄처리관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "일괄처리 관리"; this.ToolStripMenuItem.Text = "일괄처리 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -973,6 +977,20 @@
this.botUserLabel.Size = new System.Drawing.Size(43, 22); this.botUserLabel.Size = new System.Drawing.Size(43, 22);
this.botUserLabel.Text = "이용자"; this.botUserLabel.Text = "이용자";
// //
// 신규사업자등록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "신규사업자등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "신규 사업자 등록";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 기존사업자관리ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "기존사업자관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "기존 사업자 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// Main // Main
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1096,5 +1114,7 @@
public System.Windows.Forms.Button ShortCut4; public System.Windows.Forms.Button ShortCut4;
public System.Windows.Forms.Button ShortCut12; public System.Windows.Forms.Button ShortCut12;
public System.Windows.Forms.Button ShortCut11; public System.Windows.Forms.Button ShortCut11;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
} }
} }

View File

@@ -28,7 +28,6 @@ namespace WindowsFormsApp1
{ {
public partial class Main : Form public partial class Main : Form
{ {
Email email = new Email();
Helper_DB _DB = new Helper_DB(); Helper_DB _DB = new Helper_DB();
public string DB_User_Data; public string DB_User_Data;
public string User; public string User;
@@ -79,7 +78,7 @@ namespace WindowsFormsApp1
ToolStripMenuItem.Visible = false; ToolStripMenuItem.Visible = false;
ToolStripMenuItem.Visible = false; ToolStripMenuItem.Visible = false;
// } // }
if (result[7] != "관리자") { ToolStripMenuItem.Visible = false; } if (result[4] != "테스트용") { ToolStripMenuItem.Visible = false; }
Settings.Default.compidx = com_idx; Settings.Default.compidx = com_idx;
Settings.Default.User = botUserLabel.Text; Settings.Default.User = botUserLabel.Text;
@@ -140,7 +139,7 @@ namespace WindowsFormsApp1
private Image SetPicture(string Text) private Image SetPicture(string Text)
{ {
Image[] source_Home = { Image[] source_Home = {
Resources._1_1_사업체정보, Resources._1_2_사용자관리, Resources._1_3_납품처관리 Resources._1_2_사용자관리, Resources._1_3_납품처관리
}; };
@@ -1322,7 +1321,7 @@ namespace WindowsFormsApp1
Mac_Setting master_mac_setting; Mac_Setting master_mac_setting;
Batch_processing master_batch_Processing; Batch_processing master_batch_Processing;
private void ToolStripMenuItem_Click(object sender, EventArgs e) private void ToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (master_user_Manage != null) if (master_user_Manage != null)
{ {
@@ -1331,12 +1330,16 @@ namespace WindowsFormsApp1
else else
{ {
master_user_Manage = new User_manage(this); master_user_Manage = new User_manage(this);
master_user_Manage.MdiParent = this;
master_user_Manage.WindowState = FormWindowState.Maximized;
master_user_Manage.FormClosed += (o, ea) => master_user_Manage = null; master_user_Manage.FormClosed += (o, ea) => master_user_Manage = null;
master_user_Manage.Show(); master_user_Manage.Show();
} }
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void ToolStripMenuItem1_Click(object sender, EventArgs e) private void ToolStripMenuItem1_Click(object sender, EventArgs e)
{ {
if (master_notice_Send != null) if (master_notice_Send != null)
@@ -1413,6 +1416,5 @@ namespace WindowsFormsApp1
} }
} }
#endregion #endregion
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -28,33 +28,660 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.btn_close = new System.Windows.Forms.Button();
this.btn_save = new System.Windows.Forms.Button();
this.label11 = new System.Windows.Forms.Label();
this.panel12 = new System.Windows.Forms.Panel();
this.tb_boss = new System.Windows.Forms.TextBox();
this.tb_bank_comp = new System.Windows.Forms.TextBox();
this.tb_bank_no = new System.Windows.Forms.TextBox();
this.tb_fax = new System.Windows.Forms.TextBox();
this.tb_tel = new System.Windows.Forms.TextBox();
this.tb_barea = new System.Windows.Forms.TextBox();
this.tb_email = new System.Windows.Forms.TextBox();
this.tb_addr = new System.Windows.Forms.TextBox();
this.tb_zip = new System.Windows.Forms.TextBox();
this.tb_jongmok = new System.Windows.Forms.TextBox();
this.tb_uptae = new System.Windows.Forms.TextBox();
this.tb_cobin = new System.Windows.Forms.TextBox();
this.tb_bubin = new System.Windows.Forms.TextBox();
this.tb_sangho = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.panel19 = new System.Windows.Forms.Panel();
this.label18 = new System.Windows.Forms.Label();
this.panel18 = new System.Windows.Forms.Panel();
this.label17 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.panel11 = new System.Windows.Forms.Panel();
this.label21 = new System.Windows.Forms.Label();
this.panel10 = new System.Windows.Forms.Panel();
this.label10 = new System.Windows.Forms.Label();
this.panel8 = new System.Windows.Forms.Panel();
this.label8 = new System.Windows.Forms.Label();
this.panel17 = new System.Windows.Forms.Panel();
this.label16 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.panel4 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.panel5 = new System.Windows.Forms.Panel();
this.label5 = new System.Windows.Forms.Label();
this.panel14 = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.label6 = new System.Windows.Forms.Label();
this.tb_pw = new System.Windows.Forms.TextBox();
this.tb_id = new System.Windows.Forms.TextBox();
this.panel16 = new System.Windows.Forms.Panel();
this.label15 = new System.Windows.Forms.Label();
this.panel20 = new System.Windows.Forms.Panel();
this.label19 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.panel12.SuspendLayout();
this.panel2.SuspendLayout();
this.panel19.SuspendLayout();
this.panel18.SuspendLayout();
this.panel1.SuspendLayout();
this.panel11.SuspendLayout();
this.panel10.SuspendLayout();
this.panel8.SuspendLayout();
this.panel17.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.panel5.SuspendLayout();
this.panel14.SuspendLayout();
this.panel6.SuspendLayout();
this.panel16.SuspendLayout();
this.panel20.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(423, 5);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(59, 25);
this.btn_close.TabIndex = 12;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// btn_save
//
this.btn_save.Location = new System.Drawing.Point(358, 5);
this.btn_save.Name = "btn_save";
this.btn_save.Size = new System.Drawing.Size(59, 25);
this.btn_save.TabIndex = 14;
this.btn_save.Text = "저 장";
this.btn_save.UseVisualStyleBackColor = true;
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label11.Location = new System.Drawing.Point(10, 9);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(139, 16);
this.label11.TabIndex = 10;
this.label11.Text = "신규 사업자 등록";
//
// panel12
//
this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel12.Controls.Add(this.button1);
this.panel12.Controls.Add(this.tb_pw);
this.panel12.Controls.Add(this.tb_id);
this.panel12.Controls.Add(this.panel16);
this.panel12.Controls.Add(this.panel20);
this.panel12.Controls.Add(this.tb_boss);
this.panel12.Controls.Add(this.tb_bank_comp);
this.panel12.Controls.Add(this.tb_bank_no);
this.panel12.Controls.Add(this.tb_fax);
this.panel12.Controls.Add(this.tb_tel);
this.panel12.Controls.Add(this.tb_barea);
this.panel12.Controls.Add(this.tb_email);
this.panel12.Controls.Add(this.tb_addr);
this.panel12.Controls.Add(this.tb_zip);
this.panel12.Controls.Add(this.tb_jongmok);
this.panel12.Controls.Add(this.tb_uptae);
this.panel12.Controls.Add(this.tb_cobin);
this.panel12.Controls.Add(this.tb_bubin);
this.panel12.Controls.Add(this.tb_sangho);
this.panel12.Controls.Add(this.panel2);
this.panel12.Controls.Add(this.panel19);
this.panel12.Controls.Add(this.panel18);
this.panel12.Controls.Add(this.panel1);
this.panel12.Controls.Add(this.panel11);
this.panel12.Controls.Add(this.panel10);
this.panel12.Controls.Add(this.panel8);
this.panel12.Controls.Add(this.panel17);
this.panel12.Controls.Add(this.panel3);
this.panel12.Controls.Add(this.panel4);
this.panel12.Controls.Add(this.panel5);
this.panel12.Controls.Add(this.panel14);
this.panel12.Controls.Add(this.panel6);
this.panel12.Location = new System.Drawing.Point(7, 36);
this.panel12.Name = "panel12";
this.panel12.Size = new System.Drawing.Size(475, 217);
this.panel12.TabIndex = 11;
//
// tb_boss
//
this.tb_boss.Location = new System.Drawing.Point(318, 3);
this.tb_boss.Name = "tb_boss";
this.tb_boss.Size = new System.Drawing.Size(150, 21);
this.tb_boss.TabIndex = 0;
//
// tb_bank_comp
//
this.tb_bank_comp.Location = new System.Drawing.Point(64, 137);
this.tb_bank_comp.Name = "tb_bank_comp";
this.tb_bank_comp.Size = new System.Drawing.Size(182, 21);
this.tb_bank_comp.TabIndex = 0;
//
// tb_bank_no
//
this.tb_bank_no.Location = new System.Drawing.Point(318, 137);
this.tb_bank_no.Name = "tb_bank_no";
this.tb_bank_no.Size = new System.Drawing.Size(150, 21);
this.tb_bank_no.TabIndex = 0;
//
// tb_fax
//
this.tb_fax.Location = new System.Drawing.Point(318, 110);
this.tb_fax.Name = "tb_fax";
this.tb_fax.Size = new System.Drawing.Size(150, 21);
this.tb_fax.TabIndex = 0;
//
// tb_tel
//
this.tb_tel.BackColor = System.Drawing.SystemColors.Info;
this.tb_tel.Location = new System.Drawing.Point(64, 110);
this.tb_tel.Name = "tb_tel";
this.tb_tel.Size = new System.Drawing.Size(182, 21);
this.tb_tel.TabIndex = 0;
//
// tb_barea
//
this.tb_barea.Location = new System.Drawing.Point(318, 164);
this.tb_barea.Name = "tb_barea";
this.tb_barea.Size = new System.Drawing.Size(150, 21);
this.tb_barea.TabIndex = 0;
//
// tb_email
//
this.tb_email.BackColor = System.Drawing.SystemColors.Info;
this.tb_email.Location = new System.Drawing.Point(64, 164);
this.tb_email.Name = "tb_email";
this.tb_email.Size = new System.Drawing.Size(182, 21);
this.tb_email.TabIndex = 0;
//
// tb_addr
//
this.tb_addr.Location = new System.Drawing.Point(144, 83);
this.tb_addr.Name = "tb_addr";
this.tb_addr.Size = new System.Drawing.Size(324, 21);
this.tb_addr.TabIndex = 0;
//
// tb_zip
//
this.tb_zip.Location = new System.Drawing.Point(64, 83);
this.tb_zip.Name = "tb_zip";
this.tb_zip.Size = new System.Drawing.Size(74, 21);
this.tb_zip.TabIndex = 0;
this.tb_zip.Text = " -";
//
// tb_jongmok
//
this.tb_jongmok.Location = new System.Drawing.Point(318, 57);
this.tb_jongmok.Name = "tb_jongmok";
this.tb_jongmok.Size = new System.Drawing.Size(150, 21);
this.tb_jongmok.TabIndex = 0;
//
// tb_uptae
//
this.tb_uptae.Location = new System.Drawing.Point(64, 57);
this.tb_uptae.Name = "tb_uptae";
this.tb_uptae.Size = new System.Drawing.Size(182, 21);
this.tb_uptae.TabIndex = 0;
//
// tb_cobin
//
this.tb_cobin.Location = new System.Drawing.Point(318, 30);
this.tb_cobin.Name = "tb_cobin";
this.tb_cobin.Size = new System.Drawing.Size(150, 21);
this.tb_cobin.TabIndex = 0;
//
// tb_bubin
//
this.tb_bubin.Location = new System.Drawing.Point(64, 30);
this.tb_bubin.Name = "tb_bubin";
this.tb_bubin.Size = new System.Drawing.Size(182, 21);
this.tb_bubin.TabIndex = 0;
//
// tb_sangho
//
this.tb_sangho.BackColor = System.Drawing.SystemColors.Info;
this.tb_sangho.Location = new System.Drawing.Point(64, 3);
this.tb_sangho.Name = "tb_sangho";
this.tb_sangho.Size = new System.Drawing.Size(182, 21);
this.tb_sangho.TabIndex = 0;
//
// panel2
//
this.panel2.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.label2);
this.panel2.Location = new System.Drawing.Point(-1, -1);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(59, 28);
this.panel2.TabIndex = 0;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(2, 6);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 0;
this.label2.Text = "상 호";
//
// panel19
//
this.panel19.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel19.Controls.Add(this.label18);
this.panel19.Location = new System.Drawing.Point(252, -1);
this.panel19.Name = "panel19";
this.panel19.Size = new System.Drawing.Size(59, 28);
this.panel19.TabIndex = 0;
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(2, 6);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(53, 12);
this.label18.TabIndex = 0;
this.label18.Text = "대표자명";
//
// panel18
//
this.panel18.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel18.Controls.Add(this.label17);
this.panel18.Location = new System.Drawing.Point(252, 26);
this.panel18.Name = "panel18";
this.panel18.Size = new System.Drawing.Size(59, 28);
this.panel18.TabIndex = 0;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(2, 7);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(53, 12);
this.label17.TabIndex = 0;
this.label17.Text = "법인번호";
//
// panel1
//
this.panel1.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(-1, 26);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(59, 28);
this.panel1.TabIndex = 0;
//
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(381, 219); this.label1.Location = new System.Drawing.Point(2, 7);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(111, 12); this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 1; this.label1.TabIndex = 0;
this.label1.Text = "마스터_이용자 관리"; this.label1.Text = "등록번호";
//
// panel11
//
this.panel11.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel11.Controls.Add(this.label21);
this.panel11.Location = new System.Drawing.Point(252, 134);
this.panel11.Name = "panel11";
this.panel11.Size = new System.Drawing.Size(59, 28);
this.panel11.TabIndex = 0;
//
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(2, 8);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(53, 12);
this.label21.TabIndex = 0;
this.label21.Text = "계좌번호";
//
// panel10
//
this.panel10.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel10.Controls.Add(this.label10);
this.panel10.Location = new System.Drawing.Point(252, 107);
this.panel10.Name = "panel10";
this.panel10.Size = new System.Drawing.Size(59, 28);
this.panel10.TabIndex = 0;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(2, 8);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(53, 12);
this.label10.TabIndex = 0;
this.label10.Text = "팩스번호";
//
// panel8
//
this.panel8.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel8.Controls.Add(this.label8);
this.panel8.Location = new System.Drawing.Point(-1, 161);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(59, 28);
this.panel8.TabIndex = 0;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(4, 8);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(49, 12);
this.label8.TabIndex = 0;
this.label8.Text = "이 메 일";
//
// panel17
//
this.panel17.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel17.Controls.Add(this.label16);
this.panel17.Location = new System.Drawing.Point(252, 161);
this.panel17.Name = "panel17";
this.panel17.Size = new System.Drawing.Size(59, 28);
this.panel17.TabIndex = 0;
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(4, 8);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(49, 12);
this.label16.TabIndex = 0;
this.label16.Text = "발 송 처";
//
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.label3);
this.panel3.Location = new System.Drawing.Point(-1, 80);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(59, 28);
this.panel3.TabIndex = 0;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(2, 7);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 0;
this.label3.Text = "회사주소";
//
// panel4
//
this.panel4.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.label4);
this.panel4.Location = new System.Drawing.Point(-1, 53);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(59, 28);
this.panel4.TabIndex = 0;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(2, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 0;
this.label4.Text = "업 태";
//
// panel5
//
this.panel5.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel5.Controls.Add(this.label5);
this.panel5.Location = new System.Drawing.Point(-1, 134);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(59, 28);
this.panel5.TabIndex = 0;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(4, 7);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 12);
this.label5.TabIndex = 0;
this.label5.Text = "은 행 명";
//
// panel14
//
this.panel14.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel14.Controls.Add(this.label13);
this.panel14.Location = new System.Drawing.Point(252, 53);
this.panel14.Name = "panel14";
this.panel14.Size = new System.Drawing.Size(59, 28);
this.panel14.TabIndex = 0;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(2, 8);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(53, 12);
this.label13.TabIndex = 0;
this.label13.Text = "종 목";
//
// panel6
//
this.panel6.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel6.Controls.Add(this.label6);
this.panel6.Location = new System.Drawing.Point(-1, 107);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(59, 28);
this.panel6.TabIndex = 0;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(2, 8);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 12);
this.label6.TabIndex = 0;
this.label6.Text = "전화번호";
//
// tb_pw
//
this.tb_pw.BackColor = System.Drawing.SystemColors.Info;
this.tb_pw.Location = new System.Drawing.Point(318, 191);
this.tb_pw.Name = "tb_pw";
this.tb_pw.PasswordChar = '*';
this.tb_pw.Size = new System.Drawing.Size(150, 21);
this.tb_pw.TabIndex = 1;
//
// tb_id
//
this.tb_id.BackColor = System.Drawing.SystemColors.Info;
this.tb_id.Location = new System.Drawing.Point(64, 191);
this.tb_id.Name = "tb_id";
this.tb_id.Size = new System.Drawing.Size(107, 21);
this.tb_id.TabIndex = 2;
this.tb_id.TextChanged += new System.EventHandler(this.tb_id_TextChanged);
//
// panel16
//
this.panel16.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel16.Controls.Add(this.label15);
this.panel16.Location = new System.Drawing.Point(-1, 188);
this.panel16.Name = "panel16";
this.panel16.Size = new System.Drawing.Size(59, 28);
this.panel16.TabIndex = 3;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(6, 7);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(44, 12);
this.label15.TabIndex = 0;
this.label15.Text = "만들 ID";
//
// panel20
//
this.panel20.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.panel20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel20.Controls.Add(this.label19);
this.panel20.Location = new System.Drawing.Point(252, 188);
this.panel20.Name = "panel20";
this.panel20.Size = new System.Drawing.Size(59, 28);
this.panel20.TabIndex = 4;
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(3, 7);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(51, 12);
this.label19.TabIndex = 0;
this.label19.Text = "만들 PW";
//
// button1
//
this.button1.Location = new System.Drawing.Point(178, 190);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(69, 23);
this.button1.TabIndex = 5;
this.button1.Text = "중복확인";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
// //
// User_manage // User_manage
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(488, 260);
this.Controls.Add(this.label1); this.Controls.Add(this.btn_close);
this.Controls.Add(this.btn_save);
this.Controls.Add(this.label11);
this.Controls.Add(this.panel12);
this.Name = "User_manage"; this.Name = "User_manage";
this.Text = "Home_User_management"; this.Text = "신규 사업자 등록";
this.Load += new System.EventHandler(this.User_manage_Load);
this.panel12.ResumeLayout(false);
this.panel12.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel19.ResumeLayout(false);
this.panel19.PerformLayout();
this.panel18.ResumeLayout(false);
this.panel18.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel11.ResumeLayout(false);
this.panel11.PerformLayout();
this.panel10.ResumeLayout(false);
this.panel10.PerformLayout();
this.panel8.ResumeLayout(false);
this.panel8.PerformLayout();
this.panel17.ResumeLayout(false);
this.panel17.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel14.ResumeLayout(false);
this.panel14.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel16.ResumeLayout(false);
this.panel16.PerformLayout();
this.panel20.ResumeLayout(false);
this.panel20.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Button btn_save;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Panel panel12;
private System.Windows.Forms.TextBox tb_boss;
private System.Windows.Forms.TextBox tb_bank_comp;
private System.Windows.Forms.TextBox tb_bank_no;
private System.Windows.Forms.TextBox tb_fax;
private System.Windows.Forms.TextBox tb_tel;
private System.Windows.Forms.TextBox tb_barea;
private System.Windows.Forms.TextBox tb_email;
private System.Windows.Forms.TextBox tb_addr;
private System.Windows.Forms.TextBox tb_zip;
private System.Windows.Forms.TextBox tb_jongmok;
private System.Windows.Forms.TextBox tb_uptae;
private System.Windows.Forms.TextBox tb_cobin;
private System.Windows.Forms.TextBox tb_bubin;
private System.Windows.Forms.TextBox tb_sangho;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel19;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Panel panel18;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel11;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Panel panel10;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel panel17;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Panel panel14;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox tb_pw;
private System.Windows.Forms.TextBox tb_id;
private System.Windows.Forms.Panel panel16;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Panel panel20;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Button button1;
} }
} }

View File

@@ -12,11 +12,115 @@ namespace WindowsFormsApp1
{ {
public partial class User_manage : Form public partial class User_manage : Form
{ {
Helper_DB db = new Helper_DB();
Main main; Main main;
bool isIDcheck = false;
public User_manage(Main _main) public User_manage(Main _main)
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
} }
private void User_manage_Load(object sender, EventArgs e)
{
db.DBcon();
button1.ForeColor = Color.Red;
}
private void button1_Click(object sender, EventArgs e)
{
string ID = tb_id.Text;
if (ID == "")
{
MessageBox.Show("ID칸이 비어있습니다!");
return;
}
if (!System.Text.RegularExpressions.Regex.IsMatch(ID, @"^[a-zA-Z0-9]"))
{
MessageBox.Show("영어와 숫자 조합으로 작성해주세요!");
isIDcheck = false;
return;
}
string cmd = string.Format("SELECT * FROM `User_Data` WHERE `ID` = \"{0}\";", ID);
string res = db.DB_Send_CMD_Search(cmd);
if (res == "") {
MessageBox.Show("사용가능한 이이디입니다. [" + ID + "]");
isIDcheck = true;
button1.ForeColor = Color.Blue;
}
else {
MessageBox.Show("중복된 아이디입니다. [" + ID + "]");
isIDcheck = false;
}
}
private void tb_id_TextChanged(object sender, EventArgs e)
{
isIDcheck = false;
button1.ForeColor = Color.Red;
}
private void btn_save_Click(object sender, EventArgs e)
{
string[] NeedText = {
tb_sangho.Text, tb_tel.Text, tb_email.Text, tb_id.Text, tb_pw.Text
};
foreach (string CheckText in NeedText)
{
if (CheckText == "") {
MessageBox.Show("노란 박스는 꼭 채워주세요!");
return;
}
}
string cmd_sanghoCheck = string.Format("SELECT * FROM `Comp` WHERE `comp_name` = \"{0}\"", tb_sangho.Text);
string res = db.DB_Send_CMD_Search(cmd_sanghoCheck);
if (res != "") {
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
return;
}
if (!isIDcheck)
{
MessageBox.Show("아이디 중복확인 먼저 진행해주세요.");
return;
}
string[] InsertData = {
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, "외부업체"
}; // 15
string[] InsertCol = {
"comp_name", "boss", "bubin", "cobin", "uptae",
"jongmok", "zip", "addr", "tel", "fax",
"bank_comp", "bank_no", "email", "barea", "grade"
}; // 15
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp", InsertCol, InsertData));
InsertAccount(tb_sangho.Text);
}
private void InsertAccount(string compName)
{
string ID = tb_id.Text;
string PW = tb_pw.Text;
string boss = tb_boss.Text;
string[] InsertData = { ID, PW, boss, compName };
string[] InsertCol = { "ID", "PW", "name", "affil" };
db.DB_Send_CMD_reVoid(db.DB_INSERT("User_Data", InsertCol, InsertData));
}
private void btn_close_Click(object sender, EventArgs e)
{
this.Close();
}
} }
} }

View File

@@ -51,11 +51,11 @@
this.panel6 = new System.Windows.Forms.Panel(); this.panel6 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.chk_RemoveBrit = new System.Windows.Forms.CheckBox(); this.chk_RemoveBrit = new System.Windows.Forms.CheckBox();
this.btn_ResultEmpty = new System.Windows.Forms.Button();
this.btn_GridReset = new System.Windows.Forms.Button(); this.btn_GridReset = new System.Windows.Forms.Button();
this.btn_OpenMemo = new System.Windows.Forms.Button(); this.btn_OpenMemo = new System.Windows.Forms.Button();
this.chk_spChar = new System.Windows.Forms.CheckBox(); this.chk_spChar = new System.Windows.Forms.CheckBox();
this.panel5 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel();
this.btn_ResultEmpty = new System.Windows.Forms.Button();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.SearchCount)).BeginInit();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
@@ -301,6 +301,8 @@
// chk_RemoveBrit // chk_RemoveBrit
// //
this.chk_RemoveBrit.AutoSize = true; this.chk_RemoveBrit.AutoSize = true;
this.chk_RemoveBrit.Checked = true;
this.chk_RemoveBrit.CheckState = System.Windows.Forms.CheckState.Checked;
this.chk_RemoveBrit.Location = new System.Drawing.Point(131, 8); this.chk_RemoveBrit.Location = new System.Drawing.Point(131, 8);
this.chk_RemoveBrit.Name = "chk_RemoveBrit"; this.chk_RemoveBrit.Name = "chk_RemoveBrit";
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16); this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
@@ -308,6 +310,16 @@
this.chk_RemoveBrit.Text = "괄호안의 문자 제거"; this.chk_RemoveBrit.Text = "괄호안의 문자 제거";
this.chk_RemoveBrit.UseVisualStyleBackColor = true; this.chk_RemoveBrit.UseVisualStyleBackColor = true;
// //
// btn_ResultEmpty
//
this.btn_ResultEmpty.Location = new System.Drawing.Point(473, 4);
this.btn_ResultEmpty.Name = "btn_ResultEmpty";
this.btn_ResultEmpty.Size = new System.Drawing.Size(75, 24);
this.btn_ResultEmpty.TabIndex = 2;
this.btn_ResultEmpty.Text = "결과 비움";
this.btn_ResultEmpty.UseVisualStyleBackColor = true;
this.btn_ResultEmpty.Click += new System.EventHandler(this.btn_ResultEmpty_Click);
//
// btn_GridReset // btn_GridReset
// //
this.btn_GridReset.Location = new System.Drawing.Point(553, 4); this.btn_GridReset.Location = new System.Drawing.Point(553, 4);
@@ -331,6 +343,8 @@
// chk_spChar // chk_spChar
// //
this.chk_spChar.AutoSize = true; this.chk_spChar.AutoSize = true;
this.chk_spChar.Checked = true;
this.chk_spChar.CheckState = System.Windows.Forms.CheckState.Checked;
this.chk_spChar.Location = new System.Drawing.Point(12, 8); this.chk_spChar.Location = new System.Drawing.Point(12, 8);
this.chk_spChar.Name = "chk_spChar"; this.chk_spChar.Name = "chk_spChar";
this.chk_spChar.Size = new System.Drawing.Size(100, 16); this.chk_spChar.Size = new System.Drawing.Size(100, 16);
@@ -347,16 +361,6 @@
this.panel5.Size = new System.Drawing.Size(673, 738); this.panel5.Size = new System.Drawing.Size(673, 738);
this.panel5.TabIndex = 4; this.panel5.TabIndex = 4;
// //
// btn_ResultEmpty
//
this.btn_ResultEmpty.Location = new System.Drawing.Point(473, 4);
this.btn_ResultEmpty.Name = "btn_ResultEmpty";
this.btn_ResultEmpty.Size = new System.Drawing.Size(75, 24);
this.btn_ResultEmpty.TabIndex = 2;
this.btn_ResultEmpty.Text = "결과 비움";
this.btn_ResultEmpty.UseVisualStyleBackColor = true;
this.btn_ResultEmpty.Click += new System.EventHandler(this.btn_ResultEmpty_Click);
//
// Check_copy // Check_copy
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -64,8 +64,28 @@ namespace WindowsFormsApp1.Mac
private void btn_Start_Click(object sender, EventArgs e) private void btn_Start_Click(object sender, EventArgs e)
{ {
DialogResult MsgResult = MessageBox.Show("선택된 필터를 적용하시겠습니까?", "필터 적용", MessageBoxButtons.YesNoCancel);
if (MsgResult == DialogResult.Yes)
{
int count = dataGridView1.Rows.Count;
if (count <= 1)
return;
if (chk_spChar.Checked)
RemoveSpecialChar(count);
if (chk_RemoveBrit.Checked)
RemoveInBrit(count);
}
else if (MsgResult == DialogResult.Cancel)
return;
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0]; dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
return;
webBrowser1.Navigate(""); webBrowser1.Navigate("");
int SCount = Convert.ToInt32(SearchCount.Value); int SCount = Convert.ToInt32(SearchCount.Value);
@@ -75,8 +95,8 @@ namespace WindowsFormsApp1.Mac
webBrowser1.Navigate(URL); webBrowser1.Navigate(URL);
if (URL.IndexOf("") < 0 || if (URL.IndexOf("") < 0)// ||
URL.IndexOf("lib.jeonnam.go.kr") < 0) //URL.IndexOf("lib.jeonnam.go.kr") < 0)
{ {
webBrowser1.DocumentCompleted += this.webBrowser1_DocumentCompleted; webBrowser1.DocumentCompleted += this.webBrowser1_DocumentCompleted;
return; return;
@@ -197,15 +217,14 @@ namespace WindowsFormsApp1.Mac
(text); (text);
} }
// 전남 완도 TODO: 작업해야함 // 전남 완도 (완도군립, 노화공공, 금일공공, 보길윤선도작은, 군외동백숲작은, 도담도담작은)
else if (URL.IndexOf("book.wando.go.kr") > -1) else if (URL.IndexOf("book.wando.go.kr") > -1)
{ {
BookCount = (text); BookCount = (text);
} }
// 전남 도립 TODO: 오류발생 (원인불명) [한번에 3개씩 검색결과가 표출됨] // 전남 도립 TODO: 오류발생 (원인불명) [한번에 3개씩 검색결과가 표출됨]
/* else if (URL.IndexOf("lib.jeonnam.go.kr") > -1)
* else if (URL.IndexOf("lib.jeonnam.go.kr") > -1)
{ {
Delay(300); Delay(300);
if (URL.IndexOf("value") > -1) if (URL.IndexOf("value") > -1)
@@ -213,7 +232,6 @@ namespace WindowsFormsApp1.Mac
(text); (text);
} }
*/
// 전남 고흥 (군립중앙, 군립남부, 군립북부 등 총 7개 도서관) // 전남 고흥 (군립중앙, 군립남부, 군립북부 등 총 7개 도서관)
else if (URL.IndexOf("ghlib.go.kr/BookSearch") > -1) else if (URL.IndexOf("ghlib.go.kr/BookSearch") > -1)
@@ -225,7 +243,6 @@ namespace WindowsFormsApp1.Mac
} }
// 전남 여수 (쌍봉, 현암, 환경, 돌산 등 총 31개 도서관) // 전남 여수 (쌍봉, 현암, 환경, 돌산 등 총 31개 도서관)
// TODO: 방식이 다름. 다른 방법으로 돌아야함.
else if (URL.IndexOf("yslib.yeosu.go.kr") > -1) else if (URL.IndexOf("yslib.yeosu.go.kr") > -1)
{ {
if (URL.IndexOf("searchWord") > -1) if (URL.IndexOf("searchWord") > -1)
@@ -557,7 +574,7 @@ namespace WindowsFormsApp1.Mac
} }
#endregion #endregion
#region () #region
bool isWandoClick = false; bool isWandoClick = false;
string (string text) string (string text)
@@ -698,7 +715,7 @@ namespace WindowsFormsApp1.Mac
} }
#endregion #endregion
#region () #region
void (string text) void (string text)
{ {
foreach (HtmlElement DIV in webBrowser1.Document.GetElementsByTagName("div")) foreach (HtmlElement DIV in webBrowser1.Document.GetElementsByTagName("div"))
@@ -958,8 +975,13 @@ namespace WindowsFormsApp1.Mac
break; break;
string Target = dataGridView1.Rows[a].Cells["book_name"].Value.ToString(); string Target = dataGridView1.Rows[a].Cells["book_name"].Value.ToString();
string res = Regex.Replace(Target, @"[^a-zA-Z0-9가-힣_\s()]", "", RegexOptions.Singleline);
// 구두점 제거 ,.;:/
// Target = Target.Replace(",", "").Replace(".", "").Replace(";", "").Replace(":", "");
string res = Regex.Replace(Target, @"[^a-zA-Z0-9가-힣_\s()]", "", RegexOptions.Singleline);
dataGridView1.Rows[a].Cells["book_name"].Value = res.Trim(); dataGridView1.Rows[a].Cells["book_name"].Value = res.Trim();
} }
} }

View File

@@ -86,6 +86,7 @@ namespace ExcelTest
if (compidx != "3") if (compidx != "3")
this.tabControl1.TabPages.Remove(this.tabPage2); this.tabControl1.TabPages.Remove(this.tabPage2);
} }
/// <summary> /// <summary>
/// 가져온 목록을 책목록과 연동하여 Grid에 집어넣음. /// 가져온 목록을 책목록과 연동하여 Grid에 집어넣음.
/// </summary> /// </summary>
@@ -96,7 +97,7 @@ namespace ExcelTest
db.DBcon(); db.DBcon();
string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`"; string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`";
string[] sear_tbl = { "date", "list_name", "compidx" }; string[] sear_tbl = { "date", "list_name", "compidx" };
string[] sear_col = { date, value, C_idx}; string[] sear_col = { date, value, C_idx };
lbl_BookList.Text = value; lbl_BookList.Text = value;