private void frm_SaveEvent(object sender, FrmReviseRuleName.ReviseRuleNameEventArgs e)
 {
     if (_SelectItem != null)
     {
         if (e.IsSame == true)
         {
             return;
         }
         EditGraduationPlan.Update(_SelectItem.Name, e.NewFullName, _GraduationPlanEditor.GetSource(e.NewSchoolYear));
         SetAdvTreeExpandStatus(e.NewSchoolYear, true);
         EventHub.Instance.InvokGraduationPlanUpdated(_SelectItem.Name);
     }
 }
Exemple #2
0
        private void frm_SaveEvent(object sender, FrmReviseRuleName.ReviseRuleNameEventArgs e)
        {
            if (_SelectItem == null)
            {
                return;
            }

            if (e.IsSame == true)
            {
                return;
            }

            EditScoreCalcRule.Update(_SelectItem.Name, e.NewFullName, this.scoreCalcRuleEditor1.GetSource(e.NewSchoolYear));
            SetAdvTreeExpandStatus(e.NewSchoolYear, true);
            ScoreCalcRule.ScoreCalcRule.Instance.Invok_ScoreCalcRuleUpdated();
        }
Exemple #3
0
        private void frm_SaveEvent(object sender, FrmReviseRuleName.ReviseRuleNameEventArgs e)
        {
            if (_SelectItem == null)
            {
                return;
            }

            if (e.IsSame == true)
            {
                return;
            }
            // 因為subjectTableEditor1取得的content一定不會有SchoolYear(Attribute), 所以必須要補上!!
            XmlElement content = ReviseXmlContent(this.subjectTableEditor1.Content, e.NewSchoolYear);

            SmartSchool.Feature.SubjectTable.EditSubejctTable.UpdateSubject(_SelectItem.Name, e.NewFullName, content);
            SubjectTable.Items[_Catalog].Reflash();
            SetAdvTreeExpandStatus(e.NewSchoolYear, true);
        }
Exemple #4
0
        private void frm_ValidateEvent(object sender, FrmReviseRuleName.ReviseRuleNameEventArgs e)
        {
            if (_SelectItem == null)
            {
                return;
            }

            if (e.OldFullName == e.NewFullName)
            {
                e.Error = false;
                return;
            }

            if (CheckRuleNameDup(e.NewFullName))
            {
                e.Error       = true;
                e.ErrorString = "名稱不可重複。";
            }
            else
            {
                e.Error       = false;
                e.ErrorString = "";
            }
        }