/// <summary> /// Prints the antrian. /// </summary> /// <param name="layananid">The layananid.</param> private void PrintNomorAntrian(string layananid) { string session = EnvironmentRepository.GetLocalSession(); var nomor = new Kasir { LayananID = layananid, Session = session }; var db = new KasirBase(); int nResult = db.SaveByDml(nomor); if (nResult == 1) { Kasir rs = db.GetById(session); try { string nocetak = string.Format("{0}-{1}", rs.LayananID, rs.LayananNomor.ToString().Trim().PadLeft(3, '0')); /* --------------------------- * get copies configuration * --------------------------- */ Layanan layanan = new LayananBase().GetById(layananid); try { switch (Settings.Default.PrintingLayout) { case 0: // ESC QWPrinting.PrintWithESC(nocetak, "KASIR-FOTO-WAWANCARA", layanan.Copies, this); break; case 1: // CR QWPrinting.PrintWithCRLayout(nocetak, "KASIR-FOTO-WAWANCARA", layanan.Copies, this); break; } } catch (NullReferenceException) { } } catch (NullReferenceException) { } } }
/// <summary> /// Ts the base. /// </summary> private void TBase() { _dbBerkas = new BerkasBase(); _dbKasir = new KasirBase(); }