Ejemplo n.º 1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_TranCash objdata = obj as T_TranCash;

            this.TranBankId  = objdata.TranBankId;
            this.VoucherNo   = objdata.VoucherNo;
            this.CompanyId   = objdata.CompanyId;
            this.AmountType  = objdata.AmountType;
            this.VoucherDate = objdata.VoucherDate;
            this.ChequeNo    = objdata.ChequeNo;
            this.BankId      = objdata.BankId;
            this.PartyId     = objdata.PartyId;
            this.NoOfDay     = objdata.NoOfDay;
            this.Place       = objdata.Place;
            this.BankName    = objdata.BankName;
            this.Description = objdata.Description;
            this.Amount      = objdata.Amount;
            this.LUT         = objdata.LUT;
            this.AccountName = objdata.AccountName;
        }
Ejemplo n.º 2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T          obj     = new T();
            T_TranCash objdata = obj as T_TranCash;

            objdata.TranBankId  = this.TranBankId;
            objdata.VoucherNo   = this.VoucherNo;
            objdata.CompanyId   = this.CompanyId;
            objdata.AmountType  = this.AmountType;
            objdata.VoucherDate = this.VoucherDate;
            objdata.ChequeNo    = this.ChequeNo;
            objdata.BankId      = this.BankId;
            objdata.PartyId     = this.PartyId;
            objdata.NoOfDay     = this.NoOfDay;
            objdata.Place       = this.Place;
            objdata.BankName    = this.BankName;
            objdata.Description = this.Description;
            objdata.Amount      = this.Amount;
            objdata.LUT         = this.LUT;
            objdata.AccountName = this.AccountName;
            return(obj);
        }