public OrderTO(Order mdoOrder) { if (mdoOrder == null) { return; } this.id = mdoOrder.Id; this.timestamp = mdoOrder.Timestamp.ToString("yyyyMMdd.HHmmss"); this.orderingServiceName = mdoOrder.OrderingServiceName; this.treatingSpecialty = mdoOrder.TreatingSpecialty; this.startDate = mdoOrder.StartDate.ToString("yyyyMMdd.HHmmss"); this.stopDate = mdoOrder.StopDate.ToString("yyyyMMdd.HHmmss"); this.status = mdoOrder.Status; this.sigStatus = mdoOrder.SigStatus; this.dateSigned = mdoOrder.DateSigned.ToString("yyyyMMdd.HHmmss"); this.verifyingNurse = mdoOrder.VerifyingNurse; this.dateVerified = mdoOrder.DateVerified.ToString("yyyyMMdd.HHmmss"); this.verifyingClerk = mdoOrder.VerifyingClerk; this.chartReviewer = mdoOrder.ChartReviewer; this.dateReviewed = mdoOrder.DateReviewed.ToString("yyyyMMdd.HHmmss"); this.provider = new UserTO(mdoOrder.Provider); this.text = mdoOrder.Text; this.detail = mdoOrder.Detail; this.errMsg = mdoOrder.ErrMsg; this.flag = mdoOrder.Flag; this.type = new OrderTypeTO(mdoOrder.Type); }
public OrderTO(Order mdoOrder) { this.id = mdoOrder.Id; this.timestamp = mdoOrder.Timestamp.ToString("yyyyMMdd.HHmmss"); this.orderingServiceName = mdoOrder.OrderingServiceName; this.treatingSpecialty = mdoOrder.TreatingSpecialty; this.startDate = mdoOrder.StartDate.ToString("yyyyMMdd.HHmmss"); this.stopDate = mdoOrder.StopDate.ToString("yyyyMMdd.HHmmss"); this.status = mdoOrder.Status; this.sigStatus = mdoOrder.SigStatus; this.dateSigned = mdoOrder.DateSigned.ToString("yyyyMMdd.HHmmss"); this.verifyingNurse = mdoOrder.VerifyingNurse; this.dateVerified = mdoOrder.DateVerified.ToString("yyyyMMdd.HHmmss"); this.verifyingClerk = mdoOrder.VerifyingClerk; this.chartReviewer = mdoOrder.ChartReviewer; this.dateReviewed = mdoOrder.DateReviewed.ToString("yyyyMMdd.HHmmss"); this.provider = new UserTO(mdoOrder.Provider); this.text = mdoOrder.Text; this.detail = mdoOrder.Detail; this.errMsg = mdoOrder.ErrMsg; this.flag = mdoOrder.Flag; this.type = new OrderTypeTO(mdoOrder.Type); }