=====* unimarc *=====
------------------------ =====* ISBN 체크 프로그램 *===== ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. ------------------------ ===== 작업중 ===== ===== 보류 ===== 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:
171
unimarc/WindowsFormsApp1/납품관리/Order_input.Designer.cs
generated
171
unimarc/WindowsFormsApp1/납품관리/Order_input.Designer.cs
generated
@@ -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();
|
||||
@@ -51,12 +51,12 @@
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.btn_lookup = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.btn_Reset_Order = new System.Windows.Forms.Button();
|
||||
this.button8 = new System.Windows.Forms.Button();
|
||||
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||
this.button9 = new System.Windows.Forms.Button();
|
||||
this.button10 = new System.Windows.Forms.Button();
|
||||
this.button11 = new System.Windows.Forms.Button();
|
||||
this.btn_All_chk = new System.Windows.Forms.Button();
|
||||
this.btn_All_unchk = new System.Windows.Forms.Button();
|
||||
this.btn_Save = new System.Windows.Forms.Button();
|
||||
this.button12 = new System.Windows.Forms.Button();
|
||||
this.cb_ordersend = new System.Windows.Forms.ComboBox();
|
||||
this.btn_order_send = new System.Windows.Forms.Button();
|
||||
@@ -268,22 +268,23 @@
|
||||
//
|
||||
// btn_lookup
|
||||
//
|
||||
this.btn_lookup.Location = new System.Drawing.Point(902, 14);
|
||||
this.btn_lookup.Location = new System.Drawing.Point(912, 13);
|
||||
this.btn_lookup.Name = "btn_lookup";
|
||||
this.btn_lookup.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_lookup.Size = new System.Drawing.Size(85, 25);
|
||||
this.btn_lookup.TabIndex = 25;
|
||||
this.btn_lookup.Text = "조 회";
|
||||
this.btn_lookup.Text = "조 회";
|
||||
this.btn_lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
|
||||
//
|
||||
// button7
|
||||
// btn_Reset_Order
|
||||
//
|
||||
this.button7.Location = new System.Drawing.Point(19, 111);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(77, 23);
|
||||
this.button7.TabIndex = 33;
|
||||
this.button7.Text = "주문처 리셋";
|
||||
this.button7.UseVisualStyleBackColor = true;
|
||||
this.btn_Reset_Order.Location = new System.Drawing.Point(19, 111);
|
||||
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;
|
||||
this.btn_Reset_Order.Text = "주문처 리셋";
|
||||
this.btn_Reset_Order.UseVisualStyleBackColor = true;
|
||||
this.btn_Reset_Order.Click += new System.EventHandler(this.btn_Reset_Order_Click);
|
||||
//
|
||||
// button8
|
||||
//
|
||||
@@ -293,65 +294,71 @@
|
||||
this.button8.TabIndex = 34;
|
||||
this.button8.Text = "자동주문처";
|
||||
this.button8.UseVisualStyleBackColor = true;
|
||||
this.button8.Visible = false;
|
||||
//
|
||||
// checkBox3
|
||||
//
|
||||
this.checkBox3.AutoSize = true;
|
||||
this.checkBox3.Location = new System.Drawing.Point(102, 108);
|
||||
this.checkBox3.Location = new System.Drawing.Point(102, 110);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new System.Drawing.Size(72, 28);
|
||||
this.checkBox3.TabIndex = 35;
|
||||
this.checkBox3.Text = "isbn자동\n주문처";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
this.checkBox3.Visible = false;
|
||||
//
|
||||
// button9
|
||||
// btn_All_chk
|
||||
//
|
||||
this.button9.Location = new System.Drawing.Point(252, 111);
|
||||
this.button9.Name = "button9";
|
||||
this.button9.Size = new System.Drawing.Size(85, 23);
|
||||
this.button9.TabIndex = 36;
|
||||
this.button9.Text = "전체주문선택";
|
||||
this.button9.UseVisualStyleBackColor = true;
|
||||
this.btn_All_chk.Location = new System.Drawing.Point(252, 111);
|
||||
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;
|
||||
this.btn_All_chk.Text = "전체주문선택";
|
||||
this.btn_All_chk.UseVisualStyleBackColor = true;
|
||||
this.btn_All_chk.Click += new System.EventHandler(this.btn_All_chk_Click);
|
||||
//
|
||||
// button10
|
||||
// btn_All_unchk
|
||||
//
|
||||
this.button10.Location = new System.Drawing.Point(341, 111);
|
||||
this.button10.Name = "button10";
|
||||
this.button10.Size = new System.Drawing.Size(85, 23);
|
||||
this.button10.TabIndex = 37;
|
||||
this.button10.Text = "전체주문취소";
|
||||
this.button10.UseVisualStyleBackColor = true;
|
||||
this.btn_All_unchk.Location = new System.Drawing.Point(341, 111);
|
||||
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;
|
||||
this.btn_All_unchk.Text = "전체선택취소";
|
||||
this.btn_All_unchk.UseVisualStyleBackColor = true;
|
||||
this.btn_All_unchk.Click += new System.EventHandler(this.btn_All_chk_Click);
|
||||
//
|
||||
// button11
|
||||
// btn_Save
|
||||
//
|
||||
this.button11.Location = new System.Drawing.Point(430, 111);
|
||||
this.button11.Name = "button11";
|
||||
this.button11.Size = new System.Drawing.Size(85, 23);
|
||||
this.button11.TabIndex = 38;
|
||||
this.button11.Text = "변경사항적용";
|
||||
this.button11.UseVisualStyleBackColor = true;
|
||||
this.btn_Save.Location = new System.Drawing.Point(1019, 13);
|
||||
this.btn_Save.Name = "btn_Save";
|
||||
this.btn_Save.Size = new System.Drawing.Size(85, 25);
|
||||
this.btn_Save.TabIndex = 38;
|
||||
this.btn_Save.Text = "저 장";
|
||||
this.btn_Save.UseVisualStyleBackColor = true;
|
||||
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
|
||||
//
|
||||
// button12
|
||||
//
|
||||
this.button12.Location = new System.Drawing.Point(519, 111);
|
||||
this.button12.Location = new System.Drawing.Point(432, 111);
|
||||
this.button12.Name = "button12";
|
||||
this.button12.Size = new System.Drawing.Size(62, 23);
|
||||
this.button12.TabIndex = 39;
|
||||
this.button12.Text = "주문순위";
|
||||
this.button12.UseVisualStyleBackColor = true;
|
||||
this.button12.Visible = false;
|
||||
//
|
||||
// cb_ordersend
|
||||
//
|
||||
this.cb_ordersend.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_ordersend.FormattingEnabled = true;
|
||||
this.cb_ordersend.Location = new System.Drawing.Point(587, 112);
|
||||
this.cb_ordersend.Location = new System.Drawing.Point(500, 112);
|
||||
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(737, 111);
|
||||
this.btn_order_send.Location = new System.Drawing.Point(650, 111);
|
||||
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;
|
||||
@@ -361,7 +368,7 @@
|
||||
//
|
||||
// btn_send_chk
|
||||
//
|
||||
this.btn_send_chk.Location = new System.Drawing.Point(670, 111);
|
||||
this.btn_send_chk.Location = new System.Drawing.Point(583, 111);
|
||||
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;
|
||||
@@ -410,14 +417,14 @@
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
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,
|
||||
@@ -435,24 +442,24 @@
|
||||
this.order_date,
|
||||
this.send_date,
|
||||
this.num});
|
||||
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;
|
||||
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.Location = new System.Drawing.Point(9, 142);
|
||||
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;
|
||||
@@ -460,8 +467,8 @@
|
||||
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);
|
||||
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
|
||||
this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_DataError);
|
||||
this.dataGridView1.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dataGridView1_EditingControlShowing);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// chk
|
||||
@@ -652,21 +659,21 @@
|
||||
//
|
||||
// btn_close
|
||||
//
|
||||
this.btn_close.Location = new System.Drawing.Point(1180, 14);
|
||||
this.btn_close.Location = new System.Drawing.Point(1019, 49);
|
||||
this.btn_close.Name = "btn_close";
|
||||
this.btn_close.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_close.Size = new System.Drawing.Size(85, 25);
|
||||
this.btn_close.TabIndex = 49;
|
||||
this.btn_close.Text = "닫 기";
|
||||
this.btn_close.Text = "닫 기";
|
||||
this.btn_close.UseVisualStyleBackColor = true;
|
||||
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
|
||||
//
|
||||
// btn_Excel
|
||||
//
|
||||
this.btn_Excel.Location = new System.Drawing.Point(902, 47);
|
||||
this.btn_Excel.Location = new System.Drawing.Point(912, 49);
|
||||
this.btn_Excel.Name = "btn_Excel";
|
||||
this.btn_Excel.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Excel.Size = new System.Drawing.Size(85, 25);
|
||||
this.btn_Excel.TabIndex = 50;
|
||||
this.btn_Excel.Text = "엑 셀";
|
||||
this.btn_Excel.Text = "엑 셀";
|
||||
this.btn_Excel.UseVisualStyleBackColor = true;
|
||||
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
|
||||
//
|
||||
@@ -687,15 +694,15 @@
|
||||
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_ordersend);
|
||||
this.Controls.Add(this.button12);
|
||||
this.Controls.Add(this.button11);
|
||||
this.Controls.Add(this.button10);
|
||||
this.Controls.Add(this.button9);
|
||||
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.button8);
|
||||
this.Controls.Add(this.button7);
|
||||
this.Controls.Add(this.btn_lookup);
|
||||
this.Controls.Add(this.btn_Reset_Order);
|
||||
this.Name = "Order_input";
|
||||
this.Text = "주문입력";
|
||||
this.Load += new System.EventHandler(this.Order_input_Load);
|
||||
@@ -731,12 +738,12 @@
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Button btn_lookup;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button btn_Reset_Order;
|
||||
private System.Windows.Forms.Button button8;
|
||||
private System.Windows.Forms.CheckBox checkBox3;
|
||||
private System.Windows.Forms.Button button9;
|
||||
private System.Windows.Forms.Button button10;
|
||||
private System.Windows.Forms.Button button11;
|
||||
private System.Windows.Forms.Button btn_All_chk;
|
||||
private System.Windows.Forms.Button btn_All_unchk;
|
||||
private System.Windows.Forms.Button btn_Save;
|
||||
private System.Windows.Forms.Button button12;
|
||||
private System.Windows.Forms.ComboBox cb_ordersend;
|
||||
private System.Windows.Forms.Button btn_order_send;
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace WindowsFormsApp1.Delivery
|
||||
int ColumnIndex;
|
||||
string chk_mkdate = "";
|
||||
bool chk_V = false;
|
||||
bool chk_O = false;
|
||||
public Order_input(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -155,21 +154,21 @@ namespace WindowsFormsApp1.Delivery
|
||||
/// 작업명단 검색중 상위 텍스트박스 및 콤보박스의 값에 따라 출력할지 안할지 분류.
|
||||
/// </summary>
|
||||
/// <param name="strValues"></param>
|
||||
/// <returns></returns>
|
||||
/// <returns>false일 경우 필터에 걸러진 경우임.</returns>
|
||||
private bool Array_Inspection(string[] strValues)
|
||||
{
|
||||
if (tb_search_order.Text != "") {
|
||||
if(strValues[1].Contains(tb_search_order.Text) == false) {
|
||||
if (!strValues[1].Contains(tb_search_order.Text)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (tb_search_book_name.Text != "") {
|
||||
if (strValues[3].Contains(tb_search_book_name.Text) == false) {
|
||||
if (!strValues[3].Contains(tb_search_book_name.Text)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (tb_search_book_comp.Text != "") {
|
||||
if (strValues[5].Contains(tb_search_book_comp.Text) == false) {
|
||||
if (!strValues[5].Contains(tb_search_book_comp.Text)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -188,6 +187,10 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (e.KeyCode == Keys.Enter) {
|
||||
btn_lookup_Click(null, null);
|
||||
}
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void btn_close_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -199,21 +202,15 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
grididx = e.RowIndex;
|
||||
ColumnIndex = e.ColumnIndex;
|
||||
CheckBox check;
|
||||
foreach(DataGridViewRow row in dataGridView1.Rows)
|
||||
{
|
||||
check = (CheckBox)(row.Cells[16].Value);
|
||||
}
|
||||
if( dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected == dataGridView1.Rows[e.RowIndex].Cells["chk"].Selected)
|
||||
{
|
||||
if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "true") {
|
||||
dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "false";
|
||||
}
|
||||
else if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "false") {
|
||||
dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "true";
|
||||
}
|
||||
}
|
||||
if (e.ColumnIndex == 0 && chk_O == false)
|
||||
{
|
||||
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "O";
|
||||
chk_O = true;
|
||||
}
|
||||
else if (e.ColumnIndex == 0 && chk_O == true)
|
||||
{
|
||||
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
|
||||
chk_O = false;
|
||||
}
|
||||
}
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
@@ -459,6 +456,13 @@ namespace WindowsFormsApp1.Delivery
|
||||
dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text;
|
||||
}
|
||||
}
|
||||
private void btn_Reset_Order_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
dataGridView1.Rows[a].Cells["order"].Value = "";
|
||||
}
|
||||
}
|
||||
private void btn_order_chk_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
@@ -473,23 +477,40 @@ namespace WindowsFormsApp1.Delivery
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["order"].Value.ToString() == "")
|
||||
dataGridView1.Rows[a].Cells["order"].Value = tb_orderText.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void btn_All_chk_Click(object sender, EventArgs e)
|
||||
{
|
||||
string name = ((Button)sender).Name;
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
if (name == "btn_All_chk")
|
||||
dataGridView1.Rows[a].Cells["chk"].Value = "true";
|
||||
|
||||
else if (name == "btn_All_unchk")
|
||||
dataGridView1.Rows[a].Cells["chk"].Value = "false";
|
||||
}
|
||||
}
|
||||
private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
|
||||
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
var txtEdit = (TextBox)e.Control;
|
||||
txtEdit.KeyDown += EditKeyDown;
|
||||
}
|
||||
private void EditKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected == dataGridView1.Rows[e.RowIndex].Cells["order"].Selected)
|
||||
{
|
||||
e.SuppressKeyPress = true;
|
||||
base.OnKeyDown(e);
|
||||
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() != "" ||
|
||||
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
|
||||
{
|
||||
Order_input_Search search = new Order_input_Search(this);
|
||||
search.Where_Open = "Order_Grid";
|
||||
search.searchText = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
|
||||
search.oin_grid_idx[0] = e.RowIndex;
|
||||
search.oin_grid_idx[1] = e.ColumnIndex;
|
||||
search.TopMost = true;
|
||||
search.Show();
|
||||
}
|
||||
else { return; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
Helper_DB db = new Helper_DB();
|
||||
|
||||
int grididx = 0;
|
||||
public int[] oin_grid_idx = { 0, 0 };
|
||||
public string Where_Open;
|
||||
public string searchText;
|
||||
string compidx;
|
||||
@@ -62,7 +63,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
made_grid(cmd);
|
||||
}
|
||||
}
|
||||
else if(Where_Open == "Order") {
|
||||
else if(Where_Open.Contains("Order")) {
|
||||
list_name.HeaderText = "주문처";
|
||||
charge.HeaderText = "대표자";
|
||||
state.HeaderText = "종목";
|
||||
@@ -127,8 +128,7 @@ namespace WindowsFormsApp1.Delivery
|
||||
if (Where_Open == "book_list")
|
||||
{
|
||||
string[] tmp_col = { "compidx", "list_name" };
|
||||
string[] tmp_data = { compidx,
|
||||
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString() };
|
||||
string[] tmp_data = { compidx, dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString() };
|
||||
string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " +
|
||||
"`book_comp`, `order_count`, `count`, `pay`, `total`, " +
|
||||
"`etc`, `list_name`, `order_date`, `send_date`, `header`, " +
|
||||
@@ -137,9 +137,15 @@ namespace WindowsFormsApp1.Delivery
|
||||
oin.made_grid(cmd, false);
|
||||
oin.tb_search_book_list.Text = tmp_data[1];
|
||||
}
|
||||
else if (Where_Open == "Order")
|
||||
else if (Where_Open.Contains("Order"))
|
||||
{
|
||||
oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
|
||||
if(Where_Open == "Order_Grid") {
|
||||
oin.dataGridView1.Rows[oin_grid_idx[0]].Cells[oin_grid_idx[1]].Value =
|
||||
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
|
||||
}
|
||||
else {
|
||||
oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
private void pb_result()
|
||||
|
||||
Reference in New Issue
Block a user