Ejemplo n.º 1
0
        private void cmdEdit_Click(object sender, EventArgs e)
        {
            if (dgKasbon.SelectedCells[0].OwningRow.Cells["StatusKasbon"].Value.ToString() == "C")
            {
                MessageBox.Show("Sudah Penyelesaian, Tidak Bisa di Edit");
                return;
            }
            string    rowID       = dgKasbon.SelectedCells[0].OwningRow.Cells["RowID"].Value.ToString();
            DataTable dtKasbonRow = dtKasbon.Copy();

            dtKasbonRow.DefaultView.RowFilter = "RowID='" + rowID + "'";
            DataView dv = new DataView();

            dv = dtKasbonRow.DefaultView;

            frmKasbonUpdate frm = new frmKasbonUpdate(this, dv.ToTable());

            frm.ShowDialog();
        }
Ejemplo n.º 2
0
 private void cmdSave_Click(object sender, EventArgs e)
 {
     if (formMode == enumformMode.New)
     {
         string RecordID = Tools.CreateFingerPrint(GlobalVar.PerusahaanID, SecurityManager.UserInitial);
         RowID = Guid.NewGuid();
         frmKasbonUpdate frm = new frmKasbonUpdate();
         frm = (frmKasbonUpdate)Caller;
         frm.InsertGridVoucher(RowID, RecordID, DateTime.Today, lookupPerkiraanKoneksi1.NoPerkiraan, tbUraian.Text, tbNoAcc.Text, Convert.ToDouble(tbNilai.Text));
         frm.VoucherRefresh();
         this.Close();
     }
     else
     {
         frmKasbonUpdate frm = new frmKasbonUpdate();
         frm = (frmKasbonUpdate)Caller;
         frm.UpdateGridVoucher(index, lookupPerkiraanKoneksi1.NoPerkiraan, tbUraian.Text, tbNoAcc.Text, Convert.ToDouble(tbNilai.Text));
         frm.VoucherRefresh();
         this.Close();
     }
 }
Ejemplo n.º 3
0
        private void cmdSave_Click(object sender, EventArgs e)
        {
            if (lookupBank1.BankID == "" || lookupBank1.BankID == "[CODE]")
            {
                MessageBox.Show("Transfer ke bank belum diisi");
                return;
            }
            if (tbBankDari.Text == "")
            {
                MessageBox.Show("Transfer dari bank belum diisi");
                return;
            }
            if (tbNomor.Text == "")
            {
                MessageBox.Show("Nomor belum diisi");
                return;
            }
            frmKasbonUpdate frm = new frmKasbonUpdate();

            frm = (frmKasbonUpdate)Caller;
            frm.DetailTransfer(lookupBank1.BankID, tbBankDari.Text, tbNomor.Text);
            this.Close();
        }
Ejemplo n.º 4
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            frmKasbonUpdate frm = new frmKasbonUpdate(this);

            frm.ShowDialog();
        }