=====* unimarc *=====
===== 작업중 ===== 주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중) ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환 회계전환. 매출상세(Sales_Detail.cs) 폼 작업완료. (버튼 이벤트 작업진행중) ㄴ> 매출집계에서 상세까지 가는 도중 MDI 부모로 적용되지않는 버그 수정작업중. ===== 보류 ===== 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:
@@ -13,6 +13,7 @@ namespace WindowsFormsApp1.회계
|
||||
{
|
||||
public partial class Sales_Book : Form
|
||||
{
|
||||
Main main;
|
||||
Sales_Deposit sd;
|
||||
Helper_DB db = new Helper_DB();
|
||||
public string compidx;
|
||||
@@ -23,6 +24,12 @@ namespace WindowsFormsApp1.회계
|
||||
sd = _sd;
|
||||
compidx = sd.compidx;
|
||||
}
|
||||
public Sales_Book(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
compidx = main.com_idx;
|
||||
}
|
||||
private void Sales_Book_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
@@ -32,7 +39,7 @@ namespace WindowsFormsApp1.회계
|
||||
dataGridView1.Rows.Clear();
|
||||
// grid
|
||||
// [0]매출일자 / [1]내용 / [2]수량 / [3]출고율 / [4]매출금액 / [5]입금액 / [6]현잔액 / [7]비고
|
||||
string[] grid = { "", "", "", "", "", "", "", "" };
|
||||
string[] grid = { "", "", "", "", "", "", "0", "" };
|
||||
// db
|
||||
// [0]매출일자 / [1]책이름 / [2]수량 / [3]출고율 / [4]매출금액 / [5]입금액 / [6]비고 / [7]입금구분
|
||||
string Area = "`date`, `book_name`, `count`, `out_per`, `out_price`, `deposit`, `etc`, `gu`";
|
||||
@@ -96,10 +103,10 @@ namespace WindowsFormsApp1.회계
|
||||
}
|
||||
else if (!date_chk)
|
||||
{
|
||||
set_remain(grid);
|
||||
set_remain(grid, row);
|
||||
}
|
||||
}
|
||||
private void set_remain(string[] grid)
|
||||
private void set_remain(string[] grid, int row)
|
||||
{
|
||||
if (dataGridView1.Rows.Count <= 0) {
|
||||
string[] grid_base = { "이월미수금", "", "", "", "", "", "0", "" };
|
||||
@@ -115,11 +122,20 @@ namespace WindowsFormsApp1.회계
|
||||
{
|
||||
for(int a = 0; a < count; a++)
|
||||
{
|
||||
if(a <= 0) { continue; }
|
||||
if (dataGridView1.Rows[0].Cells["out_date"].Value.ToString() != "이월미수금") {
|
||||
string[] grid_base = { "이월미수금", "", "", "", "", "", "0", "" };
|
||||
dataGridView1.Rows.Insert(0, grid_base);
|
||||
count++;
|
||||
}
|
||||
|
||||
int money_idx = a - 1;
|
||||
if (a - 1 < 1) { money_idx = 0; }
|
||||
if (a < 1) { continue; }
|
||||
|
||||
int cout = Convert.ToInt32(dataGridView1.Rows[a].Cells["count"].Value.ToString());
|
||||
int out_price = Convert.ToInt32(dataGridView1.Rows[a].Cells["out_price"].Value.ToString());
|
||||
int in_price = Convert.ToInt32(dataGridView1.Rows[a].Cells["in_price"].Value.ToString());
|
||||
int money = Convert.ToInt32(dataGridView1.Rows[a - 1].Cells["now_money"].Value.ToString());
|
||||
int money = Convert.ToInt32(dataGridView1.Rows[money_idx].Cells["now_money"].Value.ToString());
|
||||
|
||||
set_total(cout, out_price, in_price);
|
||||
|
||||
@@ -183,14 +199,13 @@ namespace WindowsFormsApp1.회계
|
||||
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 카드" ||
|
||||
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 현금" ||
|
||||
dataGridView1.Rows[row].Cells["content"].Value.ToString() == "입금 어음") { return; }
|
||||
|
||||
Sales_Detail sde = new Sales_Detail(this);
|
||||
string out_date = dataGridView1.Rows[e.RowIndex].Cells["out_date"].Value.ToString().Substring(0, 10).Replace("-", "");
|
||||
int yesr = Convert.ToInt32(out_date.Substring(0, 4));
|
||||
int month = Convert.ToInt32(out_date.Substring(4, 2));
|
||||
int day = Convert.ToInt32(out_date.Substring(6, 2));
|
||||
// sde.MdiParent = main;
|
||||
sde.WindowState = FormWindowState.Maximized;
|
||||
sde.MdiParent = main;
|
||||
// sde.WindowState = FormWindowState.Maximized;
|
||||
sde.Out_Date.Value = new DateTime(yesr, month, day);
|
||||
sde.tb_clt.Text = tb_clt.Text;
|
||||
sde.Show();
|
||||
|
||||
Reference in New Issue
Block a user