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);
///
/// 获取分类下来树
///
///
List GetCategory(string id);
#region 表单
///
/// 增加数据记录
///
///
///
///
bool Add(ZNBCXXModel model, ZNBCMBModel BbModel);
///
/// 更新数据库记录【智能表单信息】
///
///
///
///
bool UpdateSmartForm(ZNBCXXModel model, ZNBCMBModel BbModel);
///
/// 查询数据对象并进行赋值【查询智能表单信息】
///
///
///
ZNBCXX BdxxSelect(string id);
///
/// 表单信息列表查询
///
///
List BdxxSelectList(ZNBCXXModel model);
///
/// 复制表单
///
/// 表单id
/// 创建人
///
bool CopySmartForm(string id, string CZR);
#endregion
#region 表单填写记录
///
/// 列表查询【表单填写记录】
///
///
///
List SelectRecordList(SelectBDTXJLModel model);
///
/// 查询所有的分类下面【表单填写记录】
///
///
///
///
List SelectRecordListAll(SelectBDTXJLModel model, string classID);
///
/// 填写表单
///
///
///
bool AddRecord(BDTXJLModel model);
///
/// 获取用户信息
///
///
///
DataTable GetPushAccountInfo(string tel);
///
/// 根据人员ID获取系统账户的信息
///
///
DataTable GetSysAccountInfo(string id);
///
/// 更新表单记录
///
///
/// 1:更新处理结果,2更新通过、退回状态,3修改填写记录
///
bool UpdateRecord(BDTXJLModel model, int type);
///
/// 查询我的填报记录
///
///
///
List MyRecordList(BDTXJLModel model);
#endregion
}
}