Ejemplo n.º 1
0
        // GET: WhuWxiu/Edit/5
        public ActionResult Edit(int id)
        {
            ShengCheng(); //查询陪同人员
            FillClass();  //查询检测人员
            info_Maintenance im  = img.SelectWhere(e => e.MIDs == id).FirstOrDefault();
            info_Software    ies = isb.SelectWhere(e => e.SID == im.MDeviceName).FirstOrDefault();

            ViewData["a"] = ies.Sdynacomm;
            return(View(im));
        }
Ejemplo n.º 2
0
 //软件名称维护修改(进行修改操作)
 // GET: Systems/Create
 public ActionResult SoftwareEdits(info_Software soft)
 {
     if (isb.Update(soft) > 0)
     {
         return(Content("<script>alert('修改成功');window.location.href='/Systems/SoftwareSelect'</script>"));
     }
     else
     {
         return(Content("<script>alert('修改失败');window.location.href='/Systems/SoftwareSelect'</script>"));
     }
     //return View();
 }
Ejemplo n.º 3
0
 //软件名称维护页面添加
 // GET: Systems/Create
 public ActionResult SoftwareCreate(info_Software soft)
 {
     if (isb.Add(soft) > 0)
     {
         return(Content("ok"));
     }
     else
     {
         return(Content("no"));
     }
     //return View();
 }
Ejemplo n.º 4
0
        //软件名称维护删除
        // GET: Systems/Create
        public ActionResult SoftwareDelete(int id)
        {
            info_Software soft = new info_Software()
            {
                SID = id
            };

            if (isb.Delete(soft) > 0)
            {
                return(Content("<script>alert('删除成功');window.location.href='/Systems/SoftwareSelect'</script>"));
            }
            else
            {
                return(Content("<script>alert('删除失败');window.location.href='/Systems/SoftwareSelect'</script>"));
            }
        }
Ejemplo n.º 5
0
        // GET: Registration/Details/5审核
        public ActionResult ShenHe(int id)
        {
            info_Registration ir = ird.SelectWhere(e => e.RID == id).FirstOrDefault();
            int roffice          = Convert.ToInt32(ir.ROffice);

            //查询部门
            Section ss = istib.SelectWhere(e => e.Sid == roffice).FirstOrDefault();

            ViewData["bb"] = ss.SectionName;

            //查询软件名称
            info_Software iss = isb.SelectWhere(e => e.SID == ir.SID).FirstOrDefault();

            ViewData["ss"] = iss.Sdynacomm;
            return(View(ir));
        }
Ejemplo n.º 6
0
        //点击机房维护维修查看
        public ActionResult SelectTongJiWeiHuWeiXiuChaKan(int id)
        {
            info_Maintenance im = img.SelectWhere(e => e.MIDs == id).FirstOrDefault();


            info_Software iss = isb.SelectWhere(e => e.SID == im.MDeviceName).FirstOrDefault();

            ViewData["a"] = iss.Sdynacomm;



            //查询陪同人员
            int       mm = Convert.ToInt32(im.MAccompanyingOfficials);
            info_User iu = iud.SelectWhere(e => e.UserID == mm).FirstOrDefault();

            ViewData["p"] = iu.UserRealName;

            //查询检测人员
            int rr = Convert.ToInt32(im.MTestingPersonnel);
            info_ComputerRoomVisit ir = lcr.SelectWheres(e => e.CID == rr).FirstOrDefault();

            ViewData["s"] = ir.CName;
            return(View(im));
        }
Ejemplo n.º 7
0
 public int Delete(info_Software a)
 {
     return(imd.Delete(a));
 }
Ejemplo n.º 8
0
 public int Update(info_Software t)
 {
     return(imd.Update(t));
 }
Ejemplo n.º 9
0
 public int Add(info_Software t)
 {
     return(imd.Add(t));
 }