Example #1
0
 private void frmUMBungaIden_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.Caller is Penjualan.frmUMBungaUpdate)
     {
         Penjualan.frmUMBungaUpdate frmCaller = (Penjualan.frmUMBungaUpdate) this.Caller;
         frmCaller.RefreshControlsTitipan();
     }
 }
Example #2
0
        private void cmdPELUNASAN_Click(object sender, EventArgs e)
        {
            // cek dulu mesti kepilih 1 data baru bisa melakukan proses pembayaran
            if (dgUMBunga.SelectedCells.Count > 0)
            {
                Guid PenerimaanUMRowID;
                Guid PenjRowID;

                PenerimaanUMRowID = (Guid)dgUMBunga.SelectedCells[0].OwningRow.Cells["PenerimaanUMRowID"].Value;
                PenjRowID         = (Guid)dgUMBunga.SelectedCells[0].OwningRow.Cells["PenjRowID"].Value;

                Penjualan.frmUMBungaUpdate ifrmChild = new Penjualan.frmUMBungaUpdate(this, PenerimaanUMRowID, PenjRowID);
                ifrmChild.ShowDialog();
                // refreshGrid();
                refreshGrids(PenjRowID, PenerimaanUMRowID);
            }
            else
            {
                MessageBox.Show("Pilih data UMBunga yg ingin dilunasi terlebih dahulu.");
            }
        }