Beispiel #1
0
        public ActionResult Devices(string filter, string value)
        {
            if (filter == "Issue")
            {
                AD_UserEquipmentsBL ueb = new AD_UserEquipmentsBL();

                //var rec = ueb.SelectedList("ReturnedDevice", value, null);
                var rec = ueb.SelectedList("AvailableDevices", value, null);
                return(Json(rec, JsonRequestBehavior.AllowGet));
            }
            else if (filter == "Transfer")
            {
                AD_UserEquipmentsBL ueb = new AD_UserEquipmentsBL();

                var rec = ueb.SelectedList("IssuedDevice", value, null);
                return(Json(rec, JsonRequestBehavior.AllowGet));
            }
            else if (filter == "Return")
            {
                Sec_UserDevicesBL udb = new Sec_UserDevicesBL();
                var rec = udb.SelectedList("byUserId", value, null, "Devices");
                return(Json(rec, JsonRequestBehavior.AllowGet));
            }
            return(null);
        }
Beispiel #2
0
        public ActionResult Movement()
        {
            string TransType = "";

            if (Request.QueryString["UEId"] != null)
            {
                ViewBag.UEId = Convert.ToInt32(Request.QueryString["UEId"]);
            }

            if (Request.QueryString["UserId"] != null)
            {
                ViewBag.UserId = Request.QueryString["UserId"];
            }

            if (Request.QueryString["UETypeId"] != null)
            {
                ViewBag.UETypeId = Request.QueryString["UETypeId"];
            }


            if (Request.QueryString["UEsts"] != null)
            {
                TransType = Request.QueryString["UEsts"];
            }

            AD_DefinationBL db = new AD_DefinationBL();

            ViewBag.UEStatus = db.SelectedList("byDefinationType", "UE Status", "-Transaction Type-");

            foreach (var v in ViewBag.UEStatus)
            {
                if (v.Text == TransType)
                {
                    ViewBag.UEsts = v.Value;
                }
            }

            ViewBag.UETypes = db.SelectedList("byDefinationType", "UE Type", "-select-");

            AD_UserEquipmentsBL ueb = new AD_UserEquipmentsBL();

            ViewBag.Equipments = ueb.SelectedList("All", "", "-select-");

            Sec_UserBL ub = new Sec_UserBL();

            ViewBag.Users = ub.SelectedList("ByStatus", true.ToString(), "-Users-");

            ViewBag.IssueToUsers = ub.SelectedList("ByStatus", true.ToString(), "-Users-");

            return(View());
        }