123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- using PMS.BusinessModels.SmartForm;
- using PMS.EntityModels.SmartForm;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PMS.Interface.SmartForm
- {
- public interface ISmartForm
- {
- bool AddCategory(int type, ZNBDFLModel model);
- bool DelCategory(ZNBDFLModel model, ref string msg);
- /// <summary>
- /// 获取分类下来树
- /// </summary>
- /// <returns></returns>
- List<TreeStruct> GetCategory(string id);
- #region 表单
- /// <summary>
- /// 增加数据记录
- /// </summary>
- /// <param name="model"></param>
- /// <param name="BbModel"></param>
- /// <returns></returns>
- bool Add(ZNBCXXModel model, ZNBCMBModel BbModel);
- /// <summary>
- /// 更新数据库记录【智能表单信息】
- /// </summary>
- /// <param name="model"></param>
- /// <param name="BbModel"></param>
- /// <returns></returns>
- bool UpdateSmartForm(ZNBCXXModel model, ZNBCMBModel BbModel);
- /// <summary>
- /// 查询数据对象并进行赋值【查询智能表单信息】
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- ZNBCXX BdxxSelect(string id);
-
- /// <summary>
- /// 表单信息列表查询
- /// </summary>
- /// <returns></returns>
- List<ZNBCXXModel> BdxxSelectList(ZNBCXXModel model);
- /// <summary>
- /// 复制表单
- /// </summary>
- /// <param name="id">表单id</param>
- /// <param name="CZR">创建人</param>
- /// <returns></returns>
- bool CopySmartForm(string id, string CZR);
- #endregion
- #region 表单填写记录
- /// <summary>
- /// 列表查询【表单填写记录】
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- List<BDTXJL> SelectRecordList(SelectBDTXJLModel model);
- /// <summary>
- /// 查询所有的分类下面【表单填写记录】
- /// </summary>
- /// <param name="model"></param>
- /// <param name="classID"></param>
- /// <returns></returns>
- List<BDTXJL> SelectRecordListAll(SelectBDTXJLModel model, string classID);
- /// <summary>
- /// 填写表单
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- bool AddRecord(BDTXJLModel model);
- /// <summary>
- /// 获取用户信息
- /// </summary>
- /// <param name="tel"></param>
- /// <returns></returns>
- DataTable GetPushAccountInfo(string tel);
- /// <summary>
- /// 根据人员ID获取系统账户的信息
- /// </summary>
- /// <returns></returns>
- DataTable GetSysAccountInfo(string id);
- /// <summary>
- /// 更新表单记录
- /// </summary>
- /// <param name="model"></param>
- /// <param name="type">1:更新处理结果,2更新通过、退回状态,3修改填写记录</param>
- /// <returns></returns>
- bool UpdateRecord(BDTXJLModel model, int type);
- /// <summary>
- /// 查询我的填报记录
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- List<BDTXJL> MyRecordList(BDTXJLModel model);
- #endregion
- }
- }
|