public JsonResult ReturnSign(string IDSet) { //int f //=0; var catmodle = OPBiz.GetEntity(TF_PersonnelFile_BorrowSet.SelectAll().Where(TF_PersonnelFile_BorrowSet.Id.Equal(IDSet))); catmodle.States = 2; catmodle.StatesName = "提交归还"; catmodle.ReturnTime = DateTime.Today.ToString(); catmodle.WhereExpression = TF_PersonnelFile_BorrowSet.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_BorrowSet.SelectAll().Where(TF_PersonnelFile_BorrowSet.Id.Equal(ID)); TF_PersonnelFile_Borrow Rmodel = OPBiz.GetEntity(mql2); // groupsBiz.Add(rol); return(Json(Rmodel, JsonRequestBehavior.AllowGet)); }
public FileContentResult GetImage(string id) { var df = TF_PersonnelFile_BorrowSet.SelectAll().Where(TF_PersonnelFile_BorrowSet.Id.Equal(id)); var dfw = OPBiz.GetEntity(df); if (dfw != null) { return(File(dfw.signatureimage, "jpg")); } else { return(null); } }