コード例 #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 TestStart()
 {
     AgentDll.start_test();
     Thread.Sleep(PrepareTime * 1000);
     AgentDll.do_test();
     Thread.Sleep(CommonTime * 1000);
     AgentDll.export_report();
 }
コード例 #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 TestToStart()
 {
     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);
 }
コード例 #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);
 }