コード例 #1
0
        //protected void LCOApprovals_RadTabStrip_TabClick(object sender, RadTabStripEventArgs e)
        //{
        //    switch (((RadTabStrip)sender).SelectedTab.Text)
        //    {
        //        case "Approved":
        //            RadListBoxApprovalsApproved.Visible = true;
        //            RadListBoxApprovalsPending.Visible = false;
        //            break;
        //        case "Pending":
        //            RadListBoxApprovalsApproved.Visible = false;
        //            RadListBoxApprovalsPending.Visible = true;
        //            break;
        //        default:
        //            break;
        //    }
        //}

        private void BuildLists()
        {
            foreach (DataRow lea in Base.Classes.LCO.LoadLEAsByCourseID(_lco.CourseID).Rows)
            {
                RadListBoxItem ri = new RadListBoxItem();
                if (DataIntegrity.ConvertToBool(lea["IsApproved"]))
                {
                    RadListBoxApprovalsApproved.Items.Add(ri);
                  
                }
                else
                {
                    RadListBoxApprovalsPending.Items.Add(ri);
                }

                HyperLink lnk = (HyperLink)ri.FindControl("lnkLEA");
                lnk.Text = lea["LEAName"].ToString() + " - " + lea["IMCName"].ToString();

                var link = ResolveUrl("~/SessionBridge.aspx?ReturnURL=") +
                    System.Web.HttpUtility.UrlEncode("display.asp?fo=basic%20display&rm=page&key=7266&xID=" + DataIntegrity.ConvertToInt(lea["DocID"]) + "&??hideButtons=Save And Return,Delete,copydocument,cancel&??appName=E3");

                if (UserHasPermission(Permission.Hyperlink_LEA_Approvals))
                {
                    lnk.NavigateUrl = link;
                }
                else
                {
                    lnk.ForeColor = System.Drawing.Color.Black;
                }
            }
        }
コード例 #2
0
        protected void BuildPendingLCO()
        {
            lbxList.Items.Clear();
            foreach(var course in _lcos)
            {
                if (course.ProgramArea == cmbSubject.SelectedItem.Text || cmbSubject.SelectedItem.Value.ToLower() == "all")
                {
                    if (course.LEAName == cmbLEA.SelectedItem.Text || cmbLEA.SelectedItem.Value.ToLower() == "all")
                    {
                        RadListBoxItem radItem = new RadListBoxItem();
                        lbxList.Items.Add(radItem);

                        Image imgProofed = (Image)radItem.FindControl("testImg");
                        imgProofed.ImageUrl = "~/Images/editable.png";

                        HyperLink hlkList = (HyperLink)radItem.FindControl("lnkListCourseName");
                        hlkList.Text = course.Course;
                        hlkList.NavigateUrl = "~/Record/CourseObject.aspx?xID=" + Encryption.EncryptInt(course.CourseID);
                        Label lblLEA = (Label)radItem.FindControl("lblLEA");
                        if (_level == EntityTypes.RegionalCoordinator || _level == EntityTypes.SectionChief)
                        {
                            //Label lblLEA = (Label)radItem.FindControl("lblLEA");
                            lblLEA.Text = "LEA:"+" "+ course.LEAName;
                        }
                        else
                        {
                            //Panel pnlLEA = (Panel)radItem.FindControl("listLine2List");
                            //pnlLEA.Visible = false;
                            lblLEA.Visible = false;
                        }
                        Label lblDateEdit = (Label)radItem.FindControl("lblDateEdited");
                        lblDateEdit.Text = "Last Edited: "+" "+course.DateEdited;
                    }                
                }
            }

            divListNoResults.Visible = (lbxList.Items.Count < 1);
            lbxList.Visible = (lbxList.Items.Count > 0);
        }
コード例 #3
0
        protected void BuildPendingLCO()
        {
            lbxList.Items.Clear();
            foreach (var course in _alllcos)
            {
                 if (course.Grade == cmbGrade.SelectedItem.Text || cmbGrade.SelectedItem.Value.ToLower() == "all")
                {
                    if (course.ProgramArea == cmbSubject.SelectedItem.Text || cmbSubject.SelectedItem.Value.ToLower() == "all")
                    {
                        if (course.LEAName == cmbLEA.SelectedItem.Text || cmbLEA.SelectedItem.Value.ToLower() == "all")
                        {
                            RadListBoxItem radItem = new RadListBoxItem();
                            lbxList.Items.Add(radItem);

                            HyperLink hlkList = (HyperLink)radItem.FindControl("lnkListCourseName");
                            hlkList.Text = (course.CourseNumber != "0" && course.CourseNumber != "") ? course.CourseNumber + " - " + course.Course : course.Course;
                            hlkList.NavigateUrl = "~/Record/CourseObject.aspx?xID=" + Encryption.EncryptInt(course.CourseID);
                        }

                    }
                }
            }

            divListNoResults.Visible = (lbxList.Items.Count < 1);
            lbxList.Visible = (lbxList.Items.Count > 0);
        }
コード例 #4
0
        protected void BuildPendingLCO()
        {
            lbxList.Items.Clear();
            foreach (var course in _lcos)
            {
                if (course.ProgramArea == cmbSubject.SelectedItem.Text || cmbSubject.SelectedItem.Value.ToLower() == "all")
                {
                    if (course.Status == cmbStatus.SelectedItem.Text || cmbStatus.SelectedItem.Value.ToLower() == "all")
                    {
                        if (course.LEAName == cmbLEA.SelectedItem.Text || cmbLEA.SelectedItem.Value.ToLower() == "all")
                        {
                            
                                RadListBoxItem radItem = new RadListBoxItem();
                                lbxList.Items.Add(radItem);

                                Image imgProofed = (Image)radItem.FindControl("testImg");
                                imgProofed.ImageUrl = "~/Images/under_review.png";

                                HyperLink hlkList = (HyperLink)radItem.FindControl("lnkListCourseName");
                                hlkList.Text = course.Course;
                                hlkList.NavigateUrl = "~/Record/CourseObject.aspx?xID=" + Encryption.EncryptInt(course.CourseID);

                                if (_level == EntityTypes.RegionalCoordinator || _level == EntityTypes.SectionChief)
                                {
                                    Label lblLEA = (Label)radItem.FindControl("lblLEA");
                                    lblLEA.Text = "LEA: " + course.LEAName;
                                }
                                else
                                {
                                    ((Label)radItem.FindControl("lblLEA")).Visible = false;
                                }

                                Label lblRequestDate = (Label)radItem.FindControl("lblRequestDate");
                                if (!course.IsApproved && !course.IsSectionRequested && course.IsRegionRequested)
                                {
                                    lblRequestDate.Text = "Region Approval Requested: " + course.DateRCRequested;
                                }
                                else if (!course.IsApproved && course.IsSectionRequested && course.IsRegionRequested)
                                {
                                    lblRequestDate.Text = "State Approval Requested: " + course.DateSCRequested;
                                }
                           
                        }              
                    }
                }
            }

            divListNoResults.Visible = (lbxList.Items.Count < 1);
            lbxList.Visible = (lbxList.Items.Count > 0);
        }
コード例 #5
0
        private void ApplyRadListBoxItemState(RadListBoxItem item, RadListBoxItemState state)
        {
            Debug.Assert(item != null);
            Debug.Assert(state != null);

            var descriptionLabel = (Label)item.FindControl(DescriptionLableName);
            Debug.Assert(descriptionLabel != null);
            ApplyLableState(descriptionLabel, state.DataRowViewState.DescriptionLabelState);

            var distractorLabel = (Label)item.FindControl(DistractorLabelName);
            Debug.Assert(distractorLabel != null);
            ApplyLableState(distractorLabel, state.DataRowViewState.DistractorLabelState);

            var valueLabel = (Label)item.FindControl(ValueLabelName);
            Debug.Assert(valueLabel != null);
            ApplyLableState(valueLabel, state.DataRowViewState.ValueLableState);
        }
コード例 #6
0
        protected void BuildApprovedLCO()
        {
            lbxList.Items.Clear();
            foreach (var course in _lcos)
            {
                if (course.ProgramArea == cmbSubject.SelectedItem.Text || cmbSubject.SelectedItem == null || cmbSubject.SelectedItem.Value.ToLower() == "all")
                {
                    if (course.LEAName == cmbLEA.SelectedItem.Text || cmbLEA.SelectedItem == null || cmbLEA.SelectedItem.Value.ToLower() == "all")
                    {
                        RadListBoxItem radItem = new RadListBoxItem();
                        lbxList.Items.Add(radItem);

                        Image imgProofed = (Image)radItem.FindControl("testImg");
                        imgProofed.ImageUrl = "~/Images/proofed.png";

                        HyperLink hlkList = (HyperLink)radItem.FindControl("lnkListCourseName");
                        hlkList.Text = (course.CourseNumber != "0" && course.CourseNumber != "") ? course.CourseNumber + " " + course.Course : course.Course;
                        hlkList.NavigateUrl = "~/Record/CourseObject.aspx?xID=" + Encryption.EncryptInt(course.CourseID);

                        if (_level == EntityTypes.RegionalCoordinator || _level == EntityTypes.SectionChief)
                        {
                            Label lblLEA = (Label)radItem.FindControl("lblLEA");
                            lblLEA.Text = "LEA: " + course.LEAName;
                        }

                        Label lblApprovedDate = (Label)radItem.FindControl("lblApprovedDate");
                        lblApprovedDate.Text = "Approval Date:" + course.DateApproved;
                    }
                }
            }

            divListNoResults.Visible = (lbxList.Items.Count < 1);
            lbxList.Visible = (lbxList.Items.Count > 0);
        }