Exemple #1
0
        private void LateNotes(XmlNode rules, XmlNode emrdoc)
        {
            foreach (Control ctrl in split.Panel1.Controls)
            {
                if (ctrl.Name == "lbValuate" || ctrl.Name == "lbScore" || ctrl.Name == "lbLevel" || ctrl.Name == "lbKnock")
                {
                }
                else
                {
                    Flaw    flaw         = (Flaw)ctrl;
                    string  noteID       = flaw.GetNoteID();
                    decimal lateKnockoff = LateKnockoff(noteID, rules);
                    if (lateKnockoff == 0)
                    {
                        continue;
                    }

                    if (!Late(noteID, emrdoc))
                    {
                        continue;
                    }

                    flaw.NewFlaw("书写不及时", lateKnockoff);


                    ArrayListNoteID.Add(noteID);
                    ArrayListOff.Add(lateKnockoff);
                    ArrayListReason.Add("书写不及时");
                }
            }

            RerangeControls();
        }
Exemple #2
0
 private decimal GetKnockoff(string noteID)
 {
     foreach (Control ctrl in split.Panel1.Controls)
     {
         if (ctrl.Name == "lbValuate" || ctrl.Name == "lbScore" || ctrl.Name == "lbLevel" || ctrl.Name == "lbKnock")
         {
         }
         else
         {
             Flaw flaw = (Flaw)ctrl;
             if (noteID == flaw.GetNoteID())
             {
                 return(flaw.GetKnockoff());
             }
         }
     }
     return(0);
 }