=====* UniMarc [0.0171] 버전 업데이트 내용 *=====

** ERP 작업 전면 중단 (마크우선) **

1. 필요없는 코드 재 정비
This commit is contained in:
SeungHo Yang
2022-10-20 17:52:45 +09:00
parent e2eb6194f7
commit c091cef3d6
25 changed files with 333 additions and 324 deletions

Binary file not shown.

View File

@@ -157,11 +157,11 @@ namespace WindowsFormsApp1
if(DB_Search_Data != "")
{
cmd += " AND "+ DB_Where_Table + " LIKE\"%" + DB_Search_Data + "%\"";
cmd += " AND `"+ DB_Where_Table + "` LIKE \"%" + DB_Search_Data + "%\"";
}
if(DB_Search_Data1 != "")
{
cmd += " AND "+ DB_Where_Table1 + " LIKE\"%" + DB_Search_Data1 + "%\"";
cmd += " AND `"+ DB_Where_Table1 + "` LIKE \"%" + DB_Search_Data1 + "%\"";
}
cmd += ";";
return cmd;

View File

@@ -772,6 +772,7 @@ namespace WindowsFormsApp1
private string CERTKEY = "BC5F164E-6410-44FF-BADF-25732E850D36"; //인증키
private string CorpNum = "4088188534"; //바로빌 회원 사업자번호 ('-' 제외, 10자리)
private string SenderID = "gloriabook"; //연계사업자 담당자 아이디
/// <summary>
/// 팩스 전송 모듈 (21.04.08 주문관리 전용)
/// </summary>
@@ -803,6 +804,12 @@ namespace WindowsFormsApp1
return result;
}
/// <summary>
/// 전송 성공여부 확인
/// </summary>
/// <param name="sendkey">전송된 결과값</param>
/// <returns></returns>
public string[] Send_chk_BaroFax(string sendkey)
{
BaroService_FAXSoapClient fAXSoapClient = new BaroService_FAXSoapClient();
@@ -822,6 +829,12 @@ namespace WindowsFormsApp1
return MsgBox_Array;
}
/// <summary>
/// 코드에 따른 오류 메시지 반환
/// </summary>
/// <param name="msg"></param>
/// <returns></returns>
private string FAX_GetErrString(string msg)
{
switch (msg)
@@ -1087,67 +1100,52 @@ namespace WindowsFormsApp1
}
}
/// <summary>
/// 코드에 따른 오류 메시지 반환
/// </summary>
/// <param name="msg"></param>
/// <returns></returns>
private string Msg_result(string msg)
{
string result = "";
switch (msg)
{
case "100":
result = "과금실패";
break;
return "과금실패";
case "101":
result = "변환실패";
break;
return "변환실패";
case "102":
result = "변환실패 (30분 타임아웃)";
break;
return "변환실패 (30분 타임아웃)";
case "801":
result = "부분완료";
break;
return "부분완료";
case "802":
result = "완료";
break;
return "완료";
case "803":
result = "통화중 (재전송시도)";
break;
return "통화중 (재전송시도)";
case "804":
result = "잘못된 수신번호";
break;
return "잘못된 수신번호";
case "805":
result = "응답없음";
break;
return "응답없음";
case "806":
result = "수화기들음";
break;
return "수화기들음";
case "807":
result = "수신거부";
break;
return "수신거부";
case "808":
result = "알수없는 오류";
break;
return "알수없는 오류";
case "809":
result = "콜 혼잡";
break;
return "콜 혼잡";
case "810":
result = "파일변환 오류";
break;
return "파일변환 오류";
case "811":
result = "전송데이터 없음";
break;
return "전송데이터 없음";
case "812":
result = "파일저장 오류";
break;
return "파일저장 오류";
case "813":
result = "입력항목 오류";
break;
return "입력항목 오류";
case "814":
result = "소켓통신 오류";
break;
return "소켓통신 오류";
default:
result = "알수없는 오류";
break;
return "알수없는 오류";
}
return result;
}
}
@@ -1188,7 +1186,8 @@ namespace WindowsFormsApp1
ftpRequest.Credentials = new NetworkCredential(userId, Pwd);
ftpRequest.KeepAlive = false;
ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;
ftpRequest.UsePassive = true;
ftpRequest.UseBinary = true; // 파일 깨짐 방지
ftpRequest.UsePassive = true; // Passive 모드 설정
using (ftpRequest.GetResponse()) { }
this.IsConnected = true;

View File

@@ -29,8 +29,8 @@
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(List_aggregation));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(List_aggregation));
this.btn_lookup = new System.Windows.Forms.Button();
this.btn_save = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
@@ -40,6 +40,25 @@
this.tb_dlv = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_way = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.send_way = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stock_money = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.chk_label = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.clt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Chk_Column = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.label5 = new System.Windows.Forms.Label();
this.combo_user = new System.Windows.Forms.ComboBox();
this.btn_process = new System.Windows.Forms.Button();
@@ -91,25 +110,6 @@
this.lbl_total = new System.Windows.Forms.Label();
this.lbl_count = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.work_way = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.send_way = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.stock_money = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.chk_label = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.clt = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Chk_Column = new System.Windows.Forms.DataGridViewCheckBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
@@ -234,6 +234,125 @@
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
//
// list_name
//
this.list_name.HeaderText = "목록명";
this.list_name.Name = "list_name";
this.list_name.Width = 230;
//
// list_date
//
this.list_date.HeaderText = "목록일자";
this.list_date.Name = "list_date";
this.list_date.Width = 80;
//
// date_res
//
dataGridViewCellStyle2.Format = "d";
dataGridViewCellStyle2.NullValue = null;
this.date_res.DefaultCellStyle = dataGridViewCellStyle2;
this.date_res.HeaderText = "완료일자";
this.date_res.Name = "date_res";
this.date_res.Width = 80;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
this.charge.Width = 50;
//
// work_name
//
this.work_name.HeaderText = "작업명";
this.work_name.Name = "work_name";
this.work_name.Visible = false;
this.work_name.Width = 150;
//
// work_way
//
this.work_way.HeaderText = "작업방법";
this.work_way.Name = "work_way";
this.work_way.Visible = false;
//
// send_way
//
this.send_way.HeaderText = "배송방법";
this.send_way.Name = "send_way";
this.send_way.Visible = false;
//
// total
//
this.total.HeaderText = "합계금액";
this.total.Name = "total";
this.total.Width = 90;
//
// stock_money
//
this.stock_money.HeaderText = "입고금액";
this.stock_money.Name = "stock_money";
this.stock_money.Width = 90;
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Width = 50;
//
// Column11
//
this.Column11.HeaderText = "입고";
this.Column11.Name = "Column11";
this.Column11.Width = 50;
//
// Column12
//
this.Column12.HeaderText = "미입고";
this.Column12.Name = "Column12";
this.Column12.Width = 50;
//
// Column13
//
this.Column13.HeaderText = "입고율";
this.Column13.Name = "Column13";
this.Column13.Width = 50;
//
// Column18
//
this.Column18.HeaderText = "택배";
this.Column18.Name = "Column18";
this.Column18.Width = 50;
//
// Column20
//
this.Column20.HeaderText = "목록번호";
this.Column20.Name = "Column20";
this.Column20.Width = 70;
//
// chk_label
//
this.chk_label.HeaderText = "라벨";
this.chk_label.Name = "chk_label";
this.chk_label.Visible = false;
//
// clt
//
this.clt.HeaderText = "거래처명";
this.clt.Name = "clt";
this.clt.Visible = false;
//
// Chk_Column
//
this.Chk_Column.HeaderText = "체크";
this.Chk_Column.Name = "Chk_Column";
this.Chk_Column.Visible = false;
this.Chk_Column.Width = 40;
//
// label5
//
this.label5.AutoSize = true;
@@ -686,7 +805,7 @@
this.btn_apply.Name = "btn_apply";
this.btn_apply.Size = new System.Drawing.Size(65, 23);
this.btn_apply.TabIndex = 0;
this.btn_apply.Text = "적 용";
this.btn_apply.Text = "적 용";
this.btn_apply.UseVisualStyleBackColor = true;
this.btn_apply.Click += new System.EventHandler(this.btn_apply_Click);
//
@@ -745,125 +864,6 @@
this.label16.TabIndex = 0;
this.label16.Text = "목록 총 합계";
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
//
// list_name
//
this.list_name.HeaderText = "목록명";
this.list_name.Name = "list_name";
this.list_name.Width = 230;
//
// list_date
//
this.list_date.HeaderText = "목록일자";
this.list_date.Name = "list_date";
this.list_date.Width = 80;
//
// date_res
//
dataGridViewCellStyle2.Format = "d";
dataGridViewCellStyle2.NullValue = null;
this.date_res.DefaultCellStyle = dataGridViewCellStyle2;
this.date_res.HeaderText = "완료일자";
this.date_res.Name = "date_res";
this.date_res.Width = 80;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
this.charge.Width = 50;
//
// work_name
//
this.work_name.HeaderText = "작업명";
this.work_name.Name = "work_name";
this.work_name.Visible = false;
this.work_name.Width = 150;
//
// work_way
//
this.work_way.HeaderText = "작업방법";
this.work_way.Name = "work_way";
this.work_way.Visible = false;
//
// send_way
//
this.send_way.HeaderText = "배송방법";
this.send_way.Name = "send_way";
this.send_way.Visible = false;
//
// total
//
this.total.HeaderText = "합계금액";
this.total.Name = "total";
this.total.Width = 90;
//
// stock_money
//
this.stock_money.HeaderText = "입고금액";
this.stock_money.Name = "stock_money";
this.stock_money.Width = 90;
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Width = 50;
//
// Column11
//
this.Column11.HeaderText = "입고";
this.Column11.Name = "Column11";
this.Column11.Width = 50;
//
// Column12
//
this.Column12.HeaderText = "미입고";
this.Column12.Name = "Column12";
this.Column12.Width = 50;
//
// Column13
//
this.Column13.HeaderText = "입고율";
this.Column13.Name = "Column13";
this.Column13.Width = 50;
//
// Column18
//
this.Column18.HeaderText = "택배";
this.Column18.Name = "Column18";
this.Column18.Width = 50;
//
// Column20
//
this.Column20.HeaderText = "목록번호";
this.Column20.Name = "Column20";
this.Column20.Width = 70;
//
// chk_label
//
this.chk_label.HeaderText = "라벨";
this.chk_label.Name = "chk_label";
this.chk_label.Visible = false;
//
// clt
//
this.clt.HeaderText = "거래처명";
this.clt.Name = "clt";
this.clt.Visible = false;
//
// Chk_Column
//
this.Chk_Column.HeaderText = "체크";
this.Chk_Column.Name = "Chk_Column";
this.Chk_Column.Visible = false;
this.Chk_Column.Width = 40;
//
// List_aggregation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -344,12 +344,10 @@ namespace WindowsFormsApp1.Delivery
}
private string[] db_data_filter(List<string> l_book)
{
if (l_book[0] == "") {
if (l_book[0] == "")
l_book.RemoveAt(0);
}
else if(l_book[0] != l_book[1]){
else if (l_book[0] != l_book[1])
l_book.RemoveAt(1);
}
string[] book = l_book.ToArray();
return book;
}
@@ -466,8 +464,9 @@ namespace WindowsFormsApp1.Delivery
private void btn_ISBN_Click(object sender, EventArgs e) // ISBN조회
{
Check_ISBN isbn = new Check_ISBN(this);
isbn.list_name = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
isbn.DataLoad();
string listname = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
string l_idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
isbn.DataLoad(listname, l_idx);
isbn.Show();
}

View File

@@ -28,9 +28,9 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.tb_search_order = new System.Windows.Forms.TextBox();
this.cb_user = new System.Windows.Forms.ComboBox();
@@ -95,9 +95,13 @@
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.lbl_OrderStat = new System.Windows.Forms.Label();
this.cb_OrderStat = new System.Windows.Forms.ComboBox();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// label1
@@ -121,7 +125,7 @@
//
this.cb_user.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_user.FormattingEnabled = true;
this.cb_user.Location = new System.Drawing.Point(567, 5);
this.cb_user.Location = new System.Drawing.Point(577, 5);
this.cb_user.Name = "cb_user";
this.cb_user.Size = new System.Drawing.Size(73, 20);
this.cb_user.TabIndex = 4;
@@ -129,7 +133,7 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(526, 9);
this.label2.Location = new System.Drawing.Point(536, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 3;
@@ -139,7 +143,7 @@
//
this.cb_state.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_state.FormattingEnabled = true;
this.cb_state.Location = new System.Drawing.Point(679, 5);
this.cb_state.Location = new System.Drawing.Point(689, 5);
this.cb_state.Name = "cb_state";
this.cb_state.Size = new System.Drawing.Size(73, 20);
this.cb_state.TabIndex = 6;
@@ -147,7 +151,7 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(649, 9);
this.label3.Location = new System.Drawing.Point(659, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 12);
this.label3.TabIndex = 5;
@@ -157,7 +161,7 @@
//
this.cb_order.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_order.FormattingEnabled = true;
this.cb_order.Location = new System.Drawing.Point(796, 5);
this.cb_order.Location = new System.Drawing.Point(806, 5);
this.cb_order.Name = "cb_order";
this.cb_order.Size = new System.Drawing.Size(73, 20);
this.cb_order.TabIndex = 8;
@@ -165,7 +169,7 @@
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(766, 9);
this.label4.Location = new System.Drawing.Point(776, 9);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 7;
@@ -274,7 +278,7 @@
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(912, 13);
this.btn_lookup.Location = new System.Drawing.Point(902, 12);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(85, 25);
this.btn_lookup.TabIndex = 25;
@@ -284,7 +288,7 @@
//
// btn_Reset_Order
//
this.btn_Reset_Order.Location = new System.Drawing.Point(19, 111);
this.btn_Reset_Order.Location = new System.Drawing.Point(18, 110);
this.btn_Reset_Order.Name = "btn_Reset_Order";
this.btn_Reset_Order.Size = new System.Drawing.Size(77, 23);
this.btn_Reset_Order.TabIndex = 33;
@@ -294,7 +298,7 @@
//
// btn_AutoOrder
//
this.btn_AutoOrder.Location = new System.Drawing.Point(173, 111);
this.btn_AutoOrder.Location = new System.Drawing.Point(172, 110);
this.btn_AutoOrder.Name = "btn_AutoOrder";
this.btn_AutoOrder.Size = new System.Drawing.Size(75, 23);
this.btn_AutoOrder.TabIndex = 34;
@@ -305,7 +309,7 @@
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(102, 110);
this.checkBox3.Location = new System.Drawing.Point(101, 109);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(72, 28);
this.checkBox3.TabIndex = 35;
@@ -315,7 +319,7 @@
//
// btn_All_chk
//
this.btn_All_chk.Location = new System.Drawing.Point(252, 111);
this.btn_All_chk.Location = new System.Drawing.Point(251, 110);
this.btn_All_chk.Name = "btn_All_chk";
this.btn_All_chk.Size = new System.Drawing.Size(85, 23);
this.btn_All_chk.TabIndex = 36;
@@ -325,7 +329,7 @@
//
// btn_All_unchk
//
this.btn_All_unchk.Location = new System.Drawing.Point(341, 111);
this.btn_All_unchk.Location = new System.Drawing.Point(340, 110);
this.btn_All_unchk.Name = "btn_All_unchk";
this.btn_All_unchk.Size = new System.Drawing.Size(85, 23);
this.btn_All_unchk.TabIndex = 37;
@@ -335,7 +339,7 @@
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(1019, 13);
this.btn_Save.Location = new System.Drawing.Point(989, 12);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(85, 25);
this.btn_Save.TabIndex = 38;
@@ -347,14 +351,14 @@
//
this.cb_ordersend.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_ordersend.FormattingEnabled = true;
this.cb_ordersend.Location = new System.Drawing.Point(570, 112);
this.cb_ordersend.Location = new System.Drawing.Point(569, 111);
this.cb_ordersend.Name = "cb_ordersend";
this.cb_ordersend.Size = new System.Drawing.Size(77, 20);
this.cb_ordersend.TabIndex = 40;
//
// btn_order_send
//
this.btn_order_send.Location = new System.Drawing.Point(720, 111);
this.btn_order_send.Location = new System.Drawing.Point(719, 110);
this.btn_order_send.Name = "btn_order_send";
this.btn_order_send.Size = new System.Drawing.Size(75, 23);
this.btn_order_send.TabIndex = 42;
@@ -364,7 +368,7 @@
//
// btn_send_chk
//
this.btn_send_chk.Location = new System.Drawing.Point(653, 111);
this.btn_send_chk.Location = new System.Drawing.Point(652, 110);
this.btn_send_chk.Name = "btn_send_chk";
this.btn_send_chk.Size = new System.Drawing.Size(63, 23);
this.btn_send_chk.TabIndex = 41;
@@ -374,7 +378,7 @@
//
// tb_orderText
//
this.tb_orderText.Location = new System.Drawing.Point(987, 85);
this.tb_orderText.Location = new System.Drawing.Point(970, 61);
this.tb_orderText.Name = "tb_orderText";
this.tb_orderText.Size = new System.Drawing.Size(129, 21);
this.tb_orderText.TabIndex = 44;
@@ -383,7 +387,7 @@
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(934, 89);
this.label12.Location = new System.Drawing.Point(917, 65);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(53, 12);
this.label12.TabIndex = 43;
@@ -391,7 +395,7 @@
//
// btn_order_list_change
//
this.btn_order_list_change.Location = new System.Drawing.Point(1120, 84);
this.btn_order_list_change.Location = new System.Drawing.Point(1103, 60);
this.btn_order_list_change.Name = "btn_order_list_change";
this.btn_order_list_change.Size = new System.Drawing.Size(129, 23);
this.btn_order_list_change.TabIndex = 45;
@@ -401,7 +405,7 @@
//
// btn_order_chk
//
this.btn_order_chk.Location = new System.Drawing.Point(1120, 111);
this.btn_order_chk.Location = new System.Drawing.Point(1103, 87);
this.btn_order_chk.Name = "btn_order_chk";
this.btn_order_chk.Size = new System.Drawing.Size(129, 23);
this.btn_order_chk.TabIndex = 46;
@@ -414,14 +418,14 @@
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.chk,
this.order,
@@ -440,28 +444,29 @@
this.send_date,
this.num,
this.idx});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.Location = new System.Drawing.Point(9, 142);
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle11;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle12;
this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(1240, 566);
this.dataGridView1.Size = new System.Drawing.Size(1261, 585);
this.dataGridView1.TabIndex = 47;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
@@ -584,7 +589,7 @@
this.panel1.Controls.Add(this.tb_search_book_name);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.cb_order);
this.panel1.Location = new System.Drawing.Point(9, 9);
this.panel1.Location = new System.Drawing.Point(8, 8);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(887, 32);
this.panel1.TabIndex = 48;
@@ -638,7 +643,7 @@
this.panel2.Controls.Add(this.dtp_listEnd);
this.panel2.Controls.Add(this.label10);
this.panel2.Controls.Add(this.tb_PS);
this.panel2.Location = new System.Drawing.Point(9, 47);
this.panel2.Location = new System.Drawing.Point(8, 46);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(887, 58);
this.panel2.TabIndex = 48;
@@ -653,7 +658,7 @@
//
// btn_order_empty
//
this.btn_order_empty.Location = new System.Drawing.Point(987, 111);
this.btn_order_empty.Location = new System.Drawing.Point(970, 87);
this.btn_order_empty.Name = "btn_order_empty";
this.btn_order_empty.Size = new System.Drawing.Size(129, 23);
this.btn_order_empty.TabIndex = 46;
@@ -663,7 +668,7 @@
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(1019, 49);
this.btn_close.Location = new System.Drawing.Point(1163, 12);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(85, 25);
this.btn_close.TabIndex = 49;
@@ -673,7 +678,7 @@
//
// btn_Excel
//
this.btn_Excel.Location = new System.Drawing.Point(912, 49);
this.btn_Excel.Location = new System.Drawing.Point(1076, 12);
this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(85, 25);
this.btn_Excel.TabIndex = 50;
@@ -684,7 +689,7 @@
// lbl_OrderStat
//
this.lbl_OrderStat.AutoSize = true;
this.lbl_OrderStat.Location = new System.Drawing.Point(796, 116);
this.lbl_OrderStat.Location = new System.Drawing.Point(795, 115);
this.lbl_OrderStat.Name = "lbl_OrderStat";
this.lbl_OrderStat.Size = new System.Drawing.Size(53, 12);
this.lbl_OrderStat.TabIndex = 51;
@@ -694,38 +699,56 @@
//
this.cb_OrderStat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_OrderStat.FormattingEnabled = true;
this.cb_OrderStat.Location = new System.Drawing.Point(453, 112);
this.cb_OrderStat.Location = new System.Drawing.Point(452, 111);
this.cb_OrderStat.Name = "cb_OrderStat";
this.cb_OrderStat.Size = new System.Drawing.Size(111, 20);
this.cb_OrderStat.TabIndex = 40;
//
// panel3
//
this.panel3.Controls.Add(this.panel1);
this.panel3.Controls.Add(this.lbl_OrderStat);
this.panel3.Controls.Add(this.btn_Reset_Order);
this.panel3.Controls.Add(this.btn_Excel);
this.panel3.Controls.Add(this.btn_AutoOrder);
this.panel3.Controls.Add(this.btn_close);
this.panel3.Controls.Add(this.checkBox3);
this.panel3.Controls.Add(this.panel2);
this.panel3.Controls.Add(this.btn_All_chk);
this.panel3.Controls.Add(this.btn_All_unchk);
this.panel3.Controls.Add(this.btn_Save);
this.panel3.Controls.Add(this.btn_order_empty);
this.panel3.Controls.Add(this.cb_ordersend);
this.panel3.Controls.Add(this.btn_order_chk);
this.panel3.Controls.Add(this.cb_OrderStat);
this.panel3.Controls.Add(this.btn_order_list_change);
this.panel3.Controls.Add(this.btn_lookup);
this.panel3.Controls.Add(this.tb_orderText);
this.panel3.Controls.Add(this.btn_send_chk);
this.panel3.Controls.Add(this.label12);
this.panel3.Controls.Add(this.btn_order_send);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1261, 137);
this.panel3.TabIndex = 52;
//
// panel4
//
this.panel4.Controls.Add(this.dataGridView1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 137);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1261, 585);
this.panel4.TabIndex = 53;
//
// Order_input
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1261, 722);
this.Controls.Add(this.lbl_OrderStat);
this.Controls.Add(this.btn_Excel);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.btn_order_empty);
this.Controls.Add(this.btn_order_chk);
this.Controls.Add(this.btn_order_list_change);
this.Controls.Add(this.tb_orderText);
this.Controls.Add(this.label12);
this.Controls.Add(this.btn_order_send);
this.Controls.Add(this.btn_send_chk);
this.Controls.Add(this.btn_lookup);
this.Controls.Add(this.cb_OrderStat);
this.Controls.Add(this.cb_ordersend);
this.Controls.Add(this.btn_Save);
this.Controls.Add(this.btn_All_unchk);
this.Controls.Add(this.btn_All_chk);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.btn_AutoOrder);
this.Controls.Add(this.btn_Reset_Order);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel3);
this.Name = "Order_input";
this.Text = "주문입력";
this.Load += new System.EventHandler(this.Order_input_Load);
@@ -734,8 +757,10 @@
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel4.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
@@ -805,5 +830,7 @@
public System.Windows.Forms.DateTimePicker dtp_listBegin;
private System.Windows.Forms.Label lbl_OrderStat;
private System.Windows.Forms.ComboBox cb_OrderStat;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
}
}

View File

@@ -100,9 +100,7 @@ namespace WindowsFormsApp1.Delivery
tmpData += string.Format(" AND `import` = \"{0}\"", cb_state.Text);
if (cb_order.Text == "주문중") {
string DateBegin = dtp_orderBegin.Text;
string DateEnd = dtp_orderEnd.Text;
tmpData += string.Format(" AND `order_date` >= \"{0}\" AND `order_date` <= \"{1}\"", DateBegin, DateEnd);
tmpData += string.Format(" AND `order_date` >= \"{0}\" AND `order_date` <= \"{1}\"", dtp_orderBegin.Text, dtp_orderEnd.Text);
}
else if (cb_order.Text == "미주문")
tmpData += string.Format(" AND `order_date` =\"\"");
@@ -114,11 +112,14 @@ namespace WindowsFormsApp1.Delivery
// SELECT {0}
// FROM `Obj_List_Book`
// WHERE `compidx` = \"{1}\"
// AND `list_name` = \"{2}\" AND `date` >= \"{3}\" AND `date` <= \"{4}\"
// AND `list_name` = \"{2}\"
// AND `date` >= \"{3}\" AND `date` <= \"{4}\"
// AND `book_name` LIKE \"%{3}%\"
// AND `book_comp` LIKE \"%{4}%\"
// AND `import` = \"{5}\"
// AND `order_date` >= \"{6}\" AND `order_date` <= \"{7}\"
// AND `order_date` >= \"{6}\"
// AND `order_date` <= \"{7}\"
//
// ;
string db_res = db.DB_Send_CMD_Search(cmd);
@@ -142,8 +143,7 @@ namespace WindowsFormsApp1.Delivery
for (int a = 0; a < data.Length; a++)
{
if (a % 17 == 0) { mkgrid[1] = data[a]; } // 주문처
if (a % 17 == 1)
{ // M
if (a % 17 == 1) { // M
if (data[a] == "0") { data[a] = data[a].Replace("0", ""); }
if (data[a] == "1") { data[a] = data[a].Replace("1", "V"); }
mkgrid[2] = data[a];
@@ -553,6 +553,7 @@ namespace WindowsFormsApp1.Delivery
/// <param name="pur">거래처명</param>
/// <param name="filename">파일명</param>
/// <param name="FilePath">파일경로 (파일명 포함)</param>
/// <returns>True / False 결과</returns>
private bool Send_FAX(string pur, string filename, string FilePath)
{
List<string> data_list = new List<string>();

View File

@@ -67,7 +67,6 @@
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(641, 215);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//

View File

@@ -92,7 +92,7 @@ namespace WindowsFormsApp1.Delivery
date_res.HeaderText = "업태";
cmd = db.DB_Contains("Purchase", compidx,
"sangho", searchText, "`sangho`, `boss`, `jongmok`, `uptae`");
"sangho", searchText, "`idx`, `sangho`, `boss`, `jongmok`, `uptae`");
db_res = db.DB_Send_CMD_Search(cmd);
made_grid(db_res);
this.Text = "주문처 검색";
@@ -109,15 +109,12 @@ namespace WindowsFormsApp1.Delivery
if (a % 5 == 1) { res[1] = data[a]; }
if (a % 5 == 2) { res[2] = data[a]; }
if (a % 5 == 3) { res[3] = data[a]; }
if (a % 5 == 4) { res[3] = data[a];
if (res[0].Contains(searchText))
if (a % 5 == 4) { res[4] = data[a];
if (res[1].Contains(searchText))
dataGridView1.Rows.Add(res);
}
}
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {

View File

@@ -57,7 +57,7 @@ namespace UniMarc.마크
{
if (e.KeyCode == Keys.Enter)
{
if (dataGridView1.Rows.Count < 0) return;
if (dataGridView1.Rows.Count <= 0) return;
int row = dataGridView1.CurrentRow.Index;
SetCode(row);
this.Close();

View File

@@ -74,25 +74,13 @@ namespace WindowsFormsApp1.Mac
}
}
//UPDATE: [22.09.21] 굳이 있을 필요가 없어서 일단 주석처리
/*
DialogResult MsgResult = MessageBox.Show("선택된 필터를 적용하시겠습니까?", "필터 적용", MessageBoxButtons.YesNoCancel);
if (MsgResult == DialogResult.Yes)
{
int count = dataGridView1.Rows.Count;
if (count <= 1)
return;
if (chk_spChar.Checked)
RemoveSpecialChar(count);
if (chk_RemoveBrit.Checked)
RemoveInBrit(count);
}
else if (MsgResult == DialogResult.Cancel)
return;
*/
isIksanClick = false;
isJBEClick = false;
isJNLClick = false;
isGwangJuNamGuClick = false;
isKJKClick = false;
isMokClick = false;
isWandoClick = false;
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
@@ -168,9 +156,6 @@ namespace WindowsFormsApp1.Mac
webBrowser1.DocumentCompleted -= this.webBrowser1_DocumentCompleted;
MessageBox.Show("조사가 완료되었습니다!");
RowCount = 0;
isJNLClick = false;
isKJKClick = false;
isWandoClick = false;
return;
}
@@ -421,7 +406,14 @@ namespace WindowsFormsApp1.Mac
}
}
webBrowser1.Document.GetElementById("searchWord").SetAttribute("value", text);
foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input"))
{
if (he.Id != null && he.Id == "searchWord")
{
he.SetAttribute("value", text);
}
}
// webBrowser1.Document.GetElementById("searchWord").SetAttribute("value", text);
foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("input"))
{

View File

@@ -60,11 +60,6 @@ namespace WindowsFormsApp1.Mac
dataGridView1.CellValueChanged += new DataGridViewCellEventHandler(dataGridView1_CellValueChanged);
}
private void Btn_Search_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}
#region SelectList_Sub
public void mk_Grid(string ListName, string date, string[] Grid)
@@ -105,22 +100,22 @@ namespace WindowsFormsApp1.Mac
for (int a = 0; a < ary.Length; a++)
{
if (a % 16 == 0) Grid[0] = ary[a]; // idx
if (a % 16 == 1) Grid[1] = ary[a]; // num
if (a % 16 == 2) Grid[2] = ary[a]; // r_num
if (a % 16 == 3) Grid[3] = ary[a]; // class_symbol
if (a % 16 == 4) Grid[4] = ary[a]; // author_symbol
if (a % 16 == 5) Grid[9] = ary[a]; // ISBN
if (a % 16 == 6) Grid[10] = ary[a]; // book_name
if (a % 16 == 7) Grid[11] = ary[a]; // s_book_name1
if (a % 16 == 8) Grid[12] = ary[a]; // s_book_num1
if (a % 16 == 9) Grid[13] = ary[a]; // s_book_name2
if (a % 16 == 10) Grid[14] = ary[a]; // s_book_num2
if (a % 16 == 11) Grid[15] = ary[a]; // author
if (a % 16 == 12) Grid[16] = ary[a]; // book_comp
if (a % 16 == 13) Grid[17] = ary[a]; // price
if (a % 16 == 14) Grid[18] = ary[a]; // midx
if (a % 16 == 15) { Grid[19] = ary[a]; // marc
if (a % 16 == 0) { Grid[0] = ary[a]; } // idx
if (a % 16 == 1) { Grid[1] = ary[a]; } // num
if (a % 16 == 2) { Grid[2] = ary[a]; } // r_num
if (a % 16 == 3) { Grid[3] = ary[a]; } // class_symbol
if (a % 16 == 4) { Grid[4] = ary[a]; } // author_symbol
if (a % 16 == 5) { Grid[9] = ary[a]; } // ISBN
if (a % 16 == 6) { Grid[10] = ary[a]; } // book_name
if (a % 16 == 7) { Grid[11] = ary[a]; } // s_book_name1
if (a % 16 == 8) { Grid[12] = ary[a]; } // s_book_num1
if (a % 16 == 9) { Grid[13] = ary[a]; } // s_book_name2
if (a % 16 == 10) { Grid[14] = ary[a]; } // s_book_num2
if (a % 16 == 11) { Grid[15] = ary[a]; } // author
if (a % 16 == 12) { Grid[16] = ary[a]; } // book_comp
if (a % 16 == 13) { Grid[17] = ary[a]; } // price
if (a % 16 == 14) { Grid[18] = ary[a]; } // midx
if (a % 16 == 15) { Grid[19] = ary[a]; // marc
string[] vcf = st.Take_Tag(ary[a], GetTag);
Grid[5] = vcf[0];