=====* 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-05-07 19:01:14 +09:00
parent 4671d0da12
commit 1827aca297
18 changed files with 404 additions and 821 deletions

View File

@@ -32,7 +32,7 @@
this.Old_Dlv = new System.Windows.Forms.TextBox(); this.Old_Dlv = new System.Windows.Forms.TextBox();
this.Old_Clit = new System.Windows.Forms.TextBox(); this.Old_Clit = new System.Windows.Forms.TextBox();
this.Old_User = new System.Windows.Forms.TextBox(); this.Old_User = new System.Windows.Forms.TextBox();
this.Old_Num = new System.Windows.Forms.TextBox(); this.Old_Name = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
@@ -42,9 +42,9 @@
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.label11 = new System.Windows.Forms.Label(); this.label11 = new System.Windows.Forms.Label();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker(); this.New_Date = new System.Windows.Forms.DateTimePicker();
this.label10 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label();
this.New_Num = new System.Windows.Forms.TextBox(); this.New_Name = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
this.New_Dlv = new System.Windows.Forms.TextBox(); this.New_Dlv = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
@@ -60,7 +60,7 @@
// Old_Date // Old_Date
// //
this.Old_Date.Enabled = false; this.Old_Date.Enabled = false;
this.Old_Date.Location = new System.Drawing.Point(69, 14); this.Old_Date.Location = new System.Drawing.Point(69, 9);
this.Old_Date.Name = "Old_Date"; this.Old_Date.Name = "Old_Date";
this.Old_Date.Size = new System.Drawing.Size(100, 21); this.Old_Date.Size = new System.Drawing.Size(100, 21);
this.Old_Date.TabIndex = 0; this.Old_Date.TabIndex = 0;
@@ -68,7 +68,7 @@
// Old_Dlv // Old_Dlv
// //
this.Old_Dlv.Enabled = false; this.Old_Dlv.Enabled = false;
this.Old_Dlv.Location = new System.Drawing.Point(69, 41); this.Old_Dlv.Location = new System.Drawing.Point(69, 63);
this.Old_Dlv.Name = "Old_Dlv"; this.Old_Dlv.Name = "Old_Dlv";
this.Old_Dlv.Size = new System.Drawing.Size(100, 21); this.Old_Dlv.Size = new System.Drawing.Size(100, 21);
this.Old_Dlv.TabIndex = 0; this.Old_Dlv.TabIndex = 0;
@@ -76,7 +76,7 @@
// Old_Clit // Old_Clit
// //
this.Old_Clit.Enabled = false; this.Old_Clit.Enabled = false;
this.Old_Clit.Location = new System.Drawing.Point(69, 68); this.Old_Clit.Location = new System.Drawing.Point(69, 90);
this.Old_Clit.Name = "Old_Clit"; this.Old_Clit.Name = "Old_Clit";
this.Old_Clit.Size = new System.Drawing.Size(100, 21); this.Old_Clit.Size = new System.Drawing.Size(100, 21);
this.Old_Clit.TabIndex = 0; this.Old_Clit.TabIndex = 0;
@@ -84,76 +84,77 @@
// Old_User // Old_User
// //
this.Old_User.Enabled = false; this.Old_User.Enabled = false;
this.Old_User.Location = new System.Drawing.Point(69, 95); this.Old_User.Location = new System.Drawing.Point(69, 117);
this.Old_User.Name = "Old_User"; this.Old_User.Name = "Old_User";
this.Old_User.Size = new System.Drawing.Size(100, 21); this.Old_User.Size = new System.Drawing.Size(100, 21);
this.Old_User.TabIndex = 0; this.Old_User.TabIndex = 0;
// //
// Old_Num // Old_Name
// //
this.Old_Num.Enabled = false; this.Old_Name.Enabled = false;
this.Old_Num.Location = new System.Drawing.Point(69, 122); this.Old_Name.Location = new System.Drawing.Point(69, 36);
this.Old_Num.Name = "Old_Num"; this.Old_Name.Name = "Old_Name";
this.Old_Num.Size = new System.Drawing.Size(100, 21); this.Old_Name.Size = new System.Drawing.Size(100, 21);
this.Old_Num.TabIndex = 0; this.Old_Name.TabIndex = 0;
// //
// panel1 // panel1
// //
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Old_Date); this.panel1.Controls.Add(this.Old_Date);
this.panel1.Controls.Add(this.Old_Num); this.panel1.Controls.Add(this.Old_Name);
this.panel1.Controls.Add(this.Old_Dlv); this.panel1.Controls.Add(this.Old_Dlv);
this.panel1.Controls.Add(this.Old_User); this.panel1.Controls.Add(this.Old_User);
this.panel1.Controls.Add(this.Old_Clit); this.panel1.Controls.Add(this.Old_Clit);
this.panel1.Location = new System.Drawing.Point(12, 12); this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(181, 154); this.panel1.Size = new System.Drawing.Size(181, 150);
this.panel1.TabIndex = 1; this.panel1.TabIndex = 1;
// //
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(13, 126); this.label5.Location = new System.Drawing.Point(19, 121);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12); this.label5.Size = new System.Drawing.Size(41, 12);
this.label5.TabIndex = 1; this.label5.TabIndex = 1;
this.label5.Text = "목록번호"; this.label5.Text = "담당자";
// //
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(13, 99); this.label4.Location = new System.Drawing.Point(19, 94);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(41, 12); this.label4.Size = new System.Drawing.Size(41, 12);
this.label4.TabIndex = 1; this.label4.TabIndex = 1;
this.label4.Text = "담당자"; this.label4.Text = "거래처";
// //
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 72); this.label3.Location = new System.Drawing.Point(13, 67);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12); this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 1; this.label3.TabIndex = 1;
this.label3.Text = "거래처"; this.label3.Text = "납품목록";
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 45); this.label2.Location = new System.Drawing.Point(19, 40);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12); this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 1; this.label2.TabIndex = 1;
this.label2.Text = "납품목록"; this.label2.Text = "목록";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 18); this.label1.Location = new System.Drawing.Point(13, 13);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12); this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
@@ -165,16 +166,17 @@
this.label6.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label6.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(206, 85); this.label6.Location = new System.Drawing.Point(206, 85);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(50, 16); this.label6.Size = new System.Drawing.Size(56, 16);
this.label6.TabIndex = 1; this.label6.TabIndex = 1;
this.label6.Text = "= = >"; this.label6.Text = "====>";
// //
// panel2 // panel2
// //
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.label11); this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.dateTimePicker2); this.panel2.Controls.Add(this.New_Date);
this.panel2.Controls.Add(this.label10); this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.New_Num); this.panel2.Controls.Add(this.New_Name);
this.panel2.Controls.Add(this.label9); this.panel2.Controls.Add(this.label9);
this.panel2.Controls.Add(this.New_Dlv); this.panel2.Controls.Add(this.New_Dlv);
this.panel2.Controls.Add(this.label8); this.panel2.Controls.Add(this.label8);
@@ -183,55 +185,55 @@
this.panel2.Controls.Add(this.New_Clit); this.panel2.Controls.Add(this.New_Clit);
this.panel2.Location = new System.Drawing.Point(267, 12); this.panel2.Location = new System.Drawing.Point(267, 12);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(181, 154); this.panel2.Size = new System.Drawing.Size(181, 150);
this.panel2.TabIndex = 1; this.panel2.TabIndex = 1;
// //
// label11 // label11
// //
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(10, 126); this.label11.Location = new System.Drawing.Point(16, 121);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(53, 12); this.label11.Size = new System.Drawing.Size(41, 12);
this.label11.TabIndex = 1; this.label11.TabIndex = 1;
this.label11.Text = "목록번호"; this.label11.Text = "담당자";
// //
// dateTimePicker2 // New_Date
// //
this.dateTimePicker2.CustomFormat = "yyyy-MM-dd"; this.New_Date.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.New_Date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker2.Location = new System.Drawing.Point(69, 14); this.New_Date.Location = new System.Drawing.Point(69, 9);
this.dateTimePicker2.Name = "dateTimePicker2"; this.New_Date.Name = "New_Date";
this.dateTimePicker2.Size = new System.Drawing.Size(85, 21); this.New_Date.Size = new System.Drawing.Size(100, 21);
this.dateTimePicker2.TabIndex = 6; this.New_Date.TabIndex = 6;
// //
// label10 // label10
// //
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(10, 99); this.label10.Location = new System.Drawing.Point(16, 94);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(41, 12); this.label10.Size = new System.Drawing.Size(41, 12);
this.label10.TabIndex = 1; this.label10.TabIndex = 1;
this.label10.Text = "담당자"; this.label10.Text = "거래처";
// //
// New_Num // New_Name
// //
this.New_Num.Location = new System.Drawing.Point(69, 122); this.New_Name.Location = new System.Drawing.Point(69, 36);
this.New_Num.Name = "New_Num"; this.New_Name.Name = "New_Name";
this.New_Num.Size = new System.Drawing.Size(100, 21); this.New_Name.Size = new System.Drawing.Size(100, 21);
this.New_Num.TabIndex = 0; this.New_Name.TabIndex = 0;
// //
// label9 // label9
// //
this.label9.AutoSize = true; this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(10, 72); this.label9.Location = new System.Drawing.Point(10, 67);
this.label9.Name = "label9"; this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(41, 12); this.label9.Size = new System.Drawing.Size(53, 12);
this.label9.TabIndex = 1; this.label9.TabIndex = 1;
this.label9.Text = "거래처"; this.label9.Text = "납품목록";
// //
// New_Dlv // New_Dlv
// //
this.New_Dlv.Location = new System.Drawing.Point(69, 41); this.New_Dlv.Location = new System.Drawing.Point(69, 63);
this.New_Dlv.Name = "New_Dlv"; this.New_Dlv.Name = "New_Dlv";
this.New_Dlv.Size = new System.Drawing.Size(100, 21); this.New_Dlv.Size = new System.Drawing.Size(100, 21);
this.New_Dlv.TabIndex = 0; this.New_Dlv.TabIndex = 0;
@@ -239,15 +241,15 @@
// label8 // label8
// //
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(10, 45); this.label8.Location = new System.Drawing.Point(16, 40);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(53, 12); this.label8.Size = new System.Drawing.Size(41, 12);
this.label8.TabIndex = 1; this.label8.TabIndex = 1;
this.label8.Text = "납품목록"; this.label8.Text = "목록";
// //
// New_User // New_User
// //
this.New_User.Location = new System.Drawing.Point(69, 95); this.New_User.Location = new System.Drawing.Point(69, 117);
this.New_User.Name = "New_User"; this.New_User.Name = "New_User";
this.New_User.Size = new System.Drawing.Size(100, 21); this.New_User.Size = new System.Drawing.Size(100, 21);
this.New_User.TabIndex = 0; this.New_User.TabIndex = 0;
@@ -255,7 +257,7 @@
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(10, 18); this.label7.Location = new System.Drawing.Point(10, 13);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(53, 12); this.label7.Size = new System.Drawing.Size(53, 12);
this.label7.TabIndex = 1; this.label7.TabIndex = 1;
@@ -263,7 +265,7 @@
// //
// New_Clit // New_Clit
// //
this.New_Clit.Location = new System.Drawing.Point(69, 68); this.New_Clit.Location = new System.Drawing.Point(69, 90);
this.New_Clit.Name = "New_Clit"; this.New_Clit.Name = "New_Clit";
this.New_Clit.Size = new System.Drawing.Size(100, 21); this.New_Clit.Size = new System.Drawing.Size(100, 21);
this.New_Clit.TabIndex = 0; this.New_Clit.TabIndex = 0;
@@ -272,7 +274,7 @@
// btn_OK // btn_OK
// //
this.btn_OK.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.btn_OK.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_OK.Location = new System.Drawing.Point(110, 178); this.btn_OK.Location = new System.Drawing.Point(110, 168);
this.btn_OK.Name = "btn_OK"; this.btn_OK.Name = "btn_OK";
this.btn_OK.Size = new System.Drawing.Size(88, 40); this.btn_OK.Size = new System.Drawing.Size(88, 40);
this.btn_OK.TabIndex = 2; this.btn_OK.TabIndex = 2;
@@ -283,7 +285,7 @@
// Btn_Cancel // Btn_Cancel
// //
this.Btn_Cancel.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.Btn_Cancel.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.Btn_Cancel.Location = new System.Drawing.Point(262, 178); this.Btn_Cancel.Location = new System.Drawing.Point(262, 168);
this.Btn_Cancel.Name = "Btn_Cancel"; this.Btn_Cancel.Name = "Btn_Cancel";
this.Btn_Cancel.Size = new System.Drawing.Size(88, 40); this.Btn_Cancel.Size = new System.Drawing.Size(88, 40);
this.Btn_Cancel.TabIndex = 2; this.Btn_Cancel.TabIndex = 2;
@@ -295,14 +297,14 @@
// //
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(460, 231); this.ClientSize = new System.Drawing.Size(460, 216);
this.Controls.Add(this.Btn_Cancel); this.Controls.Add(this.Btn_Cancel);
this.Controls.Add(this.btn_OK); this.Controls.Add(this.btn_OK);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Controls.Add(this.label6); this.Controls.Add(this.label6);
this.Name = "Commodity_Edit"; this.Name = "Commodity_Edit";
this.Text = "Commodity_Edit"; this.Text = " ";
this.Load += new System.EventHandler(this.Commodity_Edit_Load); this.Load += new System.EventHandler(this.Commodity_Edit_Load);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
@@ -319,7 +321,7 @@
private System.Windows.Forms.TextBox Old_Dlv; private System.Windows.Forms.TextBox Old_Dlv;
private System.Windows.Forms.TextBox Old_Clit; private System.Windows.Forms.TextBox Old_Clit;
private System.Windows.Forms.TextBox Old_User; private System.Windows.Forms.TextBox Old_User;
private System.Windows.Forms.TextBox Old_Num; private System.Windows.Forms.TextBox Old_Name;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label4;
@@ -328,11 +330,11 @@
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label6;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox New_Num; private System.Windows.Forms.TextBox New_Name;
private System.Windows.Forms.TextBox New_Dlv; private System.Windows.Forms.TextBox New_Dlv;
private System.Windows.Forms.TextBox New_User; private System.Windows.Forms.TextBox New_User;
private System.Windows.Forms.Label label11; private System.Windows.Forms.Label label11;
private System.Windows.Forms.DateTimePicker dateTimePicker2; private System.Windows.Forms.DateTimePicker New_Date;
private System.Windows.Forms.Label label10; private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9; private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label8;

View File

@@ -24,39 +24,45 @@ namespace WindowsFormsApp1.Delivery
private void Commodity_Edit_Load(object sender, EventArgs e) private void Commodity_Edit_Load(object sender, EventArgs e)
{ {
DB.DBcon(); DB.DBcon();
Old_Date.Text= com.dataGridView2.Rows[com.EditNumber].Cells[0].Value.ToString(); Old_Date.Text= com.dataGridView2.Rows[com.EditNumber].Cells["list_date"].Value.ToString();
Old_Clit.Text= com.dataGridView2.Rows[com.EditNumber].Cells[1].Value.ToString(); Old_Clit.Text= com.dataGridView2.Rows[com.EditNumber].Cells["pur"].Value.ToString();
Old_Dlv.Text = com.dataGridView2.Rows[com.EditNumber].Cells[2].Value.ToString(); Old_Dlv.Text = com.dataGridView2.Rows[com.EditNumber].Cells["dly"].Value.ToString();
Old_User.Text= com.dataGridView2.Rows[com.EditNumber].Cells[3].Value.ToString(); Old_User.Text= com.dataGridView2.Rows[com.EditNumber].Cells["charge"].Value.ToString();
Old_Num.Text = com.dataGridView2.Rows[com.EditNumber].Cells[4].Value.ToString(); Old_Name.Text = com.dataGridView2.Rows[com.EditNumber].Cells["list_name"].Value.ToString();
dateTimePicker2.Value = DateTime.Parse(Old_Date.Text); New_Date.Value = DateTime.Parse(Old_Date.Text);
New_Clit.Text = Old_Clit.Text; New_Clit.Text = Old_Clit.Text;
New_Dlv.Text = Old_Dlv.Text; New_Dlv.Text = Old_Dlv.Text;
New_User.Text = Old_User.Text; New_User.Text = Old_User.Text;
New_Num.Text = Old_Num.Text; New_Name.Text = Old_Name.Text;
Old_Date.Enabled = false; Old_Date.Enabled = false;
Old_Clit.Enabled = false; Old_Clit.Enabled = false;
Old_Dlv.Enabled = false; Old_Dlv.Enabled = false;
Old_User.Enabled = false; Old_User.Enabled = false;
Old_Num.Enabled = false; Old_Name.Enabled = false;
compidx = com.comp_idx; compidx = com.comp_idx;
} }
private void btn_OK_Click(object sender, EventArgs e) private void btn_OK_Click(object sender, EventArgs e)
{ {
string date = dateTimePicker2.Value.ToString().Substring(0,10); /* 변경되어야함
string[] Old_data = { * Obj_List = 목록일자, 목록명, 납품목록, 거래처, 담당자
Old_Date.Text, // 목록일자 * Obj_List_Book = 목록일자, 목록명
Old_Clit.Text, // 거래처명 * Obj_List_Marc = connect_data, 목록명, 담당자
Old_Dlv.Text, // 납품처명 */
Old_User.Text, // 담당자 string date = New_Date.Value.ToString().Substring(0,10);
Old_Num.Text}; // 목록번호 string[] list_search_col = { "comp_num", "date", "list_name", "clt", "dly", "charge" };
string[] list_search_data = { compidx, Old_Date.Text, Old_Name.Text, Old_Clit.Text, Old_Dlv.Text, Old_User.Text };
string[] DB_Tabel = { "date", "clt", "dly", "charge", "list_num" }; string[] DB_Tabel = { "date", "clt", "dly", "charge", "list_num" };
string[] New_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Num.Text }; string[] New_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Name.Text };
DB.More_Update("Obj_List", DB_Tabel, New_data, list_search_col, list_search_data);
/*
string list_chk = DB.self_Made_Cmd("SELECT idx FROM Obj_List WHERE " + string list_chk = DB.self_Made_Cmd("SELECT idx FROM Obj_List WHERE " +
"`comp_num`= '" + compidx + "' AND " + "`comp_num`= '" + compidx + "' AND " +
"`date`= '" + Old_data[0] + "' AND " + "`date`= '" + Old_data[0] + "' AND " +
@@ -79,7 +85,7 @@ namespace WindowsFormsApp1.Delivery
com.dataGridView2.Rows[com.EditNumber].Cells[a].Value = New_data[a]; com.dataGridView2.Rows[com.EditNumber].Cells[a].Value = New_data[a];
Close(); Close();
} }
} }*/
} }
private void Btn_Cancel_Click(object sender, EventArgs e) private void Btn_Cancel_Click(object sender, EventArgs e)
{ {

View File

@@ -28,154 +28,25 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.panel1 = new System.Windows.Forms.Panel();
this.rbtn1_2 = new System.Windows.Forms.RadioButton();
this.rbtn1_1 = new System.Windows.Forms.RadioButton();
this.tb_date_res = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.tb_date2 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.tb_date1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btn_OK = new System.Windows.Forms.Button(); this.btn_OK = new System.Windows.Forms.Button();
this.btn_Cancel = new System.Windows.Forms.Button(); this.btn_Cancel = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.rbtn2_2 = new System.Windows.Forms.RadioButton();
this.rbtn2_1 = new System.Windows.Forms.RadioButton();
this.tb_dlv_res = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.tb_dlv2 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.tb_dlv1 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.panel5 = new System.Windows.Forms.Panel();
this.rbtn3_2 = new System.Windows.Forms.RadioButton();
this.rbtn3_1 = new System.Windows.Forms.RadioButton();
this.tb_clt_res = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.tb_clt2 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.tb_clt1 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.rbtn4_2 = new System.Windows.Forms.RadioButton();
this.rbtn4_1 = new System.Windows.Forms.RadioButton();
this.tb_user_res = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.tb_user2 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.tb_user1 = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.panel7 = new System.Windows.Forms.Panel();
this.rbtn5_2 = new System.Windows.Forms.RadioButton();
this.rbtn5_1 = new System.Windows.Forms.RadioButton();
this.tb_num_res = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.tb_num2 = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.tb_num1 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label(); this.label15 = new System.Windows.Forms.Label();
this.chk_keep2 = new System.Windows.Forms.CheckBox(); this.tb_list1 = new System.Windows.Forms.TextBox();
this.chk_keep1 = new System.Windows.Forms.CheckBox(); this.label14 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout(); this.tb_list2 = new System.Windows.Forms.TextBox();
this.panel4.SuspendLayout(); this.label13 = new System.Windows.Forms.Label();
this.panel5.SuspendLayout(); this.tb_list_res = new System.Windows.Forms.TextBox();
this.panel6.SuspendLayout(); this.rbtn5_1 = new System.Windows.Forms.RadioButton();
this.rbtn5_2 = new System.Windows.Forms.RadioButton();
this.panel7 = new System.Windows.Forms.Panel();
this.panel7.SuspendLayout(); this.panel7.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel1
//
this.panel1.Controls.Add(this.rbtn1_2);
this.panel1.Controls.Add(this.rbtn1_1);
this.panel1.Controls.Add(this.tb_date_res);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_date2);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tb_date1);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(10, 14);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(600, 59);
this.panel1.TabIndex = 0;
//
// rbtn1_2
//
this.rbtn1_2.AutoSize = true;
this.rbtn1_2.Location = new System.Drawing.Point(327, 7);
this.rbtn1_2.Name = "rbtn1_2";
this.rbtn1_2.Size = new System.Drawing.Size(47, 16);
this.rbtn1_2.TabIndex = 3;
this.rbtn1_2.TabStop = true;
this.rbtn1_2.Text = "변경";
this.rbtn1_2.UseVisualStyleBackColor = true;
this.rbtn1_2.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// rbtn1_1
//
this.rbtn1_1.AutoSize = true;
this.rbtn1_1.Location = new System.Drawing.Point(123, 7);
this.rbtn1_1.Name = "rbtn1_1";
this.rbtn1_1.Size = new System.Drawing.Size(47, 16);
this.rbtn1_1.TabIndex = 3;
this.rbtn1_1.TabStop = true;
this.rbtn1_1.Text = "변경";
this.rbtn1_1.UseVisualStyleBackColor = true;
this.rbtn1_1.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// tb_date_res
//
this.tb_date_res.Location = new System.Drawing.Point(434, 26);
this.tb_date_res.Name = "tb_date_res";
this.tb_date_res.Size = new System.Drawing.Size(149, 21);
this.tb_date_res.TabIndex = 2;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(437, 11);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(81, 12);
this.label3.TabIndex = 1;
this.label3.Text = "목록일자 결과";
//
// tb_date2
//
this.tb_date2.Location = new System.Drawing.Point(227, 26);
this.tb_date2.Name = "tb_date2";
this.tb_date2.Size = new System.Drawing.Size(149, 21);
this.tb_date2.TabIndex = 2;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(225, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 1;
this.label2.Text = "목록일자";
//
// tb_date1
//
this.tb_date1.Location = new System.Drawing.Point(21, 26);
this.tb_date1.Name = "tb_date1";
this.tb_date1.Size = new System.Drawing.Size(149, 21);
this.tb_date1.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(19, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 1;
this.label1.Text = "목록일자";
//
// btn_OK // btn_OK
// //
this.btn_OK.Location = new System.Drawing.Point(155, 375); this.btn_OK.Location = new System.Drawing.Point(163, 83);
this.btn_OK.Name = "btn_OK"; this.btn_OK.Name = "btn_OK";
this.btn_OK.Size = new System.Drawing.Size(94, 34); this.btn_OK.Size = new System.Drawing.Size(94, 34);
this.btn_OK.TabIndex = 1; this.btn_OK.TabIndex = 1;
@@ -185,7 +56,7 @@
// //
// btn_Cancel // btn_Cancel
// //
this.btn_Cancel.Location = new System.Drawing.Point(365, 375); this.btn_Cancel.Location = new System.Drawing.Point(368, 83);
this.btn_Cancel.Name = "btn_Cancel"; this.btn_Cancel.Name = "btn_Cancel";
this.btn_Cancel.Size = new System.Drawing.Size(94, 34); this.btn_Cancel.Size = new System.Drawing.Size(94, 34);
this.btn_Cancel.TabIndex = 1; this.btn_Cancel.TabIndex = 1;
@@ -196,306 +67,69 @@
// panel2 // panel2
// //
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Location = new System.Drawing.Point(201, 7); this.panel2.Location = new System.Drawing.Point(209, 7);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(2, 362); this.panel2.Size = new System.Drawing.Size(2, 70);
this.panel2.TabIndex = 2; this.panel2.TabIndex = 2;
// //
// panel3 // panel3
// //
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Location = new System.Drawing.Point(411, 7); this.panel3.Location = new System.Drawing.Point(414, 7);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(2, 362); this.panel3.Size = new System.Drawing.Size(2, 70);
this.panel3.TabIndex = 2; this.panel3.TabIndex = 2;
// //
// panel4 // label15
// //
this.panel4.Controls.Add(this.rbtn2_2); this.label15.AutoSize = true;
this.panel4.Controls.Add(this.rbtn2_1); this.label15.Location = new System.Drawing.Point(19, 11);
this.panel4.Controls.Add(this.tb_dlv_res); this.label15.Name = "label15";
this.panel4.Controls.Add(this.label4); this.label15.Size = new System.Drawing.Size(41, 12);
this.panel4.Controls.Add(this.tb_dlv2); this.label15.TabIndex = 1;
this.panel4.Controls.Add(this.label5); this.label15.Text = "목록명";
this.panel4.Controls.Add(this.tb_dlv1);
this.panel4.Controls.Add(this.label6);
this.panel4.Location = new System.Drawing.Point(10, 79);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(600, 59);
this.panel4.TabIndex = 0;
// //
// rbtn2_2 // tb_list1
// //
this.rbtn2_2.AutoSize = true; this.tb_list1.Enabled = false;
this.rbtn2_2.Location = new System.Drawing.Point(327, 9); this.tb_list1.Location = new System.Drawing.Point(21, 26);
this.rbtn2_2.Name = "rbtn2_2"; this.tb_list1.Name = "tb_list1";
this.rbtn2_2.Size = new System.Drawing.Size(47, 16); this.tb_list1.Size = new System.Drawing.Size(149, 21);
this.rbtn2_2.TabIndex = 3; this.tb_list1.TabIndex = 2;
this.rbtn2_2.TabStop = true;
this.rbtn2_2.Text = "변경";
this.rbtn2_2.UseVisualStyleBackColor = true;
this.rbtn2_2.Click += new System.EventHandler(this.rbtn1_2_Click);
// //
// rbtn2_1 // label14
// //
this.rbtn2_1.AutoSize = true; this.label14.AutoSize = true;
this.rbtn2_1.Location = new System.Drawing.Point(123, 9); this.label14.Location = new System.Drawing.Point(225, 11);
this.rbtn2_1.Name = "rbtn2_1"; this.label14.Name = "label14";
this.rbtn2_1.Size = new System.Drawing.Size(47, 16); this.label14.Size = new System.Drawing.Size(41, 12);
this.rbtn2_1.TabIndex = 3; this.label14.TabIndex = 1;
this.rbtn2_1.TabStop = true; this.label14.Text = "목록명";
this.rbtn2_1.Text = "변경";
this.rbtn2_1.UseVisualStyleBackColor = true;
this.rbtn2_1.Click += new System.EventHandler(this.rbtn1_2_Click);
// //
// tb_dlv_res // tb_list2
// //
this.tb_dlv_res.Location = new System.Drawing.Point(434, 26); this.tb_list2.Enabled = false;
this.tb_dlv_res.Name = "tb_dlv_res"; this.tb_list2.Location = new System.Drawing.Point(227, 26);
this.tb_dlv_res.Size = new System.Drawing.Size(149, 21); this.tb_list2.Name = "tb_list2";
this.tb_dlv_res.TabIndex = 2; this.tb_list2.Size = new System.Drawing.Size(149, 21);
this.tb_list2.TabIndex = 2;
// //
// label4 // label13
// //
this.label4.AutoSize = true; this.label13.AutoSize = true;
this.label4.Location = new System.Drawing.Point(437, 11); this.label13.Location = new System.Drawing.Point(432, 11);
this.label4.Name = "label4"; this.label13.Name = "label13";
this.label4.Size = new System.Drawing.Size(81, 12); this.label13.Size = new System.Drawing.Size(69, 12);
this.label4.TabIndex = 1; this.label13.TabIndex = 1;
this.label4.Text = "납품목록 결과"; this.label13.Text = "목록 결과";
// //
// tb_dlv2 // tb_list_res
// //
this.tb_dlv2.Location = new System.Drawing.Point(227, 26); this.tb_list_res.Enabled = false;
this.tb_dlv2.Name = "tb_dlv2"; this.tb_list_res.Location = new System.Drawing.Point(433, 26);
this.tb_dlv2.Size = new System.Drawing.Size(149, 21); this.tb_list_res.Name = "tb_list_res";
this.tb_dlv2.TabIndex = 2; this.tb_list_res.Size = new System.Drawing.Size(149, 21);
// this.tb_list_res.TabIndex = 2;
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(225, 11);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(53, 12);
this.label5.TabIndex = 1;
this.label5.Text = "납품목록";
//
// tb_dlv1
//
this.tb_dlv1.Location = new System.Drawing.Point(21, 26);
this.tb_dlv1.Name = "tb_dlv1";
this.tb_dlv1.Size = new System.Drawing.Size(149, 21);
this.tb_dlv1.TabIndex = 2;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(19, 11);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 12);
this.label6.TabIndex = 1;
this.label6.Text = "납품목록";
//
// panel5
//
this.panel5.Controls.Add(this.rbtn3_2);
this.panel5.Controls.Add(this.rbtn3_1);
this.panel5.Controls.Add(this.tb_clt_res);
this.panel5.Controls.Add(this.label7);
this.panel5.Controls.Add(this.tb_clt2);
this.panel5.Controls.Add(this.label8);
this.panel5.Controls.Add(this.tb_clt1);
this.panel5.Controls.Add(this.label9);
this.panel5.Location = new System.Drawing.Point(10, 144);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(600, 59);
this.panel5.TabIndex = 0;
//
// rbtn3_2
//
this.rbtn3_2.AutoSize = true;
this.rbtn3_2.Location = new System.Drawing.Point(327, 7);
this.rbtn3_2.Name = "rbtn3_2";
this.rbtn3_2.Size = new System.Drawing.Size(47, 16);
this.rbtn3_2.TabIndex = 3;
this.rbtn3_2.TabStop = true;
this.rbtn3_2.Text = "변경";
this.rbtn3_2.UseVisualStyleBackColor = true;
this.rbtn3_2.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// rbtn3_1
//
this.rbtn3_1.AutoSize = true;
this.rbtn3_1.Location = new System.Drawing.Point(123, 7);
this.rbtn3_1.Name = "rbtn3_1";
this.rbtn3_1.Size = new System.Drawing.Size(47, 16);
this.rbtn3_1.TabIndex = 3;
this.rbtn3_1.TabStop = true;
this.rbtn3_1.Text = "변경";
this.rbtn3_1.UseVisualStyleBackColor = true;
this.rbtn3_1.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// tb_clt_res
//
this.tb_clt_res.Location = new System.Drawing.Point(434, 26);
this.tb_clt_res.Name = "tb_clt_res";
this.tb_clt_res.Size = new System.Drawing.Size(149, 21);
this.tb_clt_res.TabIndex = 2;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(437, 11);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(69, 12);
this.label7.TabIndex = 1;
this.label7.Text = "거래처 결과";
//
// tb_clt2
//
this.tb_clt2.Location = new System.Drawing.Point(227, 26);
this.tb_clt2.Name = "tb_clt2";
this.tb_clt2.Size = new System.Drawing.Size(149, 21);
this.tb_clt2.TabIndex = 2;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(225, 11);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(41, 12);
this.label8.TabIndex = 1;
this.label8.Text = "거래처";
//
// tb_clt1
//
this.tb_clt1.Location = new System.Drawing.Point(21, 26);
this.tb_clt1.Name = "tb_clt1";
this.tb_clt1.Size = new System.Drawing.Size(149, 21);
this.tb_clt1.TabIndex = 2;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(19, 11);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(41, 12);
this.label9.TabIndex = 1;
this.label9.Text = "거래처";
//
// panel6
//
this.panel6.Controls.Add(this.rbtn4_2);
this.panel6.Controls.Add(this.rbtn4_1);
this.panel6.Controls.Add(this.tb_user_res);
this.panel6.Controls.Add(this.label10);
this.panel6.Controls.Add(this.tb_user2);
this.panel6.Controls.Add(this.label11);
this.panel6.Controls.Add(this.tb_user1);
this.panel6.Controls.Add(this.label12);
this.panel6.Location = new System.Drawing.Point(10, 209);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(600, 59);
this.panel6.TabIndex = 0;
//
// rbtn4_2
//
this.rbtn4_2.AutoSize = true;
this.rbtn4_2.Location = new System.Drawing.Point(327, 7);
this.rbtn4_2.Name = "rbtn4_2";
this.rbtn4_2.Size = new System.Drawing.Size(47, 16);
this.rbtn4_2.TabIndex = 3;
this.rbtn4_2.TabStop = true;
this.rbtn4_2.Text = "변경";
this.rbtn4_2.UseVisualStyleBackColor = true;
this.rbtn4_2.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// rbtn4_1
//
this.rbtn4_1.AutoSize = true;
this.rbtn4_1.Location = new System.Drawing.Point(123, 7);
this.rbtn4_1.Name = "rbtn4_1";
this.rbtn4_1.Size = new System.Drawing.Size(47, 16);
this.rbtn4_1.TabIndex = 3;
this.rbtn4_1.TabStop = true;
this.rbtn4_1.Text = "변경";
this.rbtn4_1.UseVisualStyleBackColor = true;
this.rbtn4_1.Click += new System.EventHandler(this.rbtn1_2_Click);
//
// tb_user_res
//
this.tb_user_res.Location = new System.Drawing.Point(434, 26);
this.tb_user_res.Name = "tb_user_res";
this.tb_user_res.Size = new System.Drawing.Size(149, 21);
this.tb_user_res.TabIndex = 2;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(437, 11);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(69, 12);
this.label10.TabIndex = 1;
this.label10.Text = "담당자 결과";
//
// tb_user2
//
this.tb_user2.Location = new System.Drawing.Point(227, 26);
this.tb_user2.Name = "tb_user2";
this.tb_user2.Size = new System.Drawing.Size(149, 21);
this.tb_user2.TabIndex = 2;
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(225, 11);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(41, 12);
this.label11.TabIndex = 1;
this.label11.Text = "담당자";
//
// tb_user1
//
this.tb_user1.Location = new System.Drawing.Point(21, 26);
this.tb_user1.Name = "tb_user1";
this.tb_user1.Size = new System.Drawing.Size(149, 21);
this.tb_user1.TabIndex = 2;
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(19, 11);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(41, 12);
this.label12.TabIndex = 1;
this.label12.Text = "담당자";
//
// panel7
//
this.panel7.Controls.Add(this.rbtn5_2);
this.panel7.Controls.Add(this.rbtn5_1);
this.panel7.Controls.Add(this.tb_num_res);
this.panel7.Controls.Add(this.label13);
this.panel7.Controls.Add(this.tb_num2);
this.panel7.Controls.Add(this.label14);
this.panel7.Controls.Add(this.tb_num1);
this.panel7.Controls.Add(this.label15);
this.panel7.Location = new System.Drawing.Point(10, 274);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(600, 59);
this.panel7.TabIndex = 0;
//
// rbtn5_2
//
this.rbtn5_2.AutoSize = true;
this.rbtn5_2.Location = new System.Drawing.Point(327, 9);
this.rbtn5_2.Name = "rbtn5_2";
this.rbtn5_2.Size = new System.Drawing.Size(47, 16);
this.rbtn5_2.TabIndex = 3;
this.rbtn5_2.TabStop = true;
this.rbtn5_2.Text = "변경";
this.rbtn5_2.UseVisualStyleBackColor = true;
this.rbtn5_2.Click += new System.EventHandler(this.rbtn1_2_Click);
// //
// rbtn5_1 // rbtn5_1
// //
@@ -509,162 +143,65 @@
this.rbtn5_1.UseVisualStyleBackColor = true; this.rbtn5_1.UseVisualStyleBackColor = true;
this.rbtn5_1.Click += new System.EventHandler(this.rbtn1_2_Click); this.rbtn5_1.Click += new System.EventHandler(this.rbtn1_2_Click);
// //
// tb_num_res // rbtn5_2
// //
this.tb_num_res.Location = new System.Drawing.Point(433, 26); this.rbtn5_2.AutoSize = true;
this.tb_num_res.Name = "tb_num_res"; this.rbtn5_2.Location = new System.Drawing.Point(327, 9);
this.tb_num_res.Size = new System.Drawing.Size(149, 21); this.rbtn5_2.Name = "rbtn5_2";
this.tb_num_res.TabIndex = 2; this.rbtn5_2.Size = new System.Drawing.Size(47, 16);
this.rbtn5_2.TabIndex = 3;
this.rbtn5_2.TabStop = true;
this.rbtn5_2.Text = "변경";
this.rbtn5_2.UseVisualStyleBackColor = true;
this.rbtn5_2.Click += new System.EventHandler(this.rbtn1_2_Click);
// //
// label13 // panel7
// //
this.label13.AutoSize = true; this.panel7.Controls.Add(this.rbtn5_2);
this.label13.Location = new System.Drawing.Point(437, 11); this.panel7.Controls.Add(this.rbtn5_1);
this.label13.Name = "label13"; this.panel7.Controls.Add(this.tb_list_res);
this.label13.Size = new System.Drawing.Size(81, 12); this.panel7.Controls.Add(this.label13);
this.label13.TabIndex = 1; this.panel7.Controls.Add(this.tb_list2);
this.label13.Text = "목록번호 결과"; this.panel7.Controls.Add(this.label14);
// this.panel7.Controls.Add(this.tb_list1);
// tb_num2 this.panel7.Controls.Add(this.label15);
// this.panel7.Location = new System.Drawing.Point(8, 12);
this.tb_num2.Location = new System.Drawing.Point(227, 26); this.panel7.Name = "panel7";
this.tb_num2.Name = "tb_num2"; this.panel7.Size = new System.Drawing.Size(600, 59);
this.tb_num2.Size = new System.Drawing.Size(149, 21); this.panel7.TabIndex = 0;
this.tb_num2.TabIndex = 2;
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(225, 11);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(53, 12);
this.label14.TabIndex = 1;
this.label14.Text = "목록번호";
//
// tb_num1
//
this.tb_num1.Location = new System.Drawing.Point(21, 26);
this.tb_num1.Name = "tb_num1";
this.tb_num1.Size = new System.Drawing.Size(149, 21);
this.tb_num1.TabIndex = 2;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(19, 11);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(53, 12);
this.label15.TabIndex = 1;
this.label15.Text = "목록번호";
//
// chk_keep2
//
this.chk_keep2.AutoSize = true;
this.chk_keep2.Location = new System.Drawing.Point(243, 344);
this.chk_keep2.Name = "chk_keep2";
this.chk_keep2.Size = new System.Drawing.Size(116, 16);
this.chk_keep2.TabIndex = 3;
this.chk_keep2.Text = "기존 데이터 유지";
this.chk_keep2.UseVisualStyleBackColor = true;
this.chk_keep2.Click += new System.EventHandler(this.chk_Keep_data);
//
// chk_keep1
//
this.chk_keep1.AutoSize = true;
this.chk_keep1.Location = new System.Drawing.Point(37, 344);
this.chk_keep1.Name = "chk_keep1";
this.chk_keep1.Size = new System.Drawing.Size(116, 16);
this.chk_keep1.TabIndex = 3;
this.chk_keep1.Text = "기존 데이터 유지";
this.chk_keep1.UseVisualStyleBackColor = true;
this.chk_keep1.Click += new System.EventHandler(this.chk_Keep_data);
// //
// Commodity_Morge // Commodity_Morge
// //
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(621, 415); this.ClientSize = new System.Drawing.Size(620, 127);
this.Controls.Add(this.chk_keep1);
this.Controls.Add(this.chk_keep2);
this.Controls.Add(this.panel3); this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Controls.Add(this.btn_Cancel); this.Controls.Add(this.btn_Cancel);
this.Controls.Add(this.btn_OK); this.Controls.Add(this.btn_OK);
this.Controls.Add(this.panel7); this.Controls.Add(this.panel7);
this.Controls.Add(this.panel6);
this.Controls.Add(this.panel5);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel1);
this.Name = "Commodity_Morge"; this.Name = "Commodity_Morge";
this.Text = "Commodity_Morge"; this.Text = "Commodity_Morge";
this.Load += new System.EventHandler(this.Commodity_Morge_Load); this.Load += new System.EventHandler(this.Commodity_Morge_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel7.ResumeLayout(false); this.panel7.ResumeLayout(false);
this.panel7.PerformLayout(); this.panel7.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox tb_date1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_OK; private System.Windows.Forms.Button btn_OK;
private System.Windows.Forms.Button btn_Cancel; private System.Windows.Forms.Button btn_Cancel;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.RadioButton rbtn1_2;
private System.Windows.Forms.RadioButton rbtn1_1;
private System.Windows.Forms.TextBox tb_date_res;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox tb_date2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.RadioButton rbtn2_2;
private System.Windows.Forms.RadioButton rbtn2_1;
private System.Windows.Forms.TextBox tb_dlv_res;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox tb_dlv2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tb_dlv1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.RadioButton rbtn3_2;
private System.Windows.Forms.RadioButton rbtn3_1;
private System.Windows.Forms.TextBox tb_clt_res;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox tb_clt2;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox tb_clt1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.RadioButton rbtn4_2;
private System.Windows.Forms.RadioButton rbtn4_1;
private System.Windows.Forms.TextBox tb_user_res;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox tb_user2;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TextBox tb_user1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.RadioButton rbtn5_2;
private System.Windows.Forms.RadioButton rbtn5_1;
private System.Windows.Forms.TextBox tb_num_res;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox tb_num2;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox tb_num1;
private System.Windows.Forms.Label label15; private System.Windows.Forms.Label label15;
private System.Windows.Forms.CheckBox chk_keep2; private System.Windows.Forms.TextBox tb_list1;
private System.Windows.Forms.CheckBox chk_keep1; private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox tb_list2;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox tb_list_res;
private System.Windows.Forms.RadioButton rbtn5_1;
private System.Windows.Forms.RadioButton rbtn5_2;
private System.Windows.Forms.Panel panel7;
} }
} }

View File

@@ -14,8 +14,8 @@ namespace WindowsFormsApp1.Delivery
{ {
Commodity_registration com; Commodity_registration com;
Helper_DB DB = new Helper_DB(); Helper_DB DB = new Helper_DB();
bool keep_data1 = true; string[] list1 = { "", "", "", "", "", "", "", "", "" };
bool keep_data2 = true; string[] list2 = { "", "", "", "", "", "", "", "", "" };
public Commodity_Morge(Commodity_registration _com) public Commodity_Morge(Commodity_registration _com)
{ {
InitializeComponent(); InitializeComponent();
@@ -24,56 +24,37 @@ namespace WindowsFormsApp1.Delivery
private void Commodity_Morge_Load(object sender, EventArgs e) private void Commodity_Morge_Load(object sender, EventArgs e)
{ {
rbtn1_1.Checked = true;
rbtn2_1.Checked = true;
rbtn3_1.Checked = true;
rbtn4_1.Checked = true;
rbtn5_1.Checked = true; rbtn5_1.Checked = true;
tb_date1.Text = com.dataGridView2.Rows[com.MorgeNum[0]].Cells[0].Value.ToString(); list1[0] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["list_date"].Value.ToString();
tb_clt1.Text = com.dataGridView2.Rows[com.MorgeNum[0]].Cells[1].Value.ToString(); list1[1] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["pur"].Value.ToString();
tb_dlv1.Text = com.dataGridView2.Rows[com.MorgeNum[0]].Cells[2].Value.ToString(); list1[2] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["dly"].Value.ToString();
tb_user1.Text = com.dataGridView2.Rows[com.MorgeNum[0]].Cells[3].Value.ToString(); list1[3] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["charge"].Value.ToString();
tb_num1.Text = com.dataGridView2.Rows[com.MorgeNum[0]].Cells[4].Value.ToString(); list1[4] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["list_name"].Value.ToString();
list1[5] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["chk_marc"].Value.ToString();
list1[6] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["stat2"].Value.ToString();
list1[7] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["cout"].Value.ToString();
list1[8] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["tol"].Value.ToString();
tb_date2.Text = com.dataGridView2.Rows[com.MorgeNum[1]].Cells[0].Value.ToString(); list2[0] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["list_date"].Value.ToString();
tb_clt2.Text = com.dataGridView2.Rows[com.MorgeNum[1]].Cells[1].Value.ToString(); list2[1] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["pur"].Value.ToString();
tb_dlv2.Text = com.dataGridView2.Rows[com.MorgeNum[1]].Cells[2].Value.ToString(); list2[2] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["dly"].Value.ToString();
tb_user2.Text = com.dataGridView2.Rows[com.MorgeNum[1]].Cells[3].Value.ToString(); list2[3] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["charge"].Value.ToString();
tb_num2.Text = com.dataGridView2.Rows[com.MorgeNum[1]].Cells[4].Value.ToString(); list2[4] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["list_name"].Value.ToString();
list2[5] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["chk_marc"].Value.ToString();
list2[6] = com.dataGridView2.Rows[com.MorgeNum[1]].Cells["stat2"].Value.ToString();
list2[7] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["cout"].Value.ToString();
list2[8] = com.dataGridView2.Rows[com.MorgeNum[0]].Cells["tol"].Value.ToString();
tb_date1.Enabled = false; tb_list1.Text = list1[4];
tb_date2.Enabled = false; tb_list2.Text = list2[4];
tb_clt1.Enabled = false;
tb_clt2.Enabled = false;
tb_dlv1.Enabled = false;
tb_dlv2.Enabled = false;
tb_user1.Enabled = false;
tb_user2.Enabled = false;
tb_num1.Enabled = false;
tb_num2.Enabled = false;
chk_keep1.Checked = true;
chk_keep2.Checked = true;
rbtn1_2_Click(null, null); rbtn1_2_Click(null, null);
} }
private void rbtn1_2_Click(object sender, EventArgs e) private void rbtn1_2_Click(object sender, EventArgs e)
{ {
if (rbtn1_1.Checked == true) { tb_date_res.Text = tb_date1.Text; } if (rbtn5_1.Checked) { tb_list_res.Text = tb_list1.Text; }
else { tb_date_res.Text = tb_date2.Text; } else { tb_list_res.Text = tb_list2.Text; }
if (rbtn2_1.Checked == true) { tb_dlv_res.Text = tb_dlv1.Text; }
else { tb_dlv_res.Text = tb_dlv2.Text; }
if (rbtn3_1.Checked == true) { tb_clt_res.Text = tb_clt1.Text; }
else { tb_clt_res.Text = tb_clt2.Text; }
if (rbtn4_1.Checked == true) { tb_user_res.Text = tb_user1.Text; }
else { tb_user_res.Text = tb_user2.Text; }
if (rbtn5_1.Checked == true) { tb_num_res.Text = tb_num1.Text; }
else { tb_num_res.Text = tb_num2.Text; }
} }
private void btn_Cancel_Click(object sender, EventArgs e) private void btn_Cancel_Click(object sender, EventArgs e)
{ {
@@ -81,43 +62,88 @@ namespace WindowsFormsApp1.Delivery
} }
private void btn_OK_Click(object sender, EventArgs e) private void btn_OK_Click(object sender, EventArgs e)
{ {
string area = "`date`, `list_name`, `dly`, `clt`, `charge`, `chk_marc`, `state`";
string[] up_col = { "compidx", "date", "list_name" };
List<string> tmp_col = new List<string>();
tmp_col.AddRange(up_col);
List<string> tmp1 = new List<string>();
string[] up_data1 = { com.comp_idx, list1[0], list1[4] };
tmp1.AddRange(up_data1);
List<string> tmp2 = new List<string>();
string[] up_data2 = { com.comp_idx, list2[0], list2[4] };
tmp2.AddRange(up_data2);
DB.DBcon(); DB.DBcon();
bool create = false;
string cmd = "INSERT INTO Obj_List (`comp_num`, `date`, `clt`, `dly`, `charge`, `list_num`) " + if (rbtn5_1.Checked) {
"Values (" + // 2 => 1로
"'" + com.comp_idx + "'," + TwoToOne(tmp_col, tmp1, tmp2);
"'" + tb_date_res.Text + "'," +
"'" + tb_clt_res.Text + "'," +
"'" + tb_dlv_res.Text + "'," +
"'" + tb_user_res.Text + "'," +
"'" + tb_num_res.Text + "');";
if (keep_data1 == false) { DB.DB_Delete("Obj_List", "comp_num", com.comp_idx, "dly", tb_dlv1.Text); }
if (keep_data2 == false) { DB.DB_Delete("Obj_List", "comp_num", com.comp_idx, "dly", tb_dlv2.Text); }
if (tb_dlv_res.Text == "")
{
create = false;
MessageBox.Show("납품목록의 이름을 변경해주세요.");
} }
else if(tb_dlv_res.Text == tb_dlv1.Text || tb_dlv_res.Text == tb_dlv2.Text) else {
{ // 1 => 2로
create = false; OneToTwo(tmp_col, tmp1, tmp2);
MessageBox.Show("납품목록의 이름이 중복되지않게 변경해주세요.");
}
else { create = true; }
if (create == true) {
DB.self_Made_Cmd(cmd);
} }
this.Close();
} }
private void chk_Keep_data(object sender, EventArgs e) /// <summary>
/// data2가 data1으로 적용됨. 2 => 1로
/// </summary>
private void TwoToOne(List<string> col, List<string> tmp1, List<string> tmp2)
{ {
if(((CheckBox)sender).Name == "chk_keep1" && ((CheckBox)sender).Checked == false) string[] up_col = col.ToArray();
{ keep_data1 = false; } string[] up_data1 = tmp1.ToArray();
else if(((CheckBox)sender).Name == "chk_keep1" && ((CheckBox)sender).Checked == true) string[] up_data2 = tmp2.ToArray();
{ keep_data1 = true; }
if(((CheckBox)sender).Name == "chk_keep2" && ((CheckBox)sender).Checked == false) DB.More_Update("Obj_List_Book", up_col, up_data1, up_col, up_data2);
{ keep_data2 = false; } int cout1 = Convert.ToInt32(list1[7]);
else if(((CheckBox)sender).Name == "chk_keep2" && ((CheckBox)sender).Checked == true) int cout2 = Convert.ToInt32(list2[7]);
{ keep_data2 = true; } int cout = cout1 + cout2;
int tol1 = Convert.ToInt32(list1[8]);
int tol2 = Convert.ToInt32(list2[8]);
int tol = tol1 + tol2;
string[] edit_col = { "total", "compidx" };
string[] edit_data = { tol.ToString(), com.comp_idx };
DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data1);
DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data2);
edit_col[1] = "vol";
edit_data[1] = cout.ToString();
up_col[0] = "comp_num";
DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data1);
DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data2);
}
/// <summary>
/// data1가 data2으로 적용됨. 1 => 2로
/// </summary>
private void OneToTwo(List<string> col, List<string> tmp1, List<string> tmp2)
{
string[] up_col = col.ToArray();
string[] up_data1 = tmp1.ToArray();
string[] up_data2 = tmp2.ToArray();
DB.More_Update("Obj_List_Book", up_col, up_data2, up_col, up_data1);
int cout1 = Convert.ToInt32(list1[7]);
int cout2 = Convert.ToInt32(list2[7]);
int cout = cout1 + cout2;
int tol1 = Convert.ToInt32(list1[8]);
int tol2 = Convert.ToInt32(list2[8]);
int tol = tol1 + tol2;
string[] edit_col = { "total", "compidx" };
string[] edit_data = { tol.ToString(), com.comp_idx };
DB.More_Update("Obj_List_Marc", edit_col, edit_data, up_col, up_data2);
DB.DB_Delete_More_term("Obj_List_Marc", "compidx", com.comp_idx, up_col, up_data1);
edit_col[1] = "vol";
edit_data[1] = cout.ToString();
up_col[0] = "comp_num";
DB.More_Update("Obj_List", edit_col, edit_data, up_col, up_data2);
DB.DB_Delete_More_term("Obj_List", "comp_num", com.comp_idx, up_col, up_data1);
} }
} }
} }

View File

@@ -73,6 +73,17 @@
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1 = new System.Windows.Forms.ComboBox();
this.dataGridView2 = new System.Windows.Forms.DataGridView(); this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pur = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dly = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cout = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tol = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stat2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Grid_btn_ISBN = new System.Windows.Forms.DataGridViewButtonColumn();
this.chk_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Grid_Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.btn_morge = new System.Windows.Forms.Button(); this.btn_morge = new System.Windows.Forms.Button();
this.btn_Edit = new System.Windows.Forms.Button(); this.btn_Edit = new System.Windows.Forms.Button();
this.btn_Del = new System.Windows.Forms.Button(); this.btn_Del = new System.Windows.Forms.Button();
@@ -94,17 +105,6 @@
this.rbtn_all = new System.Windows.Forms.RadioButton(); this.rbtn_all = new System.Windows.Forms.RadioButton();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.label14 = new System.Windows.Forms.Label(); this.label14 = new System.Windows.Forms.Label();
this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pur = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dly = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cout = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tol = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stat2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Grid_btn_ISBN = new System.Windows.Forms.DataGridViewButtonColumn();
this.chk_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Grid_Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
@@ -274,7 +274,7 @@
// //
// btn_Exit // btn_Exit
// //
this.btn_Exit.Location = new System.Drawing.Point(1092, 45); this.btn_Exit.Location = new System.Drawing.Point(1089, 45);
this.btn_Exit.Name = "btn_Exit"; this.btn_Exit.Name = "btn_Exit";
this.btn_Exit.Size = new System.Drawing.Size(50, 23); this.btn_Exit.Size = new System.Drawing.Size(50, 23);
this.btn_Exit.TabIndex = 27; this.btn_Exit.TabIndex = 27;
@@ -488,6 +488,81 @@
this.dataGridView2.TabIndex = 29; this.dataGridView2.TabIndex = 29;
this.dataGridView2.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellClick); this.dataGridView2.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellClick);
// //
// list_date
//
this.list_date.HeaderText = "목록일자";
this.list_date.Name = "list_date";
this.list_date.Width = 70;
//
// pur
//
this.pur.HeaderText = "거래처명";
this.pur.Name = "pur";
this.pur.Width = 150;
//
// dly
//
this.dly.HeaderText = "납품목록";
this.dly.Name = "dly";
this.dly.Width = 150;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
//
// list_name
//
this.list_name.HeaderText = "목록명";
this.list_name.Name = "list_name";
this.list_name.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.list_name.Width = 250;
//
// cout
//
this.cout.HeaderText = "수량";
this.cout.Name = "cout";
this.cout.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.cout.Width = 50;
//
// tol
//
dataGridViewCellStyle6.Format = "N0";
dataGridViewCellStyle6.NullValue = null;
this.tol.DefaultCellStyle = dataGridViewCellStyle6;
this.tol.HeaderText = "합계";
this.tol.Name = "tol";
this.tol.Width = 80;
//
// stat2
//
this.stat2.HeaderText = "상태";
this.stat2.Name = "stat2";
this.stat2.Width = 50;
//
// Grid_btn_ISBN
//
this.Grid_btn_ISBN.HeaderText = "ISBN조회";
this.Grid_btn_ISBN.Name = "Grid_btn_ISBN";
this.Grid_btn_ISBN.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Grid_btn_ISBN.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// chk_marc
//
this.chk_marc.HeaderText = "MarcCheck";
this.chk_marc.Name = "chk_marc";
this.chk_marc.ReadOnly = true;
this.chk_marc.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.chk_marc.Visible = false;
//
// Grid_Check
//
this.Grid_Check.HeaderText = "체크";
this.Grid_Check.Name = "Grid_Check";
this.Grid_Check.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Grid_Check.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Grid_Check.Width = 40;
//
// btn_morge // btn_morge
// //
this.btn_morge.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.btn_morge.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
@@ -528,7 +603,7 @@
this.btn_Complet.Name = "btn_Complet"; this.btn_Complet.Name = "btn_Complet";
this.btn_Complet.Size = new System.Drawing.Size(62, 23); this.btn_Complet.Size = new System.Drawing.Size(62, 23);
this.btn_Complet.TabIndex = 28; this.btn_Complet.TabIndex = 28;
this.btn_Complet.Text = "완 료"; this.btn_Complet.Text = "완료처리";
this.btn_Complet.UseVisualStyleBackColor = true; this.btn_Complet.UseVisualStyleBackColor = true;
this.btn_Complet.Click += new System.EventHandler(this.btn_Complet_Click); this.btn_Complet.Click += new System.EventHandler(this.btn_Complet_Click);
// //
@@ -539,7 +614,7 @@
this.btn_ing.Name = "btn_ing"; this.btn_ing.Name = "btn_ing";
this.btn_ing.Size = new System.Drawing.Size(62, 23); this.btn_ing.Size = new System.Drawing.Size(62, 23);
this.btn_ing.TabIndex = 28; this.btn_ing.TabIndex = 28;
this.btn_ing.Text = "진 행"; this.btn_ing.Text = "진행처리";
this.btn_ing.UseVisualStyleBackColor = true; this.btn_ing.UseVisualStyleBackColor = true;
this.btn_ing.Click += new System.EventHandler(this.btn_ing_Click); this.btn_ing.Click += new System.EventHandler(this.btn_ing_Click);
// //
@@ -626,9 +701,9 @@
// //
// button2 // button2
// //
this.button2.Location = new System.Drawing.Point(1049, 12); this.button2.Location = new System.Drawing.Point(1036, 12);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(85, 23); this.button2.Size = new System.Drawing.Size(103, 23);
this.button2.TabIndex = 15; this.button2.TabIndex = 15;
this.button2.Text = "자동목록번호"; this.button2.Text = "자동목록번호";
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
@@ -687,81 +762,6 @@
this.label14.TabIndex = 22; this.label14.TabIndex = 22;
this.label14.Text = "작업\n대상"; this.label14.Text = "작업\n대상";
// //
// list_date
//
this.list_date.HeaderText = "목록일자";
this.list_date.Name = "list_date";
this.list_date.Width = 70;
//
// pur
//
this.pur.HeaderText = "거래처명";
this.pur.Name = "pur";
this.pur.Width = 150;
//
// dly
//
this.dly.HeaderText = "납품목록";
this.dly.Name = "dly";
this.dly.Width = 150;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
//
// list_name
//
this.list_name.HeaderText = "목록명";
this.list_name.Name = "list_name";
this.list_name.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.list_name.Width = 250;
//
// cout
//
this.cout.HeaderText = "수량";
this.cout.Name = "cout";
this.cout.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.cout.Width = 50;
//
// tol
//
dataGridViewCellStyle6.Format = "N0";
dataGridViewCellStyle6.NullValue = null;
this.tol.DefaultCellStyle = dataGridViewCellStyle6;
this.tol.HeaderText = "합계";
this.tol.Name = "tol";
this.tol.Width = 80;
//
// stat2
//
this.stat2.HeaderText = "상태";
this.stat2.Name = "stat2";
this.stat2.Width = 50;
//
// Grid_btn_ISBN
//
this.Grid_btn_ISBN.HeaderText = "ISBN조회";
this.Grid_btn_ISBN.Name = "Grid_btn_ISBN";
this.Grid_btn_ISBN.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Grid_btn_ISBN.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// chk_marc
//
this.chk_marc.HeaderText = "MarcCheck";
this.chk_marc.Name = "chk_marc";
this.chk_marc.ReadOnly = true;
this.chk_marc.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.chk_marc.Visible = false;
//
// Grid_Check
//
this.Grid_Check.HeaderText = "체크";
this.Grid_Check.Name = "Grid_Check";
this.Grid_Check.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Grid_Check.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Grid_Check.Width = 40;
//
// Commodity_registration // Commodity_registration
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -154,7 +154,8 @@ namespace WindowsFormsApp1.Delivery
{ {
if(dataGridView1.Rows[a].Cells["count"].Value == null) { break; } if(dataGridView1.Rows[a].Cells["count"].Value == null) { break; }
Strvol = dataGridView1.Rows[a].Cells["count"].Value.ToString(); Strvol = dataGridView1.Rows[a].Cells["count"].Value.ToString();
Strprice = dataGridView1.Rows[a].Cells["unit"].Value.ToString(); Strprice = dataGridView1.Rows[a].Cells["unit"].Value.ToString().Replace(",", "");
if(dataGridView1.Rows[a].Cells["total"].Value == null) { if(dataGridView1.Rows[a].Cells["total"].Value == null) {
int vol_tmp = Convert.ToInt32(Strvol); int vol_tmp = Convert.ToInt32(Strvol);
int price_tmp = Convert.ToInt32(Strprice); int price_tmp = Convert.ToInt32(Strprice);
@@ -260,20 +261,20 @@ namespace WindowsFormsApp1.Delivery
{ {
int cout = 0; int cout = 0;
int delcout = 0; int delcout = 0;
if(MessageBox.Show("정말 삭제하시겠습니까?\n삭제는 1개씩입니다.", "Danger!!!", MessageBoxButtons.YesNo) == DialogResult.Yes) if (MessageBox.Show("정말 삭제하시겠습니까?\n삭제는 1개씩입니다.", "Danger!!!", MessageBoxButtons.YesNo) == DialogResult.Yes)
{ {
for(int a = 0; a < dataGridView2.Rows.Count; a++) for (int a = 0; a < dataGridView2.Rows.Count; a++)
{ {
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value); bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked) if (isChecked)
{ {
if(cout == 0) { delcout = a; cout++; } if (cout == 0) { delcout = a; cout++; }
else { MessageBox.Show("체크가 2개이상 되어있습니다!"); cout++; break; } else { MessageBox.Show("체크가 2개이상 되어있습니다!"); cout++; break; }
} }
} }
richTextBox1.Text = delcout.ToString(); richTextBox1.Text = delcout.ToString();
if(cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; } if (cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
else if(cout == 1) else if (cout == 1)
{ {
string[] del_target = { dataGridView2.Rows[delcout].Cells["list_date"].Value.ToString(), string[] del_target = { dataGridView2.Rows[delcout].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[delcout].Cells["list_name"].Value.ToString() }; dataGridView2.Rows[delcout].Cells["list_name"].Value.ToString() };
@@ -352,7 +353,7 @@ namespace WindowsFormsApp1.Delivery
{ {
string marc_tmp = dataGridView2.Rows[a].Cells["chk_marc"].Value.ToString(); string marc_tmp = dataGridView2.Rows[a].Cells["chk_marc"].Value.ToString();
int marc = Convert.ToInt32(marc_tmp); int marc = Convert.ToInt32(marc_tmp);
if (marc > 1) { if (marc >= 1) {
dataGridView2.Rows[a].DefaultCellStyle.BackColor = Color.Yellow; dataGridView2.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
} }
} }
@@ -377,7 +378,7 @@ namespace WindowsFormsApp1.Delivery
{ {
dataGridView1.Rows[a].Cells[ea].Value = ""; dataGridView1.Rows[a].Cells[ea].Value = "";
} }
if(dataGridView1.Columns[ea].Name == "unit" || dataGridView1.Columns[ea].Name == "total") { if (dataGridView1.Columns[ea].Name == "unit" || dataGridView1.Columns[ea].Name == "total") {
setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString().Replace(",", ""); setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString().Replace(",", "");
} }
else { else {
@@ -432,8 +433,13 @@ namespace WindowsFormsApp1.Delivery
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value); bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked) if (isChecked)
{ {
dataGridView2.Rows[a].Cells[7].Value = "진행"; string[] edit_col = { "state" };
db.DB_Update("Obj_List", "state", "진행", "dly", dataGridView2.Rows[a].Cells[2].Value.ToString()); string[] edit_name = { "진행" };
string[] seer_col = { "date", "list_name" };
string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name"].Value.ToString() };
db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name);
dataGridView2.Rows[a].Cells["stat2"].Value = "진행";
} }
} }
Add_Grid("완료"); Add_Grid("완료");
@@ -448,8 +454,13 @@ namespace WindowsFormsApp1.Delivery
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value); bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked) if (isChecked)
{ {
dataGridView2.Rows[a].Cells[7].Value = "완료"; string[] edit_col = { "state" };
db.DB_Update("Obj_List", "state", "완료", "dly", dataGridView2.Rows[a].Cells[2].Value.ToString()); string[] edit_name = { "완료" };
string[] seer_col = { "date", "list_name" };
string[] sear_name = { dataGridView2.Rows[a].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[a].Cells["list_name"].Value.ToString() };
db.More_Update("Obj_List", edit_col, edit_name, seer_col, sear_name);
dataGridView2.Rows[a].Cells["stat2"].Value = "완료";
} }
} }
Add_Grid("진행"); Add_Grid("진행");
@@ -469,21 +480,20 @@ namespace WindowsFormsApp1.Delivery
if (tb_user2.Text != "") { cmd += " AND `charge` LIKE '%" + tb_user2.Text + "%'"; } if (tb_user2.Text != "") { cmd += " AND `charge` LIKE '%" + tb_user2.Text + "%'"; }
cmd += ";"; cmd += ";";
string res_temp = db.self_Made_Cmd(cmd); string res_temp = db.self_Made_Cmd(cmd);
string[] result = { "", "", "", "", "", "", "", "", "", "ISBN 조회", "" }; // 0-10 string[] result = { "", "", "", "", "", "", "", "", "ISBN 조회", "" }; // 0-9
string[] tmp = res_temp.Split('|'); string[] tmp = res_temp.Split('|');
dataGridView2.Rows.Clear(); dataGridView2.Rows.Clear();
for (int a = 0; a < tmp.Length; a++) for (int a = 0; a < tmp.Length; a++)
{ {
if(a==0 || a % 10 == 0) { result[0] = tmp[a]; } if (a % 9 == 0) { result[0] = tmp[a]; }
if(a % 10 == 1) { result[1] = tmp[a]; } if (a % 9 == 1) { result[1] = tmp[a]; }
if(a % 10 == 2) { result[2] = tmp[a]; } if (a % 9 == 2) { result[2] = tmp[a]; }
if(a % 10 == 3) { result[3] = tmp[a]; } if (a % 9 == 3) { result[3] = tmp[a]; }
if(a % 10 == 4) { result[4] = tmp[a]; } if (a % 9 == 4) { result[4] = tmp[a]; }
if(a % 10 == 5) { result[5] = tmp[a]; } if (a % 9 == 5) { result[5] = tmp[a]; }
if(a % 10 == 6) { result[6] = tmp[a]; } if (a % 9 == 6) { result[6] = tmp[a]; }
if(a % 10 == 7) { result[7] = tmp[a]; } if (a % 9 == 7) { result[7] = tmp[a]; }
if(a % 10 == 8) { result[8] = tmp[a]; } if (a % 9 == 8) { result[9] = tmp[a]; dataGridView2.Rows.Add(result); }
if(a % 10 == 9) { result[10] = tmp[a]; dataGridView2.Rows.Add(result); }
} }
GridColorChange(); GridColorChange();
} }

View File

@@ -582,6 +582,9 @@ namespace WindowsFormsApp1.Mac
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{ {
rowidx = e.RowIndex; rowidx = e.RowIndex;
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null) {
return;
}
richTextBox1.Text = dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString(); richTextBox1.Text = dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString();
} }
private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e) private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e)

View File

@@ -71,7 +71,6 @@ namespace WindowsFormsApp1.마크
private string change_Date_type(string date) private string change_Date_type(string date)
{ {
if (Call_API == "알라딘") { if (Call_API == "알라딘") {
MessageBox.Show(date);
return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G")))); return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G"))));
} }
else if (Call_API == "네이버") else if (Call_API == "네이버")