예제 #1
0
 public PartResultRecord(PartResultRecord partResultRecord)
 {
     SlotID         = partResultRecord.SlotID;
     PartID         = partResultRecord.PartID;
     PartNumber     = partResultRecord.PartNumber;
     ServerID       = partResultRecord.ServerID;
     PcProgram      = partResultRecord.PcProgram;
     IsPass         = partResultRecord.IsPass;
     ReportFileName = partResultRecord.ReportFileName;
     ReportFilePath = partResultRecord.ReportFilePath;
     RptFileName    = partResultRecord.RptFileName;
     MeasDateTime   = partResultRecord.MeasDateTime;
 }
예제 #2
0
 private void AddCommonReport(ResultRecord resultRecord)
 {
     ClientUICommon.syncContext.Post(o =>
     {
         PartResultRecord prRecord = new PartResultRecord();
         prRecord.IsPass           = resultRecord.IsPass? "合格" : "不合格";
         prRecord.MeasDateTime     = resultRecord.MeasDateTime;
         prRecord.PartID           = resultRecord.PartID;
         prRecord.PartNumber       = resultRecord.PartNumber.ToString();
         prRecord.ReportFileName   = resultRecord.CmmFileName;
         prRecord.RptFileName      = resultRecord.RptFileName;
         prRecord.ServerID         = resultRecord.ServerID.ToString();
         prRecord.ReportFilePath   = resultRecord.FilePath;
         prRecord.PcProgram        = resultRecord.MeasProgram;
         resultRecordList.Add(prRecord);
         //dataGridView1.InvalidateRow(resultRecordList.Count - 1);
     }, null);
 }
예제 #3
0
 private void InitResult()
 {
     for (int i = 0; i < 6; i++)
     {
         for (int j = 1; j <= 10; j++)
         {
             PartResultRecord row = new PartResultRecord()
             {
                 SlotID    = string.Format($"第{i + 1}排-{j}号槽"),
                 PartID    = string.Empty,
                 PcProgram = string.Empty,
                 IsPass    = string.Empty,
                 ServerID  = string.Empty,
             };
             RackResultRecordList.Add(row);
         }
     }
 }