示例#1
0
        private void dataCabangGridView_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

                DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];
                selectedBranchID = Convert.ToInt32(selectedRow.Cells["BRANCH_ID"].Value);

                if (originModuleID == globalConstants.DATA_PIUTANG_MUTASI)
                {
                    gutil.saveSystemDebugLog(0, "CREATE PEMBAYARAN PIUTANG MUTASI, BRANCH ID [" + selectedBranchID + "]");

                    if (null == pembayaranPiutangForm || pembayaranPiutangForm.IsDisposed)
                        pembayaranPiutangForm = new pembayaranLumpSumForm(originModuleID, selectedBranchID);

                    pembayaranPiutangForm.Show();
                    pembayaranPiutangForm.WindowState = FormWindowState.Normal;
                }
                else
                {
                    gutil.saveSystemDebugLog(0, "CREATE DATA BRANCH DETAIL, BRANCH ID [" + selectedBranchID + "]");
                    if (null == editBranchForm || editBranchForm.IsDisposed)
                            editBranchForm = new dataCabangDetailForm(globalConstants.EDIT_BRANCH, selectedBranchID);

                    editBranchForm.Show();
                    editBranchForm.WindowState = FormWindowState.Normal;
                }
            }
        }
示例#2
0
		private void newButton_Click_2(object sender, EventArgs e)
        {
            dataCabangDetailForm displayedForm = new dataCabangDetailForm(globalConstants.NEW_BRANCH, 0);
            displayedForm.ShowDialog(this);
            dataCabangGridView.DataSource = null;
            if (!namaBranchTextbox.Text.Equals(""))
                loadBranchData(namaBranchTextbox.Text);
        }
示例#3
0
        private void dataCabangGridView_DoubleClick(object sender, EventArgs e)
        {
            int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];
            selectedBranchID = Convert.ToInt32(selectedRow.Cells["BRANCH_ID"].Value);

            if (originModuleID == globalConstants.DATA_PIUTANG_MUTASI)
            {
                if (null == pembayaranPiutangForm || pembayaranPiutangForm.IsDisposed)
                    pembayaranPiutangForm = new pembayaranLumpSumForm(originModuleID, selectedBranchID);

                pembayaranPiutangForm.Show();
                pembayaranPiutangForm.WindowState = FormWindowState.Normal;
            }
            else
            {
                if (null == editBranchForm || editBranchForm.IsDisposed)
                        editBranchForm = new dataCabangDetailForm(globalConstants.EDIT_BRANCH, selectedBranchID);

                editBranchForm.Show();
                editBranchForm.WindowState = FormWindowState.Normal;
            }
        }