=====* 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

@@ -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 + "' ";