public ResponseResult <List <EntityDefEntity> > GetEntityDefList2() { var result = ResponseResult <List <EntityDefEntity> > .Default(); try { var list = FBMasterService.GetEntityDefList2(); result = ResponseResult <List <EntityDefEntity> > .Success(list); } catch (System.Exception ex) { result = ResponseResult <List <EntityDefEntity> > .Error( string.Format("读取{0}数据失败, 错误:{1}", "EntityDefList", ex.Message) ); } return(result); }
public ResponseResult SaveEntityProcess(EntityProcessEntity entity) { var result = ResponseResult.Default(); try { FBMasterService.SaveEntityProcess(entity); result = ResponseResult.Success(); } catch (System.Exception ex) { result = ResponseResult.Error( string.Format("表单绑定流程数据失败!{0}", ex.Message) ); } return(result); }
public ResponseResult<List<EntityDefEntity>> GetEntityDefList2() { var result = ResponseResult<List<EntityDefEntity>>.Default(); try { var fbmasterService = new FBMasterService(); var list = fbmasterService.GetEntityDefList2(); result = ResponseResult<List<EntityDefEntity>>.Success(list); } catch (System.Exception ex) { result = ResponseResult<List<EntityDefEntity>>.Error( string.Format("读取{0}数据失败, 错误:{1}", "EntityDefList", ex.Message) ); } return result; }
public ResponseResult DeleteAttributeWithTemplate(EntityAttributeListView view) { var result = ResponseResult.Default(); try { var isOk = FBMasterService.DeleteAttributeWithTemplate(view); result = ResponseResult.Success(); } catch (System.Exception ex) { result = ResponseResult.Error( string.Format("删除字段更新表单模板内容失败, 错误:{0}", ex.Message) ); } return(result); }
public ResponseResult <EntityAttributeEntity> SaveAttributeWithTemplate(EntityAttributeView view) { var result = ResponseResult <EntityAttributeEntity> .Default(); try { var attrEntity = FBMasterService.SaveAttributeWithTemplate(view); result = ResponseResult <EntityAttributeEntity> .Success(attrEntity); } catch (System.Exception ex) { result = ResponseResult <EntityAttributeEntity> .Error( string.Format("保存字段和表单模板内容失败, 错误:{0}", ex.Message) ); } return(result); }
public ResponseResult <EntityAttributeListView> GetEntityAttributeComp(int id) { var result = ResponseResult <EntityAttributeListView> .Default(); try { var entity = FBMasterService.GetEntityAttributeComp(id); result = ResponseResult <EntityAttributeListView> .Success(entity); } catch (System.Exception ex) { result = ResponseResult <EntityAttributeListView> .Error( string.Format("读取表单字段数据发生错误:{0}", ex.Message) ); } return(result); }
public ResponseResult <List <EntityAttributeEntity> > GetEntityAttributeList(int id) { var result = ResponseResult <List <EntityAttributeEntity> > .Default(); try { var list = FBMasterService.GetEntityAttributeList(id); result = ResponseResult <List <EntityAttributeEntity> > .Success(list); } catch (System.Exception ex) { result = ResponseResult <List <EntityAttributeEntity> > .Error( string.Format("读取表单字段发生错误:{0}", ex.Message) ); } return(result); }
public ResponseResult <List <EntityDefEntity> > GetEntityDefList2() { var result = ResponseResult <List <EntityDefEntity> > .Default(); try { var fbService = new FBMasterService(); var list = fbService.GetEntityDefList2(); result = ResponseResult <List <EntityDefEntity> > .Success(list); } catch (System.Exception ex) { result = ResponseResult <List <EntityDefEntity> > .Error( string.Format("读取表单定义列表失败:{0}", ex.Message) ); } return(result); }
public ResponseResult <EntityDefEntity> QueryEntityDef(EntityDefEntity query) { var result = ResponseResult <EntityDefEntity> .Default(); try { var fbService = new FBMasterService(); var entity = fbService.GetEntityDef(query.ID); result = ResponseResult <EntityDefEntity> .Success(entity); } catch (System.Exception ex) { result = ResponseResult <EntityDefEntity> .Error( string.Format("读取表单定义记录失败:{0}", ex.Message) ); } return(result); }
public ResponseResult DeleteEntityDef(int id) { var result = ResponseResult.Default(); try { IFBMasterService fbService = new FBMasterService(); fbService.DeleteEntityDef(id); result = ResponseResult.Success(); } catch (System.Exception ex) { result = ResponseResult.Error( string.Format("删除表单定义数据失败,错误:{0}", ex.Message) ); } return(result); }
public ResponseResult SaveTemplateWithHTMLContent(EntityDefEntity entity) { var result = ResponseResult.Default(); try { IFBMasterService fbService = new FBMasterService(); fbService.SaveTemplateWithHTMLContent(entity); result = ResponseResult.Success(string.Format("保存{0}数据成功!", "表单模板")); } catch (System.Exception ex) { result = ResponseResult.Error( string.Format("保存{0}数据失败, 错误:{1}", "表单模板", ex.Message) ); } return(result); }
public ResponseResult <EntityDefEntity> SaveEntityDef(EntityDefEntity entity) { var result = ResponseResult <EntityDefEntity> .Default(); try { IFBMasterService fbService = new FBMasterService(); var returnEntity = fbService.SaveEntityDef(entity); result = ResponseResult <EntityDefEntity> .Success(returnEntity, string.Format("保存{0}数据成功!", "Form")); } catch (System.Exception ex) { result = ResponseResult <EntityDefEntity> .Error( string.Format("保存{0}数据失败, 错误:{1}", "Form", ex.Message) ); } return(result); }
public ResponseResult <AttrEntityView> GetAttributeEntityView(int id) { var result = ResponseResult <AttrEntityView> .Default(); try { var view = new AttrEntityView(); var attrEntity = FBMasterService.GetEntityAttribute(id); view.AttributeEntity = attrEntity; var list = FBMasterService.GetEntityDefList2(); view.EntityDefList = list; result = ResponseResult <AttrEntityView> .Success(view); } catch (System.Exception ex) { result = ResponseResult <AttrEntityView> .Error( string.Format("获取数据控件绑定数据源信息失败!{0}", ex.Message) ); } return(result); }
public ResponseResult <EntityProcessView> GetEntityProcessView(int id) { var result = ResponseResult <EntityProcessView> .Default(); try { var view = new EntityProcessView(); var wfService = new WorkflowService(); var processList = wfService.GetProcessListSimple().ToList(); view.ProcessList = processList; var entityProcess = FBMasterService.GetEntityProcess(id); view.EntityProcess = entityProcess; result = ResponseResult <EntityProcessView> .Success(view); } catch (System.Exception ex) { result = ResponseResult <EntityProcessView> .Error( string.Format("获取表单绑定流程数据失败!{0}", ex.Message) ); } return(result); }
/// <summary> /// 获取表单渲染HTML文本 /// </summary> /// <param name="id"></param> /// <returns></returns> public EntityDefEntity GetEntityDef(int id) { var masterService = new FBMasterService(); return(masterService.GetEntityDef(id)); }