Ejemplo n.º 1
0
        private void Dgv부문_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.SuppressKeyPress = true;

                SelectSector();
            }

            if (e.KeyData == Keys.Delete)
            {
                e.SuppressKeyPress = true;

                if (DialogResult.Yes == MessageBox.Show("선택한 부문을 삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo))
                {
                    DB.부문.Delete(FillInSector(dgv부문.CurrentCell.RowIndex));
                }

                dgv부문.DataSource = DB.부문.GetAll();
            }

            if (e.KeyData == Keys.Escape)
            {
                menuForm.Close();
            }
        }
Ejemplo n.º 2
0
        private void Dgv거래처List_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.SuppressKeyPress = true;

                string customerCode = dgv거래처List.CurrentRow.Cells[0].Value.ToString();
                string customerName = dgv거래처List.CurrentRow.Cells[1].Value.ToString();
                string accontNumber = dgv거래처List.CurrentRow.Cells[2].Value.ToString();
                string corporateRegistrationNumber = dgv거래처List.CurrentRow.Cells[3].Value.ToString();

                전표리스트단위.FinanceCustomerCode = customerCode;
                전표리스트단위.FinanceCustomerName = customerName;
                전표리스트단위.FinanceAccontNumber = accontNumber;
                전표리스트단위.FinanceCorporateRegistrationNumber = corporateRegistrationNumber;

                menuForm.Close();
                keybd_event((byte)Keys.Enter, 0x0D, 0x01, 0); // DownUp
            }

            if (e.KeyData == Keys.Escape)
            {
                menuForm.Close();
            }
        }
Ejemplo n.º 3
0
        private void SelectWorkPlace()
        {
            if (dgv사업장.CurrentRow.Cells[0].Value != null && dgv사업장.CurrentRow.Cells[1].Value != null)
            {
                사업장단위.WorkPlaceCode = dgv사업장.CurrentRow.Cells[0].Value.ToString();
                사업장단위.WorkPlaceName = dgv사업장.CurrentRow.Cells[1].Value.ToString();

                menuForm.Close();
            }
        }
        private void SelectCompetentTaxOffice()
        {
            if (dgv관할세무서.CurrentRow.Cells[0].Value != null && dgv관할세무서.CurrentRow.Cells[1].Value != null)
            {
                관할세무서단위.CompetentTaxOfficeCode = dgv관할세무서.CurrentRow.Cells[0].Value.ToString();
                관할세무서단위.CompetentTaxOfficeName = dgv관할세무서.CurrentRow.Cells[1].Value.ToString();

                menuForm.Close();
            }
        }
        private void DgvList_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.SuppressKeyPress = true;

                string accountCode = dgv제품번호List.CurrentRow.Cells[0].Value.ToString();

                제품단위.Code = accountCode;

                codeHelperForm.Close();
            }

            if (e.KeyData == Keys.Escape)
            {
                codeHelperForm.Close();
            }
        }
Ejemplo n.º 6
0
        private void Dgv전표리스트_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Escape)
            {
                e.SuppressKeyPress = true;

                menuForm.Close();
            }
        }
        private void Dgv고정자산List_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.SuppressKeyPress = true;

                string fixedAssetsCode = dgv고정자산List.CurrentRow.Cells[0].Value.ToString();
                string fixedAssetsName = dgv고정자산List.CurrentRow.Cells[1].Value.ToString();

                고정자산단위.FixedAssetsCode = fixedAssetsCode;
                고정자산단위.FixedAssetsName = fixedAssetsName;

                codeHelperForm.Close();
            }

            if (e.KeyData == Keys.Escape)
            {
                codeHelperForm.Close();
            }
        }
Ejemplo n.º 8
0
        private void DgvList_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.SuppressKeyPress = true;

                string accountCode = dgv계정과목List.CurrentRow.Cells[0].Value.ToString();
                string accountName = dgv계정과목List.CurrentRow.Cells[1].Value.ToString();

                전표리스트단위.AccountCode = accountCode;
                전표리스트단위.AccountName = accountName;

                계정과목단위.AccountCode = accountCode;
                계정과목단위.AccountName = accountName;

                codeHelperForm.Close();
                //keybd_event((byte)Keys.Enter, 0x0D, 0x01, 0); // DownUp
            }

            if (e.KeyData == Keys.Escape)
            {
                codeHelperForm.Close();
            }
        }