Example #1
0
        public TaggedOrderArray(string tag, Order[] orderTOs)
        {
            this.tag = tag;
            this.count = 0;

            if (orderTOs == null || orderTOs.Length == 0)
            {
                return;
            }

            items = new OrderTO[orderTOs.Length];
            this.count = orderTOs.Length;

            for (int i = 0; i < orderTOs.Length; i++)
            {
                items[i] = new OrderTO(orderTOs[i]);
            }
        }
Example #2
0
 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);
 }