Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = "";
            if(Session["ThamChieu"]!= null)
                id = Session["ThamChieu"].ToString();

            HttpCookie ck = Request.Cookies["MaGDV"];
            if (ck == null)
            {
                linklogin.Visible = true;

            }
            else
            {
                DataTable dt = new DataTable();
                int idgdv = int.Parse(Request.Cookies["MaGDV"].Value);
                dt = gdvdao.LayTenvaChucVu(idgdv);
                if (dt.Rows.Count > 0)
                {
                    DataRow dr = dt.Rows[0];
                    string name = dr[0].ToString();
                    lblName.Text = name;
                    string chucvu = dr[1].ToString();
                    lblChucVu.Text = chucvu;
                }
                linklogin.Visible = false;

                ClaimDAO dao = new ClaimDAO();
                claimName = dao.getClaimField(id, "TenClaim").ToString();
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["claimID"] != null)
                mClaimID = Request.QueryString["claimID"];

            if (mClaimID.Trim() != "")
            {
                if (!IsPostBack)
                {
                    //mClaimID = Session["ThamChieu"].ToString();
                    string done = dailyDao.KiemTraTinhTrang(mClaimID, "PR");
                    if (done != null && done.ToLower() == "yes")
                    {
                        isLock = true;
                    }
                    loadData();
                    ClaimDAO dao = new ClaimDAO();
                    claimName = dao.getClaimField(mClaimID, "TenClaim").ToString();
                }
            }
        }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["ThamChieu"] != null)
     {
         mClaimID = Session["ThamChieu"].ToString();
         loadData();
         ClaimDAO dao = new ClaimDAO();
         claimName = dao.getClaimField(mClaimID, "TenClaim").ToString();
     }
 }