Esempio n. 1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(Spectrum.Filename + '\t');
            sb.Append(Spectrum.SpectrumNumber.ToString() + '\t');
            sb.Append(Spectrum.SpectrumId + '\t');
            sb.Append(Spectrum.SpectrumTitle + '\t');
            sb.Append(Spectrum.RetentionTimeMinutes.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(Spectrum.PrecursorMZ.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(Spectrum.PrecursorIntensity.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(Spectrum.PrecursorCharge.ToString() + '\t');
            sb.Append(Spectrum.PrecursorMass.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(Spectrum.Masses.Length.ToString() + '\t');
            sb.Append(Spectrum.TotalIntensity.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(Peptide.ExtendedSequence + '\t');
            sb.Append(Peptide.BaseSequence + '\t');
            sb.Append(Peptide.Parent.Description + '\t');
            sb.Append(Peptide.StartResidueNumber.ToString() + '\t');
            sb.Append(Peptide.EndResidueNumber.ToString() + '\t');
            sb.Append(Peptide.MissedCleavages.ToString() + '\t');
            sb.Append((precursorMassType == MassType.Average ? Peptide.AverageMass : Peptide.MonoisotopicMass).ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(PrecursorMassErrorDa.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(PrecursorMassErrorPpm.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(MatchingProducts.ToString() + '\t');
            sb.Append(TotalProducts.ToString() + '\t');
            sb.Append(MatchingProductsFraction.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(MatchingIntensity.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(MatchingIntensityFraction.ToString(CultureInfo.InvariantCulture) + '\t');
            sb.Append(MorpheusScore.ToString(CultureInfo.InvariantCulture));

            return(sb.ToString());
        }
Esempio n. 2
0
        /// <summary>
        /// Function to verify all products are added.
        /// </summary>
        /// <returns></returns>
        public bool VerifyTotalProducts(List <DataDictionary> productLineData)
        {
            Thread.Sleep(5000);
            WaitHelpers.WaitForElementToBecomeVisibleWithinTimeout(driver, TotalProducts, 60);
            String totalProductsOnScreen = TotalProducts.GetText(driver);
            int    totalCountOfProducts  = productLineData.Count;
            String totalProductsEntered  = "TOTAL PRODUCTS" + totalCountOfProducts.ToString();
            bool   productQuantity       = false;

            if (totalProductsOnScreen.Contains(totalProductsEntered))
            {
                productQuantity = true;
                _logger.Info($"Verifying quantity Of Products Entered was {totalProductsEntered} and product quantity on screen is {totalProductsOnScreen}");
            }
            return(productQuantity);
        }
        public ActionResult SearchByExtPreProductCodeTotal(string productCode, GridSettings gridSettings)
        {
            double total;
            double deliveryTotal;
            double cerTotal;
            double nonCerTotal;

            if (string.IsNullOrEmpty(gridSettings.SortField))
            {
                gridSettings.SortField = "ProductLotNo";
                gridSettings.SortOrder = SortOrder.Asc;
            }

            var result        = _inquiryByProductNameDomain.SearchCriteria(productCode, gridSettings, out total, out deliveryTotal, out cerTotal, out nonCerTotal);
            var totalProducts = new TotalProducts()
            {
                Total         = total,
                DeliveryTotal = deliveryTotal,
                DerTotal      = cerTotal,
                NonCerTotal   = nonCerTotal
            };

            return(Json(new { data = totalProducts }, JsonRequestBehavior.AllowGet));
        }