public FrmPenjualan(string header, Pengguna pengguna, string menuId) { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); this.Text = header; this._log = MainProgram.log; this._bll = new JualProdukBll(_log); this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; this._settingPort = MainProgram.settingPort; this._settingCustomerDisplay = MainProgram.settingCustomerDisplay; _currentNota = this._bll.GetLastNota(); _listOfItemJual.Add(new ItemJualProduk()); // add dummy objek InitGridControl(gridControl); SetStatusBar(); ShowInfoTanggal(_currentNota); txtKasir.Text = this._pengguna.nama_pengguna; DisplayKalimatPembuka(); tmrDisplayKalimatPenutup.Interval = _settingCustomerDisplay.delay_display_closing_sentence * 1000; }
public FrmEntryPenjualanProduk(string header, JualProduk jual, IJualProdukBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._bll = bll; this._jual = jual; this._customer = jual.Customer; this._log = MainProgram.log; this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; txtNota.Text = this._jual.nota; dtpTanggal.Value = (DateTime)this._jual.tanggal; dtpTanggalTempo.Value = dtpTanggal.Value; chkCetakNotaJual.Checked = this._pengaturanUmum.is_auto_print; if (!this._jual.tanggal_tempo.IsNull()) { rdoKredit.Checked = true; dtpTanggalTempo.Value = (DateTime)this._jual.tanggal_tempo; } txtCustomer.Text = this._customer.nama_customer; txtKeterangan.Text = this._jual.keterangan; txtOngkosKirim.Text = this._jual.ongkos_kirim.ToString(); txtDiskon.Text = this._jual.diskon.ToString(); txtPPN.Text = this._jual.ppn.ToString(); // simpan data lama _listOfItemJualOld.Clear(); foreach (var item in this._jual.item_jual) { _listOfItemJualOld.Add(new ItemJualProduk { item_jual_id = item.item_jual_id, jumlah = item.jumlah, harga_jual = item.harga_jual }); } _listOfItemJual = this._jual.item_jual; _listOfItemJual.Add(new ItemJualProduk()); // add dummy objek InitGridControl(gridControl); RefreshTotal(); }
public FrmEntryPembelianProduk(string header, BeliProduk beli, IBeliProdukBll bll) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._bll = bll; this._beli = beli; this._supplier = beli.Supplier; this._log = MainProgram.log; this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; txtNota.Text = this._beli.nota; dtpTanggal.Value = (DateTime)this._beli.tanggal; dtpTanggalTempo.Value = dtpTanggal.Value; chkCetakNotaBeli.Checked = this._pengaturanUmum.is_auto_print; if (!this._beli.tanggal_tempo.IsNull()) { rdoKredit.Checked = true; dtpTanggalTempo.Value = (DateTime)this._beli.tanggal_tempo; } txtSupplier.Text = this._supplier.nama_supplier; txtKeterangan.Text = this._beli.keterangan; txtDiskon.Text = this._beli.diskon.ToString(); txtPPN.Text = this._beli.ppn.ToString(); // simpan data lama _listOfItemBeliOld.Clear(); foreach (var item in this._beli.item_beli) { _listOfItemBeliOld.Add(new ItemBeliProduk { item_beli_produk_id = item.item_beli_produk_id, jumlah = item.jumlah, harga = item.harga }); } _listOfItemBeli = this._beli.item_beli; _listOfItemBeli.Add(new ItemBeliProduk()); // add dummy objek InitGridControl(gridControl); RefreshTotal(); }
public FrmEntryCustomeCode(string header, PengaturanUmum pengaturanUmum, bool isAutocutCode) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._pengaturanUmum = pengaturanUmum; this._isAutocutCode = isAutocutCode; txtCustomeCode.Text = isAutocutCode ? this._pengaturanUmum.autocut_code : this._pengaturanUmum.open_cash_drawer_code; }
public FrmPengaturanUmum(string header, PengaturanUmum pengaturanUmum) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._pengaturanUmum = pengaturanUmum; LoadPrinter(this._pengaturanUmum.nama_printer); chkCetakOtomatis.Checked = this._pengaturanUmum.is_auto_print; }
public FrmLapPenjualan(string header, Pengguna pengguna, PengaturanUmum pengaturanUmum) { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); this._log = MainProgram.log; this._pengguna = pengguna; this._pengaturanUmum = pengaturanUmum; this.Text = header; this.lblHeader.Text = header; txtOutput.Text = GenerateReport(); }
public FrmPengaturanUmum(string header, PengaturanUmum pengaturanUmum) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._pengaturanUmum = pengaturanUmum; SetInfoPrinter(); LoadHeaderNota(); LoadFooterNota(); }
public FrmEntryLabelNota(string header, Customer customer, JualProduk jual) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); this._pengaturanUmum = MainProgram.pengaturanUmum; this._labelAlamatKirim = new LabelAlamatKirim(); this._customer = customer; this._jual = jual; SetLabelNota(); }
public FrmLookupNota(string header, IList <JualProduk> listOfJual) : base() { InitializeComponent(); base.SetHeader(header); this._pengaturanUmum = MainProgram.pengaturanUmum; this._log = MainProgram.log; this._listOfJual = listOfJual; InitGridList(); base.SetActiveBtnPilih(listOfJual.Count > 0); base.SetTitleBtnPilih("F10 Cetak"); }
public FrmPreviewLabelNotaPenjualan(string header, JualProduk jual) : this() { this.Text = header; this.lblHeader.Text = header; this._log = MainProgram.log; this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; this._jual = jual; this._customer = this._jual.Customer; SetLabelNota(); btnPreviewNota_Click(btnPreviewNota, new EventArgs()); }
public FrmPreviewNotaPenjualan(string header, JualProduk jual) : this() { this.Text = header; this.lblHeader.Text = header; this._log = MainProgram.log; this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; this._jual = jual; this._customer = this._jual.Customer; chkIsSdac.Checked = this._jual.is_sdac; chkIsSdac_CheckedChanged(chkIsSdac, new EventArgs()); btnPreviewNota_Click(btnPreviewNota, new EventArgs()); }
public FrmPengaturanUmum(string header, PengaturanUmum pengaturanUmum, SettingPort settingPort, SettingCustomerDisplay settingCustomerDisplay) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.SetButtonSelesaiToBatal(); this._pengaturanUmum = pengaturanUmum; this._settingPort = settingPort; this._settingCustomerDisplay = settingCustomerDisplay; SetInfoPrinter(); SetInfoPort(_settingPort.portNumber); SetInfoCustomerDisplay(); LoadHeaderNota(); LoadFooterNota(); }
public FrmListPenjualanProdukWithNavigation(string header, Pengguna pengguna, string menuId) : base() { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); base.SetHeader(header); base.WindowState = FormWindowState.Maximized; _pageSize = MainProgram.pageSize; _log = MainProgram.log; _listOfWilayah = MainProgram.ListOfWilayah; _bll = new JualProdukBll(_log); _pengguna = pengguna; _pengaturanUmum = MainProgram.pengaturanUmum; _menuId = menuId; // set hak akses untuk SELECT var role = _pengguna.GetRoleByMenuAndGrant(_menuId, GrantState.SELECT); if (role != null) { if (role.is_grant) { this.updLimit.Value = _pageSize; LoadData(filterRangeTanggal.TanggalMulai, filterRangeTanggal.TanggalSelesai); } txtNamaCustomer.Enabled = role.is_grant; btnCari.Enabled = role.is_grant; filterRangeTanggal.Enabled = role.is_grant; } InitGridList(); // set hak akses selain SELECT (TAMBAH, PERBAIKI dan HAPUS) RolePrivilegeHelper.SetHakAkses(this, _pengguna, _menuId, _listOfJual.Count); }
public FrmPenjualan(string header, Pengguna pengguna, string menuId) { InitializeComponent(); ColorManagerHelper.SetTheme(this, this); this.Text = header; this._log = MainProgram.log; this._bll = new JualProdukBll(_log); this._pengguna = MainProgram.pengguna; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; _currentNota = this._bll.GetLastNota(); _listOfItemJual.Add(new ItemJualProduk()); // add dummy objek InitGridControl(gridControl); SetStatusBar(); ShowInfoTanggal(_currentNota); txtKasir.Text = this._pengguna.nama_pengguna; }
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; this._profil = MainProgram.profil; this._pengaturanUmum = MainProgram.pengaturanUmum; txtNota.Text = bll.GetLastNota(); dtpTanggal.Value = DateTime.Today; dtpTanggalTempo.Value = dtpTanggal.Value; chkCetakNotaJual.Checked = this._pengaturanUmum.is_auto_print; _listOfItemJual.Add(new ItemJualProduk()); // add dummy objek InitGridControl(gridControl); }