예제 #1
0
        public ActionResult AddNotification(string Notification)
        {
            NotificationsDisplay notifications = new NotificationsDisplay();

            notifications.CreateAnotification("Has finished the task New Data " + Notification, "Manager");
            return(RedirectToAction("Index", "Home"));
        }
예제 #2
0
        public ActionResult Assigntask(string inputask, string Employeerole)
        {
            NotificationsDisplay notifications = new NotificationsDisplay();

            notifications.CreateAnotification(inputask, Employeerole);

            return(RedirectToAction("ViewReport"));
        }
예제 #3
0
        public ActionResult Filltask(string Taksdetail)
        {
            oasisTask            MynewTask     = new oasisTask("Insert_no_model");
            NotificationsDisplay notifications = new NotificationsDisplay();

            MynewTask.NewTask(Convert.ToInt32(Session["userId"]), "assgined", Taksdetail);


            if (Session["userRole"].ToString() == "ProccessMaintananceEmployee")
            {
                notifications.CreateAnotification("A task with detail : " + Taksdetail + " has been established to fix checklist readings", "Manager");
            }
            else
            {
                notifications.CreateAnotification("A task with detail : " + Taksdetail + " is fulfilled", "Manager");
            }

            return(RedirectToAction("GetTask"));
        }
예제 #4
0
        public ActionResult AddNotification(string Notification)
        {
            NotificationsDisplay notifications = new NotificationsDisplay();

            notifications.CreateAnotification("A mantainance task is completed new readings : " + Notification, "Manager");
            oasisTask updateTask = new oasisTask("Update");

            updateTask.Update(staticTaskid);
            return(RedirectToAction("HomeIndex", "Home"));
        }
예제 #5
0
        public ActionResult addSaleData(int Quantity)
        {
            genericProduct genericProduct = new genericProduct();

            List <Product> productList = new List <Product>();

            int q = curentQ - Quantity;

            genericProduct.UpdateQuantity(prodid, q);
            if (q < 5)
            {
                NotificationsDisplay notifications = new NotificationsDisplay();
                notifications.CreateAnotification("Only " + q + " products left for  " + productname, "Packeger");
            }
            return(RedirectToAction("addSaleData", new { id = prodid, curntQ = curentQ }));
        }