public JsonResult ChangeSign(string IDSet) { //int f //=0; var catmodle = OPBiz.GetEntity(TF_PersonnelFile_ConsultSet.SelectAll().Where(TF_PersonnelFile_ConsultSet.Id.Equal(IDSet))); catmodle.States = 0; catmodle.WhereExpression = TF_PersonnelFile_ConsultSet.Id.Equal(IDSet); var f = OPBiz.Update(catmodle); HttpReSultMode ReSultMode = new HttpReSultMode(); if (f > 0) { ReSultMode.Code = 11; ReSultMode.Data = f.ToString(); ReSultMode.Msg = "退回成功!"; SysOperateLogBiz.AddSysOperateLog(UserData.Id.ToString(), UserData.UserName, e3net.Mode.OperatEnumName.退回, "档案查阅--退回", true, WebClientIP, "档案查阅"); return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } else { ReSultMode.Code = -13; ReSultMode.Data = "0"; ReSultMode.Msg = "退回失败!"; SysOperateLogBiz.AddSysOperateLog(UserData.Id.ToString(), UserData.UserName, e3net.Mode.OperatEnumName.退回, "档案查阅--退回", false, WebClientIP, "档案查阅"); return(Json(ReSultMode, JsonRequestBehavior.AllowGet)); } }
public JsonResult GetInfo(string ID) { var mql2 = TF_PersonnelFile_ConsultSet.SelectAll().Where(TF_PersonnelFile_ConsultSet.Id.Equal(ID)); TF_PersonnelFile_Consult Rmodel = OPBiz.GetEntity(mql2); // groupsBiz.Add(rol); return(Json(Rmodel, JsonRequestBehavior.AllowGet)); }
public FileContentResult GetImage(string id) { var df = TF_PersonnelFile_ConsultSet.SelectAll().Where(TF_PersonnelFile_ConsultSet.Id.Equal(id)); var dfw = OPBiz.GetEntity(df); if (dfw != null) { return(File(dfw.signatureimage, "jpg")); } else { return(null); } }