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

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

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

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

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

===== 완료 =====
1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.

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

2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료)
 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김.
 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료.
 2-3. 저장기능 완료. (04.14 체크해볼것)
This commit is contained in:
SeungHo Yang
2021-04-20 18:32:51 +09:00
parent 289ea93e11
commit 77d303c9dc
32 changed files with 520 additions and 489 deletions

View File

@@ -73,17 +73,6 @@
this.panel1 = new System.Windows.Forms.Panel();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.dataGridView2 = new System.Windows.Forms.DataGridView();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column20 = new System.Windows.Forms.DataGridViewButtonColumn();
this.chk_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Del_Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.btn_morge = new System.Windows.Forms.Button();
this.btn_Edit = new System.Windows.Forms.Button();
this.btn_Del = new System.Windows.Forms.Button();
@@ -105,6 +94,17 @@
this.rbtn_all = new System.Windows.Forms.RadioButton();
this.panel2 = new System.Windows.Forms.Panel();
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();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
@@ -468,99 +468,26 @@
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column11,
this.Column12,
this.Column13,
this.Column14,
this.Column15,
this.Column16,
this.Column17,
this.Column18,
this.Column20,
this.list_date,
this.pur,
this.dly,
this.charge,
this.list_name,
this.cout,
this.tol,
this.stat2,
this.Grid_btn_ISBN,
this.chk_marc,
this.Del_Check});
this.Grid_Check});
this.dataGridView2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnKeystroke;
this.dataGridView2.Location = new System.Drawing.Point(3, 39);
this.dataGridView2.Name = "dataGridView2";
this.dataGridView2.RowHeadersWidth = 20;
this.dataGridView2.RowTemplate.Height = 23;
this.dataGridView2.Size = new System.Drawing.Size(1073, 217);
this.dataGridView2.Size = new System.Drawing.Size(1083, 217);
this.dataGridView2.TabIndex = 29;
this.dataGridView2.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellClick);
//
// Column11
//
this.Column11.HeaderText = "목록일자";
this.Column11.Name = "Column11";
this.Column11.Width = 80;
//
// Column12
//
this.Column12.HeaderText = "거래처명";
this.Column12.Name = "Column12";
this.Column12.Width = 180;
//
// Column13
//
this.Column13.HeaderText = "납품목록";
this.Column13.Name = "Column13";
this.Column13.Width = 180;
//
// Column14
//
this.Column14.HeaderText = "담당자";
this.Column14.Name = "Column14";
//
// Column15
//
this.Column15.HeaderText = "목록번호";
this.Column15.Name = "Column15";
this.Column15.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// Column16
//
this.Column16.HeaderText = "수량";
this.Column16.Name = "Column16";
this.Column16.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column16.Width = 50;
//
// Column17
//
dataGridViewCellStyle6.Format = "N0";
dataGridViewCellStyle6.NullValue = null;
this.Column17.DefaultCellStyle = dataGridViewCellStyle6;
this.Column17.HeaderText = "합계";
this.Column17.Name = "Column17";
//
// Column18
//
this.Column18.HeaderText = "상태";
this.Column18.Name = "Column18";
this.Column18.Width = 50;
//
// Column20
//
this.Column20.HeaderText = "ISBN조회";
this.Column20.Name = "Column20";
this.Column20.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Column20.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;
//
// Del_Check
//
this.Del_Check.HeaderText = "체크";
this.Del_Check.Name = "Del_Check";
this.Del_Check.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Del_Check.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Del_Check.Width = 40;
//
// btn_morge
//
this.btn_morge.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
@@ -760,6 +687,81 @@
this.label14.TabIndex = 22;
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -855,17 +857,6 @@
private System.Windows.Forms.RadioButton rbtn_all;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
private System.Windows.Forms.DataGridViewTextBoxColumn Column15;
private System.Windows.Forms.DataGridViewTextBoxColumn Column16;
private System.Windows.Forms.DataGridViewTextBoxColumn Column17;
private System.Windows.Forms.DataGridViewTextBoxColumn Column18;
private System.Windows.Forms.DataGridViewButtonColumn Column20;
private System.Windows.Forms.DataGridViewTextBoxColumn chk_marc;
private System.Windows.Forms.DataGridViewCheckBoxColumn Del_Check;
private System.Windows.Forms.DataGridViewTextBoxColumn header;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
@@ -879,5 +870,16 @@
private System.Windows.Forms.DataGridViewTextBoxColumn order;
private System.Windows.Forms.DataGridViewTextBoxColumn stat;
private System.Windows.Forms.DataGridViewTextBoxColumn chk_time;
private System.Windows.Forms.DataGridViewTextBoxColumn list_date;
private System.Windows.Forms.DataGridViewTextBoxColumn pur;
private System.Windows.Forms.DataGridViewTextBoxColumn dly;
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn cout;
private System.Windows.Forms.DataGridViewTextBoxColumn tol;
private System.Windows.Forms.DataGridViewTextBoxColumn stat2;
private System.Windows.Forms.DataGridViewButtonColumn Grid_btn_ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn chk_marc;
private System.Windows.Forms.DataGridViewCheckBoxColumn Grid_Check;
}
}

View File

@@ -10,6 +10,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1.Mac;
namespace WindowsFormsApp1.Delivery
{
@@ -263,7 +264,7 @@ namespace WindowsFormsApp1.Delivery
{
for(int a = 0; a < dataGridView2.Rows.Count; a++)
{
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked)
{
if(cout == 0) { delcout = a; cout++; }
@@ -274,9 +275,16 @@ namespace WindowsFormsApp1.Delivery
if(cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
else if(cout == 1)
{
string deldata = dataGridView2.Rows[delcout].Cells[2].Value.ToString();
db.DB_Delete("Obj_List", "comp_num", main.com_idx,
"dly", deldata);
string[] del_target = { dataGridView2.Rows[delcout].Cells["list_date"].Value.ToString(),
dataGridView2.Rows[delcout].Cells["list_name"].Value.ToString() };
string[] del_table = { "date", "list_name" };
db.DB_Delete_More_term("Obj_List", "comp_num", main.com_idx, del_table, del_target);
db.DB_Delete_No_Limit("Obj_List_Book", "compidx", comp_idx, del_table, del_target);
del_table[1] = "connect_data";
db.DB_Delete_More_term("Obj_List_Marc", "compidx", main.com_idx, del_table, del_target);
dataGridView2.Rows.Remove(dataGridView2.Rows[delcout]);
}
}
@@ -286,7 +294,7 @@ namespace WindowsFormsApp1.Delivery
int cout = 0;
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked)
{
if (cout == 0) { EditNumber = a; cout++; }
@@ -307,7 +315,7 @@ namespace WindowsFormsApp1.Delivery
private void Add_Grid(string code)
{
dataGridView2.Rows.Clear();
string getdata = "`date`, `clt`, `dly`, `charge`, `list_num`, " +
string getdata = "`date`, `clt`, `dly`, `charge`, `list_name`, " +
"`vol`, `total`, `state`, `chk_marc`";
string[] othertable = { "comp_num", "state" };
string[] othercol = { main.com_idx, code };
@@ -357,6 +365,7 @@ namespace WindowsFormsApp1.Delivery
string[] setData = { comp_idx, "[" + tb_clt1.Text + "]" + tb_dvy1.Text, "", "", "",
"", "", "", "", "",
"", "", "", start_date.Value.ToString().Substring(0,10) };
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells[2].Value == null ||
@@ -368,16 +377,23 @@ namespace WindowsFormsApp1.Delivery
{
dataGridView1.Rows[a].Cells[ea].Value = "";
}
setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString();
if(dataGridView1.Columns[ea].Name == "unit" || dataGridView1.Columns[ea].Name == "total") {
setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString().Replace(",", "");
}
else {
setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString();
}
}
db.DB_INSERT("Obj_List_Book", DB_col_name, setData);
}
}
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 9) // ISBN 조회 (버튼 클릭시 ISBN검수 창으로 넘어가야함)
if (dataGridView2.Columns[e.ColumnIndex].Name == "Grid_btn_ISBN") // ISBN 조회 (버튼 클릭시 ISBN검수 창으로 넘어가야함)
{
// TODO: 작업진행예정
Check_ISBN isbn = new Check_ISBN(this);
isbn.list_name = dataGridView2.Rows[e.RowIndex].Cells["list_name"].Value.ToString();
isbn.Show();
}
}
private void btn_morge_Click(object sender, EventArgs e)
@@ -385,7 +401,7 @@ namespace WindowsFormsApp1.Delivery
int cout = 0;
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked)
{
if (cout == 0) { MorgeNum[0] = a; cout++; }
@@ -413,7 +429,7 @@ namespace WindowsFormsApp1.Delivery
{
for(int a = 0; a < dataGridView2.Rows.Count; a++)
{
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked)
{
dataGridView2.Rows[a].Cells[7].Value = "진행";
@@ -429,7 +445,7 @@ namespace WindowsFormsApp1.Delivery
{
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
if (isChecked)
{
dataGridView2.Rows[a].Cells[7].Value = "완료";
@@ -442,7 +458,7 @@ namespace WindowsFormsApp1.Delivery
private void btn_lockup_Click(object sender, EventArgs e)
{
string cmd = "SELECT " +
"`date`,`clt`,`dly`,`charge`,`list_num`," +
"`date`,`clt`,`dly`,`charge`,`list_name`," +
"`vol`,`total`,`state`,`chk_marc`" +
" from Obj_List WHERE " +
"`comp_num` = '" + comp_idx + "' ";

View File

@@ -156,37 +156,37 @@
<metadata name="chk_time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="list_date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="pur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="dly.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="charge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column16.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="cout.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column17.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="tol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column18.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="stat2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="Grid_btn_ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="chk_marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Del_Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="Grid_Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">

View File

@@ -309,7 +309,6 @@ namespace WindowsFormsApp1.Delivery
}
private void btn_ISBN_Click(object sender, EventArgs e) // ISBN조회
{
// TODO: ISBN조회 창으로 넘어감
Check_ISBN isbn = new Check_ISBN(this);
isbn.list_name = tb_list_name.Text;
isbn.Show();

View File

@@ -261,7 +261,6 @@ namespace WindowsFormsApp1.Delivery
}
private void tb_search_book_list_KeyDown(object sender, KeyEventArgs e)
{
// 폼 새로 띄워서 검색기능활성화해야함.
if(e.KeyCode == Keys.Enter)
{
Order_input_Search search = new Order_input_Search(this);
@@ -298,6 +297,7 @@ namespace WindowsFormsApp1.Delivery
total += Convert.ToInt32(dataGridView1.Rows[a].Cells["order_count"].Value.ToString());
}
}
if (chkIdx.Count < 1) { MessageBox.Show("선택된 도서가 없습니다!"); return; }
string[,] inputExcel = new string[chkIdx.Count,7];
string pur = dataGridView1.Rows[chkIdx[0]].Cells["order"].Value.ToString();
for(int a = 0; a < chkIdx.Count; a++)

View File

@@ -70,17 +70,6 @@ namespace WindowsFormsApp1.Delivery
string cmd = db.DB_Contains("Purchase", compidx,
"sangho", searchText, "`sangho`, `boss`, `jongmok`");
made_grid(cmd);
/* if (searchText == "") {
string cmd = db.DB_Contains("Purchase", compidx,
"", "", "`sangho`, `boss`, `jongmok`");
made_grid(cmd);
MessageBox.Show(cmd);
}
else {
string cmd = db.DB_Contains("Purchase", compidx,
"sangho", searchText, "`sangho`, `boss`, `jongmok`");
made_grid(cmd);
} */
}
}
private void made_grid(string strValue)
@@ -140,9 +129,10 @@ namespace WindowsFormsApp1.Delivery
string[] tmp_col = { "compidx", "list_name" };
string[] tmp_data = { compidx,
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString() };
string takedata = "`order`, `order_stat`, `book_name`, `author`, `book_comp`, " +
"`order_count`, `count`, `pay`, `total`, `etc`, " +
"`list_name`, `order_date`, `send_date`, `header`, `num`";
string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " +
"`book_comp`, `order_count`, `count`, `pay`, `total`, " +
"`etc`, `list_name`, `order_date`, `send_date`, `header`, " +
"`num`";
string cmd = db.More_DB_Search("Obj_List_Book", tmp_col, tmp_data, takedata);
oin.made_grid(cmd, false);
oin.tb_search_book_list.Text = tmp_data[1];