protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (!memVal.IsSigned()) { Response.Redirect(ResolveUrl("~")); } int Id = 0; if (!string.IsNullOrEmpty(Request["AuditReportId"])) { int.TryParse(Request["AuditReportId"].Replace(",", ""), out Id); } ReportId = Id; int activeId = 0; if (!string.IsNullOrEmpty(Request["activetab"])) { int.TryParse(Request["activetab"].Replace(",", ""), out activeId); } activeTab = activeId; Tool.BindYear(ddlAuditYear, "Chọn năm", ""); Tool.BindYear(ddlDataYear, "Chọn năm", ""); if (ReportId > 0) { BindReportInfo(); BindEquipment(); BindReportFile(); BindLog(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (memVal.IsSigned()) { BindData(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //if (Request.QueryString["RetUrl"] != null && Request.QueryString["RetUrl"] != "") // ReturnUrl = Request.QueryString["RetUrl"]; //HttpCookie cookie = Request.Cookies["UserInfor_EVNTIT"]; //if (m_UserValidation.IsSigned()) //{ // if (ReturnUrl != "") // Response.Redirect("~" + ReturnUrl); // else // Response.Redirect("~"); //} //else //{ // string err = Request.QueryString.Get("error"); // if (err == "1") // error.Text = Resources.resource.Login_Err; // if (err == "2") // error.Text = Resources.resource.Login_Err_Exit; //} if (memberVal.IsSigned()) { //error.Text = "<div class='alert alert-sm alert-danger bg-gradient'>Đã đăng nhập thành công</div>"; plUser.Visible = true; plLogin.Visible = false; lblTitle.Text = "Thông tin doanh nghiệp"; ReportModels reportModels = new ReportModels(); var eInfo = reportModels.DE_Enterprise.First(o => o.Id == memberVal.OrgId); if (string.IsNullOrEmpty(eInfo.TaxCode)) { ltAccountName.Text = memberVal.UserName; } else { ltAccountName.Text = eInfo.TaxCode; } BindUserName(memberVal.OrgId); } else { plUser.Visible = false; plLogin.Visible = true; lblTitle.Text = "Doanh nghiệp đăng nhập"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindArea(); BindProvince(); BindDistrict(); BindDistrictReporter(); if (memVal.IsSigned()) { BindData(); BindImportantYear(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (memVal.IsSigned()) { Tool.BindYear(ddlAuditYear, "Chọn năm", ""); Tool.BindYear(ddlDataYear, "Chọn năm", ""); BindData(); } else { Response.Redirect(ResolveUrl("~")); } } }