Exemplo n.º 1
0
 public FrPengeluaranAdd(int Id, int idJadwal)
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
     txtId.Text = Id.ToString();
     txtIdJadwal.Text = idJadwal.ToString();
 }
Exemplo n.º 2
0
 public FrPendapatanDatangAdd(int Id, int IdJadwal, string Kode)
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
     txtId.Text = Id.ToString();
     txtIdJadwal.Text = IdJadwal.ToString();
     txtKode.Text = Kode;
 }
Exemplo n.º 3
0
        public FrPrintReceipt(int Id)
        {
            InitializeComponent();
            context = new POTJDataContext(DbConnection.GetConnection());
            _Id = Id;

            var query = from a in context.TRX_HISTORI_TRANSAKSIs
                        join b in context.TRX_PENJUALANs on a.ID_PENJUALAN equals b.ID_PENJUALAN
                        join c in context.ADM_JADWALs on b.ID_JADWAL equals  c.ID_JADWAL
                        where a.ID_TRANSAKSI == _Id
                        select new {c.CARTER};
            foreach (var a in query)
            {
                Carter = Convert.ToBoolean(a.CARTER);
            }
        }
Exemplo n.º 4
0
 public FrKendaraan(int Id)
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
     txtId.Text = Id.ToString();
 }
Exemplo n.º 5
0
 public FrLogin()
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
 }
Exemplo n.º 6
0
 public FrTrx()
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
     IsFirstTime = true;
 }
Exemplo n.º 7
0
 public FrPembatalanAdd(int Id)
 {
     InitializeComponent();
     context = new POTJDataContext(DbConnection.GetConnection());
     txtId.Text = Id.ToString();
 }