=====* 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:
@@ -154,7 +154,8 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
if(dataGridView1.Rows[a].Cells["count"].Value == null) { break; }
|
||||
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) {
|
||||
int vol_tmp = Convert.ToInt32(Strvol);
|
||||
int price_tmp = Convert.ToInt32(Strprice);
|
||||
@@ -260,20 +261,20 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
int cout = 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);
|
||||
if (isChecked)
|
||||
{
|
||||
if(cout == 0) { delcout = a; cout++; }
|
||||
if (cout == 0) { delcout = a; cout++; }
|
||||
else { MessageBox.Show("체크가 2개이상 되어있습니다!"); cout++; break; }
|
||||
}
|
||||
}
|
||||
richTextBox1.Text = delcout.ToString();
|
||||
if(cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
|
||||
else if(cout == 1)
|
||||
if (cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
|
||||
else if (cout == 1)
|
||||
{
|
||||
string[] del_target = { dataGridView2.Rows[delcout].Cells["list_date"].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();
|
||||
int marc = Convert.ToInt32(marc_tmp);
|
||||
if (marc > 1) {
|
||||
if (marc >= 1) {
|
||||
dataGridView2.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
|
||||
}
|
||||
}
|
||||
@@ -377,7 +378,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
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(",", "");
|
||||
}
|
||||
else {
|
||||
@@ -432,8 +433,13 @@ namespace WindowsFormsApp1.Delivery
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
dataGridView2.Rows[a].Cells[7].Value = "진행";
|
||||
db.DB_Update("Obj_List", "state", "진행", "dly", dataGridView2.Rows[a].Cells[2].Value.ToString());
|
||||
string[] edit_col = { "state" };
|
||||
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("완료");
|
||||
@@ -448,8 +454,13 @@ namespace WindowsFormsApp1.Delivery
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Grid_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
dataGridView2.Rows[a].Cells[7].Value = "완료";
|
||||
db.DB_Update("Obj_List", "state", "완료", "dly", dataGridView2.Rows[a].Cells[2].Value.ToString());
|
||||
string[] edit_col = { "state" };
|
||||
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("진행");
|
||||
@@ -469,21 +480,20 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (tb_user2.Text != "") { cmd += " AND `charge` LIKE '%" + tb_user2.Text + "%'"; }
|
||||
cmd += ";";
|
||||
string res_temp = db.self_Made_Cmd(cmd);
|
||||
string[] result = { "", "", "", "", "", "", "", "", "", "ISBN 조회", "" }; // 0-10
|
||||
string[] result = { "", "", "", "", "", "", "", "", "ISBN 조회", "" }; // 0-9
|
||||
string[] tmp = res_temp.Split('|');
|
||||
dataGridView2.Rows.Clear();
|
||||
for (int a = 0; a < tmp.Length; a++)
|
||||
{
|
||||
if(a==0 || a % 10 == 0) { result[0] = tmp[a]; }
|
||||
if(a % 10 == 1) { result[1] = tmp[a]; }
|
||||
if(a % 10 == 2) { result[2] = tmp[a]; }
|
||||
if(a % 10 == 3) { result[3] = tmp[a]; }
|
||||
if(a % 10 == 4) { result[4] = tmp[a]; }
|
||||
if(a % 10 == 5) { result[5] = tmp[a]; }
|
||||
if(a % 10 == 6) { result[6] = tmp[a]; }
|
||||
if(a % 10 == 7) { result[7] = tmp[a]; }
|
||||
if(a % 10 == 8) { result[8] = tmp[a]; }
|
||||
if(a % 10 == 9) { result[10] = tmp[a]; dataGridView2.Rows.Add(result); }
|
||||
if (a % 9 == 0) { result[0] = tmp[a]; }
|
||||
if (a % 9 == 1) { result[1] = tmp[a]; }
|
||||
if (a % 9 == 2) { result[2] = tmp[a]; }
|
||||
if (a % 9 == 3) { result[3] = tmp[a]; }
|
||||
if (a % 9 == 4) { result[4] = tmp[a]; }
|
||||
if (a % 9 == 5) { result[5] = tmp[a]; }
|
||||
if (a % 9 == 6) { result[6] = tmp[a]; }
|
||||
if (a % 9 == 7) { result[7] = tmp[a]; }
|
||||
if (a % 9 == 8) { result[9] = tmp[a]; dataGridView2.Rows.Add(result); }
|
||||
}
|
||||
GridColorChange();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user