示例#1
0
        protected override void Tambah()
        {
            var frm = new FrmEntryPembelianProduk("Tambah Data " + this.Text, _bll);

            frm.Listener = this;
            frm.ShowDialog();
        }
 protected override void Tambah()
 {
     using (new StCursor(Cursors.WaitCursor, new TimeSpan(0, 0, 0, 0)))
     {
         var frm = new FrmEntryPembelianProduk("Tambah Data " + this.Text, _bll);
         frm.Listener = this;
         frm.ShowDialog();
     }
 }
示例#3
0
        protected override void Perbaiki()
        {
            var index = this.gridList.SelectedIndex;

            if (!base.IsSelectedItem(index, this.TabText))
            {
                return;
            }

            var beli = _listOfBeli[index];

            beli.tanggal_tempo_old = beli.tanggal_tempo;

            var frm = new FrmEntryPembelianProduk("Edit Data " + this.Text, beli, _bll);

            frm.Listener = this;
            frm.ShowDialog();
        }
        protected override void Perbaiki()
        {
            var index = this.gridList.SelectedIndex;

            if (!base.IsSelectedItem(index, this.TabText))
            {
                return;
            }

            var beli = _listOfBeli[index];

            beli.tanggal_tempo_old = beli.tanggal_tempo;
            beli.item_beli         = _bll.GetItemBeli(beli.beli_produk_id);

            LogicalThreadContext.Properties["OldValue"] = beli.ToJson();

            var frm = new FrmEntryPembelianProduk("Edit Data " + this.Text, beli, _bll);

            frm.Listener = this;
            frm.ShowDialog();
        }