Beispiel #1
0
        //Get History Item from BillingTransactionItems.
        //re-order the sequence of property-assignment in there.
        public static History_BillingTransactionItem GetMappedFromBillingTxnItem(BillingTransactionItemModel ipTxnItem, string historyType)
        {
            History_BillingTransactionItem retModel = new History_BillingTransactionItem()
            {
                BillingTransactionItemId = ipTxnItem.BillingTransactionItemId,
                HistoryType           = historyType,
                BillingTransactionId  = ipTxnItem.BillingTransactionId,
                PatientId             = ipTxnItem.PatientId,
                PatientType           = ipTxnItem.BillingType,//change billingtype to patienttype in txnitem as well.
                PatientVisitId        = ipTxnItem.PatientVisitId,
                ServiceDepartmentId   = ipTxnItem.ServiceDepartmentId,
                ServiceDepartmentName = ipTxnItem.ServiceDepartmentName,
                ItemId             = ipTxnItem.ItemId,
                ItemName           = ipTxnItem.ItemName,
                CounterId          = ipTxnItem.CounterId,
                CounterDay         = ipTxnItem.CounterDay,
                CreatedBy          = ipTxnItem.CreatedBy,
                CreatedOn          = ipTxnItem.CreatedOn,
                DiscountAmount     = ipTxnItem.DiscountAmount,
                DiscountPercent    = ipTxnItem.DiscountPercent,
                DiscountPercentAgg = ipTxnItem.DiscountPercentAgg,
                Price              = ipTxnItem.Price,
                ProviderId         = ipTxnItem.ProviderId,
                ProviderName       = ipTxnItem.ProviderName,
                SubTotal           = ipTxnItem.SubTotal,
                Tax                = ipTxnItem.Tax,
                TaxableAmount      = ipTxnItem.TaxableAmount,
                NonTaxableAmount   = ipTxnItem.NonTaxableAmount,
                IsTransferredToACC = false,
                Quantity           = ipTxnItem.Quantity,
                TotalAmount        = ipTxnItem.TotalAmount,
                Remarks            = ipTxnItem.CancelRemarks,
                RequestingDeptId   = ipTxnItem.RequestingDeptId,
                RequisitionId      = ipTxnItem.RequisitionId,
                TaxPercent         = ipTxnItem.TaxPercent
            };

            return(retModel);
        }
Beispiel #2
0
        }                                             //sud:24Sept'18

        public static BillingTransactionItemModel GetClone(BillingTransactionItemModel ipTxnItem)
        {
            BillingTransactionItemModel retTxnItem = (BillingTransactionItemModel)ipTxnItem.MemberwiseClone();

            return(retTxnItem);
        }