コード例 #1
0
        /// <summary>
        /// Init original map
        /// </summary>

        public static UnpivotedAssayResultFieldPositionMap NewOriginalMap()
        {
            UnpivotedAssayResultFieldPositionMap m = new UnpivotedAssayResultFieldPositionMap();

            m.InitializeOriginalUnpivotedAssayResultFieldPositionMap();
            return(m);
        }
コード例 #2
0
        public static UnpivotedAssayResultFieldPositionMap NewMdbAssayMap(QueryTable qt)
        {
            UnpivotedAssayResultFieldPositionMap m = new UnpivotedAssayResultFieldPositionMap();

            m.InitializeMultiDbUnpivotedAssayResultFieldPositionMap(qt);
            return(m);
        }
コード例 #3
0
        /// <summary>
        /// Serialize a UnpivotedAssayResult into value object
        /// </summary>
        /// <param name="voLength"></param>
        /// <param name="voi"></param>
        /// <returns></returns>

        new public object[] ToValueObject(
            int voLength,
            UnpivotedAssayResultFieldPositionMap voMap)
        {
            object[] vo = new object[voLength];
            ToValueObject(vo, voMap);
            return(vo);
        }
コード例 #4
0
        /// <summary>
        /// Convert a value object[] into a new UnpivotedAssayResult
        /// </summary>
        /// <param name="vo"></param>
        /// <param name="voi"></param>
        /// <returns></returns>

        new public static UnpivotedAssayResult FromValueObjectNew(
            object[] vo,
            UnpivotedAssayResultFieldPositionMap voMap)
        {
            UnpivotedAssayResult row = new UnpivotedAssayResult();

            row.FromValueObject(vo, voMap);
            return(row);
        }
コード例 #5
0
        new public void ToValueObject(
            object[] vo,
            UnpivotedAssayResultFieldPositionMap voMap)
        {
            base.ToValueObject(vo, voMap);             // set the basic attribute values

            UnpivotedAssayResult row = this;

            //if (row.ResultValue != null) row = row; // debug

            SetVo(vo, voMap.CompoundId.Voi, row.CompoundId);
            SetVo(vo, voMap.Structure.Voi, row.Structure);

            SetVo(vo, voMap.ActivityBin.Voi, row.ActivityBin);
            SetVo(vo, voMap.ActivityClass.Voi, row.ActivityClass);
            SetVo(vo, voMap.ResultValueQn.Voi, row.ResultValue);
            SetVo(vo, voMap.ResultQualifier.Voi, row.ResultQualifier);
            SetVo(vo, voMap.ResultNumericValue.Voi, row.ResultNumericValue);
            SetVo(vo, voMap.ResultTextValue.Voi, row.ResultTextValue);
            SetVo(vo, voMap.NValue.Voi, row.NValue);
            SetVo(vo, voMap.NValueTested.Voi, row.NValueTested);
            SetVo(vo, voMap.StdDev.Voi, row.StdDev);
            SetVo(vo, voMap.Units.Voi, row.Units);
            SetVo(vo, voMap.Conc.Voi, row.Conc);
            SetVo(vo, voMap.ConcUnits.Voi, row.ConcUnits);
            SetVo(vo, voMap.RunDate.Voi, row.RunDate);

            SetVo(vo, voMap.MostPotentValueQn.Voi, row.MostPotentVal);
            SetVo(vo, voMap.ActivityBinMostPotent.Voi, row.ActivityBinMostPotent);

            StringMx sx = new StringMx(row.ResultDetail);             // put link to cid, targetId & resultType

            sx.DbLink = "'" + row.CompoundId + "','" + row.GeneId + "','" + row.ResultTypeConcType + "'";
            SetVo(vo, voMap.ResultDetailId.Voi, sx);

            //SetVo(vo, voMap.TargetMapX.Voi, row.TargetMapX);
            //SetVo(vo, voMap.TargetMapY.Voi, row.TargetMapY);

            SetVo(vo, voMap.Sources.Voi, row.Sources);
            SetVo(vo, voMap.DrawingOrder.Voi, row.DrawingOrder);
            SetVo(vo, voMap.CidOrder.Voi, row.CidOrder);

            return;
        }
コード例 #6
0
        /// <summary>
        /// Convert a value object[] into a ResultsRow
        /// </summary>
        /// <param name="vo"></param>
        /// <param name="voi"></param>
        /// <returns></returns>

        new public void FromValueObject(
            object[] vo,
            UnpivotedAssayResultFieldPositionMap voMap)
        {
            string   txt;
            int      i1;
            double   d1;
            DateTime dt;

            base.FromValueObject(vo, voMap);
            UnpivotedAssayResult row = this;

            row.CompoundId = GetStringVo(vo, voMap.CompoundId.Voi);
            row.Structure  = GetStructureVo(vo, voMap.Structure.Voi);

            row.ActivityBin   = GetIntVo(vo, voMap.ActivityBin.Voi);
            row.ActivityClass = GetSxVo(vo, voMap.ActivityClass.Voi);

            row.ResultValue = GetQnVo(vo, voMap.ResultValueQn.Voi);
            if (!NullValue.IsNull(row.ResultValue))
            {             // copy values to individual fields in case not in the vo
                row.ResultQualifier    = row.ResultValue.Qualifier;
                row.ResultNumericValue = row.ResultValue.NumberValue;
                row.ResultTextValue    = row.ResultValue.TextValue;
                row.NValue             = row.ResultValue.NValue;
                row.NValueTested       = row.ResultValue.NValueTested;
                row.StdDev             = row.ResultValue.StandardDeviation;
                row.StdErr             = row.ResultValue.StandardError;
            }

            txt = GetStringVo(vo, voMap.ResultQualifier.Voi);
            if (txt != null)
            {
                row.ResultQualifier = txt;
            }

            d1 = GetDoubleVo(vo, voMap.ResultNumericValue.Voi);
            if (d1 != NullValue.NullNumber)
            {
                row.ResultNumericValue = d1;
            }

            txt = GetStringVo(vo, voMap.ResultTextValue.Voi);
            if (txt != null)
            {
                row.ResultTextValue = txt;
            }

            i1 = GetIntVo(vo, voMap.NValue.Voi);
            if (d1 != NullValue.NullNumber)
            {
                row.NValue = i1;
            }

            i1 = GetIntVo(vo, voMap.NValueTested.Voi);
            if (i1 != NullValue.NullNumber)
            {
                row.NValueTested = i1;
            }

            d1 = GetDoubleVo(vo, voMap.StdDev.Voi);
            if (d1 != NullValue.NullNumber)
            {
                row.StdDev = d1;
            }

            row.Units     = GetStringVo(vo, voMap.Units.Voi);
            row.Conc      = GetDoubleVo(vo, voMap.Conc.Voi);
            row.ConcUnits = GetStringVo(vo, voMap.ConcUnits.Voi);
            row.RunDate   = GetDateVo(vo, voMap.RunDate.Voi);

            row.MostPotentVal         = GetQnVo(vo, voMap.MostPotentValueQn.Voi);
            row.ActivityBinMostPotent = GetIntVo(vo, voMap.ActivityBinMostPotent.Voi);

            row.ResultDetail = GetStringVo(vo, voMap.ResultDetailId.Voi);

            //row.TargetMapX = GetIntVo(vo, voMap.TargetMapX.Voi);
            //row.TargetMapY = GetIntVo(vo, voMap.TargetMapY.Voi);

            row.Sources      = GetStringVo(vo, voMap.Sources.Voi);
            row.DrawingOrder = GetDoubleVo(vo, voMap.DrawingOrder.Voi);
            row.CidOrder     = GetIntVo(vo, voMap.CidOrder.Voi);

            return;
        }