=====* unimarc *=====

------------------------

=====* ISBN 체크 프로그램  *===== ★작업완료★
 a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것.

------------------------

===== 작업중 =====

===== 보류 =====
 b. 마크목록 폼 작성중
  1. 엑셀반출 기능 추가중 사용 작업대기중

 c. 마크 반입 폼 수정중
  1. 불러오기는 되나 저장 기능이 필요함.

===== 완료 =====
1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
4. 데이터베이스 내 이미지URL을 가져오는작업 완료

ISBN 체크 프로그램 => 본프로그램에 이식중.
ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음.
ㄴ> 버그 체크 계속 해볼것. 21-04-15
ㄴ> 21_04_20 버그 없음.

2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료)
 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김.
 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료.
 2-3. 저장기능 완료. (04.14 체크해볼것 - 완료)

주문관리 작업중 (DataGridView 주문처 엔터키 입력시 검색되게끔 하는 코드작성중) - 21.04.27 완료
This commit is contained in:
SeungHo Yang
2021-04-27 18:38:38 +09:00
parent 6fccee9167
commit 278c4bb5e2
16 changed files with 307 additions and 202 deletions

View File

@@ -229,28 +229,28 @@
// 물품등록ToolStripMenuItem // 물품등록ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "물품등록ToolStripMenuItem"; this.ToolStripMenuItem.Name = "물품등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 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(166, 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(166, 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(166, 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);
// //
@@ -258,7 +258,7 @@
// //
this.ToolStripMenuItem.Enabled = false; this.ToolStripMenuItem.Enabled = false;
this.ToolStripMenuItem.Name = "예가조회ToolStripMenuItem"; this.ToolStripMenuItem.Name = "예가조회ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 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);
// //
@@ -266,14 +266,14 @@
// //
this.ToolStripMenuItem.Enabled = false; this.ToolStripMenuItem.Enabled = false;
this.ToolStripMenuItem.Name = "견적서ToolStripMenuItem"; this.ToolStripMenuItem.Name = "견적서ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 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(166, 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);
// //
@@ -281,14 +281,14 @@
// //
this.ToolStripMenuItem.Enabled = false; this.ToolStripMenuItem.Enabled = false;
this.ToolStripMenuItem.Name = "매입반품입력ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매입반품입력ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 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(166, 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);
// //
@@ -307,14 +307,14 @@
// 송금내역조회ToolStripMenuItem // 송금내역조회ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "송금내역조회ToolStripMenuItem"; this.ToolStripMenuItem.Name = "송금내역조회ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(154, 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(154, 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);
// //
@@ -325,27 +325,28 @@
this.ToolStripMenuItem1, this.ToolStripMenuItem1,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "매입장부ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매입장부ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "매입"; this.ToolStripMenuItem.Text = "매입";
// //
// 매입집계ToolStripMenuItem // 매입집계ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "매입집계ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매입집계ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(138, 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);
// //
// 매입장부ToolStripMenuItem1 // 매입장부ToolStripMenuItem1
// //
this.ToolStripMenuItem1.Name = "매입장부ToolStripMenuItem1"; this.ToolStripMenuItem1.Name = "매입장부ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(138, 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.Enabled = false;
this.ToolStripMenuItem.Name = "매입미결제ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매입미결제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(138, 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);
// //
@@ -357,41 +358,42 @@
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "매출입력ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매출입력ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "매출"; this.ToolStripMenuItem.Text = "매출";
// //
// 매출입력ToolStripMenuItem1 // 매출입력ToolStripMenuItem1
// //
this.ToolStripMenuItem1.Name = "매출입력ToolStripMenuItem1"; this.ToolStripMenuItem1.Name = "매출입력ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(138, 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);
// //
// 매출입금ToolStripMenuItem1 // 매출입금ToolStripMenuItem1
// //
this.ToolStripMenuItem1.Name = "매출입금ToolStripMenuItem1"; this.ToolStripMenuItem1.Name = "매출입금ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(138, 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(138, 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.Enabled = false;
this.ToolStripMenuItem.Name = "매출미수금ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매출미수금ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(138, 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(154, 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);
// //

View File

@@ -28,9 +28,9 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.tb_search_order = new System.Windows.Forms.TextBox(); this.tb_search_order = new System.Windows.Forms.TextBox();
this.cb_user = new System.Windows.Forms.ComboBox(); this.cb_user = new System.Windows.Forms.ComboBox();
@@ -51,12 +51,12 @@
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox();
this.btn_lookup = new System.Windows.Forms.Button(); this.btn_lookup = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button(); this.btn_Reset_Order = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button(); this.button8 = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox(); this.checkBox3 = new System.Windows.Forms.CheckBox();
this.button9 = new System.Windows.Forms.Button(); this.btn_All_chk = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button(); this.btn_All_unchk = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button(); this.btn_Save = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button(); this.button12 = new System.Windows.Forms.Button();
this.cb_ordersend = new System.Windows.Forms.ComboBox(); this.cb_ordersend = new System.Windows.Forms.ComboBox();
this.btn_order_send = new System.Windows.Forms.Button(); this.btn_order_send = new System.Windows.Forms.Button();
@@ -268,22 +268,23 @@
// //
// btn_lookup // btn_lookup
// //
this.btn_lookup.Location = new System.Drawing.Point(902, 14); this.btn_lookup.Location = new System.Drawing.Point(912, 13);
this.btn_lookup.Name = "btn_lookup"; this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(75, 23); this.btn_lookup.Size = new System.Drawing.Size(85, 25);
this.btn_lookup.TabIndex = 25; this.btn_lookup.TabIndex = 25;
this.btn_lookup.Text = "조 회"; this.btn_lookup.Text = "조 회";
this.btn_lookup.UseVisualStyleBackColor = true; this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click); this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
// //
// button7 // btn_Reset_Order
// //
this.button7.Location = new System.Drawing.Point(19, 111); this.btn_Reset_Order.Location = new System.Drawing.Point(19, 111);
this.button7.Name = "button7"; this.btn_Reset_Order.Name = "btn_Reset_Order";
this.button7.Size = new System.Drawing.Size(77, 23); this.btn_Reset_Order.Size = new System.Drawing.Size(77, 23);
this.button7.TabIndex = 33; this.btn_Reset_Order.TabIndex = 33;
this.button7.Text = "주문처 리셋"; this.btn_Reset_Order.Text = "주문처 리셋";
this.button7.UseVisualStyleBackColor = true; this.btn_Reset_Order.UseVisualStyleBackColor = true;
this.btn_Reset_Order.Click += new System.EventHandler(this.btn_Reset_Order_Click);
// //
// button8 // button8
// //
@@ -293,65 +294,71 @@
this.button8.TabIndex = 34; this.button8.TabIndex = 34;
this.button8.Text = "자동주문처"; this.button8.Text = "자동주문처";
this.button8.UseVisualStyleBackColor = true; this.button8.UseVisualStyleBackColor = true;
this.button8.Visible = false;
// //
// checkBox3 // checkBox3
// //
this.checkBox3.AutoSize = true; this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(102, 108); this.checkBox3.Location = new System.Drawing.Point(102, 110);
this.checkBox3.Name = "checkBox3"; this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(72, 28); this.checkBox3.Size = new System.Drawing.Size(72, 28);
this.checkBox3.TabIndex = 35; this.checkBox3.TabIndex = 35;
this.checkBox3.Text = "isbn자동\n주문처"; this.checkBox3.Text = "isbn자동\n주문처";
this.checkBox3.UseVisualStyleBackColor = true; this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.Visible = false;
// //
// button9 // btn_All_chk
// //
this.button9.Location = new System.Drawing.Point(252, 111); this.btn_All_chk.Location = new System.Drawing.Point(252, 111);
this.button9.Name = "button9"; this.btn_All_chk.Name = "btn_All_chk";
this.button9.Size = new System.Drawing.Size(85, 23); this.btn_All_chk.Size = new System.Drawing.Size(85, 23);
this.button9.TabIndex = 36; this.btn_All_chk.TabIndex = 36;
this.button9.Text = "전체주문선택"; this.btn_All_chk.Text = "전체주문선택";
this.button9.UseVisualStyleBackColor = true; this.btn_All_chk.UseVisualStyleBackColor = true;
this.btn_All_chk.Click += new System.EventHandler(this.btn_All_chk_Click);
// //
// button10 // btn_All_unchk
// //
this.button10.Location = new System.Drawing.Point(341, 111); this.btn_All_unchk.Location = new System.Drawing.Point(341, 111);
this.button10.Name = "button10"; this.btn_All_unchk.Name = "btn_All_unchk";
this.button10.Size = new System.Drawing.Size(85, 23); this.btn_All_unchk.Size = new System.Drawing.Size(85, 23);
this.button10.TabIndex = 37; this.btn_All_unchk.TabIndex = 37;
this.button10.Text = "전체주문취소"; this.btn_All_unchk.Text = "전체선택취소";
this.button10.UseVisualStyleBackColor = true; this.btn_All_unchk.UseVisualStyleBackColor = true;
this.btn_All_unchk.Click += new System.EventHandler(this.btn_All_chk_Click);
// //
// button11 // btn_Save
// //
this.button11.Location = new System.Drawing.Point(430, 111); this.btn_Save.Location = new System.Drawing.Point(1019, 13);
this.button11.Name = "button11"; this.btn_Save.Name = "btn_Save";
this.button11.Size = new System.Drawing.Size(85, 23); this.btn_Save.Size = new System.Drawing.Size(85, 25);
this.button11.TabIndex = 38; this.btn_Save.TabIndex = 38;
this.button11.Text = "변경사항적용"; this.btn_Save.Text = "저 장";
this.button11.UseVisualStyleBackColor = true; this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
// //
// button12 // button12
// //
this.button12.Location = new System.Drawing.Point(519, 111); this.button12.Location = new System.Drawing.Point(432, 111);
this.button12.Name = "button12"; this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(62, 23); this.button12.Size = new System.Drawing.Size(62, 23);
this.button12.TabIndex = 39; this.button12.TabIndex = 39;
this.button12.Text = "주문순위"; this.button12.Text = "주문순위";
this.button12.UseVisualStyleBackColor = true; this.button12.UseVisualStyleBackColor = true;
this.button12.Visible = false;
// //
// cb_ordersend // cb_ordersend
// //
this.cb_ordersend.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cb_ordersend.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_ordersend.FormattingEnabled = true; this.cb_ordersend.FormattingEnabled = true;
this.cb_ordersend.Location = new System.Drawing.Point(587, 112); this.cb_ordersend.Location = new System.Drawing.Point(500, 112);
this.cb_ordersend.Name = "cb_ordersend"; this.cb_ordersend.Name = "cb_ordersend";
this.cb_ordersend.Size = new System.Drawing.Size(77, 20); this.cb_ordersend.Size = new System.Drawing.Size(77, 20);
this.cb_ordersend.TabIndex = 40; this.cb_ordersend.TabIndex = 40;
// //
// btn_order_send // btn_order_send
// //
this.btn_order_send.Location = new System.Drawing.Point(737, 111); this.btn_order_send.Location = new System.Drawing.Point(650, 111);
this.btn_order_send.Name = "btn_order_send"; this.btn_order_send.Name = "btn_order_send";
this.btn_order_send.Size = new System.Drawing.Size(75, 23); this.btn_order_send.Size = new System.Drawing.Size(75, 23);
this.btn_order_send.TabIndex = 42; this.btn_order_send.TabIndex = 42;
@@ -361,7 +368,7 @@
// //
// btn_send_chk // btn_send_chk
// //
this.btn_send_chk.Location = new System.Drawing.Point(670, 111); this.btn_send_chk.Location = new System.Drawing.Point(583, 111);
this.btn_send_chk.Name = "btn_send_chk"; this.btn_send_chk.Name = "btn_send_chk";
this.btn_send_chk.Size = new System.Drawing.Size(63, 23); this.btn_send_chk.Size = new System.Drawing.Size(63, 23);
this.btn_send_chk.TabIndex = 41; this.btn_send_chk.TabIndex = 41;
@@ -410,14 +417,14 @@
// //
this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.chk, this.chk,
this.order, this.order,
@@ -435,24 +442,24 @@
this.order_date, this.order_date,
this.send_date, this.send_date,
this.num}); this.num});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2; this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle11;
this.dataGridView1.Location = new System.Drawing.Point(9, 142); this.dataGridView1.Location = new System.Drawing.Point(9, 142);
this.dataGridView1.MultiSelect = false; this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle12.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle12;
this.dataGridView1.RowHeadersWidth = 10; this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
@@ -460,8 +467,8 @@
this.dataGridView1.TabIndex = 47; this.dataGridView1.TabIndex = 47;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_DataError); this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_DataError);
this.dataGridView1.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
// //
// chk // chk
@@ -652,9 +659,9 @@
// //
// btn_close // btn_close
// //
this.btn_close.Location = new System.Drawing.Point(1180, 14); this.btn_close.Location = new System.Drawing.Point(1019, 49);
this.btn_close.Name = "btn_close"; this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23); this.btn_close.Size = new System.Drawing.Size(85, 25);
this.btn_close.TabIndex = 49; this.btn_close.TabIndex = 49;
this.btn_close.Text = "닫 기"; this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true; this.btn_close.UseVisualStyleBackColor = true;
@@ -662,9 +669,9 @@
// //
// btn_Excel // btn_Excel
// //
this.btn_Excel.Location = new System.Drawing.Point(902, 47); this.btn_Excel.Location = new System.Drawing.Point(912, 49);
this.btn_Excel.Name = "btn_Excel"; this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(75, 23); this.btn_Excel.Size = new System.Drawing.Size(85, 25);
this.btn_Excel.TabIndex = 50; this.btn_Excel.TabIndex = 50;
this.btn_Excel.Text = "엑 셀"; this.btn_Excel.Text = "엑 셀";
this.btn_Excel.UseVisualStyleBackColor = true; this.btn_Excel.UseVisualStyleBackColor = true;
@@ -687,15 +694,15 @@
this.Controls.Add(this.label12); this.Controls.Add(this.label12);
this.Controls.Add(this.btn_order_send); this.Controls.Add(this.btn_order_send);
this.Controls.Add(this.btn_send_chk); this.Controls.Add(this.btn_send_chk);
this.Controls.Add(this.btn_lookup);
this.Controls.Add(this.cb_ordersend); this.Controls.Add(this.cb_ordersend);
this.Controls.Add(this.button12); this.Controls.Add(this.button12);
this.Controls.Add(this.button11); this.Controls.Add(this.btn_Save);
this.Controls.Add(this.button10); this.Controls.Add(this.btn_All_unchk);
this.Controls.Add(this.button9); this.Controls.Add(this.btn_All_chk);
this.Controls.Add(this.checkBox3); this.Controls.Add(this.checkBox3);
this.Controls.Add(this.button8); this.Controls.Add(this.button8);
this.Controls.Add(this.button7); this.Controls.Add(this.btn_Reset_Order);
this.Controls.Add(this.btn_lookup);
this.Name = "Order_input"; this.Name = "Order_input";
this.Text = "주문입력"; this.Text = "주문입력";
this.Load += new System.EventHandler(this.Order_input_Load); this.Load += new System.EventHandler(this.Order_input_Load);
@@ -731,12 +738,12 @@
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button btn_lookup; private System.Windows.Forms.Button btn_lookup;
private System.Windows.Forms.Button button7; private System.Windows.Forms.Button btn_Reset_Order;
private System.Windows.Forms.Button button8; private System.Windows.Forms.Button button8;
private System.Windows.Forms.CheckBox checkBox3; private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button button9; private System.Windows.Forms.Button btn_All_chk;
private System.Windows.Forms.Button button10; private System.Windows.Forms.Button btn_All_unchk;
private System.Windows.Forms.Button button11; private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button button12; private System.Windows.Forms.Button button12;
private System.Windows.Forms.ComboBox cb_ordersend; private System.Windows.Forms.ComboBox cb_ordersend;
private System.Windows.Forms.Button btn_order_send; private System.Windows.Forms.Button btn_order_send;

View File

@@ -22,7 +22,6 @@ namespace WindowsFormsApp1.Delivery
int ColumnIndex; int ColumnIndex;
string chk_mkdate = ""; string chk_mkdate = "";
bool chk_V = false; bool chk_V = false;
bool chk_O = false;
public Order_input(Main _main) public Order_input(Main _main)
{ {
InitializeComponent(); InitializeComponent();
@@ -155,21 +154,21 @@ namespace WindowsFormsApp1.Delivery
/// 작업명단 검색중 상위 텍스트박스 및 콤보박스의 값에 따라 출력할지 안할지 분류. /// 작업명단 검색중 상위 텍스트박스 및 콤보박스의 값에 따라 출력할지 안할지 분류.
/// </summary> /// </summary>
/// <param name="strValues"></param> /// <param name="strValues"></param>
/// <returns></returns> /// <returns>false일 경우 필터에 걸러진 경우임.</returns>
private bool Array_Inspection(string[] strValues) private bool Array_Inspection(string[] strValues)
{ {
if (tb_search_order.Text != "") { if (tb_search_order.Text != "") {
if(strValues[1].Contains(tb_search_order.Text) == false) { if (!strValues[1].Contains(tb_search_order.Text)) {
return false; return false;
} }
} }
if (tb_search_book_name.Text != "") { if (tb_search_book_name.Text != "") {
if (strValues[3].Contains(tb_search_book_name.Text) == false) { if (!strValues[3].Contains(tb_search_book_name.Text)) {
return false; return false;
} }
} }
if (tb_search_book_comp.Text != "") { if (tb_search_book_comp.Text != "") {
if (strValues[5].Contains(tb_search_book_comp.Text) == false) { if (!strValues[5].Contains(tb_search_book_comp.Text)) {
return false; return false;
} }
} }
@@ -188,6 +187,10 @@ namespace WindowsFormsApp1.Delivery
if (e.KeyCode == Keys.Enter) { if (e.KeyCode == Keys.Enter) {
btn_lookup_Click(null, null); btn_lookup_Click(null, null);
} }
}
private void btn_Save_Click(object sender, EventArgs e)
{
} }
private void btn_close_Click(object sender, EventArgs e) private void btn_close_Click(object sender, EventArgs e)
{ {
@@ -199,21 +202,15 @@ namespace WindowsFormsApp1.Delivery
{ {
grididx = e.RowIndex; grididx = e.RowIndex;
ColumnIndex = e.ColumnIndex; ColumnIndex = e.ColumnIndex;
CheckBox check;
foreach(DataGridViewRow row in dataGridView1.Rows)
{
check = (CheckBox)(row.Cells[16].Value);
} }
} if( dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected == dataGridView1.Rows[e.RowIndex].Cells["chk"].Selected)
if (e.ColumnIndex == 0 && chk_O == false)
{ {
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "O"; if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "true") {
chk_O = true; dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "false";
}
else if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "false") {
dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "true";
} }
else if (e.ColumnIndex == 0 && chk_O == true)
{
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
chk_O = false;
} }
} }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
@@ -459,6 +456,13 @@ namespace WindowsFormsApp1.Delivery
dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text; dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text;
} }
} }
private void btn_Reset_Order_Click(object sender, EventArgs e)
{
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
dataGridView1.Rows[a].Cells["order"].Value = "";
}
}
private void btn_order_chk_Click(object sender, EventArgs e) private void btn_order_chk_Click(object sender, EventArgs e)
{ {
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < dataGridView1.Rows.Count; a++)
@@ -475,21 +479,38 @@ namespace WindowsFormsApp1.Delivery
dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text; dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text;
} }
} }
private void btn_All_chk_Click(object sender, EventArgs e)
{
string name = ((Button)sender).Name;
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (name == "btn_All_chk")
dataGridView1.Rows[a].Cells["chk"].Value = "true";
else if (name == "btn_All_unchk")
dataGridView1.Rows[a].Cells["chk"].Value = "false";
}
}
private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e) private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
{ {
} }
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{ {
var txtEdit = (TextBox)e.Control; if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected == dataGridView1.Rows[e.RowIndex].Cells["order"].Selected)
txtEdit.KeyDown += EditKeyDown; {
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() != "" ||
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
{
Order_input_Search search = new Order_input_Search(this);
search.Where_Open = "Order_Grid";
search.searchText = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
search.oin_grid_idx[0] = e.RowIndex;
search.oin_grid_idx[1] = e.ColumnIndex;
search.TopMost = true;
search.Show();
} }
private void EditKeyDown(object sender, KeyEventArgs e) else { return; }
{
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
base.OnKeyDown(e);
} }
} }
} }

View File

@@ -19,6 +19,7 @@ namespace WindowsFormsApp1.Delivery
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
int grididx = 0; int grididx = 0;
public int[] oin_grid_idx = { 0, 0 };
public string Where_Open; public string Where_Open;
public string searchText; public string searchText;
string compidx; string compidx;
@@ -62,7 +63,7 @@ namespace WindowsFormsApp1.Delivery
made_grid(cmd); made_grid(cmd);
} }
} }
else if(Where_Open == "Order") { else if(Where_Open.Contains("Order")) {
list_name.HeaderText = "주문처"; list_name.HeaderText = "주문처";
charge.HeaderText = "대표자"; charge.HeaderText = "대표자";
state.HeaderText = "종목"; state.HeaderText = "종목";
@@ -127,8 +128,7 @@ namespace WindowsFormsApp1.Delivery
if (Where_Open == "book_list") if (Where_Open == "book_list")
{ {
string[] tmp_col = { "compidx", "list_name" }; string[] tmp_col = { "compidx", "list_name" };
string[] tmp_data = { compidx, string[] tmp_data = { compidx, dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString() };
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString() };
string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " + string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " +
"`book_comp`, `order_count`, `count`, `pay`, `total`, " + "`book_comp`, `order_count`, `count`, `pay`, `total`, " +
"`etc`, `list_name`, `order_date`, `send_date`, `header`, " + "`etc`, `list_name`, `order_date`, `send_date`, `header`, " +
@@ -137,11 +137,17 @@ namespace WindowsFormsApp1.Delivery
oin.made_grid(cmd, false); oin.made_grid(cmd, false);
oin.tb_search_book_list.Text = tmp_data[1]; oin.tb_search_book_list.Text = tmp_data[1];
} }
else if (Where_Open == "Order") else if (Where_Open.Contains("Order"))
{ {
if(Where_Open == "Order_Grid") {
oin.dataGridView1.Rows[oin_grid_idx[0]].Cells[oin_grid_idx[1]].Value =
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
}
else {
oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString(); oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
} }
} }
}
private void pb_result() private void pb_result()
{ {
pb.tb_purchase.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString(); pb.tb_purchase.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();

View File

@@ -171,10 +171,12 @@ namespace WindowsFormsApp1.Home
if(e == null) { if(e == null) {
if(updown == "UP") if(updown == "UP")
{ {
if (grididx < 1) return;
grididx--; grididx--;
} }
else if(updown == "DOWN") else if(updown == "DOWN")
{ {
if (grididx > dataGridView1.Rows.Count) return;
grididx++; grididx++;
} }
} }
@@ -247,10 +249,49 @@ namespace WindowsFormsApp1.Home
} }
private void btn_search_Click(object sender, EventArgs e) private void btn_search_Click(object sender, EventArgs e)
{ {
_Sub_Search_Form sub_search = new _Sub_Search_Form(this); /// _Sub_Search_Form sub_search = new _Sub_Search_Form(this);
sub_search.Show(); /// sub_search.Show();
} ///
dataGridView1.Rows.Clear();
string search = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
"`c_uptae`, `c_jongmok`, `c_tel`, `c_fax`, `c_email`, " +
"`c_man`, `c_mantel`, `c_user`, `c_zip`, `c_addr`, " +
"`c_dlsID`, `c_dlsPW`, `c_division`, `c_label`, `c_program`, " +
"`c_etc`";
string dbtext = db.DB_Contains("Client", compidx, "c_sangho", tb_sangho.Text, search);
string[] dbtext1 = dbtext.Split('|');
string[] result = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "" };
for (int a = 0; a < dbtext1.Length; a++)
{
if (a % 21 == 0) { result[0] = dbtext1[a]; } // idx
if (a % 21 == 1) { result[1] = dbtext1[a]; } // 거래처명
if (a % 21 == 2) { result[2] = dbtext1[a]; } // 구분
if (a % 21 == 3) { result[3] = dbtext1[a]; } // 대표자명
if (a % 21 == 4) { result[4] = dbtext1[a]; } // 등록번호
if (a % 21 == 5) { result[5] = dbtext1[a]; } // 업태
if (a % 21 == 6) { result[6] = dbtext1[a]; } // 종목
if (a % 21 == 7) { result[7] = dbtext1[a]; } // 전화번호
if (a % 21 == 8) { result[8] = dbtext1[a]; } // 팩스
if (a % 21 == 9) { result[9] = dbtext1[a]; } // 메일
if (a % 21 == 10) { result[10] = dbtext1[a]; } // 담당자정보1
if (a % 21 == 11) { result[11] = dbtext1[a]; } // 담당자정보2
if (a % 21 == 12) { result[12] = dbtext1[a]; } // 담당직원
if (a % 21 == 13) { result[13] = dbtext1[a]; } // 우편번호
if (a % 21 == 14) { result[14] = dbtext1[a]; } // 주소
if (a % 21 == 15) { result[15] = dbtext1[a]; } // 아이디
if (a % 21 == 16) { result[16] = dbtext1[a]; } // 비밀번호
if (a % 21 == 17) { result[17] = dbtext1[a]; } // 용지칸수
if (a % 21 == 18) { result[18] = dbtext1[a]; } // 띠라벨
if (a % 21 == 19) { result[19] = dbtext1[a]; } // 사용프로그램
if (a % 21 == 20) { result[20] = dbtext1[a]; dataGridView1.Rows.Add(result); } // 비고
}
dataGridView1.Focus();
}
private void btn_close_Click(object sender, EventArgs e) private void btn_close_Click(object sender, EventArgs e)
{ {
Close(); Close();

View File

@@ -29,6 +29,13 @@
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.end_date = new System.Windows.Forms.DateTimePicker(); this.end_date = new System.Windows.Forms.DateTimePicker();
this.start_date = new System.Windows.Forms.DateTimePicker(); this.start_date = new System.Windows.Forms.DateTimePicker();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
@@ -40,6 +47,8 @@
this.btn_Print = new System.Windows.Forms.Button(); this.btn_Print = new System.Windows.Forms.Button();
this.btn_Lookup = new System.Windows.Forms.Button(); this.btn_Lookup = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_Close = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -49,8 +58,6 @@
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_Close = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -189,64 +196,6 @@
this.dataGridView1.TabIndex = 41; this.dataGridView1.TabIndex = 41;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
// //
// Column1
//
this.Column1.HeaderText = "거래처명";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 150;
//
// Column2
//
this.Column2.HeaderText = "이월미수금";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
//
// Column3
//
this.Column3.HeaderText = "건수";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 50;
//
// Column4
//
this.Column4.HeaderText = "권수";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 50;
//
// Column5
//
this.Column5.HeaderText = "매입금액";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// Column6
//
this.Column6.HeaderText = "결제금액";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
//
// Column7
//
this.Column7.HeaderText = "기간잔고";
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
//
// Column8
//
this.Column8.HeaderText = "최종잔고";
this.Column8.Name = "Column8";
this.Column8.ReadOnly = true;
//
// Column9
//
this.Column9.HeaderText = "Column9";
this.Column9.Name = "Column9";
this.Column9.ReadOnly = true;
this.Column9.Visible = false;
//
// btn_Close // btn_Close
// //
this.btn_Close.Location = new System.Drawing.Point(756, 3); this.btn_Close.Location = new System.Drawing.Point(756, 3);
@@ -276,6 +225,85 @@
this.panel1.Size = new System.Drawing.Size(839, 32); this.panel1.Size = new System.Drawing.Size(839, 32);
this.panel1.TabIndex = 43; this.panel1.TabIndex = 43;
// //
// Column1
//
this.Column1.HeaderText = "거래처명";
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 150;
//
// Column2
//
dataGridViewCellStyle2.Format = "C0";
dataGridViewCellStyle2.NullValue = null;
this.Column2.DefaultCellStyle = dataGridViewCellStyle2;
this.Column2.HeaderText = "이월미수금";
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
//
// Column3
//
dataGridViewCellStyle3.Format = "C0";
dataGridViewCellStyle3.NullValue = null;
this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
this.Column3.HeaderText = "건수";
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 50;
//
// Column4
//
dataGridViewCellStyle4.Format = "C0";
dataGridViewCellStyle4.NullValue = null;
this.Column4.DefaultCellStyle = dataGridViewCellStyle4;
this.Column4.HeaderText = "권수";
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 50;
//
// Column5
//
dataGridViewCellStyle5.Format = "C0";
dataGridViewCellStyle5.NullValue = null;
this.Column5.DefaultCellStyle = dataGridViewCellStyle5;
this.Column5.HeaderText = "매입금액";
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// Column6
//
dataGridViewCellStyle6.Format = "C0";
dataGridViewCellStyle6.NullValue = null;
this.Column6.DefaultCellStyle = dataGridViewCellStyle6;
this.Column6.HeaderText = "결제금액";
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
//
// Column7
//
dataGridViewCellStyle7.Format = "C0";
dataGridViewCellStyle7.NullValue = null;
this.Column7.DefaultCellStyle = dataGridViewCellStyle7;
this.Column7.HeaderText = "기간잔고";
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
//
// Column8
//
dataGridViewCellStyle8.Format = "C0";
dataGridViewCellStyle8.NullValue = null;
this.Column8.DefaultCellStyle = dataGridViewCellStyle8;
this.Column8.HeaderText = "최종잔고";
this.Column8.Name = "Column8";
this.Column8.ReadOnly = true;
//
// Column9
//
this.Column9.HeaderText = "Column9";
this.Column9.Name = "Column9";
this.Column9.ReadOnly = true;
this.Column9.Visible = false;
//
// Purchase_Aggregation // Purchase_Aggregation
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);