using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;

using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Common;
using Versioning;

using Fairweather.Service;
using Common.Posting;

namespace Sage_Int
{
    // autogenerated: D:\Scripts\struct_creator2.pl
    [Serializable]
    [DebuggerStepThrough]
    public struct Line_Data
    {

        public Line_Data(int line_number,
                    int record_number,
                    int perc,
                    Csv_Error error)
            : this() {

            this.Line = line_number;
            this.Record = record_number;
            this.Error = error;
            this.Perc = perc;
        }

        public int Perc {
            get;
            private set;
        }

        public int User_Record {
            get {
                return Record + 1;
            }
        }

        public int User_Line {
            get {
                return Line + 1;
            }
        }

        public int Line {
            get;
            private set;
        }

        public int Record {
            get;
            private set;
        }

        public Csv_Error Error {
            get;
            private set;
        }

        public bool Has_Error {
            get { return Error == null; }
        }

    }

}
