Пример #1
0
        public void GetLastNotaTest()
        {
            var lastNota = _bll.GetLastNota();

            Assert.AreEqual("201701260006", lastNota);

            lastNota = _bll.GetLastNota();
            Assert.AreEqual("201701260007", lastNota);
        }
Пример #2
0
        public FrmEntryReturPenjualanProduk(string header, IReturJualProdukBll 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;

            _listOfItemRetur.Add(new ItemReturJualProduk()); // add dummy objek

            InitGridControl(gridControl);
        }