| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class AreaController : BaseController |
| | | { |
| | | private AreaLogic areaLogic; |
| | | |
| | | public AreaController() |
| | | { |
| | | areaLogic = new AreaLogic(); |
| | | } |
| | | |
| | | // GET: Master/Area |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pArea, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = areaLogic.GetList(pArea, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapArea model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = areaLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = areaLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = areaLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = areaLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class DepartController : BaseController |
| | | { |
| | | private DepartLogic departLogic; |
| | | |
| | | public DepartController() |
| | | { |
| | | departLogic = new DepartLogic(); |
| | | } |
| | | |
| | | // GET: Master/Depart |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pDepart, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = departLogic.GetList(pDepart, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapDepart model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = departLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = departLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = departLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = departLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class EducationController : BaseController |
| | | { |
| | | private EducationLogic educationLogic; |
| | | |
| | | public EducationController() |
| | | { |
| | | educationLogic = new EducationLogic(); |
| | | } |
| | | |
| | | // GET: Master/Education |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pEducation, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = educationLogic.GetList(pEducation, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapEducation model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = educationLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = educationLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = educationLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = educationLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class EmployTypeController : BaseController |
| | | { |
| | | private EmployTypeLogic employTypeLogic; |
| | | |
| | | public EmployTypeController() |
| | | { |
| | | employTypeLogic = new EmployTypeLogic(); |
| | | } |
| | | |
| | | // GET: Master/EmployType |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pEmployType, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = employTypeLogic.GetList(pEmployType, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapEmployType model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = employTypeLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = employTypeLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = employTypeLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = employTypeLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class PositionExtendController : BaseController |
| | | { |
| | | private PositionExtendLogic positionExtendLogic; |
| | | |
| | | public PositionExtendController() |
| | | { |
| | | positionExtendLogic = new PositionExtendLogic(); |
| | | } |
| | | |
| | | // GET: Master/PositionExtend |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pPositionExtend, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = positionExtendLogic.GetList(pPositionExtend, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapPositionExtend model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = positionExtendLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = positionExtendLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = positionExtendLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = positionExtendLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
| | |
| | | using PPMX.Web.Controllers; |
| | | using PPMX.Entity.Master; |
| | | using PPMX.Entity; |
| | | using PPMX.Logic.Master; |
| | | using PPMX.Web.Controllers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class WageLevelController : BaseController |
| | | { |
| | | private WageLevelLogic wWageLevelLevelLogic; |
| | | |
| | | public WageLevelController() |
| | | { |
| | | wWageLevelLevelLogic = new WageLevelLogic(); |
| | | } |
| | | |
| | | // GET: Master/WageLevel |
| | | public ActionResult Index() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | [HttpGet] |
| | | public ActionResult Detail() |
| | | { |
| | | return View(); |
| | | } |
| | | [HttpGet] |
| | | public ActionResult Form() |
| | | { |
| | | return View(); |
| | | } |
| | | |
| | | public ActionResult GetList(int pWageLevel, int limit, string keyWord, int Status) |
| | | { |
| | | Receive receive = wWageLevelLevelLogic.GetList(pWageLevel, limit, keyWord, Status); |
| | | return Json(new |
| | | { |
| | | code = receive.Code, |
| | | msg = receive.Message, |
| | | data = receive.rows, |
| | | count = receive.total |
| | | }); |
| | | } |
| | | |
| | | [HttpPost, ValidateAntiForgeryToken] |
| | | public ActionResult Form(MapWageLevel model) |
| | | { |
| | | if (model.Id == 0) |
| | | { |
| | | int row = wWageLevelLevelLogic.Insert(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | else |
| | | { |
| | | int row = wWageLevelLevelLogic.Update(model); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult GetForm(string primaryKey) |
| | | { |
| | | var entity = wWageLevelLevelLogic.Get(primaryKey); |
| | | return Json(entity); |
| | | } |
| | | |
| | | [HttpPost] |
| | | public ActionResult Delete(string primaryKey) |
| | | { |
| | | int count = 0; |
| | | if (count == 0) |
| | | { |
| | | int row = wWageLevelLevelLogic.Delete(primaryKey); |
| | | return row > 0 ? Success() : Error(); |
| | | } |
| | | return Error(string.Format("操作失败,请先删除该项的{0}个子级机构。", count)); |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | //Layout = "~/Views/Shared/_Layout.cshtml"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Detail"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Detail</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Form"; |
| | | Layout = "~/Views/Shared/_Form.cshtml"; |
| | | } |
| | | |
| | | <h2>Form</h2> |
| | | |
New file |
| | |
| | | |
| | | @{ |
| | | ViewBag.Title = "Index"; |
| | | Layout = "~/Areas/System/Views/Shared/_Layout.cshtml"; |
| | | } |
| | | |
| | | <h2>Index</h2> |
| | | |
| | |
| | | <Content Include="Areas\Master\Views\Shared\_Layout.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Group\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Group\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Age\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Age\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Age\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Area\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Area\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Area\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Depart\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Depart\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Depart\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Education\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Education\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\Education\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\EmployType\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\EmployType\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\EmployType\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\PositionExtend\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\PositionExtend\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\PositionExtend\Form.cshtml" /> |
| | | <Content Include="Areas\Master\Views\WageLevel\Index.cshtml" /> |
| | | <Content Include="Areas\Master\Views\WageLevel\Detail.cshtml" /> |
| | | <Content Include="Areas\Master\Views\WageLevel\Form.cshtml" /> |
| | | <None Include="Connected Services\ServiceReference1\VerifyService.disco" /> |
| | | <None Include="Connected Services\ServiceReference1\configuration91.svcinfo" /> |
| | | <None Include="Connected Services\ServiceReference1\configuration.svcinfo" /> |
| | |
| | | <ItemGroup> |
| | | <Folder Include="App_Data\" /> |
| | | <Folder Include="Areas\Master\Data\" /> |
| | | <Folder Include="Areas\Master\Views\Age\" /> |
| | | <Folder Include="Areas\Master\Views\Area\" /> |
| | | <Folder Include="Areas\Master\Views\Depart\" /> |
| | | <Folder Include="Areas\Master\Views\Education\" /> |
| | | <Folder Include="Areas\Master\Views\EmployType\" /> |
| | | <Folder Include="Areas\Master\Views\PositionExtend\" /> |
| | | <Folder Include="Areas\Master\Views\WageLevel\" /> |
| | | <Folder Include="Areas\Ppm\Data\" /> |
| | | <Folder Include="Areas\System\Models\" /> |
| | | <Folder Include="Upload\" /> |