Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Title = "Meeting Invite";
            if (Session["User"] != null)
            {
                meetid = Request.QueryString.Get("id");
                mlid   = Request.QueryString.Get("ml");
                Dataservice.DatamanagementClient findata = new Dataservice.DatamanagementClient();
                findata.Open();
                object[]   getmeetinginfo       = findata.getmeetinginformation(meetid);
                object[]   getmlinfo            = findata.getmeetinglink(mlid);
                Object[][] getmeetingattendance = findata.getmeetingattendance(meetid);
                if (Boolean.Parse((string)getmlinfo[3]) == true)
                {
                    btnaccept.Visible = false;
                }

                if (getmeetinginfo != null)
                {
                    object[] gerporjectdetails = findata.getprojectdetails((string)getmeetinginfo[4]);
                    object[] getuserinformaion = findata.getspecificuserinformation((string)getmeetinginfo[5]);
                    txtprojname.Value           = (string)gerporjectdetails[1];
                    txtptojectleaderuname.Value = (string)getuserinformaion[0];
                    txtptojectleaderemail.Value = (string)getuserinformaion[1];
                    txtmeett.Value    = (string)getmeetinginfo[1];
                    txtmeetd.Value    = (string)getmeetinginfo[2];
                    txtmeetdate.Value = (string)getmeetinginfo[3];

                    if (getmeetingattendance != null)
                    {
                        for (int i = 0; i < getmeetingattendance.Length; i++)
                        {
                            htmldata += "<li class=\"collection-item\"><span style=\"font-weight:bold\">Username: "******"&nbsp&nbsp&nbsp      Attending: " + (string)getmeetingattendance[i][1] + "</span></li>";
                        }
                    }

                    else
                    {
                        htmldata += "<li class=\"collection-item\"><span style=\"font-weight:bold\">No memebrs yet</span></li>";
                    }


                    membersattending.InnerHtml += htmldata;
                }



                findata.Close();
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
        }