Esempio n. 1
0
        private void cmdAdd_Click_1(object sender, EventArgs e)
        {
            //if (!PeriodeClosing.isClosingKasirOneWeek(GlobalVar.DateOfServer))
            //{
            //    return;
            //}
            frmKasbonUpdate frm = new frmKasbonUpdate(this);

            frm.ShowDialog();
        }
Esempio n. 2
0
        private void cmdEdit_Click_1(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();
        }
Esempio n. 3
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, lookupPerkiraanKoneksi1.NamaPerkiraan, 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, lookupPerkiraanKoneksi1.NamaPerkiraan, tbUraian.Text, tbNoAcc.Text, Convert.ToDouble(tbNilai.Text));
         frm.VoucherRefresh();
         this.Close();
     }
 }
Esempio n. 4
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();
        }