=====* 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:
@@ -61,7 +61,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
combo_user.Items.Add(user_name[a]);
|
||||
}
|
||||
combo_user.SelectedIndex = 0;
|
||||
|
||||
/*
|
||||
string searchdb = "`list_name`, `date`, `date_res`, `charge`, `work_name`, " +
|
||||
"`work_way`, `send_way`, `total`, `stock_money`, `vol`, " +
|
||||
"`stock`, `unstock`, `list_num`, `chk_marc`";
|
||||
@@ -70,7 +70,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
db_tmp = db.More_DB_Search("Obj_List", searchdb1, searchdb2, searchdb);
|
||||
Made_Grid(db_tmp);
|
||||
dataGridView1.Focus();
|
||||
infor_Update(0);
|
||||
infor_Update(0);*/
|
||||
}
|
||||
/// <summary>
|
||||
/// 표에 값을 채우는 함수.
|
||||
@@ -108,27 +108,67 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (a % 14 == 10) { grid[10] = db_data[a]; }
|
||||
if (a % 14 == 11) { grid[11] = db_data[a]; }
|
||||
if (a % 14 == 12) { grid[14] = db_data[a]; }
|
||||
if (a % 14 == 13) { grid[15] = db_data[a]; dataGridView1.Rows.Add(grid); }
|
||||
if (a % 14 == 13) {
|
||||
grid[15] = db_data[a];
|
||||
if (Grid_filter(grid)) {
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
}
|
||||
GridColorChange();
|
||||
}
|
||||
private bool Grid_filter(string[] arr)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
string db_clt = st.GetMiddelString(arr[0], "[", "]");
|
||||
string cb_year = combo_year.SelectedItem.ToString();
|
||||
string db_year = arr[1].Substring(0, 4);
|
||||
if (combo_state.SelectedIndex == 1) {
|
||||
if (cb_year != db_year) {
|
||||
MessageBox.Show("연도 컷");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (combo_user.SelectedIndex != 0) {
|
||||
if (combo_user.SelectedItem.ToString() != arr[3]) {
|
||||
MessageBox.Show("사용자 컷");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (tb_clt.Text != "") {
|
||||
if(tb_clt.Text == db_clt) {
|
||||
return true;
|
||||
}
|
||||
MessageBox.Show("거래처 컷");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
private void btn_lookup_Click(object sender, EventArgs e) // 조회
|
||||
{
|
||||
string cmd = "SELECT `list_name`, `date`, `date_res`, `charge`, `work_name`, " +
|
||||
"`work_way`, `send_way`, `total`, `stock_money`, `vol`, " +
|
||||
"`stock`, `unstock`, `list_num`, `chk_label` " +
|
||||
"FROM Obj_List WHERE `comp_num` = '" + main.com_idx + "'";
|
||||
if(combo_state.Text == "진행") { cmd += " AND `state` = '진행'"; }
|
||||
if(combo_state.Text == "완료") {
|
||||
cmd += " AND `state` = '완료'";
|
||||
// TODO: 연도 적용
|
||||
/// 목록명 / 목록일자 / 완료일자 / 담당자 / 작업명
|
||||
/// 작업방법 / 배송방법 / 합계금액 / 입고금액 / 수량
|
||||
/// 입고 / 미입고 / 목록번호 / 마크여부
|
||||
string searchdb = "`list_name`, `date`, `date_res`, `charge`, `work_name`, " +
|
||||
"`work_way`, `send_way`, `total`, `stock_money`, `vol`, " +
|
||||
"`stock`, `unstock`, `list_num`, `chk_marc`";
|
||||
List<string> search_L_tbl = new List<string>();
|
||||
List<string> search_L_col = new List<string>();
|
||||
|
||||
search_L_tbl.Add("comp_num");
|
||||
search_L_col.Add(compidx);
|
||||
|
||||
if (combo_state.SelectedItem.ToString() != "전체") {
|
||||
search_L_tbl.Add("state");
|
||||
search_L_col.Add(combo_state.SelectedItem.ToString());
|
||||
}
|
||||
if(combo_user.Text != "전체") { cmd += " AND `charge` = '" + combo_user.Text + "'"; }
|
||||
if(tb_clt.Text != "") { cmd += " AND `clt` LIKE'%" + tb_clt.Text + "%'"; }
|
||||
if(tb_dlv.Text != "") { cmd += " AND `dly` LIKE'%" + tb_dlv.Text + "%'"; }
|
||||
cmd += ";";
|
||||
string tmp = db.self_Made_Cmd(cmd);
|
||||
Made_Grid(tmp);
|
||||
|
||||
string[] searchdb1 = search_L_tbl.ToArray();
|
||||
string[] searchdb2 = search_L_col.ToArray();
|
||||
|
||||
db_tmp = db.More_DB_Search("Obj_List", searchdb1, searchdb2, searchdb);
|
||||
Made_Grid(db_tmp);
|
||||
dataGridView1.Focus();
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e) // 저장
|
||||
{
|
||||
@@ -138,18 +178,18 @@ namespace WindowsFormsApp1.Delivery
|
||||
string edit1, edit2, edit3;
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if(dataGridView1.Rows[a].Cells["Column4"].Value.ToString() == null) { edit1 = ""; }
|
||||
else { edit1 = dataGridView1.Rows[a].Cells["Column4"].Value.ToString(); }
|
||||
if(dataGridView1.Rows[a].Cells["work_name"].Value.ToString() == null) { edit1 = ""; }
|
||||
else { edit1 = dataGridView1.Rows[a].Cells["work_name"].Value.ToString(); }
|
||||
|
||||
if(dataGridView1.Rows[a].Cells["Column6"].Value.ToString() == null) { edit2 = ""; }
|
||||
else { edit2 = dataGridView1.Rows[a].Cells["Column6"].Value.ToString(); }
|
||||
if(dataGridView1.Rows[a].Cells["work_way"].Value.ToString() == null) { edit2 = ""; }
|
||||
else { edit2 = dataGridView1.Rows[a].Cells["work_way"].Value.ToString(); }
|
||||
|
||||
if(dataGridView1.Rows[a].Cells["Column7"].Value.ToString() == null) { edit3 = ""; }
|
||||
else { edit3 = dataGridView1.Rows[a].Cells["Column7"].Value.ToString(); }
|
||||
if(dataGridView1.Rows[a].Cells["send_way"].Value.ToString() == null) { edit3 = ""; }
|
||||
else { edit3 = dataGridView1.Rows[a].Cells["send_way"].Value.ToString(); }
|
||||
|
||||
string[] Edit_Data = { edit1, edit2, edit3 };
|
||||
string[] Search_Data = {dataGridView1.Rows[a].Cells["Column1"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["Column8"].Value.ToString()};
|
||||
string[] Search_Data = {dataGridView1.Rows[a].Cells["list_name"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["total"].Value.ToString()};
|
||||
db.More_Update(table, Edit_col, Edit_Data, Search_col, Search_Data);
|
||||
}
|
||||
}
|
||||
@@ -167,8 +207,8 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (isChecked)
|
||||
{
|
||||
if (cout == 0) { EditNumber = a; cout++; }
|
||||
string[] Search_Data = { dataGridView1.Rows[a].Cells["Column1"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["Column8"].Value.ToString()};
|
||||
string[] Search_Data = { dataGridView1.Rows[a].Cells["list_name"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["total"].Value.ToString()};
|
||||
db.More_Update(table, Edit_col, Edit_Data, Search_col, Search_Data);
|
||||
}
|
||||
}
|
||||
@@ -269,16 +309,16 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
private void btn_apply_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView1.Rows[row].Cells["Column1"].Value = tb_list_name.Text;
|
||||
dataGridView1.Rows[row].Cells["Column2"].Value = tb_date.Text;
|
||||
dataGridView1.Rows[row].Cells["Column5"].Value = tb_date_res.Text;
|
||||
dataGridView1.Rows[row].Cells["Column3"].Value = tb_charge.Text;
|
||||
dataGridView1.Rows[row].Cells["Column4"].Value = tb_work_name.Text;
|
||||
dataGridView1.Rows[row].Cells["Column6"].Value = tb_work_way.Text;
|
||||
dataGridView1.Rows[row].Cells["Column7"].Value = tb_send_way.Text;
|
||||
dataGridView1.Rows[row].Cells["Column8"].Value = tb_total.Text;
|
||||
dataGridView1.Rows[row].Cells["Column9"].Value = tb_stock.Text;
|
||||
dataGridView1.Rows[row].Cells["Column10"].Value = tb_count.Text;
|
||||
dataGridView1.Rows[row].Cells["list_name"].Value = tb_list_name.Text;
|
||||
dataGridView1.Rows[row].Cells["list_date"].Value = tb_date.Text;
|
||||
dataGridView1.Rows[row].Cells["date_res"].Value = tb_date_res.Text;
|
||||
dataGridView1.Rows[row].Cells["charge"].Value = tb_charge.Text;
|
||||
dataGridView1.Rows[row].Cells["work_name"].Value = tb_work_name.Text;
|
||||
dataGridView1.Rows[row].Cells["work_way"].Value = tb_work_way.Text;
|
||||
dataGridView1.Rows[row].Cells["send_way"].Value = tb_send_way.Text;
|
||||
dataGridView1.Rows[row].Cells["total"].Value = tb_total.Text;
|
||||
dataGridView1.Rows[row].Cells["stock_money"].Value = tb_stock.Text;
|
||||
dataGridView1.Rows[row].Cells["count"].Value = tb_count.Text;
|
||||
dataGridView1.Rows[row].Cells["Column13"].Value = tb_stock_per.Text;
|
||||
dataGridView1.Rows[row].Cells["Column11"].Value = lbl_stock_count.Text;
|
||||
dataGridView1.Rows[row].Cells["Column12"].Value = lbl_unstock_count.Text;
|
||||
@@ -301,11 +341,10 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
List_Chk_Work chk_work = new List_Chk_Work(this);
|
||||
chk_work.TopMost = true;
|
||||
chk_work.data[0] = dataGridView1.Rows[EditNumber].Cells["Column1"].Value.ToString();
|
||||
chk_work.data[0] = dataGridView1.Rows[EditNumber].Cells["list_name"].Value.ToString();
|
||||
chk_work.data[1] = compidx;
|
||||
chk_work.Show();
|
||||
}
|
||||
|
||||
}
|
||||
private void btn_ISBN_Click(object sender, EventArgs e) // ISBN조회
|
||||
{
|
||||
@@ -319,7 +358,16 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
private void tb_clt_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
Commodity_Search sea = new Commodity_Search(this);
|
||||
sea.Clinet_name = tb_clt.Text;
|
||||
sea.Show();
|
||||
}
|
||||
}
|
||||
private void combo_state_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if(combo_state.Text == "진행")
|
||||
@@ -395,35 +443,35 @@ namespace WindowsFormsApp1.Delivery
|
||||
row = rowidx;
|
||||
infor_reset();
|
||||
// 목록명
|
||||
tb_list_name.Text = dataGridView1.Rows[rowidx].Cells["Column1"].Value.ToString();
|
||||
tb_list_name.Text = dataGridView1.Rows[rowidx].Cells["list_name"].Value.ToString();
|
||||
// 목록일자
|
||||
tb_date.Text = dataGridView1.Rows[rowidx].Cells["Column2"].Value.ToString().Substring(0,10);
|
||||
tb_date.Text = dataGridView1.Rows[rowidx].Cells["list_date"].Value.ToString().Substring(0,10);
|
||||
// 완료일자
|
||||
if (dataGridView1.Rows[rowidx].Cells["Column5"].Value.ToString().Length < 3) {
|
||||
if (dataGridView1.Rows[rowidx].Cells["date_res"].Value.ToString().Length < 3) {
|
||||
tb_date_res.Text = "";
|
||||
}
|
||||
else {
|
||||
tb_date_res.Text = dataGridView1.Rows[rowidx].Cells["Column5"].Value.ToString().Substring(0, 10);
|
||||
tb_date_res.Text = dataGridView1.Rows[rowidx].Cells["date_res"].Value.ToString().Substring(0, 10);
|
||||
}
|
||||
// 담당자
|
||||
tb_charge.Text = dataGridView1.Rows[rowidx].Cells["Column3"].Value.ToString();
|
||||
tb_charge.Text = dataGridView1.Rows[rowidx].Cells["charge"].Value.ToString();
|
||||
// 작업명
|
||||
tb_work_name.Text = dataGridView1.Rows[rowidx].Cells["Column4"].Value.ToString();
|
||||
tb_work_name.Text = dataGridView1.Rows[rowidx].Cells["work_name"].Value.ToString();
|
||||
// 작업방법
|
||||
tb_work_way.Text = dataGridView1.Rows[rowidx].Cells["Column6"].Value.ToString();
|
||||
tb_work_way.Text = dataGridView1.Rows[rowidx].Cells["work_way"].Value.ToString();
|
||||
// 배송방법
|
||||
tb_send_way.Text = dataGridView1.Rows[rowidx].Cells["Column7"].Value.ToString();
|
||||
tb_send_way.Text = dataGridView1.Rows[rowidx].Cells["send_way"].Value.ToString();
|
||||
// 합계금액
|
||||
tb_total.Text = dataGridView1.Rows[rowidx].Cells["Column8"].Value.ToString();
|
||||
tb_total.Text = dataGridView1.Rows[rowidx].Cells["total"].Value.ToString();
|
||||
// 입고금액
|
||||
tb_stock.Text = dataGridView1.Rows[rowidx].Cells["Column9"].Value.ToString();
|
||||
tb_stock.Text = dataGridView1.Rows[rowidx].Cells["stock_money"].Value.ToString();
|
||||
// 수량
|
||||
tb_count.Text = dataGridView1.Rows[rowidx].Cells["Column10"].Value.ToString();
|
||||
// 입고율
|
||||
tb_stock_per.Text = dataGridView1.Rows[rowidx].Cells["Column13"].Value.ToString();
|
||||
tb_count.Text = dataGridView1.Rows[rowidx].Cells["count"].Value.ToString();
|
||||
// 입고 / 미입고
|
||||
lbl_stock_count.Text = dataGridView1.Rows[rowidx].Cells["Column11"].Value.ToString();
|
||||
lbl_unstock_count.Text = dataGridView1.Rows[rowidx].Cells["Column12"].Value.ToString();
|
||||
// 입고율
|
||||
tb_stock_per.Text = dataGridView1.Rows[rowidx].Cells["Column13"].Value.ToString();
|
||||
// 목록번호
|
||||
tb_list_num.Text = dataGridView1.Rows[rowidx].Cells["Column20"].Value.ToString();
|
||||
// 택배여부
|
||||
@@ -449,7 +497,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
e.ColumnIndex != 6 || e.ColumnIndex != 15)
|
||||
{
|
||||
List_Lookup list_l = new List_Lookup(this);
|
||||
list_l.call_base = dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value.ToString();
|
||||
list_l.call_base = dataGridView1.Rows[e.RowIndex].Cells["list_name"].Value.ToString();
|
||||
list_l.MdiParent = main;
|
||||
list_l.WindowState = FormWindowState.Maximized;
|
||||
list_l.Show();
|
||||
@@ -482,5 +530,6 @@ namespace WindowsFormsApp1.Delivery
|
||||
lbl_send_n.Font = new Font(this.Font, FontStyle.Bold);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user