protected void nav_PortalPajoheshi_ServerClick(object sender, EventArgs e) { bool tempAccess = false; var usercode = "976031"; dt_vaz = logBusiness.GetStIdVaz(Session[sessionNames.userID_StudentOstad].ToString()); //rwm_message.RadAlert("کاربر گرامی سامانه در حال بروزرسانی می باشد", null, 100, "پیام", ""); if (dt_vaz.Rows[0]["idvazkol"].ToString() != "1" && dt_vaz.Rows[0]["idvazkol"].ToString() != "15" && usercode != Session[sessionNames.userID_StudentOstad].ToString()) { rwm_message.RadAlert("شما به این آیتم دسترسی ندارید", null, 100, "پیام", ""); } else { Response.Redirect("~/University/Research/Pages/ResearchMainPage.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { dt_vaz = logBusiness.GetStIdVaz(Session[sessionNames.userID_StudentOstad].ToString()); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dtbedehi = new DataTable(); //double bedehi; //dtbedehi = GovahiBusiness.GetBedehkar(Session[sessionNames.userID_StudentOstad].ToString()); //bedehi = Convert.ToDouble((dtbedehi.Rows[0]["bedehi"].ToString())); //DataTable dtReg = new DataTable(); //dtReg = GovahiBusiness.GetStRegisterd(Session[sessionNames.userID_StudentOstad].ToString()); //DataTable dtnaghs = new DataTable(); ////dtnaghs = logBusiness.StHasNaghs(Session["user"].ToString()); DataTable dt = new DataTable(); dt = logBusiness.GetStIdVaz(Session[sessionNames.userID_StudentOstad].ToString()); //if (bedehi > 0) //{ // rwm_Validations.RadAlert("به علت بدهی شما دسترسی ندارید", null, 100, "خطا", "CallBackConfirm2"); //} // if (dtnaghs.Rows.Count > 0) //{ // rwm_Validations.RadAlert("به دلیل نقص پرونده شما دسترسی ندارید", null, 100, "خطا", "CallBackConfirm2"); //} //if (dtReg.Rows.Count == 0) //{ // rwm_Validations.RadAlert("به دلیل عدم ثبت نام در ترم جاری شما دسترسی ندارید", null, 100, "خطا", "CallBackConfirm2"); //} if (dt.Rows[0]["idvazkol"].ToString() == "7") { rwm_Validations.RadAlert("فارغ التحصیلان به این بخش دسترسی ندارند", null, 100, "خطا", "CallBackConfirm2"); } else { lblstcode.Text = Session[sessionNames.userID_StudentOstad].ToString(); RadListView2.DataSource = clsB.Show_Class_List(lblstcode.Text, ConfigurationManager.AppSettings["Term"].ToString()); RadListView2.DataBind(); foreach (RadListViewItem lvi in RadListView2.Items) { RadListView lstAsset = (RadListView)lvi.FindControl("RadListView3"); Label ClassCode = (Label)lvi.FindControl("ClassCode"); lstAsset.DataSource = assetB.Show_Asset_List_ByClassCode((ClassCode.Text), ConfigurationManager.AppSettings["Term"].ToString()); lstAsset.DataBind(); //var Merge = lvi.FindControl("Merge_code"); //if (Merge != null) // btn_Select.Visible = false; if (RadListView2.Items.Count > 0) { btn_Select.Visible = true; } } Session[sessionNames.userID_StudentOstad] = lblstcode.Text; } } }
protected void Page_Load(object sender, EventArgs e) { if (Session[sessionNames.userID_StudentOstad] == null) { Response.Redirect("login.aspx"); } StCard.Disabled = true; if (Session[sessionNames.userID_StudentOstad] == null) { Session["LogStatus"] = "0-0"; form1.Action = ConfigurationManager.AppSettings["LMS_link"].ToString(); LogStatus.Value = Session["LogStatus"].ToString(); ScriptManager.RegisterStartupScript(this, GetType(), "submitform", "submitform();", true); } //############## //############## //############## #region Evaluation /** * var isUserevaluated = _evaluationBusiness.IsUserevaluated(int.Parse(Session[sessionNames.userID_StudentOstad].ToString())); * var isQuestionExist = _evaluationBusiness.IsQuestionExist(); * var azmoonCallBack = _evaluationBusiness.CallAzmoonApi(int.Parse(Session[sessionNames.userID_StudentOstad].ToString())); * if (!isUserevaluated && isQuestionExist && azmoonCallBack) * { * ShowEvaluationQuestion(); * } */ #endregion #region UpdateStudent //var isStudentUpdate = _studentInfoBusiness.IsStudentUpdate(Session[sessionNames.userID_StudentOstad].ToString()); //if (!isStudentUpdate) //{ // ShowStudentInformation(); //} #endregion if (Session[sessionNames.userID_StudentOstad].ToString().Length < 14) { logBusiness.updatePortalStudentInfo(Session[sessionNames.userID_StudentOstad].ToString());//آپدیت اطلاعات دانشجو روی پرتال } dt_vaz = logBusiness.GetStIdVaz(Session[sessionNames.userID_StudentOstad].ToString()); a_LMS.Visible = true; Session["CountApprove"] = 1; DTO.CommonClasses.LoginDTO stInfo = logBusiness.Get_StInfo(Session[sessionNames.userID_StudentOstad].ToString()); usernamelbl.InnerText = stInfo.Name + " " + stInfo.LastName + " خوش آمدید "; //ISchedule myTask = new SendSmsSchedule(); //myTask.Run(); if (Request["__EVENTARGUMENT"] != null && Request["__EVENTARGUMENT"] == "info") { } /*-----------------Wallet---------------------*/ if (!IsPostBack) { var balance = _walletBusiness.GetStudentCurrentBalance(Session[sessionNames.userID_StudentOstad].ToString()); lblCurrentBalance.Text = String.Format("{0:n0}", balance) + "ريال"; } /*--------------------------------------------*/ }