Beispiel #1
0
        private static void CheckLimitControl(BlockConfigModalParameters parameters, GameObject blockObject)
        {
            LimitControl limitControl = blockObject.GetComponent <LimitControl>();

            if (limitControl != null)
            {
                parameters.panelParametersList.Add(new LimitBlockConfigPanelParameters(limitControl));
            }
        }
Beispiel #2
0
        public override void Init(BlockConfigPanelParameters parameters)
        {
            base.Init(parameters);
            var panelParameters = parameters as LimitBlockConfigPanelParameters;

            limitControl = panelParameters.limitControl;
            limitControl.MinLimitChanged  += UpdateTextFields;
            limitControl.MaxLimitChanged  += UpdateTextFields;
            limitControl.UseLimitsChanged += UpdateTextFields;
            UpdateTextFields();
        }
Beispiel #3
0
        public ReloadClientLimitResponse ReloadLimitClientLimitStructures(ReloadClientLimitRequest req)
        {
            ReloadClientLimitResponse resp = new ReloadClientLimitResponse();

            try
            {
                resp = LimitControl.GetInstance().ReloadClientLimits(req.CodCliente, req.DeleteOnly);
            }
            catch (Exception ex)
            {
                logger.Error("Problemas na recarga de estrutura de controle de Limite por cliente. CodCliente: " + req.CodCliente + " : " + ex.Message, ex);
                resp.DescricaoErro  = ex.Message;
                resp.StackTrace     = ex.StackTrace;
                resp.StatusResponse = LimitMessages.ERRO;
            }
            return(resp);
        }
Beispiel #4
0
        public ReloadLimitsResponse ReloadLimitStructures(ReloadLimitsRequest req)
        {
            ReloadLimitsResponse resp = new ReloadLimitsResponse();

            try
            {
                resp = LimitControl.GetInstance().ReloadLimits(req.ReloadSecurityList);
            }
            catch (Exception ex)
            {
                logger.Error("Problemas na recarga de toda estrutura de controle de Limite: " + ex.Message, ex);
                resp.DescricaoErro  = ex.Message;
                resp.StackTrace     = ex.StackTrace;
                resp.StatusResponse = LimitMessages.ERRO;
            }
            return(resp);
        }
Beispiel #5
0
 public LimitBlockConfigPanelParameters(LimitControl limitControl)
 {
     this.limitControl = limitControl;
 }