private void CheckBoxes_checked(object sender, RoutedEventArgs e)
        {
            int count = 0;

            foreach (CheckBox cb in RiskField.FindVisualChildren <CheckBox>(UbicacionCB))
            {
                if ((bool)cb.IsChecked)
                {
                    count++;
                }
            }

            if (count > 0)
            {
                UbcGeo.SetRisk(3);
            }
            else
            {
                UbcGeo.SetRisk(1);
            }

            count = 0;
            foreach (CheckBox cb in RiskField.FindVisualChildren <CheckBox>(LugarActEcoCB))
            {
                if ((bool)cb.IsChecked)
                {
                    count++;
                }
            }

            if (count > 0 && count < 4)
            {
                LugarEco.SetRisk(count);
            }
        }
예제 #2
0
        public ProductoServicio()
        {
            ProdServ = new RiskField("ProductService", 1);

            (App.Current as App).Analysis.ProSerRisks.Add(ProdServ);

            this.DataContext = this;
            InitializeComponent();
        }
예제 #3
0
        public CanalVinculacion()
        {
            CanalVinc = new RiskField("VinculationChannels", 1m);

            (App.Current as App).Analysis.VinChaRisks.Add(CanalVinc);

            this.DataContext = this;
            InitializeComponent();
        }
        public UbicacionGeografica()
        {
            UbcGeo   = new RiskField("GeoLocation", 0.4m);
            LugarEco = new RiskField("EconomicActivityLocation", 0.6m);


            (App.Current as App).Analysis.GeoLocRisks.Add(UbcGeo);
            (App.Current as App).Analysis.GeoLocRisks.Add(LugarEco);
            this.DataContext = this;
            InitializeComponent();
        }
예제 #5
0
        private void CheckBoxes_checked(object sender, RoutedEventArgs e)
        {
            int count = 0;

            foreach (CheckBox cb in RiskField.FindVisualChildren <CheckBox>(ProdServCB))
            {
                if ((bool)cb.IsChecked)
                {
                    count++;
                }
            }

            if (count > 0 && count < 4)
            {
                ProdServ.SetRisk(count);
            }
        }
예제 #6
0
        public Cliente()
        {
            PV            = new PageVars();
            PepRisk       = new RiskField("PEP", 0.3m);
            ActividadRisk = new RiskField("Activity", 0.1m);
            AgeRisk       = new RiskField("Age", 0.15m);
            PatrimonyRisk = new RiskField("Patrimony", 0.1m);
            IncomeRisk    = new RiskField("Income", 0.2m);
            FlowRisk      = new RiskField("Flow", 0.15m);

            (App.Current as App).Analysis.ClientRisks.Add(PepRisk);
            (App.Current as App).Analysis.ClientRisks.Add(ActividadRisk);
            (App.Current as App).Analysis.ClientRisks.Add(AgeRisk);
            (App.Current as App).Analysis.ClientRisks.Add(PatrimonyRisk);
            (App.Current as App).Analysis.ClientRisks.Add(IncomeRisk);
            (App.Current as App).Analysis.ClientRisks.Add(FlowRisk);

            this.DataContext = this;
            InitializeComponent();
        }
예제 #7
0
        public RiesgoTransacional()
        {
            VSPromedioRisk     = new RiskField("VersusAverage", 0.2m);
            VSIngresosRisk     = new RiskField("VersusIncome", 0.2m);
            LugarTransRisk     = new RiskField("TransactionPlace", 0.1m);
            FrecueciaRisk      = new RiskField("Frequency", 0.1m);
            CambiosRisk        = new RiskField("Changes", 0.15m);
            HistInusualRisk    = new RiskField("UnusualHIstory", 0.1m);
            StatulJudicialRisk = new RiskField("JudicialStatus", 0.15m);

            (App.Current as App).Analysis.TransacationalRisks.Add(VSPromedioRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(VSIngresosRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(LugarTransRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(FrecueciaRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(CambiosRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(HistInusualRisk);
            (App.Current as App).Analysis.TransacationalRisks.Add(StatulJudicialRisk);

            this.DataContext = this;
            InitializeComponent();
        }
예제 #8
0
        private void radio_checked(object sender, RoutedEventArgs e)
        {
            int count;

            count = 3;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(vspromedio))
            {
                if ((bool)cb.IsChecked)
                {
                    VSPromedioRisk.SetRisk(count);
                }
                count--;
            }

            count = 3;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(vsingresos))
            {
                if ((bool)cb.IsChecked)
                {
                    VSIngresosRisk.SetRisk(count);
                }
                count--;
            }

            count = 2;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(lugar_transacion))
            {
                if ((bool)cb.IsChecked)
                {
                    if (count == 2)
                    {
                        LugarTransRisk.SetRisk(3);
                    }
                    else
                    {
                        LugarTransRisk.SetRisk(count);
                    }
                }
                count--;
            }

            count = 2;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(frecuencia))
            {
                if ((bool)cb.IsChecked)
                {
                    if (count == 2)
                    {
                        FrecueciaRisk.SetRisk(3);
                    }
                    else
                    {
                        FrecueciaRisk.SetRisk(count);
                    }
                }
                count--;
            }

            count = 3;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(condiciones))
            {
                if ((bool)cb.IsChecked)
                {
                    CambiosRisk.SetRisk(count);
                }
                count--;
            }

            count = 3;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(inusuales))
            {
                if ((bool)cb.IsChecked)
                {
                    HistInusualRisk.SetRisk(count);
                }
                count--;
            }

            count = 3;
            foreach (RadioButton cb in RiskField.FindVisualChildren <RadioButton>(judicial))
            {
                if ((bool)cb.IsChecked)
                {
                    StatulJudicialRisk.SetRisk(count);
                }
                count--;
            }
        }