/// <summary> /// 修改 /// </summary> public FineOffice.Modules.OA_FlowForm Update(FineOffice.Modules.OA_FlowForm model) { dal.Initialization(); FineOffice.Entity.OA_FlowForm entity = new Entity.OA_FlowForm { ID = model.ID, FlowID = model.FlowID, FormID = model.FormID, ProcessID = model.ProcessID, }; dal.Update(entity); dal.Dispose(); return(null); }
/// <summary> /// 返回一个model /// </summary> /// <returns></returns> public FineOffice.Modules.OA_FlowForm GetModel(System.Linq.Expressions.Expression <Func <FineOffice.Modules.OA_FlowForm, bool> > expression) { dal.Initialization(); FineOffice.Modules.OA_FlowForm model = (from entity in dal.GetListAll() select new FineOffice.Modules.OA_FlowForm { ID = entity.ID, FlowID = entity.FlowID, FormID = entity.FormID, FormName = entity.OA_Form.FormName, FormNO = entity.OA_Form.FormNO, Remark = entity.OA_Form.Remark, ProcessName = entity.OA_FlowProcess.ProcessName, ProcessID = entity.ProcessID, }).Where(expression).FirstOrDefault(); dal.Dispose(); return(model); }