private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); old_cust_nm = frm.sCode.Trim(); StringBuilder sb = new StringBuilder(); sb.AppendLine(" and D.CUST_CD = '" + txt_cust_cd.Text.ToString() + "' "); item_out_detail(sb.ToString()); } else { txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; }
private void txt_cust_nm_Leave(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; //매출처 frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); //txt_tax_cd.Text = frm.sTaxCd.Trim(); old_cust_nm = frm.sCode.Trim(); } else { txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; } }
private void btn_cust_search_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); txt_balance.Text = decimal.Parse(frm.sBalance.Trim().Replace(",", "")).ToString("#,0.######"); } frm.Dispose(); frm = null; try { wnDm wDm = new wnDm(); DataTable dt = new DataTable(); // dt = sc.selectSalesList(txt_cust_cd.Text.ToString()); } catch (Exception ex) { MessageBox.Show("시스템 오류" + ex.ToString()); Popup.pop오류리포트 msg = new Popup.pop오류리포트(ex.Message + " - " + ex.ToString()); msg.ShowDialog(); } }
private void rs_order_grid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { DataGridView grd = (DataGridView)sender; DataGridViewCell cell = grd[e.ColumnIndex, e.RowIndex]; var senderGrid = (DataGridView)sender; if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0 && senderGrid.Columns[e.ColumnIndex].Name.Equals("검색")) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; //구매처 frm.ShowDialog(); if (frm.sCode != "") { rs_order_grid.Rows[e.RowIndex].Cells["PUR_CUST_CD"].Value = frm.sCode.Trim(); rs_order_grid.Rows[e.RowIndex].Cells["PUR_CUST_NM"].Value = frm.sName.Trim(); SendKeys.Send("{Tab}"); } frm.Dispose(); frm = null; } } }
private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색("납품처"); frm.sCustGbn = "1"; frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); txt_vat_cd.Text = frm.sVatCd.Trim(); old_cust_nm = frm.sCode.Trim(); item_out_detail(""); } else { txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; cmb_stor.Focus(); }
private void txt_cust_nm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { StringBuilder sb = new StringBuilder(); sb.AppendLine("WHERE A.BUY_DATE >= '" + start_date.Text.ToString() + "' and A.BUY_DATE <= '" + end_date.Text.ToString() + "' "); if (txt_cust_nm.Text != null && !txt_cust_nm.Text.Equals("")) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.txtSrch.Text = txt_cust_nm.Text.ToString(); frm.sCustGbn = "2"; frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); sb.AppendLine(" and C.CUST_CD = '" + txt_cust_cd.Text + "' "); } frm.Dispose(); frm = null; } SalesGrid(inputGrid, sb.ToString()); } }
private void btnCust_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.ShowDialog(); if (frm.sCode != "") { // cmb_cust.SelectedValue = frm.sCode.Trim(); } frm.Dispose(); frm = null; }
private void btnSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; frm.ShowDialog(); MessageBox.Show(frm.sCode); if (frm.sCode != "") { cmbCust.SelectedValue = frm.sCode.Trim(); } if (frm.sName != "") { cmbItem.SelectedValue = frm.sName.Trim(); } frm.Dispose(); frm = null; }
private void btnSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; frm.sCustNm = txtcustSrch.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txtcustSrch.Text = frm.sName.Trim(); } else { //txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; }
private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; //매출처 frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); if (itemJumunGrid.Rows.Count == 0) { itemJumunGridAdd(); } } frm.Dispose(); frm = null; }
private void btn_Cust_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.ShowDialog(); if (frm.sCode != "") { cmb_cust.SelectedValue = frm.sCode.Trim(); } else { // txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; cmb_used.Focus(); }
private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); //old_cust_nm = frm.sCode.Trim(); //ni_detail(); //in_grid_detail(); } frm.Dispose(); frm = null; }
private void btn거래처검색(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색("구매처"); frm.sCustGbn = "2"; frm.sCustNm = txt구매처.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt거래처코드.Text = frm.sCode.Trim(); txt구매처.Text = frm.sName.Trim(); old_cust_nm = frm.sCode.Trim(); } else { txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; }
private void CustSrchRsLogic(DataGridView grd, DataGridViewCellEventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.sCustNm = cust_nm; frm.ShowDialog(); if (frm.sCode != "") { // txt_cust_cd.Text = frm.sCode.Trim(); grd.SelectedRows[0].Cells["CUST_CD"].Value = frm.sCode.Trim(); grd.SelectedRows[0].Cells["CUST_NAME"].Value = frm.sName.Trim(); } else { // txt_cust_cd.Text = old_cust_nm; } frm.Dispose(); frm = null; }
private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; //매출처 frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); //if (frm.sCode != "") //{ // txt_cust_cd.Text = frm.sCode.Trim(); // txt_cust_nm.Text = frm.sName.Trim(); // old_cust_nm = frm.sCode.Trim(); //} //else //{ // txt_cust_cd.Text = old_cust_nm; //} frm.Dispose(); frm = null; }
private void btnCustSrch_Click(object sender, EventArgs e) { Popup.pop거래처검색 frm = new Popup.pop거래처검색("납품처"); frm.sCustGbn = "1"; frm.sCustNm = txt_Cust.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_Cust.Tag = frm.sCode.Trim(); txt_Cust.Text = frm.sName.Trim(); old_cust_nm = frm.sCode.Trim(); } else { txt_Item.Tag = old_cust_nm; } frm.Dispose(); frm = null; }
private void txt_cust_nm_Leave(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "1"; //매출처 frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); if (itemJumunGrid.Rows.Count == 0) { itemJumunGridAdd(); } } frm.Dispose(); frm = null; } }
private void txt_cust_nm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Popup.pop거래처검색 frm = new Popup.pop거래처검색(); frm.sCustGbn = "2"; frm.sCustNm = txt_cust_nm.Text.ToString(); frm.ShowDialog(); if (frm.sCode != "") { txt_cust_cd.Text = frm.sCode.Trim(); txt_cust_nm.Text = frm.sName.Trim(); //old_cust_nm = frm.sCode.Trim(); //ni_detail(); //in_grid_detail(); } frm.Dispose(); frm = null; } }