Exemplo n.º 1
0
        private void loadDanhMuc()
        {
            DM_DVQLYService dm_dviSer = new DM_DVQLYService();

            MTCSYT.SYS_Session session = (MTCSYT.SYS_Session)Session["SYS_Session"];
            int ma_dviqly = int.Parse(session.User.ma_dviqly + "");

            grdDVT.DataSource = db.BC_TonThat110ChiTiet(ma_dviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""));
            grdDVT.DataBind();

            var listTong = db.BC_TonThat110(ma_dviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""));

            grdBieuTong.DataSource = listTong;
            grdBieuTong.DataBind();

            grdTonHao.DataSource = listTong;
            grdTonHao.DataBind();

            grdTonThat.DataSource = listTong;
            grdTonThat.DataBind();
        }
Exemplo n.º 2
0
        private void loadtonthat()
        {
            MTCSYT.SYS_Session session = (MTCSYT.SYS_Session)Session["SYS_Session"];
            int ma_dviqly = int.Parse(session.User.ma_dviqly + "");
            var listTong  = db.BC_TonThat110(ma_dviqly, int.Parse(cmbThang.Value + ""), int.Parse(cmbNam.Value + ""), "110").ToList();

            if (listTong.Count > 0)
            {
                foreach (var a in listTong)
                {
                    lbTonThatBieuTong.Text = a.TiLeTonThat + "%";
                    lbBieu1.Text           = a.TiLeTonThatB1 + "%";
                    break;
                }
            }
            else
            {
                lbTonThatBieuTong.Text = "0%";
                lbBieu1.Text           = "0%";
            }
        }