浏览代码

remove some useless code.

gsp 4 年之前
父节点
当前提交
1706f3de9c
共有 2 个文件被更改,包括 3 次插入12 次删除
  1. 3 11
      OTSIncAMeasureApp/0-OTSModel/Measure/GetBSEPic/CMsrThread.cs
  2. 0 1
      OTSIncAReportApp/frmReportApp.cs

+ 3 - 11
OTSIncAMeasureApp/0-OTSModel/Measure/GetBSEPic/CMsrThread.cs

@@ -367,21 +367,13 @@ namespace OTSModelSharp
             m_ThreadStatus.ComputeTime(OTS_THREAD_TIME_TYPE.START);
             DateTime timeStart = m_ThreadStatus.GetStartTime();
 
-            int iYear = timeStart.DayOfYear;
-            int imonth = timeStart.Month;
-            int iDay = timeStart.Day;
-            int iHour = timeStart.Hour;
-            int iMin = timeStart.Minute;
-            int iSec = timeStart.Second;
-
-            String csTime;
-            string.Format("%04d-%02d-%02d %02d:%02d:%02d", iYear, imonth, iDay, iHour, iMin, iSec);
+  
 
             ST_MSTMsg MsgMsrStart = new ST_MSTMsg();
-           /// memset(&MsgMsrStart, 0, sizeof(ST_MSTMsg));
+          
             MsgMsrStart.iMsgType = ENUM_MSG_TYPE.MTHREADSTATUS;
             MsgMsrStart.STMThreadStu.iMsrStatu =OTS_MSR_THREAD_STATUS.INPROCESS;
-           // strcpy(MsgMsrStart.STMThreadStu.cMsrStartTime, csTime);
+         
             SendMessageToMeasureApp(MsgMsrStart);
             // connect hardware
             if (!m_SemController.Connect())

+ 0 - 1
OTSIncAReportApp/frmReportApp.cs

@@ -146,7 +146,6 @@ namespace OTSIncAReportApp
         {
             InitializeComponent();
 
-            //m_ReportProjFileMgr = new OTSINTERFACE.COTSReportProjFileMgrClr();
 
             m_OutputNlog = new OutputNlog();
             m_OutputNlog.Visible = true;