42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using YLErp.Modules.ReportModule;
|
|
|
|
namespace YLErp.Web.Areas.Admin.Controllers
|
|
{
|
|
public class OwnerInfoController : AdminBaseController
|
|
{
|
|
// GET: Admin/Owner_info
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public JsonResult GetOwnerInfo()
|
|
{
|
|
var sList = DbContextFactory.GetYLDbContext().Owner_Info.ToList();
|
|
return Json(sList);
|
|
}
|
|
|
|
public JsonResult PostOwnerInfo(Owner_info o)
|
|
{
|
|
var i = new Owner_infoService(CurUser).AddOrUpdate(o);
|
|
return Json(i);
|
|
}
|
|
|
|
public ActionResult OwnerInfoEdit(int ID)
|
|
{
|
|
Owner_info v;
|
|
v = DbContextFactory.GetYLDbContext().Owner_Info.Find(ID);
|
|
if (v == null)
|
|
{
|
|
v = new Owner_info();
|
|
}
|
|
return View(v);
|
|
}
|
|
|
|
public JsonResult Deleteowner(int ID)
|
|
{
|
|
var i = new Owner_infoService(CurUser).Dele(ID);
|
|
return Json(i);
|
|
}
|
|
}
|
|
} |