Esempio n. 1
0
        public ActionResult Delete(int id)
        {
            JobCardManager manager = new JobCardManager();
            JobCardView    jobCard = manager.GetJobCard(id, true);

            jobCard.Users     = manager.GetAllUsers();
            jobCard.Customers = manager.GetAllCustomers(true);
            jobCard.Designers = manager.GetAllDesigners(true);

            return(View(jobCard));
        }
Esempio n. 2
0
        public ActionResult History(int id)
        {
            JobCardManager manager = new JobCardManager();
            JobCardView    jobCard = manager.GetJobCard(id, true);

            jobCard.Customers = manager.GetAllCustomers(true);
            jobCard.Designers = manager.GetAllDesigners(true);
            jobCard.JobTypes  = manager.GetAllJobTypes(true);
            jobCard.Materials = manager.GetAllMaterials(true);
            jobCard.Users     = manager.GetAllUsers();
            return(View(jobCard));
        }
Esempio n. 3
0
        public ActionResult CreateAdmin()
        {
            JobCardManager manager = new JobCardManager();

            var jobCardView = new JobCardAdminView()
            {
                Customers = manager.GetAllCustomers(false),
                Designers = manager.GetAllDesigners(false),
                JobTypes  = manager.GetAllJobTypes(false),
                Materials = manager.GetAllMaterials(false)
            };

            return(View(jobCardView));
        }
Esempio n. 4
0
        public ActionResult Index()
        {
            JobCardManager manager = new JobCardManager();

            return(View(manager.GetAllDesigners(false)));
        }