protected void lnkLinkDefence_Click(object sender, EventArgs e)
        {
            System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)sender;
            GridDataItem item  = (GridDataItem)btn.NamingContainer;
            Label        vazId = (Label)item.FindControl("lblVazId");


            if (vazId.Text == "1")
            {
                LoginBusiness lgb = new LoginBusiness();

                var      userAdobe = Session[sessionNames.userID_StudentOstad].ToString();
                LoginDTO stInfo    = lgb.Get_StInfo(Session[sessionNames.userID_StudentOstad].ToString());
                string   firtsName = stInfo.Name.Trim() == "" ? "نامشخص" : stInfo.Name;
                string   lastName  = stInfo.LastName.Trim() == "" ? "نامشخص" : stInfo.LastName;
                adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName);


                var Link = item.FindControl("resLink") as Label;

                adobeConnectDTO.MeetingUrlPath = "/" + Link.Text.Replace("/", "");//name.Text;
            }
            else
            {
                RadWindowManager1.RadAlert("جلسه دفاع در حال حاضر در دسترس نیست", 500, 100, "خطا", "");
                return;
            }
            stocode = Session[sessionNames.userID_StudentOstad].ToString();
            var    lblStcode = item.FindControl("lblstudentcode") as Label;
            string link      = "";

            if (lblStcode.Text == stocode)
            {
                link = "http://" + adobeBusiness.OpenMeetingAsPresnter(adobeConnectDTO);
            }
            else
            {
                link = "http://" + adobeBusiness.OpenMeetingAsView(adobeConnectDTO);
            }

            Response.Redirect(link);
        }
        protected void lnkLinkDefence_Click(object sender, EventArgs e)
        {
            System.Web.UI.WebControls.Button btn = (System.Web.UI.WebControls.Button)sender;
            GridDataItem item  = (GridDataItem)btn.NamingContainer;
            Label        vazId = (Label)item.FindControl("lblVazId");


            if (vazId.Text == "1")
            {
                LoginBusiness          lgb = new LoginBusiness();
                FacultyReportsBusiness facultyReportsBusiness = new FacultyReportsBusiness();
                var       userAdobe = "200" + Session[sessionNames.userID_StudentOstad].ToString();
                DataTable dtHR      = facultyReportsBusiness.GetOstadInfoFromHR(Convert.ToInt32(Session[sessionNames.userID_StudentOstad]));
                if (dtHR != null && dtHR.Rows.Count > 0)
                {
                    string firtsName = dtHR.Rows[0]["name"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["name"].ToString().Trim();
                    string lastName  = dtHR.Rows[0]["family"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["family"].ToString().Trim();

                    adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName);


                    var Link = item.FindControl("resLink") as Label;

                    adobeConnectDTO.MeetingUrlPath = "/" + Link.Text.Replace("/", "");//name.Text;
                }
            }
            else
            {
                RadWindowManager1.RadAlert("جلسه دفاع در حال حاضر در دسترس نیست", 500, 100, "خطا", "");
                return;
            }


            string link = "http://" + adobeBusiness.OpenMeetingAsPresnter(adobeConnectDTO);

            Response.Redirect(link);
        }
Beispiel #3
0
        protected void btnTesti_Click(object sender, EventArgs e)
        {
            LoginBusiness          lgb = new LoginBusiness();
            FacultyReportsBusiness facultyReportsBusiness = new FacultyReportsBusiness();
            var       userAdobe = "200" + Session[sessionNames.userID_StudentOstad].ToString();
            DataTable dtHR      = facultyReportsBusiness.GetOstadInfoFromHR(Convert.ToInt32(Session[sessionNames.userID_StudentOstad]));

            if (dtHR != null && dtHR.Rows.Count > 0)
            {
                string firtsName = dtHR.Rows[0]["name"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["name"].ToString().Trim();
                string lastName  = dtHR.Rows[0]["family"].ToString().Trim() == "" ? "نامشخص" : dtHR.Rows[0]["family"].ToString().Trim();

                adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName);
                adobeConnectDTO.MeetingUrlPath = "/st99900999_13981107_9";
            }

            string link = "http://" + adobeBusiness.OpenMeetingAsPresnter(adobeConnectDTO);

            Response.Redirect(link);
        }