Ejemplo n.º 1
0
        public ActionResult NewObservation(AV_NetLayerStatus ns, string post)
        {
            Response res = new Response();

            try
            {
                AV_NetLayerStatusDL nlsd = new AV_NetLayerStatusDL();
                nlsd.Manage("Set_Observation", Decimal.ToInt32(ns.NetworkModeId), Decimal.ToInt32(ns.BandId), Decimal.ToInt32(ns.CarrierId), Decimal.ToInt32(ns.SiteId), ViewBag.UserId, ns.netLayerObservations);
                res.Status  = "success";
                res.Message = "save successfully";
            }
            catch (Exception ex)
            {
                res.Status  = "danger";
                res.Message = ex.Message;
            }

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public ActionResult IsActive(string LayerId, bool Status)
        {
            Response res = new Response();

            try
            {
                AV_NetLayerStatusDL nlsd = new AV_NetLayerStatusDL();
                nlsd.Manage("Set_IsActive", 0, 0, 0, 0, ViewBag.UserId, LayerId, Status.ToString());
                res.Status  = "success";
                res.Message = "save successfully";
            }
            catch (Exception ex)
            {
                res.Status  = "danger";
                res.Message = ex.Message;
            }

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public ActionResult WoStatus(Int64 LayerStatusId, Int64 Status, string Remarks)
        {
            Response res = new Response();

            try
            {
                AV_NetLayerStatusDL nlsd = new AV_NetLayerStatusDL();
                nlsd.Manage("Status_Movement", 0, 0, 0, 0, ViewBag.UserId, LayerStatusId.ToString(), Status.ToString(), Remarks);
                res.Status  = "success";
                res.Message = "save successfully";
            }
            catch (Exception ex)
            {
                res.Status  = "danger";
                res.Message = ex.Message;
            }

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 4
0
        public ActionResult MarkReportSubmit(AV_NetLayerStatus ns)
        {
            Response res = new Response();

            try
            {
                AV_NetLayerStatusDL nlsd = new AV_NetLayerStatusDL();
                nlsd.Manage("Set_Status", Decimal.ToInt32(ns.NetworkModeId), Decimal.ToInt32(ns.BandId), Decimal.ToInt32(ns.CarrierId), Decimal.ToInt32(ns.SiteId), ViewBag.UserId, ns.KeyCode);
                res.Status  = "success";
                res.Message = "Mark as reportSubmit successfully";
            }
            catch (Exception ex)
            {
                res.Status  = "danger";
                res.Message = ex.Message;
            }

            return(Json(res, JsonRequestBehavior.AllowGet));
        }