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

== TODO ==
기타 추가적인 버그 잡을것. / 바로빌 세금계산서알아볼것.

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

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

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

===== 완료 =====
21.06.21 마크검색 작업완료

마크 편집창에서 메모장, 미리보기, 표지크게보기 기능 추가

21.06.08 자동업데이트 기능 완료 - 프로젝트가 새로 바뀜.

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-06-21 18:34:32 +09:00
parent 2d5f25ac4f
commit 50d5d90789
20 changed files with 1913 additions and 894 deletions

View File

@@ -37,13 +37,13 @@
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
@@ -143,12 +143,6 @@
this.dataGridView1.TabIndex = 1;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// openFileDialog1
//
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
this.openFileDialog1.InitialDirectory = "C:";
this.openFileDialog1.Title = "열기";
//
// isbn
//
this.isbn.HeaderText = "isbn";
@@ -184,6 +178,12 @@
this.Marc.Name = "Marc";
this.Marc.Width = 500;
//
// openFileDialog1
//
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
this.openFileDialog1.InitialDirectory = "C:";
this.openFileDialog1.Title = "열기";
//
// Mac_Input
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -192,7 +192,7 @@
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel1);
this.Name = "Mac_Input";
this.Text = "Mac_Carry";
this.Text = "마크 반입";
this.Load += new System.EventHandler(this.Mac_Input_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();

View File

@@ -31,6 +31,12 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label2 = new System.Windows.Forms.Label();
this.tb_search = new System.Windows.Forms.TextBox();
this.btn_search = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.btn_close = new System.Windows.Forms.Button();
this.cb_data_area = new System.Windows.Forms.ComboBox();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -38,14 +44,9 @@
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pub_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label2 = new System.Windows.Forms.Label();
this.tb_search = new System.Windows.Forms.TextBox();
this.btn_search = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.btn_close = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -79,9 +80,9 @@
this.book_comp,
this.price,
this.pub_date,
this.Marc,
this.etc1,
this.etc2,
this.Marc});
this.etc2});
this.dataGridView1.Location = new System.Drawing.Point(12, 35);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 20;
@@ -90,6 +91,61 @@
this.dataGridView1.TabIndex = 49;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(430, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 5;
this.label2.Text = "검색어";
//
// tb_search
//
this.tb_search.Location = new System.Drawing.Point(477, 7);
this.tb_search.Name = "tb_search";
this.tb_search.Size = new System.Drawing.Size(222, 21);
this.tb_search.TabIndex = 6;
this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
//
// btn_search
//
this.btn_search.Location = new System.Drawing.Point(710, 6);
this.btn_search.Name = "btn_search";
this.btn_search.Size = new System.Drawing.Size(75, 23);
this.btn_search.TabIndex = 7;
this.btn_search.Text = "검 색";
this.btn_search.UseVisualStyleBackColor = true;
this.btn_search.Click += new System.EventHandler(this.btn_search_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(222, 7);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 50;
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(798, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 51;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// cb_data_area
//
this.cb_data_area.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_data_area.FormattingEnabled = true;
this.cb_data_area.Location = new System.Drawing.Point(71, 7);
this.cb_data_area.Name = "cb_data_area";
this.cb_data_area.Size = new System.Drawing.Size(145, 20);
this.cb_data_area.TabIndex = 52;
//
// grade
//
this.grade.HeaderText = "등급";
@@ -130,6 +186,12 @@
this.pub_date.HeaderText = "출판년월";
this.pub_date.Name = "pub_date";
//
// Marc
//
this.Marc.HeaderText = "marc";
this.Marc.Name = "Marc";
this.Marc.Visible = false;
//
// etc1
//
this.etc1.HeaderText = "비고1";
@@ -142,63 +204,12 @@
this.etc2.Name = "etc2";
this.etc2.Width = 140;
//
// Marc
//
this.Marc.HeaderText = "marc";
this.Marc.Name = "Marc";
this.Marc.Visible = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(271, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 5;
this.label2.Text = "검색어";
//
// tb_search
//
this.tb_search.Location = new System.Drawing.Point(318, 7);
this.tb_search.Name = "tb_search";
this.tb_search.Size = new System.Drawing.Size(222, 21);
this.tb_search.TabIndex = 6;
this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
//
// btn_search
//
this.btn_search.Location = new System.Drawing.Point(551, 6);
this.btn_search.Name = "btn_search";
this.btn_search.Size = new System.Drawing.Size(75, 23);
this.btn_search.TabIndex = 7;
this.btn_search.Text = "검 색";
this.btn_search.UseVisualStyleBackColor = true;
this.btn_search.Click += new System.EventHandler(this.btn_search_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(71, 7);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 50;
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(639, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 51;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// Search_Infor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1258, 666);
this.Controls.Add(this.cb_data_area);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.cb_filter);
this.Controls.Add(this.dataGridView1);
@@ -224,6 +235,7 @@
private System.Windows.Forms.Button btn_search;
private System.Windows.Forms.ComboBox cb_filter;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.ComboBox cb_data_area;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
@@ -231,8 +243,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn pub_date;
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
private System.Windows.Forms.DataGridViewTextBoxColumn etc1;
private System.Windows.Forms.DataGridViewTextBoxColumn etc2;
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
}
}

View File

@@ -26,6 +26,9 @@ namespace WindowsFormsApp1.Mac
{
db.DBcon();
string[] area = { "국립 중앙 도서관", "자체 저장 DB" };
cb_data_area.Items.AddRange(area);
cb_data_area.SelectedIndex = 0;
string[] filter = { "도서명", "저자", "출판사", "ISBN" };
cb_filter.Items.AddRange(filter);
cb_filter.SelectedIndex = 0;
@@ -40,19 +43,38 @@ namespace WindowsFormsApp1.Mac
{
dataGridView1.Rows.Clear();
string target = string.Empty;
string Area = "`grade`, `ISBN`, `서명`, `저자`, `출판사`, `출판년월`, `가격`, `비고1`, `비고2`, `marc`";
string Area = string.Empty;
if (cb_data_area.SelectedIndex == -1) {
MessageBox.Show("검색필터를 선택해주세요!");
cb_data_area.Focus();
return;
}
if (cb_filter.SelectedIndex == -1) {
MessageBox.Show("검색필터를 선택해주세요!");
cb_filter.Focus();
return;
}
if (cb_filter.SelectedItem.ToString() == "도서명") { target = "서명"; }
else { target = cb_filter.SelectedItem.ToString(); }
target = setting_target();
string tmp_data = db.DB_Contains("Marc", compidx, target, tb_search.Text, Area);
if(cb_data_area.SelectedIndex == 0) {
db.DBcon_cl();
Area = "`grade`, `isbn`, `book_name`, `author`, `book_comp`, `years`, `price`, `marc`, `etc`, `etc`";
}
else if(cb_data_area.SelectedIndex == 1) {
db.DBcon();
Area = "`grade`, `ISBN`, `서명`, `저자`, `출판사`, `출판년월`, `가격`, `marc`, `비고1`, `비고2`";
}
string tmp_data = db.DB_Contains("Marc", "none", target, tb_search.Text, Area);
string[] tmp_arr = tmp_data.Split('|');
input_grid(tmp_arr);
}
#region search_Click_Sub
/// <summary>
/// 검색결과에 따라 Grid를 새로 그림
/// </summary>
/// <param name="arr"></param>
void input_grid(string[] arr)
{
string[] grid = { "", "", "", "", "",
@@ -74,6 +96,11 @@ namespace WindowsFormsApp1.Mac
}
}
}
/// <summary>
/// idx값에 따라 Grade를 보기 쉽게 바꿔줌.
/// </summary>
/// <param name="idx">DB에서 가져온 마크등급</param>
/// <returns></returns>
string Change_Grade(string idx)
{
string result = string.Empty;
@@ -97,6 +124,57 @@ namespace WindowsFormsApp1.Mac
}
return result;
}
/// <summary>
/// 검색 필터에 따라 target이 변경됨
/// </summary>
/// <returns></returns>
string setting_target()
{
string res = string.Empty;
if (cb_data_area.SelectedIndex == 0)
{
switch (cb_filter.SelectedIndex)
{
case 0:
res = "book_name";
break;
case 1:
res = "author";
break;
case 2:
res = "book_comp";
break;
case 3:
res = "isbn";
break;
default:
break;
}
}
else
{
switch (cb_filter.SelectedIndex)
{
case 0:
res = "서명";
break;
case 1:
res = cb_filter.Text;
break;
case 2:
res = cb_filter.Text;
break;
case 3:
res = cb_filter.Text;
break;
default:
break;
}
}
return res;
}
#endregion
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = e.RowIndex;

View File

@@ -138,13 +138,13 @@
<metadata name="pub_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="etc1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="etc2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>