示例#1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstCompany objdata = obj as T_MstCompany;

            this.CompanyId       = objdata.CompanyId;
            this.FinancialYearId = objdata.FinancialYearId;
            this.CompanyName     = objdata.CompanyName;
            this.Add1            = objdata.Add1;
            this.Add2            = objdata.Add2;
            this.Place           = objdata.Place;
            this.PhoneNo         = objdata.PhoneNo;
            this.PhoneNo1        = objdata.PhoneNo1;
            this.MobileNo        = objdata.MobileNo;
            this.PanNo           = objdata.PanNo;
            this.ECCNo           = objdata.ECCNo;
            this.TdsNo           = objdata.TdsNo;
            this.AccountNo       = objdata.AccountNo;
            this.LUT             = objdata.LUT;
        }
示例#2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T            obj     = new T();
            T_MstCompany objdata = obj as T_MstCompany;

            objdata.CompanyId       = this.CompanyId;
            objdata.FinancialYearId = this.FinancialYearId;
            objdata.CompanyName     = this.CompanyName;
            objdata.Add1            = this.Add1;
            objdata.Add2            = this.Add2;
            objdata.Place           = this.Place;
            objdata.PhoneNo         = this.PhoneNo;
            objdata.PhoneNo1        = this.PhoneNo1;
            objdata.MobileNo        = this.MobileNo;
            objdata.PanNo           = this.PanNo;
            objdata.ECCNo           = this.ECCNo;
            objdata.TdsNo           = this.TdsNo;
            objdata.AccountNo       = this.AccountNo;
            objdata.LUT             = this.LUT;
            return(obj);
        }