Exemple #1
0
        public void GetLastNotaTest()
        {
            var lastNota = _bll.GetLastNota();

            Assert.AreEqual("201701100003", lastNota);

            lastNota = _bll.GetLastNota();
            Assert.AreEqual("201701100004", lastNota);
        }
Exemple #2
0
        public FrmEntryPembelianProduk(string header, IBeliProdukBll bll)
            : base()
        {
            InitializeComponent();
            ColorManagerHelper.SetTheme(this, this);

            base.SetHeader(header);
            this._bll       = bll;
            this._isNewData = true;
            this._log       = MainProgram.log;
            this._pengguna  = MainProgram.pengguna;

            txtNota.Text          = bll.GetLastNota();
            dtpTanggal.Value      = DateTime.Today;
            dtpTanggalTempo.Value = dtpTanggal.Value;

            _listOfItemBeli.Add(new ItemBeliProduk()); // add dummy objek

            InitGridControl(gridControl);
        }