public PublicMortgage GetPublic(object key) { MortgageDAL dal = new MortgageDAL(); var curr = base.Get(key); return(curr ?? null); }
public void CopyPublic(PublicMortgage entity, string id, string createUser) { var pubMort = new PublicMortgage() { CreateTime = DateTime.Now, ID = id, CreateUser = createUser, ContractFile = entity.ContractFile, NoteFile = entity.NoteFile, ReceiptFile = entity.ReceiptFile, OtherFile = entity.OtherFile, FourFile = entity.FourFile, ContractNo = entity.ContractNo, ContractAmount = entity.ContractAmount, ContractDate = entity.ContractDate, ContractPerson = entity.ContractPerson, UndertakingFile = entity.UndertakingFile, RepaymentAttorneyFile = entity.RepaymentAttorneyFile, ContactConfirmFile = entity.ContactConfirmFile, PowerAttorneyFile = entity.PowerAttorneyFile, CollectionFile = entity.CollectionFile, }; MortgageDAL dal = new MortgageDAL(); //Infrastructure.ExtendTools.ObjectExtend.CopyTo(entity, pubMort); //pubMort.CreateTime = DateTime.Now; //pubMort.ID = id; //pubMort.CreateUser = createUser; dal.Add(pubMort); }