* unimarc
a. 팩스전송 완료. b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업중 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료. 2-3. 저장기능 완료. (04.14 체크해볼것) * ISBN 체크 프로그램 - ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. -- 작업중 -- ISBN 체크 프로그램 => 본프로그램에 이식중. ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음. ㄴ> 버그 체크 계속 해볼것. 21-04-15 -- 완료 -- 1. 주문관리 팩스연동 완료 2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료. 3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
This commit is contained in:
@@ -151,10 +151,18 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if(dataGridView1.Rows[a].Cells[5].Value == null) { break; }
|
||||
Strvol = dataGridView1.Rows[a].Cells[5].Value.ToString();
|
||||
Strprice = dataGridView1.Rows[a].Cells[6].Value.ToString();
|
||||
Strtotal = dataGridView1.Rows[a].Cells[7].Value.ToString();
|
||||
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();
|
||||
if(dataGridView1.Rows[a].Cells["total"].Value == null) {
|
||||
int vol_tmp = Convert.ToInt32(Strvol);
|
||||
int price_tmp = Convert.ToInt32(Strprice);
|
||||
int total_tmp = vol_tmp + price_tmp;
|
||||
Strtotal = total_tmp.ToString();
|
||||
}
|
||||
else {
|
||||
Strtotal = dataGridView1.Rows[a].Cells["total"].Value.ToString();
|
||||
}
|
||||
|
||||
Strvol = Regex.Replace(Strvol, @"[^0-9]", "");
|
||||
Strprice = Regex.Replace(Strprice, @"[^0-9]", "");
|
||||
@@ -255,7 +263,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
for(int a = 0; a < dataGridView2.Rows.Count; a++)
|
||||
{
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells[11].Value);
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
if(cout == 0) { delcout = a; cout++; }
|
||||
@@ -278,7 +286,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
int cout = 0;
|
||||
for (int a = 0; a < dataGridView2.Rows.Count; a++)
|
||||
{
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells[11].Value);
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
if (cout == 0) { EditNumber = a; cout++; }
|
||||
@@ -301,9 +309,9 @@ namespace WindowsFormsApp1.Delivery
|
||||
dataGridView2.Rows.Clear();
|
||||
string getdata = "`date`, `clt`, `dly`, `charge`, `list_num`, " +
|
||||
"`vol`, `total`, `state`, `chk_marc`";
|
||||
string[] othertalbe = { "comp_num", "state" };
|
||||
string[] othertable = { "comp_num", "state" };
|
||||
string[] othercol = { main.com_idx, code };
|
||||
string dblist = db.More_DB_Search("Obj_List", othertalbe, othercol, getdata);
|
||||
string dblist = db.More_DB_Search("Obj_List", othertable, othercol, getdata);
|
||||
|
||||
string[] obj_list = dblist.Split('|');
|
||||
string[] add_data = { "", "", "", "", "",
|
||||
@@ -341,16 +349,14 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
}
|
||||
}
|
||||
//INSERT INTO Obj_List_Book (`compidx`, `list_name`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `total`, `etc`, `isbn`, `order`)
|
||||
//VALUES("1", "[재채기]수정서점", "머리", "1", "1인기업을 한다는 것", "이치엔 가쓰히코", "센시오", '1', '16000', '16000', '', '', '');
|
||||
private void Grid1_total()
|
||||
{
|
||||
string[] DB_col_name = { "compidx", "list_name", "header", "num", "book_name",
|
||||
"author", "book_comp", "count", "pay", "total",
|
||||
"etc", "isbn", "order" };
|
||||
"etc", "isbn", "order", "date" };
|
||||
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 ||
|
||||
@@ -364,43 +370,8 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
setData[ea + 2] = dataGridView1.Rows[a].Cells[ea].Value.ToString();
|
||||
}
|
||||
string mkcmd = "INSERT INTO `Obj_List_Book` (";
|
||||
for(int b = 0; b < DB_col_name.Length; b++)
|
||||
{
|
||||
if (b == DB_col_name.Length - 1)
|
||||
{
|
||||
mkcmd += "`" + DB_col_name[b] + "`) ";
|
||||
}
|
||||
else
|
||||
{
|
||||
mkcmd += "`" + DB_col_name[b] + "`, ";
|
||||
}
|
||||
}
|
||||
mkcmd += "VALUES (";
|
||||
for(int c = 0; c < setData.Length; c++)
|
||||
{
|
||||
if (c == setData.Length - 1)
|
||||
{
|
||||
mkcmd += "\"" + setData[c] + "\");";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (c == 7 || c == 8 || c == 9)
|
||||
{
|
||||
setData[c] = setData[c].Replace(",", "");
|
||||
setData[c] = setData[c].Replace("\r", String.Empty);
|
||||
}
|
||||
mkcmd += "\"" + setData[c] + "\", ";
|
||||
}
|
||||
}
|
||||
db.DB_INSERT("Obj_List_Book", DB_col_name, setData);
|
||||
//db.self_Made_Cmd(mkcmd);
|
||||
richTextBox1.Text = mkcmd;
|
||||
}
|
||||
}
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
@@ -414,7 +385,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
int cout = 0;
|
||||
for (int a = 0; a < dataGridView2.Rows.Count; a++)
|
||||
{
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells[11].Value);
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
if (cout == 0) { MorgeNum[0] = a; cout++; }
|
||||
@@ -442,7 +413,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
for(int a = 0; a < dataGridView2.Rows.Count; a++)
|
||||
{
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells[11].Value);
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
dataGridView2.Rows[a].Cells[7].Value = "진행";
|
||||
@@ -458,7 +429,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
for (int a = 0; a < dataGridView2.Rows.Count; a++)
|
||||
{
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells[11].Value);
|
||||
bool isChecked = Convert.ToBoolean(dataGridView2.Rows[a].Cells["Del_Check"].Value);
|
||||
if (isChecked)
|
||||
{
|
||||
dataGridView2.Rows[a].Cells[7].Value = "완료";
|
||||
@@ -500,5 +471,19 @@ namespace WindowsFormsApp1.Delivery
|
||||
}
|
||||
GridColorChange();
|
||||
}
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_ListNum.Text == "") { MessageBox.Show("목록번호가 비어있습니다!"); return; }
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
int num = a + 1;
|
||||
if (dataGridView1.Rows[a].Cells["book_name"].Value == null ||
|
||||
dataGridView1.Rows[a].Cells["book_name"].Value.ToString() == "") {
|
||||
return;
|
||||
}
|
||||
dataGridView1.Rows[a].Cells["header"].Value = tb_ListNum.Text;
|
||||
dataGridView1.Rows[a].Cells["num"].Value = num.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user