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

            Assert.AreEqual("201701180010", lastNota);

            lastNota = _bll.GetLastNota();
            Assert.AreEqual("201701180011", lastNota);
        }
        public FrmEntryPenjualanProduk(string header, IJualProdukBll 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;

            _listOfItemJual.Add(new ItemJualProduk()); // add dummy objek

            InitGridControl(gridControl);
        }