Exemple #1
0
        public string SchoolYearFromTest(string strType, string cSchoolYear)
        {
            string result = DateFC.SchoolYearFrom(strType, cSchoolYear);

            return(result);
            // TODO: add assertions to method DateFCTest.SchoolYearFromTest(String, String)
        }
        private void Assemblies_Title()
        {
            string userID = User.Identity.Name;

            LabelSchoolyear.Text     = DateFC.SchoolYearFrom("-", WorkingProfile.SchoolYear);
            LabelSchool.Text         = WorkingProfile.SchoolName;
            LabelPrincipal.Text      = WorkingProfile.SchoolPrincipal;
            LabelSuperintendent.Text = WorkingProfile.UserArea;
            hfSchoolcode.Value       = WorkingProfile.SchoolCode;
            hfSchoolyear.Value       = WorkingProfile.SchoolYear;
            hfUserRole.Value         = WorkingProfile.UserRole;
            hfUserID.Value           = User.Identity.Name;
            hfSignOff.Value          = SignOff.Signature("Result", userID, WorkingProfile.UserRole, WorkingProfile.SchoolYear, WorkingProfile.SchoolCode, "School");
            hfSignOffSO.Value        = SignOff.Signature("Result", userID, WorkingProfile.UserRole, WorkingProfile.SchoolYear, WorkingProfile.SchoolCode, "SO");
            hfPublish.Value          = SignOff.Signature("Result", userID, WorkingProfile.UserRole, WorkingProfile.SchoolYear, WorkingProfile.SchoolCode, "Publish");
            try
            {
                foreach (Control pControl in FormContent.Controls)
                {
                    if (pControl is Label)
                    {
                        string code = pControl.ID.Replace("Label", "");
                        Label  lbl  = (Label)pControl;
                        lbl.Text = FormData.Title(code);
                    }
                }
            }
            catch (Exception ex)
            {
                var ms = ex.Message;
            }
        }
Exemple #3
0
        public void SchoolYearFromTest()
        {
            //Arrange
            string cschoolyear = "20172018";

            string expect = "2017-2018";

            // Act
            var result = DateFC.SchoolYearFrom("-", cschoolyear);

            //Assert
            Assert.AreEqual(expect, result, $"school year format, {result}");
        }
Exemple #4
0
        private void Assemblies_Title()
        {
            string userID = User.Identity.Name;

            LabelSchoolyear.Text     = DateFC.SchoolYearFrom("-", schoolYear);
            LabelSchool.Text         = WorkingProfile.SchoolName;
            LabelPrincipal.Text      = WorkingProfile.SchoolPrincipal;
            LabelSuperintendent.Text = WorkingProfile.UserAreaSuperintendent;
            hfSchoolcode.Value       = schoolCode;
            hfSchoolyear.Value       = schoolYear;
            hfUserRole.Value         = WorkingProfile.UserRole;
            hfUserID.Value           = User.Identity.Name;
            hfSignOff.Value          = SignOff.Signature("Result", userID, "", schoolYear, schoolCode, "School");
            hfSignOffSO.Value        = SignOff.Signature("Result", userID, "", schoolYear, schoolCode, "SO");
            hfPublish.Value          = SignOff.Signature("Result", userID, "", schoolYear, schoolCode, "Publish");
            hfComplete.Value         = SignOff.Signature("Result", userID, "", schoolYear, schoolCode, "Complete");
        }