Пример #1
0
 public void ExportXML()
 {
     try
     {
         if (File.Exists(infoFile))
         {
             File.Delete(infoFile);
         }
         if (File.Exists(matrixFile))
         {
             File.Delete(matrixFile);
         }
         if (File.Exists(risksFile))
         {
             File.Delete(risksFile);
         }
         Thread.Sleep(CommonTime * 1000);
         AgentDll.dump_table(dbpath, "Info", infoFile);
         Thread.Sleep(CommonTime * 1000);
         AgentDll.dump_table(dbpath, "Conscida", matrixFile);
         Thread.Sleep(CommonTime * 1000);
         AgentDll.dump_table(dbpath, "Risks", risksFile);
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog(ex.ToString());
         string str = ex.ToString();
     }
 }
Пример #2
0
 public void OneClickTest()
 {
     Thread.Sleep(BandTime * 1000);
     AgentDll.btn_Continue();
     Thread.Sleep(CommonTime * 1000 * 2);
     AgentDll.btn_Password();
     Thread.Sleep(PatientTime * 1000);
     AgentDll.btn_Demographics();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.btn_LoadPatientData();
     Thread.Sleep(CommonTime * 2000);
     AgentDll.choose_one_patient();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.btn_Previous_Patient();
     Thread.Sleep(CommonTime * 1000);
     //AgentDll.btn_Previous_Patient();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.btn_PatForm1_Close();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.btn_Calibration();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.manul_Calib_device();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.start_test();
     Thread.Sleep(PrepareTime * 1000);
     AgentDll.do_test();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.export_report();
     Thread.Sleep(5 * 1000);
 }
Пример #3
0
        public bool TestHead()
        {
            bool          rtn = false;
            StringBuilder buf = new StringBuilder(1024);

            AgentDll.btn_check_head_band(buf);
            string txt = buf.ToString();

            if (txt == "HEAD_OK")
            {
                rtn = true;
            }
            return(rtn);
        }
Пример #4
0
        public bool TestRF()
        {
            bool          rtn = false;
            StringBuilder buf = new StringBuilder(1024);

            AgentDll.btn_check_rfoot_band(buf);
            string txt = buf.ToString();

            if (txt == "RFOOT_OK")
            {
                rtn = true;
            }
            return(rtn);
        }
Пример #5
0
 public void TestStart()
 {
     AgentDll.start_test();
     Thread.Sleep(PrepareTime * 1000);
     AgentDll.do_test();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.make_emotion_chart();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.nutr_load();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.risk_load_data();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.export_report();
     Thread.Sleep(CommonTime * 1000);
 }
Пример #6
0
 public void CloseBandTest()
 {
     AgentDll.btn_tformcomport_close();
 }
Пример #7
0
 public void ExecSql(string dbpath, string sql)
 {
     AgentDll.exec_sql(dbpath, sql);
 }
Пример #8
0
 public void TestLaunch(bool bShow)
 {
     AgentDll.launchEx(bShow);
     Thread.Sleep(StartUp * 1000);
 }
Пример #9
0
        public bool TestDevice()
        {
            bool rtn = AgentDll.check_dev_con();

            return(!rtn);
        }