Пример #1
0
        public override void TestInitialize()
        {
            base.TestInitialize();
            _appointments = new AppointmentsRepository();
            _clients      = new ClientsRepository();
            _treatments   = new TreatmentsRepository();
            _technicians  = new TechniciansRepository();
            _clientData   = GetRandom.Object <ClientData>();
            var c = new global::Delux.Domain.Client.Client(_clientData);

            _clients.Add(c).GetAwaiter();
            AddRandomClients();
            _treatmentData = GetRandom.Object <TreatmentData>();
            var tr = new global::Delux.Domain.Treatment.Treatment(_treatmentData);

            _treatments.Add(tr).GetAwaiter();
            AddRandomTreatments();
            _technicianData = GetRandom.Object <TechnicianData>();
            var te = new global::Delux.Domain.Technician.Technician(_technicianData);

            _technicians.Add(te).GetAwaiter();
            AddRandomTechnicians();

            Obj = new TestClass(_appointments, _clients, _treatments, _technicians);
        }
    // +--------------------------+-------------------------------------------------------------------------------------------------------------------------------
    // | Awake, Start, and Update |
    // +--------------------------+

    // Called before any Start functions
    void Awake()
    {
        // Get the settings
        GameObject settingsWindow = GameObject.Find("SettingsWindow");

        if (settingsWindow)
        {
            settingsWindow.name = "GameSettings";
            settings            = settingsWindow.GetComponent <SettingsScript>().settings;
        }
        else
        {
            settingsWindow = GameObject.Find("GameSettings");
            if (settingsWindow)
            {
                settings = settingsWindow.GetComponent <SettingsScript>().settings;
            }
            else
            {
                settings = new Settings();
            }
        }

        // Turn on the tutorial if necessary
        inTutorial = settings.inTutorial;
        if (inTutorial)
        {
            tutorial.SetActive(true);
        }

        // Set all of the game controller script settings
        canReproduce         = settings.canReproduce;
        canEvolve            = settings.canEvolve;
        treatmentsAsVaccines = settings.treatmentsAsVaccines;
        canResearch          = settings.canResearch;
        alternateTreatments  = settings.alternateTreatments;

        budget            = settings.initBudget;
        initialPopulation = settings.initPopulation;
        numInfected       = (int)(initialPopulation * (settings.initPercentInfected / 100f));

        moneyPerWorker  = settings.moneyPerWorker;
        infectedPenalty = settings.infectedPenalty;

        baseMutationChance = settings.baseMutationChance;

        // Reset all the variables that may have been left over from the last game
        maxStrain              = 1;
        researchBudget         = 0;
        totalEarned            = 0;
        totalSpentOnResearch   = 0;
        newTreatment           = null;
        newTreatmentGuaranteed = 15000;
        totalUpdates           = 0;
        totalPopList.Clear();
        uninfectedPopList.Clear();
        infectedPopList.Clear();
        budgetList.Clear();
    }
Пример #3
0
        public static Domain.Treatment.Treatment Create(TreatmentView v)
        {
            var d = new TreatmentData();

            Copy.Members(v, d);

            return(new Domain.Treatment.Treatment(d));
        }
Пример #4
0
        public List <TreatmentData> TreatmentList()
        {
            List <TreatmentData> treatmentList = new List <TreatmentData>();

            this.Open();

            int recordCount = this.RetrieveRecords();

            this.MoveFirst();

            for (int x = 1; x <= recordCount; x++)
            {
                TreatmentData treatmentData = new TreatmentData(this, x);
                treatmentList.Add(treatmentData);
            }

            return(treatmentList);
        }
    // Creates a new treatment
    void NewTreatment(int money)
    {
        // Increase the amount of money to guarantee a new treatment
        newTreatmentGuaranteed += 2000;

        // Set the max efficacy
        // When variance != 0, high percentages tend to end up being too overpowered
        int maxEfficacy = (variance != 0) ? 80 : 95;

        // Choose an efficacy
        int efficacy = UnityEngine.Random.Range(5, maxEfficacy);

        if (money <= newTreatmentGuaranteed / 3)
        {
            efficacy -= UnityEngine.Random.Range(5, 15);
        }
        else if (money >= (newTreatmentGuaranteed / 3) * 2)
        {
            efficacy += UnityEngine.Random.Range(5, 15);
        }

        if (efficacy >= maxEfficacy)
        {
            efficacy = maxEfficacy - UnityEngine.Random.Range(0, 5);
        }
        else if (efficacy <= 5)
        {
            efficacy = 5 + UnityEngine.Random.Range(0, 5);
        }

        // Choose a cost
        int cost = UnityEngine.Random.Range(2, 20) * (5 * efficacy / 50);

        if (cost < 5)
        {
            cost = 5 + UnityEngine.Random.Range(0, 5);
        }

        // Generate the new treatment
        newTreatment = new TreatmentData(cost, efficacy);

        // Notify the player
        StartCoroutine(ChangePopupText("A new treatment has been discovered!"));
    }
    // +-------+--------------------------------------------------------------------------------------------------------------------------------------------------
    // | Start |
    // +-------+

    // Use this for initialization
    void Start()
    {
        // Get the new treatment data
        newTreatment = GameControllerScript.newTreatment;

        // Get the treatment toggles
        treatmentToggles = GameObject.Find("TreatmentToggles");

        // Initialize the cost text
        if (newTreatment != null)
        {
            costText.text = newTreatment.cost.ToString("c0");
        }

        // Add listeners
        addButton.onClick.AddListener(delegate { AddButtonClick(); });
        discardButton.onClick.AddListener(delegate { Discard(); });
        nameTextBox.onEndEdit.AddListener(delegate { OnEditEnd(nameTextBox); });
    }
    // Adds the new treatment to the game
    void AddTreatment(string treatmentName)
    {
        // Create a new inactive toggle
        GameObject newToggle = Instantiate(togglePrefab);

        // Set the script variables
        TreatmentScript script = newToggle.GetComponent <TreatmentScript>();

        script.treatmentName   = treatmentName;
        script.cost            = newTreatment.cost;
        script.chanceOfSuccess = newTreatment.efficacy;
        script.startingUpdate  = GameControllerScript.totalUpdates;
        script.mouseAttach     = GameObject.Find("MouseAttach").gameObject;

        // Set the toggle properties
        newToggle.transform.name = "Treatment" + treatmentName;
        newToggle.transform.SetParent(treatmentToggles.transform, false);
        newToggle.GetComponent <Toggle>().group = treatmentToggles.GetComponent <ToggleGroup>();

        // Create a new management menu button
        int numButtons = 0;

        foreach (Transform menuButton in treatmentMenu.transform)
        {
            numButtons++;
        }

        // Reset newTreatment
        newTreatment = null;
        GameControllerScript.newTreatment = null;
        gameObject.SetActive(false);

        // Open the treatment data window for the new treatment
        transform.parent.SendMessage(
            "OpenTreatmentData",
            transform.parent.GetComponent <CenterWindowScript>().InstantiateMenuButton(treatmentName, numButtons, false)
            );
    }
Пример #8
0
        protected static FR_L6BH_MBHR_1624 Execute(DbConnection Connection, DbTransaction Transaction, P_L6BH_MBHR_1624 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            #region UserCode
            var returnValue = new FR_L6BH_MBHR_1624();
            returnValue.Result = new L6BH_MBHR_1624();
            returnValue.Result.areThereTreatmentsOrFollowupsBilledForParameters = false;
            List <TreatmentData> AllSortedTreatments = new List <TreatmentData>();
            List <Guid>          listOfPractices     = new List <Guid>();

            //treatments and followups for selected month and your (only treatment table)
            var allTreatmentsForTimeRange = cls_Get_Treatments_and_Followups_for_SelectedMonth_and_Year.Invoke(Connection, Transaction, new P_L5TR_GTaFfSMaY_1619()
            {
                SelectedMounth = Parameter.SelectedMounth, SelectedYear = Parameter.SelectedYear
            }, securityTicket).Result.ToList();

            if (allTreatmentsForTimeRange.Count > 0)
            {
                returnValue.Result.areThereTreatmentsOrFollowupsBilledForParameters = true;
            }
            else
            {
                return(returnValue);
            }

            List <Guid> listOfTreatmentIDs = allTreatmentsForTimeRange.Select(i => i.HEC_Patient_TreatmentID).ToList();

            //all treatments and followupss that have bill position table (for selected month, year)
            var treatmentData = cls_Get_BilledTreatmentData_for_Report.Invoke(Connection, Transaction, new P_L5BH_GBTDfR_1158()
            {
                TreatmentID = listOfTreatmentIDs.ToArray()
            }, securityTicket).Result.ToList();

            //get all practices
            listOfPractices = treatmentData.Select(i => i.TreatmentPractice_RefID).Distinct().ToList();

            //from this list remove all treatments/followups that do not have bill positions .... // what is left is old followups which do not have sepparate bill position
            foreach (var item in treatmentData)
            {
                var treatmentToRemove = allTreatmentsForTimeRange.Where(i => i.HEC_Patient_TreatmentID == item.HEC_Patient_TreatmentID).FirstOrDefault();
                if (treatmentToRemove != null)
                {
                    allTreatmentsForTimeRange.Remove(treatmentToRemove);
                }
            }
            var oldFollowups = allTreatmentsForTimeRange;

            #region Get all followups with their own bill position and organise them || FOLLOWUP DATA

            var followupsWihtOwnBillPosition = treatmentData.Where(i => i.External_PositionType == "Nachsorge").ToList();

            List <TreatmentData> followupsWihtOwnBillPositionSorted = new List <TreatmentData>();
            foreach (var item in followupsWihtOwnBillPosition)
            {
                TreatmentData followupData = new TreatmentData();
                followupData.Date          = item.TreatmentDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                followupData.FirstName     = item.FirstName;
                followupData.LastName      = item.LastName;
                followupData.Birthday      = item.BirthDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                followupData.Article       = item.Products[0].Product_Name.Contents[0].Content;;
                followupData.Vorgassnumber = item.VorgangsNumber;
                followupData.PracticeID    = item.TreatmentPractice_RefID;
                List <GPOS> GPOS     = new List <GPOS>();
                GPOS        gposData = new GPOS();
                gposData.Number = item.GPOS;
                gposData.Text   = "Nachsorgebehandlung";
                gposData.Price  = double.Parse(item.PositionValue_IncludingTax);
                GPOS.Add(gposData);
                followupData.GPOS = GPOS;
                if (item.TCode == "3")
                {
                    followupData.isAOKConfirmedStatus = true;
                }
                else
                {
                    followupData.isAOKConfirmedStatus = false;
                }
                followupsWihtOwnBillPositionSorted.Add(followupData);
            }
            #endregion

            //from all bill positions remove followups
            foreach (var item in followupsWihtOwnBillPosition)
            {
                treatmentData.Remove(item);
            }

            List <Guid> OLDFollowupsThatHaveTreatmentInDifferentPractice = new List <Guid>();
            foreach (var item in oldFollowups)
            {
                if (treatmentData.Where(i => i.HEC_Patient_TreatmentID == item.IfTreatmentFollowup_FromTreatment_RefID).ToList().Count == 0)
                {
                    OLDFollowupsThatHaveTreatmentInDifferentPractice.Add(item.HEC_Patient_TreatmentID);
                }
            }

            #region Organise Treatment data

            List <TreatmentData> TreatmentsSorted = new List <TreatmentData>();
            List <Guid>          Treatments       = treatmentData.Select(i => i.HEC_Patient_TreatmentID).Distinct().ToList();

            foreach (var treatmentID in Treatments)
            {
                var treatment = treatmentData.Where(i => i.HEC_Patient_TreatmentID == treatmentID && (i.External_PositionType == "Behandlung | Nachsorge" || i.External_PositionType == "Behandlung")).FirstOrDefault();

                TreatmentData treatmentSorted = new TreatmentData();
                treatmentSorted.Date          = treatment.TreatmentDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                treatmentSorted.PracticeID    = treatment.TreatmentPractice_RefID;
                treatmentSorted.FirstName     = treatment.FirstName;
                treatmentSorted.LastName      = treatment.LastName;
                treatmentSorted.Birthday      = treatment.BirthDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                treatmentSorted.Vorgassnumber = treatment.VorgangsNumber;
                if (treatment.Products != null && treatment.Products.Length > 0)
                {
                    treatmentSorted.Article = treatment.Products[0].Product_Name.Contents[0].Content;
                }
                else
                {
                    treatmentSorted.Article = "";
                }
                if (treatment.TCode == "3")
                {
                    treatmentSorted.isAOKConfirmedStatus = true;
                }
                else
                {
                    treatmentSorted.isAOKConfirmedStatus = false;
                }

                List <GPOS> GPOS     = new List <GPOS>();
                GPOS        gposData = new GPOS();
                gposData.Number = treatment.GPOS;
                gposData.Text   = "Erstbehandlung " + treatmentSorted.Article;
                gposData.Price  = 230;
                gposData.ID     = 1;
                GPOS.Add(gposData);

                if (treatment.External_PositionType == "Behandlung | Nachsorge")
                {
                    gposData        = new GPOS();
                    gposData.Number = treatment.GPOS;
                    gposData.Text   = "Nachsorgebehandlung";
                    if (treatmentSorted.Article != "Ozurdex")
                    {
                        gposData.Price = 60;
                    }
                    else
                    {
                        gposData.Price = 150;
                    }
                    gposData.ID = 2;
                    GPOS.Add(gposData);
                }

                gposData        = new GPOS();
                gposData.Number = String.Empty;
                gposData.Text   = "Management Pauschaule";
                gposData.Price  = 0;
                gposData.ID     = 5;
                GPOS.Add(gposData);

                if (treatmentSorted.Article.ToLower().Contains("bevacizumab"))
                {
                    var BevacuzimabTreatment = treatmentData.Where(i => i.HEC_Patient_TreatmentID == treatmentID && ((i.External_PositionType == "Zusatzposition Bevacuzimab") || i.External_PositionType == "Zusatzposition Bevacizumab")).FirstOrDefault();

                    if (BevacuzimabTreatment != null)
                    {
                        gposData        = new GPOS();
                        gposData.Number = BevacuzimabTreatment.GPOS;
                        gposData.Text   = "Medikamentenkosten Bevacizumab";
                        gposData.Price  = double.Parse(BevacuzimabTreatment.PositionValue_IncludingTax);
                        gposData.ID     = 3;
                        GPOS.Add(gposData);
                    }
                }

                var WartezeitenmanagementData = treatmentData.Where(i => i.HEC_Patient_TreatmentID == treatmentID && (i.External_PositionType == "Wartezeitenmanagement")).FirstOrDefault();

                if (WartezeitenmanagementData != null)
                {
                    gposData        = new GPOS();
                    gposData.Number = WartezeitenmanagementData.GPOS;
                    gposData.Text   = "Wartezeitenmanagement";
                    gposData.Price  = double.Parse(WartezeitenmanagementData.PositionValue_IncludingTax);
                    gposData.ID     = 4;
                    GPOS.Add(gposData);
                }


                GPOS = GPOS.OrderBy(i => i.ID).ToList();
                treatmentSorted.GPOS = GPOS;
                TreatmentsSorted.Add(treatmentSorted);
            }


            #endregion

            #region Combine Treatment bill positions with followup bill positions

            foreach (var item in followupsWihtOwnBillPositionSorted)
            {
                var treatment = TreatmentsSorted.Where(i => i.Date == item.Date && i.FirstName == item.FirstName && i.LastName == item.LastName && i.Birthday == item.Birthday).FirstOrDefault();
                if (treatment == null)
                {
                    TreatmentsSorted.Add(item);
                }
                else
                {
                    GPOS gposData = new GPOS();
                    gposData.Number = treatment.GPOS.Where(i => i.ID == 1).First().Number;
                    gposData.Text   = "Nachsorgebehandlung";
                    if (treatment.Article != "Ozurdex")
                    {
                        gposData.Price = 60;
                    }
                    else
                    {
                        gposData.Price = 150;
                    }
                    gposData.ID = 2;
                    treatment.GPOS.Add(gposData);
                    treatment.GPOS = treatment.GPOS.OrderBy(i => i.ID).ToList();
                }
            }

            #endregion

            #region Organise OLD Followups (followups that do not have sepparate bill position) and add them to all Treatments
            if (OLDFollowupsThatHaveTreatmentInDifferentPractice.Count > 0)
            {
                var rawDataForOldFollowups = cls_Get_BilledFollowupData_for_Report.Invoke(Connection, Transaction, new P_L5BH_GBFDfR_1443()
                {
                    FollowUpID = OLDFollowupsThatHaveTreatmentInDifferentPractice.ToArray()
                }, securityTicket).Result.ToList();

                rawDataForOldFollowups = rawDataForOldFollowups.Where(i => i.External_PositionType == "Behandlung | Nachsorge" || i.External_PositionType == "Behandlung").ToList();

                List <TreatmentData> OldFollowupsSorted = new List <TreatmentData>();

                foreach (var item in rawDataForOldFollowups)
                {
                    TreatmentData followup = new TreatmentData();
                    followup.Date          = item.FollowupDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                    followup.PracticeID    = item.FollowupPracticeID;
                    followup.FirstName     = item.FirstName;
                    followup.LastName      = item.LastName;
                    followup.Birthday      = item.BirthDate.ToString("dd.MM.yyyy", new CultureInfo("de-DE"));
                    followup.Vorgassnumber = item.VorgangsNumber;
                    if (item.Products != null && item.Products.Length > 0)
                    {
                        followup.Article = item.Products[0].Product_Name.Contents[0].Content;
                    }
                    else
                    {
                        followup.Article = "";
                    }
                    if (item.TCode == "3")
                    {
                        followup.isAOKConfirmedStatus = true;
                    }
                    else
                    {
                        followup.isAOKConfirmedStatus = false;
                    }

                    List <GPOS> GPOS     = new List <GPOS>();
                    GPOS        gposData = new GPOS();
                    gposData.Number = item.GPOS;
                    gposData.Text   = "Nachsorgebehandlung";
                    if (followup.Article != "Ozurdex")
                    {
                        gposData.Price = 60;
                    }
                    else
                    {
                        gposData.Price = 150;
                    }
                    gposData.ID = 2;
                    GPOS.Add(gposData);

                    followup.GPOS = GPOS;
                    OldFollowupsSorted.Add(followup);
                }

                foreach (var item in OldFollowupsSorted)
                {
                    TreatmentsSorted.Add(item);
                }
            }
            #endregion


            #region get practice details

            P_L5PR_GPDfPID_1501 param = new P_L5PR_GPDfPID_1501();
            param.PracticeID = listOfPractices.ToArray();

            var practicesRawData = cls_Get_PracticeDetails_for_PracticeID.Invoke(Connection, Transaction, param, securityTicket).Result.ToList();


            List <WordReportData> WordDataByPractice = new List <WordReportData>();

            foreach (var practice in practicesRawData)
            {
                WordReportData wordData = new WordReportData();
                wordData.PracticeID                = practice.HEC_MedicalPractiseID;
                wordData.PracticeName              = practice.PracticeName;
                wordData.PracticeAddress           = practice.Street_Name + " " + practice.Street_Number;
                wordData.PracticePostalCodeAndCity = practice.ZIP + " " + practice.Town;
                wordData.SelectedMonth             = Parameter.SelectedMounth_String;
                wordData.Treatments                = TreatmentsSorted.Where(i => i.PracticeID == wordData.PracticeID).OrderBy(j => j.Date).ToList();

                WordDataByPractice.Add(wordData);
            }
            #endregion

            //Make word documents by practice and attach the documents to email
            List <Attachment> atts = new List <Attachment>();
            foreach (var practice in WordDataByPractice)
            {
                var parameters = new Dictionary <String, Object>();
                parameters.Add("WordReportData", practice);
                parameters.Add("LanguageCode", Parameter.LanguageCode);
                parameters.Add("ReportType", "RTF");

                string reportName = practice.PracticeName.Replace('/', '-');

                var report = new LucentisReports.DoctorsBillingReport();
                report.SetContext(parameters);
                MemoryStream ms1 = new MemoryStream();

                ms1 = report.ExportToMemoryStream();

                ms1.Seek(0, System.IO.SeekOrigin.Begin);

                Attachment att = new Attachment(ms1, "Doctors_Billing_" + reportName + "_" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm") + ".rtf", "application/doc");
                atts.Add(att);
            }

            string[] toMails;
            string   mailRes = (String)HttpContext.GetGlobalResourceObject("Global", "ReportMails");
#if DEBUG
            mailRes = (String)HttpContext.GetGlobalResourceObject("Global", "ReportMailsDebug");
#endif
            toMails = mailRes.Split(';');
            string subjectRes = (String)HttpContext.GetGlobalResourceObject("Global", "ReportMailSubject1");
            EmailUtils.SendMail(toMails, subjectRes, "", atts);
            return(returnValue);

            #endregion UserCode
        }
 // Called when the player chooses to discard this treatment
 void Discard()
 {
     newTreatment = null;
     GameControllerScript.newTreatment = null;
     gameObject.SetActive(false);
 }
Пример #10
0
        public List <TreatmentData> getTreatmentData(OrderDetailsModel orderDetailsModel)
        {
            List <TreatmentData> treatmentDataList = new List <TreatmentData>();

            foreach (var orderItemModel in orderDetailsModel.Items)
            {
                TreatmentData treatmentDataItem = new TreatmentData();
                treatmentDataItem.id = orderItemModel.Id;
                var specAttr            = _specificationAttributeService.GetProductSpecificationAttributes(orderItemModel.ProductId);
                var imageSpecAttrOption = specAttr.Select(x => x.SpecificationAttributeOption);
                if (imageSpecAttrOption.Any())
                {
                    var thumbnailBackground = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == "Treatment");
                    if (thumbnailBackground.Any())
                    {
                        foreach (var thbackground in thumbnailBackground)
                        {
                            var gbsBackGroundName = thbackground.Name;
                            treatmentDataItem.DefaultColor = "";
                            treatmentDataItem.ClassName    = "";
                            if (gbsBackGroundName.Any())
                            {
                                switch (gbsBackGroundName)
                                {
                                case "TreatmentImage":
                                    var backGroundShapeName = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == gbsBackGroundName);
                                    if (backGroundShapeName.Any())
                                    {
                                        treatmentDataItem.ClassName = backGroundShapeName.FirstOrDefault().Name;
                                    }
                                    break;

                                case "TreatmentFill":
                                    var backGroundFillOption = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == gbsBackGroundName);
                                    if (backGroundFillOption.Any())
                                    {
                                        var fillOptionValue = backGroundFillOption.FirstOrDefault().Name;
                                        switch (fillOptionValue)
                                        {
                                        case "TreatmentFillPattern":
                                            var img = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == backGroundFillOption.FirstOrDefault().Name);
                                            if (img.Any())
                                            {
                                                treatmentDataItem.DefaultColor = "background-image:url('" + img.FirstOrDefault().ColorSquaresRgb + "')";
                                            }
                                            break;

                                        case "TreatmentFillColor":
                                            var color = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == backGroundFillOption.FirstOrDefault().Name);
                                            if (color.Any())
                                            {
                                                treatmentDataItem.DefaultColor = "background-color:" + color.FirstOrDefault().ColorSquaresRgb;
                                            }
                                            break;
                                        }
                                    }
                                    break;
                                }
                            }
                        }
                    }
                    else
                    {
                        var defaultColorOption = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == "DefaultEnvelopeColor");
                        var defaultEnvelopType = imageSpecAttrOption.Where(x => x.SpecificationAttribute.Name == "Orientation");
                        if (defaultEnvelopType.Any())
                        {
                            string className = defaultEnvelopType.FirstOrDefault().Name;
                            treatmentDataItem.ClassName = className;

                            if (defaultColorOption.Any())
                            {
                                var optionValue = defaultColorOption.FirstOrDefault().ColorSquaresRgb;
                                treatmentDataItem.DefaultColor = optionValue;
                                if (optionValue.Contains("#") && optionValue.Length == 7)
                                {
                                    treatmentDataItem.DefaultColor = "background-color:" + optionValue;
                                }
                                else
                                {
                                    treatmentDataItem.DefaultColor = "background-image:url('" + optionValue + "')";
                                }
                            }
                            else
                            {
                                treatmentDataItem.DefaultColor = "";
                            }
                        }
                    }
                }
                treatmentDataList.Add(treatmentDataItem);
            }
            return(treatmentDataList);
        }
Пример #11
0
 public TreatmentPack(TreatmentData data, TreatmentRepresentation rep)
 {
     this.data = data;
     this.rep  = rep;
 }