using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SystemX.Product.ALIS.UI.View.InfoList
{
    public class CReleaseInformation : ICloneable
    {
        public string ProdNo_C { set; get; }
        public int TestCodeNo { set; get; }
        public string TestCode { set; get; }
        public int VariantNo { set; get; }
        public string ProdNo_P { set; get; }
        public string TestType { set; get; }
        public string FileVersion { set; get; }
        public string ProdCode { set; get; }
        public string Config { set; get; }
        public DateTime RegDT { set; get; }
        public string RegUser { set; get; }
        public string RegUserComment { set; get; }

        public bool bHasSelectedData { set; get; }

        public CReleaseInformation()
        {
            ProdNo_C = "";
            TestCodeNo = -1;
            TestCode = "";
            VariantNo = -1;
            ProdNo_P = "";
            TestType = "";
            FileVersion = "";
            ProdCode = "";
            Config = "";
            RegDT = new DateTime();
            RegDT = DateTime.Now;
            RegUser = "";
            RegUserComment = "";

            bHasSelectedData = false;
        }

        public object Clone()
        {
            return new CReleaseInformation()
            {
                ProdNo_C = this.ProdNo_C,

                TestCodeNo = this.TestCodeNo,
                TestCode = this.TestCode,

                VariantNo = this.VariantNo,
                ProdNo_P = this.ProdNo_P,
                TestType = this.TestType,
                FileVersion = this.FileVersion,
                ProdCode = this.ProdCode,

                Config = "",

                RegDT = this.RegDT,
                RegUser = this.RegUser,
                RegUserComment = this.RegUserComment,

                bHasSelectedData = this.bHasSelectedData
            };
        }
    }
}
