protected void btnLuc_Click(object sender, EventArgs e)
        {
            MTCSYT.SYS_Session session = (MTCSYT.SYS_Session)Session["SYS_Session"];
            string             madvi   = session.User.ma_dviqlyDN;
            var    kh0    = db.SELECT_TTTT_PT_BT_KHANG(madvi, 0);
            int    t0     = kh0.Rows.Count;
            string btstr0 = (txtTyLeBT.Text + "").Replace(".", ",");

            if (btstr0 != "")
            {
                float bt = float.Parse(btstr0);

                if (t0 == 0)
                {
                    db.INSERT_TTTT_PT_BT_KHANG(madvi, bt, 0);
                }
                else
                {
                    db.UPDATE_TTTT_PT_BT_KHANG(madvi, bt, 0);
                }
            }
            var    kh1    = db.SELECT_TTTT_PT_BT_KHANG(madvi, 1);
            int    t1     = kh1.Rows.Count;
            string btstr1 = (txtTyLeBTram.Text + "").Replace(".", ",");

            if (btstr1 != "")
            {
                float bt = float.Parse(btstr1);

                if (t1 == 0)
                {
                    db.INSERT_TTTT_PT_BT_KHANG(madvi, bt, 1);
                }
                else
                {
                    db.UPDATE_TTTT_PT_BT_KHANG(madvi, bt, 1);
                }
            }
            var    kh2    = db.SELECT_TTTT_PT_BT_KHANG(madvi, 2);
            int    t2     = kh2.Rows.Count;
            string btstr2 = (txtTyLeTT.Text + "").Replace(".", ",");

            if (btstr2 != "")
            {
                float bt = float.Parse(btstr2);

                if (t2 == 0)
                {
                    db.INSERT_TTTT_PT_BT_KHANG(madvi, bt, 2);
                }
                else
                {
                    db.UPDATE_TTTT_PT_BT_KHANG(madvi, bt, 2);
                }
            }
            var kh3 = db.SELECT_TTTT_PT_BT_KHANG(madvi, 3);

            int    t3     = kh3.Rows.Count;
            string btstr3 = (txtSL.Text + "").Replace(".", ",");

            if (btstr3 != "")
            {
                float bt = float.Parse(btstr3);

                if (t3 == 0)
                {
                    db.INSERT_TTTT_PT_BT_KHANG(madvi, bt, 3);
                }
                else
                {
                    db.UPDATE_TTTT_PT_BT_KHANG(madvi, bt, 3);
                }
            }

            TyLEBT();
            TyLEBTram();
            SLTram();
            _DataBind();
        }