Ejemplo n.º 1
0
        public JsonResult MakeChart(int ReportID, string UserName)
        {
            if (!string.IsNullOrEmpty(UserName))
            {
                Username = CrossCutting.CrossCutting_EncryptDecrypt.Decrypt(UserName);
            }
            GraphDetails objGraphDetails = new GraphDetails();
            DashBoardBL  dashBoard       = new DashBoardBL();

            objGraphDetails.ReportID = ReportID;
            objGraphDetails.UserName = Username;
            objGraphDetails          = dashBoard.GenerateDashboardData(objGraphDetails);

            return(Json(objGraphDetails, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetDatosIniciales(string usuario, int idCliente)
        {
            try
            {
                DashBoardBL oDashBoardBL        = new DashBoardBL(idCliente);
                DashBoard_DatosInicialesBE lobe = oDashBoardBL.ListarDatosIniciales(usuario, idCliente);

                if (lobe != null)
                {
                    return(Ok(Models.Util.GetBodyResponse(200, lobe)));
                }
                else
                {
                    return(Ok(Models.Util.GetBodyResponse(300, "No se encontraron registros.")));
                }
            }
            catch (Exception ex)
            {
                /*LogSA.GrabarLogError("SOL TR", user, "GetListarOrdOtrs", ex);*/
                return(Ok(Models.Util.GetBodyResponse(400, ex.Message)));
            }
        }
Ejemplo n.º 3
0
        public GraphDetails GenerateDashboardData(GraphDetails objGraphDetails)
        {
            DashBoardBL objBusiness = new DashBoardBL();

            return(objBusiness.GenerateDashboardData(objGraphDetails));
        }