public void RfrhgrdDefenceMyMeetingsSeen()
        {
            //adobeConnectDTO.DomainAddress = "stc.iauec.ac.ir";
            adobeConnectDTO.DomainAddress = "vadafavc.iauec.ac.ir";

            ////admin
            //adobeConnectDTO.DomainLogin = "******";
            //adobeConnectDTO.DomainPassword = "******";
            adobeConnectDTO.DomainLogin    = "******";
            adobeConnectDTO.DomainPassword = "******";

            //curuser
            var userLogin = Session[sessionNames.userID_StudentOstad].ToString();

            //var UserPassWord = "******";
            adobeConnectDTO.SetValueDefult(userLogin);
            AdobeDefenceBusiness adobeDefenceBusiness = new AdobeDefenceBusiness();
            DataTable            dt = new DataTable();

            dt = adobeDefenceBusiness.MeetingPresentedSt(adobeConnectDTO);


            if (dt != null && dt.Rows.Count > 0)
            {
                grdSeenMeeting.DataSource = dt;
            }
            else
            {
                grdSeenMeeting.DataSource = string.Empty;
            }
        }
Ejemplo n.º 2
0
        public bool CheckRequest()
        {
            ////domain
            //adobeConnectDTO.DomainAddress = "stc.iauec.ac.ir";
            adobeConnectDTO.DomainAddress = "vadafavc.iauec.ac.ir";
            ////admin
            //adobeConnectDTO.DomainLogin = "******";
            //adobeConnectDTO.DomainPassword = "******";
            adobeConnectDTO.DomainLogin = "******";
            adobeConnectDTO.DomainLogin = "******";

            //curuser
            var userLogin = Session[sessionNames.userID_StudentOstad].ToString();

            //var UserPassWord = "******";
            adobeConnectDTO.SetValueDefult(userLogin);
            AdobeDefenceBusiness adobeDefenceBusiness = new AdobeDefenceBusiness();

            if (!adobeDefenceBusiness.CheckAcceptRequestDefence(adobeConnectDTO))
            {
                RadWindowManager1.RadAlert("دانشجو گرامی برای درخواست دفاع جدید باید حداقل سه دفاع از دانشجویان را به صورت کامل مشاهده نمایید", 500, 100, "خطا", "");
                return(false);
            }
            return(true);
        }
        public static string BtnLinkTesti(string userId, string userName)
        {
            LoginBusiness lgb = new LoginBusiness();

            var userAdobe = userId;

            DataTable dtuserRoles = lgb.Get_UserRoles(userAdobe);
            string    firtsName   = userName;
            string    lastName    = dtuserRoles.Rows[0]["RoleName"].ToString();

            adobeConnectDTO.SetValueDefult(userAdobe, passAdobeUser, firtsName, lastName);
            adobeConnectDTO.MeetingUrlPath = "/st99900999_13981107_9";//name.Text;
            return("http://" + adobeBusiness.OpenMeetingAsHost(adobeConnectDTO));
        }
        public static string BtnLinkTesti(string userId)
        {
            var userAdobe = userId;

            string firtsName = userName + "-";;     //stInfo.Name.Trim() == "" ? "نامشخص" : stInfo.Name;
            //string lastName = "کارشناس پژوهش-"; //stInfo.LastName.Trim() == "" ? "نامشخص" : stInfo.LastName;
            string lastName = RoleName;

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



            adobeConnectDTO.MeetingUrlPath = "/st99900999_13981107_9";   //name.Text;



            return("http://" + adobeBusiness.OpenMeetingAsHost(adobeConnectDTO));
        }
        public static void CreateMeeting(string stCode, string date, string startTime, int LengthMeeting, string stName, bool flagTotal = false, string requestId = "")
        {
            RequestHandler reqH = new RequestHandler();


            AdobeConnectDTO      adobeConnectDTO      = new AdobeConnectDTO();
            LoginBusiness        lgb                  = new LoginBusiness();
            AdobeDefenceBusiness adobeDefenceBusiness = new AdobeDefenceBusiness();
            LoginDTO             stInfo               = lgb.Get_StInfo(stCode.ToString());
            const string         pass                 = "******";
            string firtsName = (stInfo == null || stInfo.Name == null || stInfo.Name.Trim() == "") ? "نامشخص" : stInfo.Name;
            string lastName  = (stInfo == null || stInfo.LastName == null || stInfo.LastName.Trim() == "") ? "نامشخص" : stInfo.LastName;

            adobeConnectDTO.SetValueDefult(stCode.ToString(), pass, firtsName, lastName);
            adobeConnectDTO.MeetingName = ConvertorFarsi2Arabic.Parse_Farsi2_Arabic("  جلسه دفاع " + (stName != null && stName.Trim() != "" ? stName : ""));
            string link = adobeDefenceBusiness.CreateLinkMeeting(stCode.ToString(), date, startTime.ToString());


            adobeConnectDTO.MeetingUrlPath = link;
            PersianCalendar PC = new PersianCalendar();

            adobeConnectDTO.MeetingDataBegin = PC.ToDateTime(int.Parse(date.Substring(0, 4)), int.Parse(date.Substring(5, 2)), int.Parse(date.Substring(8, 2)), int.Parse(startTime), 0, 0, 0);
            adobeConnectDTO.MeetingDataEnd   = PC.ToDateTime(int.Parse(date.Substring(0, 4)), int.Parse(date.Substring(5, 2)), int.Parse(date.Substring(8, 2)), int.Parse(startTime) + LengthMeeting, 0, 0, 0);
            if (flagTotal)
            {
                adobeDefenceBusiness.CreateMeeting(adobeConnectDTO);
            }
            else
            {
                DataTable dtExistLink = reqH.GetMeetingDefencesAStudentByStcodeBusinesss(stCode.ToString());
                if (dtExistLink != null && dtExistLink.Rows.Count > 0 && dtExistLink.Rows[0]["resLink"].ToString().Trim() != "")
                {
                    //empty
                }
                else
                {
                    adobeDefenceBusiness.CreateMeeting(adobeConnectDTO);
                    reqH.UpdateRequest_LinkMeeting(requestId.Trim(), link);
                }
            }
        }
        protected void btnTesti_Click(object sender, EventArgs e)
        {
            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);
            adobeConnectDTO.MeetingUrlPath = "/st99900999_13981107_9";



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

            Response.Redirect(link);
        }
        public static bool CreateAllMeetingNotExist()
        {
            AdobeConnectDTO adobeConnectDTO = new AdobeConnectDTO();

            adobeConnectDTO.SetValueDefult();
            RequestHandler _requestHandler = new RequestHandler();
            DataTable      dtMeetingsOnlineDb;

            dtMeetingsOnlineDb = _requestHandler.GetMeetingTotalDefencesbyCollegeIdBusiness();
            DataTable dtMeetingsAdobe;

            dtMeetingsAdobe = GetMeetingsDefence(adobeConnectDTO);

            foreach (DataRow rowDb in dtMeetingsOnlineDb.Rows)
            {
                if (rowDb["resLink"].ToString().Trim().ToLower().Trim('/') != "")
                {
                    bool flagExist = false;
                    foreach (DataRow rowAdobe in dtMeetingsAdobe.Rows)
                    {
                        if (rowDb["resLink"].ToString().Trim().ToLower().Trim('/') == rowAdobe["MeetingUrl"].ToString().Trim().ToLower().Trim('/'))
                        {
                            flagExist = true;
                            break;
                        }
                    }

                    if (flagExist == false)
                    {
                        CreateMeeting(rowDb["studentcode"].ToString(), rowDb["RequestDate"].ToString(),
                                      rowDb["startTime"].ToString().Substring(0, 2), 1, rowDb["StudentFullName"].ToString(), true);
                    }
                }
            }

            return(true);
        }
        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);
        }
Ejemplo n.º 9
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);
        }