public T Copy <T>() where T : class, IModel, new()
        {
            T           obj     = new T();
            BranchStock objdata = obj as BranchStock;

            objdata.RecNo        = this.RecNo;
            objdata.BranchName   = this.BranchName;
            objdata.ProductCode  = this.ProductCode;
            objdata.PartyPrdCode = this.PartyPrdCode;
            objdata.ProductName  = this.ProductName;
            objdata.Packing      = this.Packing;
            objdata.CompanyTag   = this.CompanyTag;
            objdata.RackID       = this.RackID;
            objdata.TStk         = this.TStk;
            objdata.Scheme       = this.Scheme;
            objdata.SQty         = this.SQty;
            objdata.SFQty        = this.SFQty;
            objdata.CUser        = this.CUser;
            objdata.CDateTime    = this.CDateTime;
            objdata.EUser        = this.EUser;
            objdata.EDateTime    = this.EDateTime;
            objdata.BranchCode   = this.BranchCode;
            objdata.UDateTime    = this.UDateTime;
            objdata.CreatedBy    = this.CreatedBy;
            objdata.CreatedDate  = this.CreatedDate;
            objdata.UpdateddBy   = this.UpdateddBy;
            objdata.UpdatedDate  = this.UpdatedDate;
            objdata.UpdatedCount = this.UpdatedCount;
            objdata.LUT          = this.LUT;
            return(obj);
        }
        public void Clone <T>(T obj) where T : class, IModel
        {
            BranchStock objdata = obj as BranchStock;

            this.RecNo        = objdata.RecNo;
            this.BranchName   = objdata.BranchName;
            this.ProductCode  = objdata.ProductCode;
            this.PartyPrdCode = objdata.PartyPrdCode;
            this.ProductName  = objdata.ProductName;
            this.Packing      = objdata.Packing;
            this.CompanyTag   = objdata.CompanyTag;
            this.RackID       = objdata.RackID;
            this.TStk         = objdata.TStk;
            this.Scheme       = objdata.Scheme;
            this.SQty         = objdata.SQty;
            this.SFQty        = objdata.SFQty;
            this.CUser        = objdata.CUser;
            this.CDateTime    = objdata.CDateTime;
            this.EUser        = objdata.EUser;
            this.EDateTime    = objdata.EDateTime;
            this.BranchCode   = objdata.BranchCode;
            this.UDateTime    = objdata.UDateTime;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }