public EditStudentCheckDetail(string activityId, string studentId)
        {
            InitializeComponent();
            StudentCheckData            checkData = dbUtill.GetStudentCheckInfo(activityId, studentId);
            Dictionary <string, string> dic       = checkDataUtill.GetDicByBackStr(checkData.jsonContent);
            Student student1 = dbUtill.GetStudentNameAndBirthDayByID(studentId);

            name.Text     = student1.studentName;
            age.Text      = dic["AG"];
            date.Text     = checkData.checkDate;
            birthday.Text = student1.birthday.Split(' ')[0];
            if (dic["GE"].Equals("0"))
            {
                sex.Text = "男";
            }
            else
            {
                sex.Text = "女";
            }
            weight.Text = dic["Wk"];
            Pt.Text     = dic["Pt"];
            FW.Text     = dic["FW"];
            fW.Text     = dic["fW"];
            wW.Text     = dic["wW"];
            MW.Text     = dic["MW"];
            mW.Text     = dic["mW"];
            height.Text = dic["Hm"];
            BMI.Text    = dic["MI"];
            rB.Text     = dic["rB"];
            bW.Text     = dic["bW"];
        }
예제 #2
0
 //打印报告
 private void PrintCheck_Click(object sender, RoutedEventArgs e)
 {
     if (StdDataGrid.SelectedItem is Student student)
     {
         Report           rp         = new Report();
         string           studentId  = student.studentId;
         string           activityId = Uid;
         StudentCheckData checkData  = dbUtill.GetStudentCheckInfo(activityId, studentId);
         if (checkData != null)
         {
             if (checkData.jsonContent != null)
             {
                 rp.checkData = checkData;
                 rp.PrintService();
             }
             else
             {
                 System.Windows.MessageBox.Show("体测数据不存在", "错误");
             }
         }
         else
         {
             System.Windows.MessageBox.Show("体测数据不存在", "错误");
         }
     }
 }