예제 #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();
        }
예제 #2
0
        private void NewFlaw(XmlNode note)
        {
            Flaw ucFlaw = new Flaw(note);

            split.Panel1.Controls.Add(ucFlaw);
            ucFlaw.Width  = split.Panel1.Width;
            ucFlaw.Height = ucFlaw.GetControlHeight();
            ucFlaw.Top    = newLocation;
            newLocation  += ucFlaw.Height + 1;
            count++;
            ucFlaw.Visible = true;
        }
예제 #3
0
파일: QCReport.cs 프로젝트: zhanglg40/hmr
        private void NewFlaw(XmlNode note)
        {
            Flaw ucFlaw = new Flaw(note);

            split.Panel2.Controls.Add(ucFlaw);
            ucFlaw.Width      = split.Panel2.Width;
            ucFlaw.Height     = ucFlaw.GetControlHeight();
            ucFlaw.Top        = newLocation;
            newLocation      += ucFlaw.Height + 1;
            ucFlaw.Visible    = true;
            ucFlaw.MouseDown += new MouseEventHandler(ucFlaw_MouseDown);
        }
예제 #4
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);
 }