Exemplo n.º 1
0
        public ActionResult Edit(CatExportItemModel model)
        {
           
            var service = new RestServiceClient<CatExportItemModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
            var result = service.Post(_hrm_Hr_Service, "api/CatExportItem/", model);
            return Json(result);

        }
Exemplo n.º 2
0
 /// <summary>
 /// [Tin.Nguyen] - Lấy dữ liệu Dân Tộc(Cat_ExportItem) theo Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public CatExportItemModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new CatExportItemModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetById<Cat_ExportItemEntity>(id, ref status);
     if (entity != null)
     {
         model = entity.CopyData<CatExportItemModel>();
     }
     model.ActionStatus = status;
     return model;
 }
Exemplo n.º 3
0
        //public JsonResult GetReqDocumentCodeps(string codeemps)
        //{
        //    string status = string.Empty;
        //    var service = new Cat_ProfileServices();
        //    var result = service.GetData<Hre_ProfileMultiEntity>(codeemps, ConstantSql.hrm_hr_sp_get_ProfileByCodeEmps, ref status);
        //    return Json(result, JsonRequestBehavior.AllowGet);
        //}

        #endregion

        #region Cat_ExportItem

        //[HttpPost]
        public ActionResult GetExportItemList([DataSourceRequest] DataSourceRequest request, CatExportItemModel model)
        {
            return GetListDataAndReturn<CatExportItemModel, Cat_ExportItemEntity, CatExportItemModel>(request, model, ConstantSql.hrm_cat_sp_get_ExportItem);
        }