public ActionResult GanWuEdit(GanWuEdit model)
        {
            if (!ModelState.IsValid) { return View(model); }

            Zs_GanWu item = bGanWu.Find(model.GwID);
            item = SysFun.Instance.InitialEntity<GanWuEdit, Zs_GanWu>(model, item);
            item.UpdateDate = DateTime.Now;
            var result = bGanWu.Update(item);

            if (result) return RedirectToAction("GanWuList");
            else return View(model);
        }
        /// <summary>
        /// 编辑
        /// </summary>
        /// <returns></returns>
        public ActionResult GanWuEdit(int id = 0)
        {
            var item = bGanWu.Find(id);
            var model = new GanWuEdit();
            model = SysFun.Instance.InitialEntity<Zs_GanWu, GanWuEdit>(item, model);

            @ViewBag.GwType = DicUtil.Instance.DicGwType(model.GwType);
            @ViewBag.OpenStatus = DicUtil.Instance.DicOpenStatus(model.OpenStatus);
            @ViewBag.GwStatus = DicUtil.Instance.DicGwStatus(model.GwStatus);
            @ViewBag.SmsStatus = DicUtil.Instance.DicSmsStatus(model.SmsStatus);

            return View(model);
        }