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

            objdata.AccountCode    = this.AccountCode;
            objdata.AccountName    = this.AccountName;
            objdata.Address        = this.Address;
            objdata.Place          = this.Place;
            objdata.OpeningBalance = this.OpeningBalance;
            objdata.TypeDrCr       = this.TypeDrCr;
            objdata.GroupId        = this.GroupId;
            objdata.GroupCode      = this.GroupCode;
            objdata.PanCardNo      = this.PanCardNo;
            objdata.FCC            = this.FCC;
            objdata.Range          = this.Range;
            objdata.DivI           = this.DivI;
            objdata.CommI          = this.CommI;
            objdata.BST            = this.BST;
            objdata.CST            = this.CST;
            objdata.Packing        = this.Packing;
            objdata.Checking       = this.Checking;
            objdata.Other          = this.Other;
            objdata.Insurance      = this.Insurance;
            objdata.ADath          = this.ADath;
            objdata.LUT            = this.LUT;
            return(obj);
        }
コード例 #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstAccountMaster objdata = obj as T_MstAccountMaster;

            this.AccountCode    = objdata.AccountCode;
            this.AccountName    = objdata.AccountName;
            this.Address        = objdata.Address;
            this.Place          = objdata.Place;
            this.OpeningBalance = objdata.OpeningBalance;
            this.TypeDrCr       = objdata.TypeDrCr;
            this.GroupId        = objdata.GroupId;
            this.GroupCode      = objdata.GroupCode;
            this.PanCardNo      = objdata.PanCardNo;
            this.FCC            = objdata.FCC;
            this.Range          = objdata.Range;
            this.DivI           = objdata.DivI;
            this.CommI          = objdata.CommI;
            this.BST            = objdata.BST;
            this.CST            = objdata.CST;
            this.Packing        = objdata.Packing;
            this.Checking       = objdata.Checking;
            this.Other          = objdata.Other;
            this.Insurance      = objdata.Insurance;
            this.ADath          = objdata.ADath;
            this.LUT            = objdata.LUT;
        }