Beispiel #1
0
        private void btnAddRx_Click(object sender, EventArgs e)
        {
            flpMenu.Visible = false;
            var _noreg    = lblNoreg.Text;
            var _kdokter  = lblkdokter.Text;
            var _kdfornas = 3;

            if (stKary.Text == "TRUE")
            {
                _kdfornas = 2;
            }

            var dt = new dataset.yakkumdbTableAdapters.resep_hTableAdapter();

            dt.UpsertQuery("RX" + _noreg + _kdokter,
                           _noreg,
                           NoRM.Text,
                           lblkdokter.Text,
                           lblKlinik.Text,
                           "DRAFT"
                           );

            // obat myuc = new obat(_noreg, _kdokter, _kdfornas, _curentRoles);
            // obat myuc = new obat(_noreg, _kdokter, _kdfornas, vc_no_rm);
            //myuc.Dock = DockStyle.Fill;
            //LoadPanel.Controls.Add(myuc);
            //myuc.Show();
        }
Beispiel #2
0
        private void UpsertResep()
        {
            var dt = new dataset.yakkumdbTableAdapters.resep_hTableAdapter();

            dt.UpsertQuery("RX" + _noreg + _kodedokter,
                           _noreg,
                           txtNoRM.Text,
                           _kodedokter,
                           _kodeKlinik,
                           "DRAFT"
                           );
        }