* unimarc
a. 팩스전송 완료. b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업중 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 진행해야함. 2-3. 현재 TODO : 저장기능 TODOLIST 1. 팩스로 전송될 엑셀파일 밑작업 (테두리 / 코드정리 필요)
This commit is contained in:
@@ -289,26 +289,29 @@ namespace WindowsFormsApp1.Delivery
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<int> chkIdx = new List<int>();
|
||||
int total = 0;
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["chk"].Value.ToString() == "V")
|
||||
if (dataGridView1.Rows[a].Cells["chk"].Value.ToString() == "O")
|
||||
{
|
||||
chkIdx.Add(a);
|
||||
total += Convert.ToInt32(dataGridView1.Rows[a].Cells["order_count"].Value.ToString());
|
||||
}
|
||||
}
|
||||
string[][] inputExcel = new string[chkIdx.Count][];
|
||||
string[,] inputExcel = new string[chkIdx.Count,7];
|
||||
for(int a = 0; a < chkIdx.Count; a++)
|
||||
{
|
||||
inputExcel[a][0] = dataGridView1.Rows[chkIdx[0]].Cells["book_comp"].Value.ToString(); // 출판사
|
||||
inputExcel[a][1] = dataGridView1.Rows[chkIdx[1]].Cells["book_name"].Value.ToString(); // 도서명
|
||||
inputExcel[a][2] = dataGridView1.Rows[chkIdx[2]].Cells["author"].Value.ToString(); // 저자
|
||||
inputExcel[a][3] = dataGridView1.Rows[chkIdx[3]].Cells["order_count"].Value.ToString(); // 주문수
|
||||
inputExcel[a][4] = dataGridView1.Rows[chkIdx[4]].Cells["pay"].Value.ToString(); // 정가
|
||||
inputExcel[a][5] = dataGridView1.Rows[chkIdx[5]].Cells["list_name"].Value.ToString(); // 납품목록명
|
||||
inputExcel[a][6] = dataGridView1.Rows[chkIdx[6]].Cells["isbn"].Value.ToString(); // ISBN
|
||||
}
|
||||
inputExcel[a, 0] = a.ToString();
|
||||
inputExcel[a, 1] = dataGridView1.Rows[chkIdx[a]].Cells["book_comp"].Value.ToString();
|
||||
inputExcel[a, 2] = dataGridView1.Rows[chkIdx[a]].Cells["book_name"].Value.ToString();
|
||||
inputExcel[a, 3] = dataGridView1.Rows[chkIdx[a]].Cells["author"].Value.ToString();
|
||||
inputExcel[a, 4] = dataGridView1.Rows[chkIdx[a]].Cells["order_count"].Value.ToString();
|
||||
inputExcel[a, 5] = dataGridView1.Rows[chkIdx[a]].Cells["pay"].Value.ToString();
|
||||
inputExcel[a, 6] = dataGridView1.Rows[chkIdx[a]].Cells["list_name"].Value.ToString() + "\n" +
|
||||
dataGridView1.Rows[chkIdx[a]].Cells["isbn"].Value.ToString();
|
||||
}
|
||||
Excel_text ex = new Excel_text();
|
||||
ex.mk_Excel_Order(inputExcel);
|
||||
ex.mk_Excel_Order(inputExcel, total);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user