示例#1
0
        // Для ручной разбраковки - можно поставить любой результат
        public void AddResults(string serialNumber, int deviceType, int sensorType, bool primaryTest, TestResults results,
                               PressureIndication pressureIndication, bool isGood, DateTime dateTime, int metrologicGroup)
        {
            testResults = results;
            // this.pressureIndication = pressureIndication;
            JsonReportResult = new JsonReportResult
            {
                deviceSN            = serialNumber,
                deviceType          = deviceType,
                lineId              = settings.LineId,
                metrologGrID        = metrologicGroup,
                measureTime         = dateTime.ToString(),
                standHardwareVer    = settings.StandHardwareVer,
                standFirmwareVer    = Application.ProductVersion,
                standId             = settings.StandId,
                primaryVerification = primaryTest,
                isGood              = isGood
            };
            List <JsonTestPointData> pointsData = new List <JsonTestPointData>();

            for (int i = 0; i < settings.PointsCode.Length; i++)
            {
                pointsData.Add(GetJsonTestPoint(i, sensorType));
            }
            JsonReportResult.measuresMetrological = pointsData.ToArray();
        }
示例#2
0
        private void UpdProductInfo_event(object sender, EventArgs e)
        {
            var product = ((Stand)sender).Product;

            pressureIndication = new PressureIndication(product.Device.Range.Pressure_Pa);
            SerialNumber       = product.Device.SerialNumber;
            DeviceName         = product.Device.Name.Name;
        }
示例#3
0
        public void AddResults(string serialNumber, int deviceType, int sensorType, bool primaryTest, TestResults results,
                               PressureIndication pressureIndication, DateTime dateTime, int metrologicGroup)
        {
            bool isGood = testResults.GetResume() == TestResultEnum.IsGood;

            AddResults(serialNumber, deviceType, sensorType, primaryTest, results, pressureIndication, isGood, dateTime,
                       metrologicGroup);
        }