Beispiel #1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 6, Configuration.FieldSeparator),
                       Id,
                       DeviceNumber?.ToDelimitedString(),
                       DeviceName,
                       LotNumber?.ToDelimitedString(),
                       ItemIdentifier?.ToDelimitedString(),
                       BarCode
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
Beispiel #2
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 8, Configuration.FieldSeparator),
                       Id,
                       LotNumber?.ToDelimitedString(),
                       DeviceNumber?.ToDelimitedString(),
                       DeviceName,
                       DeviceDataState,
                       LoadStatus,
                       ControlCode.HasValue ? ControlCode.Value.ToString(Consts.NumericFormat, culture) : null,
                       OperatorName
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 9, Configuration.FieldSeparator),
                       Id,
                       NumberOfDecontaminationSterilizationDevices.HasValue ? NumberOfDecontaminationSterilizationDevices.Value.ToString(Consts.NumericFormat, culture) : null,
                       LaborCalculationType?.ToDelimitedString(),
                       DateFormat?.ToDelimitedString(),
                       DeviceNumber?.ToDelimitedString(),
                       DeviceName,
                       DeviceModelName,
                       DeviceType?.ToDelimitedString(),
                       LotControl?.ToDelimitedString()
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }