=====* unimarc *=====

===== 작업중 =====
주문관리 폼 재 수정작업중 - 팩스 및 이메일 기록 폼 제작해야함. - 제작완료 (현재 목록등록 -> 수정버튼 작업중)
ㄴ> 작업 완료후 검토하고, 회계로 넘어갈 것. - 회계전환
ㄴ> 회계전환. 매출입력 폼 완료. 매출장부 수정해야함. 76번줄 참고

===== 보류 =====
 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:
SeungHo Yang
2021-05-11 18:37:18 +09:00
parent 1827aca297
commit 3b670bf26d
68 changed files with 1008 additions and 21340 deletions

View File

@@ -52,40 +52,36 @@ namespace WindowsFormsApp1.Delivery
* Obj_List_Marc = connect_data, 목록명, 담당자
*/
string date = New_Date.Value.ToString().Substring(0,10);
string[] book_search_col = { "compidx", "date", "list_name" };
string[] book_search_data = { compidx, Old_Date.Text, Old_Name.Text };
string[] book_col = { "date", "list_name" };
string[] book_data = { date, New_Name.Text };
DB.More_Update("Obj_List_Book", book_col, book_data, book_search_col, book_search_data);
////////////////////////////////////////
string[] marc_search_col = { "compidx", "date", "connect_data", "charge" };
string[] marc_search_data = { compidx, Old_Date.Text, Old_Name.Text, Old_User.Text };
string[] marc_col = { "date", "connect_data", "charge" };
string[] marc_data = { date, New_Name.Text, New_User.Text };
DB.More_Update("Obj_List_Marc", marc_col, marc_data, marc_search_col, marc_search_data);
/////////////////////////////////////////
string[] list_search_col = { "comp_num", "date", "list_name", "clt", "dly", "charge" };
string[] list_search_data = { compidx, Old_Date.Text, Old_Name.Text, Old_Clit.Text, Old_Dlv.Text, Old_User.Text };
string[] DB_Tabel = { "date", "clt", "dly", "charge", "list_num" };
string[] New_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Name.Text };
string[] list_col = { "date", "clt", "dly", "charge", "list_name" };
string[] list_data = { date, New_Clit.Text, New_Dlv.Text, New_User.Text, New_Name.Text };
DB.More_Update("Obj_List", DB_Tabel, New_data, list_search_col, list_search_data);
DB.More_Update("Obj_List", list_col, list_data, list_search_col, list_search_data);
/*
string list_chk = DB.self_Made_Cmd("SELECT idx FROM Obj_List WHERE " +
"`comp_num`= '" + compidx + "' AND " +
"`date`= '" + Old_data[0] + "' AND " +
"`clt` = '" + Old_data[1] + "' AND " +
"`dly`= '" + Old_data[2] + "'AND " +
"`charge`= '" + Old_data[3] + "';");
list_chk = list_chk.Replace("|", "");
string make_cmd = "UPDATE Obj_List SET " +
"`" + DB_Tabel[0] + "` = '" + New_data[0] + "'," +
"`" + DB_Tabel[1] + "` = '" + New_data[1] + "'," +
"`" + DB_Tabel[2] + "` = '" + New_data[2] + "'," +
"`" + DB_Tabel[3] + "` = '" + New_data[3] + "'," +
"`" + DB_Tabel[4] + "` = '" + New_data[4] + "'" +
" WHERE " +
"`comp_num` = '"+compidx+"'; ";
for(int a = 0; a < Old_data.Length; a++)
{
if (Old_data[a] != New_data[a]) {
DB.DB_Update("Obj_List", DB_Tabel[a], New_data[a], "idx", list_chk);
com.dataGridView2.Rows[com.EditNumber].Cells[a].Value = New_data[a];
Close();
}
}*/
Close();
}
private void Btn_Cancel_Click(object sender, EventArgs e)
{

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1.Account;
using WindowsFormsApp1.Home;
namespace WindowsFormsApp1.Delivery
@@ -18,6 +19,8 @@ namespace WindowsFormsApp1.Delivery
Commodity_Edit edit;
Purchase pur;
List_aggregation la;
Sales_Input si;
Sales_Book sb;
public Commodity_Search(Purchase _pur)
{
InitializeComponent();
@@ -38,13 +41,22 @@ namespace WindowsFormsApp1.Delivery
InitializeComponent();
la = _la;
}
public Commodity_Search(Sales_Input _si)
{
InitializeComponent();
si = _si;
}
public Commodity_Search(Sales_Book _sb)
{
InitializeComponent();
sb = _sb;
}
#region
private void Commodity_Sub_Load(object sender, EventArgs e)
{
string compidx = "";
if (edit != null) { edit.New_Clit.Text = ""; compidx = edit.compidx; }
if (com != null) { com.tb_clt1.Text = ""; compidx = com.comp_idx; }
if (pur != null) { pur.tb_clt.Text = ""; compidx = pur.compidx; }
if (la != null) { la.tb_clt.Text = ""; compidx = la.compidx; }
string compidx = Set_compidx();
Helper_DB db = new Helper_DB();
string Area = "`c_sangho`, `c_boss`, `c_tel`, `c_man`, `c_mantel`";
db.DBcon();
@@ -65,10 +77,9 @@ namespace WindowsFormsApp1.Delivery
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
string value = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
if (edit != null) { edit.New_Clit.Text = value; }
if (com != null) { com.tb_clt1.Text = value; }
if (pur != null) { pur.tb_clt.Text = value; }
if (la != null) { la.tb_clt.Text = value; }
Set_data(value, e.RowIndex);
Close();
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
@@ -82,10 +93,9 @@ namespace WindowsFormsApp1.Delivery
value = dataGridView1.Rows[gridIdx].Cells[0].Value.ToString();
}
else { value = ""; }
if (edit != null) { edit.New_Clit.Text = value; }
if (com != null) { com.tb_clt1.Text = value; }
if (pur != null) { pur.tb_clt.Text = value; }
if (la != null) { la.tb_clt.Text = value; }
Set_data(value, gridIdx);
Close();
}
if (e.KeyCode == Keys.Escape) {
@@ -98,5 +108,35 @@ namespace WindowsFormsApp1.Delivery
pur.Made_Grid(pur.tb_clt.Text, pur.tb_clt.Name);
}
}
#endregion
/// 여기 밑으로만 건들 것.
/// <summary>
/// 회사 인덱스 설정
/// </summary>
/// <returns></returns>
private string Set_compidx()
{
string compidx = "";
if (edit != null) { edit.New_Clit.Text = ""; compidx = edit.compidx; }
if (com != null) { com.tb_clt1.Text = ""; compidx = com.comp_idx; }
if (pur != null) { pur.tb_clt.Text = ""; compidx = pur.compidx; }
if (la != null) { la.tb_clt.Text = ""; compidx = la.compidx; }
if (si != null) { si.tb_clt.Text = ""; compidx = si.compidx; }
if (sb != null) { sb.tb_clt.Text = ""; compidx = sb.compidx; }
return compidx;
}
private void Set_data(string value, int idx)
{
if (edit != null) { edit.New_Clit.Text = value; }
if (com != null) { com.tb_clt1.Text = value; }
if (pur != null) { pur.tb_clt.Text = value; }
if (la != null) { la.tb_clt.Text = value; }
if (si != null) { si.tb_clt.Text = value; si.lbl_tel.Text = dataGridView1.Rows[idx].Cells[2].Value.ToString(); }
if (sb != null) { sb.tb_clt.Text = value; }
}
}
}