Beispiel #1
0
        private void _DataBind()
        {
            SYS_Session session = (SYS_Session)Session["SYS_Session"];

            if (cmbMaTram.Value != null)
            {
                DataTable dt = db.SELECT_TTTT_DN_KEHOACH(session.User.ma_dviqlyDN, cmbMaTram.Value + "");

                DataRow[] dr = dt.Select("THANG=" + cmbThang.Value + " AND NAM =" + cmbNam.Value);
                if (dr.Length > 0)
                {
                    txtSanLuongKH.Text = dr[0]["KEHOACH"] + "";
                }
                else
                {
                    txtSanLuongKH.Text = "0";
                }
                grdTinhDetal.DataSource = dt;
                grdTinhDetal.DataBind();
            }
        }