コード例 #1
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T          obj     = new T();
            FirmMaster objdata = obj as FirmMaster;

            objdata.RecNo        = this.RecNo;
            objdata.FirmName     = this.FirmName;
            objdata.Add1         = this.Add1;
            objdata.Add2         = this.Add2;
            objdata.Add3         = this.Add3;
            objdata.Area         = this.Area;
            objdata.City         = this.City;
            objdata.PinCode      = this.PinCode;
            objdata.KeyPerson    = this.KeyPerson;
            objdata.PhoneNo      = this.PhoneNo;
            objdata.Email        = this.Email;
            objdata.VatNo        = this.VatNo;
            objdata.VatDate      = this.VatDate;
            objdata.CSTVatNo     = this.CSTVatNo;
            objdata.CSTVatDate   = this.CSTVatDate;
            objdata.DlNo1        = this.DlNo1;
            objdata.DlNo2        = this.DlNo2;
            objdata.RegKey       = this.RegKey;
            objdata.DataPath     = this.DataPath;
            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);
        }
コード例 #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            FirmMaster objdata = obj as FirmMaster;

            this.RecNo        = objdata.RecNo;
            this.FirmName     = objdata.FirmName;
            this.Add1         = objdata.Add1;
            this.Add2         = objdata.Add2;
            this.Add3         = objdata.Add3;
            this.Area         = objdata.Area;
            this.City         = objdata.City;
            this.PinCode      = objdata.PinCode;
            this.KeyPerson    = objdata.KeyPerson;
            this.PhoneNo      = objdata.PhoneNo;
            this.Email        = objdata.Email;
            this.VatNo        = objdata.VatNo;
            this.VatDate      = objdata.VatDate;
            this.CSTVatNo     = objdata.CSTVatNo;
            this.CSTVatDate   = objdata.CSTVatDate;
            this.DlNo1        = objdata.DlNo1;
            this.DlNo2        = objdata.DlNo2;
            this.RegKey       = objdata.RegKey;
            this.DataPath     = objdata.DataPath;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }