Esempio n. 1
0
        private void insertCPPT()
        {
            var dt = new dataset.rmdbTableAdapters.RJ_cpptTableAdapter();

            dt.InsertQuery(
                _noreg,
                _nik,
                txtNoRM.Text,
                DateTime.Today.ToString("yyyy-MM-dd"),
                DateTime.Now.ToString("HH:mm:ss"),
                _kodeKlinik,
                _kodedokter,
                txtTensi.Text,
                txtNadi.Text,
                txtSuhu.Text,
                txtPernapasan.Text,
                txtSaturasi.Text,
                rtbRiwayatPenyakit.Text,
                rtbSubyektif.Text,
                rtbCatatan.Text,
                _kodedokter,
                "Dokter",
                txtBB.Text
                );
        }
Esempio n. 2
0
        private void loadData()
        {
            var dh = new dataset.rmdbTableAdapters.RJ_cpptTableAdapter();

            dh.FillByTop1Dokter(rmdb.RJ_cppt, _noreg);
            DataTable dt = dh.GetDataByTop1Dokter(_noreg);

            foreach (DataRow r in dt.Rows)
            {
                rtbSubyektif.Text       = r["Subyektif"].ToString();
                txtTensi.Text           = r["tensi"].ToString();
                txtSuhu.Text            = r["suhu"].ToString();
                txtBB.Text              = r["bb"].ToString();
                txtNadi.Text            = r["nadi"].ToString();
                txtPernapasan.Text      = r["pernapasan"].ToString();
                txtSaturasi.Text        = r["saturasi"].ToString();
                rtbRiwayatPenyakit.Text = r["riwayat_penyakit"].ToString();
                rtbCatatan.Text         = r["catatan"].ToString();
            }
        }