sample_task_rsp.dart 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. import 'package:json_annotation/json_annotation.dart';
  2. import 'package:lszlgl/model/num_converter.dart';
  3. import 'package:lszlgl/model/string_converter.dart';
  4. import '../../service/dict_service.dart';
  5. part 'sample_task_rsp.g.dart';
  6. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  7. class SampleTaskListRsp {
  8. final num? total;
  9. final List<SampleTaskItem>? list;
  10. const SampleTaskListRsp({
  11. this.total,
  12. this.list,
  13. });
  14. factory SampleTaskListRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskListRspFromJson(json);
  15. Map<String, dynamic> toJson() => _$SampleTaskListRspToJson(this);
  16. }
  17. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  18. class SampleTaskItem {
  19. num? id;
  20. String? qyryName; // 人员名称
  21. String? fjrq; // 分解日期
  22. String? ypbh; // 样品编号
  23. String? jtpzmc; // 具体品种名称
  24. num? deliveryStatus; // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  25. num? ypdj; // 样品等级--字典获取
  26. String? jyzb; // 检验指标:质量/品质/食安
  27. String? qydq; // 扦样地区
  28. num? jhcysl; // 计划采样数量
  29. num? zljysl; // 质量检验数量
  30. num? pzjyjg; // 品质检验机构
  31. num? pzjysl; // 品质检验数量
  32. num? sajyjg; // 食安检验机构
  33. num? sajysl; // 食安检验数量
  34. num? jhcyjg; // 扦样机构
  35. String? lspz; // 粮食品种
  36. num? bchlx; // 病虫害类型
  37. String? bdcnhhhzs; // 被调查农户或合作社
  38. num? gcpwlx; // 工厂排污类型
  39. String? lxfs; // 联系方式
  40. num? qydbsl; // 扦样代表数量(公斤)
  41. String? qyddjwd; // 扦样地点经纬度
  42. String? qysj; // 扦样时间
  43. num? qysl; // 扦样数量(公斤)
  44. bool? scgczsffsbjyzdbch; // 生产过程中是否发生比较严重的病虫害
  45. String? sheng; // 省
  46. String? shi; // 市
  47. String? qu; // 区
  48. String? xian; // 县
  49. String? cun; // 村
  50. num? shidu; // 湿度
  51. String? shsj; // 收获时间
  52. num? trdllx; // 土壤地理类型
  53. num? wendu; // 温度
  54. num? wrwlx; // 污染物类型
  55. num? zzmj; // 种植面积(亩地)
  56. bool? zztdzwsfygcpw; // 种植土地周围是否有工厂排污
  57. bool? zztdzwsysytrsfywr; // 种植土地周围使用水源、土壤是否有污染
  58. num? zjBaseEnterpriseId; // 企业基本信息ID
  59. num? zjBasePersonnelId; // 人员基本信息表ID
  60. num? zjCodeSamplingTaskId;
  61. num? zjCodeSamplingPlanId; // 采样计划详情ID
  62. String? xzqh; // 行政区划
  63. num? zjBaseGrainInformationId; // 品种id
  64. num? cypzmc; // 采样品种名称
  65. String? cypzName; // 采样品种名称
  66. String? qyrwdh; // 扦样任务单号
  67. num? shengXzqh; // 省行政区划id
  68. num? shiXzqh; // 市行政区划id
  69. num? quXzqh; // 区行政区划id
  70. num? xiangXzqh; // 县行政区划id
  71. num? cunXzqh; // 村行政区划id
  72. num? createTime; // 创建时间
  73. num? state; // 0是待扦样,1已扦样,2已完成
  74. String? name; // 扦样人员姓名
  75. String? dgryName; // 扦样多个人员名称: 张三,李四
  76. String? rwjssj; // 任务接收时间
  77. String? bsjzsj; // 报送截止时间
  78. num? rwlx; // 任务类型/监测环节
  79. num? jclb; // 监测类别
  80. String? dwmc; // 单位名称
  81. List<EnterpriseItem>? enterpriseList; // 机构信息
  82. List<UseMedicineItem>? codeUseMedicineList; // 种植期间农药使用情况
  83. String? zzpz; // 种植品种
  84. String? shengXzqhName; // 省
  85. String? shiXzqhName; // 市
  86. String? quXzqhName; // 区
  87. String? xiangXzqhName; // 县
  88. String? cunXzqhName; // 村
  89. String? cyjhbmCode; // 采样计划编号
  90. String? cyjhmc; // 采样计划名称
  91. String? niandu; // 年度
  92. List<SamplingTaskAllotSgjcItem>? codeSamplingTaskAllotSgjcRespList; // 任务分配
  93. // List<>? codeSamplingTaskDetailsKcjcRespVO; // 库存检测
  94. // List<>? fplist; // 分配多条信息
  95. num? sfyzpz; // 是否优质品种
  96. num? yzpzlx; // 优质品种类型
  97. num? shqjsffslyytq; // 收获期间是否发生连阴雨天气
  98. num? shlssfsfpg; // 收获粮食水分是否偏高
  99. num? jnlbdsffszmwr; // 近年来本地是否发生真菌毒素污染
  100. num? zjdswrlx; // 真菌毒素污染类型
  101. num? jnlbdsfzjswr; // 近年来本地是否发生重金属污染
  102. num? zjswrlx; // 重金属污染类型
  103. List<JyjgxxItem>? jyjgxxRespVOList; // 检验机构信息
  104. num? jypzStatus; // 检验品质按钮0显示1不显示
  105. num? tqqk; // 天气情况
  106. List<NonghuItem>? codeSamplingNonghuList; // 扦样农户信息
  107. String? xzqhCode; // 行政区划六位编码
  108. List<UrlItem>? filePictureList; // 签名图片url
  109. List<UrlItem>? ewmfilePictureList; // 二维码图片url
  110. SampleTaskItem({
  111. this.id,
  112. this.qyryName,
  113. this.fjrq,
  114. this.ypbh,
  115. this.jtpzmc,
  116. this.deliveryStatus,
  117. this.ypdj,
  118. this.jyzb,
  119. this.qydq,
  120. this.jhcysl,
  121. this.zljysl,
  122. this.pzjyjg,
  123. this.pzjysl,
  124. this.sajyjg,
  125. this.sajysl,
  126. this.jhcyjg,
  127. this.lspz,
  128. this.bchlx,
  129. this.bdcnhhhzs,
  130. this.gcpwlx,
  131. this.lxfs,
  132. this.qydbsl,
  133. this.qyddjwd,
  134. this.qysj,
  135. this.qysl,
  136. this.scgczsffsbjyzdbch,
  137. this.sheng,
  138. this.shi,
  139. this.qu,
  140. this.xian,
  141. this.cun,
  142. this.shidu,
  143. this.shsj,
  144. this.trdllx,
  145. this.wendu,
  146. this.wrwlx,
  147. this.zzmj,
  148. this.zztdzwsfygcpw,
  149. this.zztdzwsysytrsfywr,
  150. this.zjBaseEnterpriseId,
  151. this.zjBasePersonnelId,
  152. this.zjCodeSamplingTaskId,
  153. this.zjCodeSamplingPlanId,
  154. this.xzqh,
  155. this.zjBaseGrainInformationId,
  156. this.cypzmc,
  157. this.cypzName,
  158. this.qyrwdh,
  159. this.shengXzqh,
  160. this.shiXzqh,
  161. this.quXzqh,
  162. this.xiangXzqh,
  163. this.cunXzqh,
  164. this.createTime,
  165. this.state,
  166. this.name,
  167. this.dgryName,
  168. this.rwjssj,
  169. this.bsjzsj,
  170. this.rwlx,
  171. this.jclb,
  172. this.dwmc,
  173. this.enterpriseList,
  174. this.codeUseMedicineList,
  175. this.zzpz,
  176. this.shengXzqhName,
  177. this.shiXzqhName,
  178. this.quXzqhName,
  179. this.xiangXzqhName,
  180. this.cunXzqhName,
  181. this.cyjhbmCode,
  182. this.cyjhmc,
  183. this.niandu,
  184. this.codeSamplingTaskAllotSgjcRespList,
  185. this.sfyzpz,
  186. this.yzpzlx,
  187. this.shqjsffslyytq,
  188. this.shlssfsfpg,
  189. this.jnlbdsffszmwr,
  190. this.zjdswrlx,
  191. this.jnlbdsfzjswr,
  192. this.zjswrlx,
  193. this.jyjgxxRespVOList,
  194. this.jypzStatus,
  195. this.tqqk,
  196. this.codeSamplingNonghuList,
  197. this.xzqhCode,
  198. this.filePictureList,
  199. this.ewmfilePictureList,
  200. });
  201. SampleTaskItem createUI() {
  202. // 工厂排污
  203. zztdzwsfygcpw ??= false;
  204. // 工厂排污类型
  205. gcpwlx ??= DictService.getDictFirstNum(DictType.gcpwlx);
  206. // 水源、土壤污染
  207. zztdzwsysytrsfywr ??= false;
  208. // 污染物类型
  209. wrwlx ??= DictService.getDictFirstNum(DictType.wrwlx);
  210. // 病虫害
  211. scgczsffsbjyzdbch ??= false;
  212. // 病虫害类型
  213. bchlx ??= DictService.getDictFirstNum(DictType.bchlx);
  214. // 收获期间是否发生连阴雨天气
  215. shqjsffslyytq ??= 1;
  216. // 收获粮食水分是否偏高
  217. shlssfsfpg ??= 1;
  218. // 近年来本地是否发生真菌毒素污染
  219. jnlbdsffszmwr ??= 1;
  220. // 真菌毒素污染类型
  221. zjdswrlx ??= DictService.getDictFirstNum(DictType.zjdswrlx);
  222. // 近年来本地是否发生重金属污染
  223. jnlbdsfzjswr ??= 1;
  224. // 重金属污染类型
  225. zjswrlx ??= DictService.getDictFirstNum(DictType.zjswrlx);
  226. return this;
  227. }
  228. factory SampleTaskItem.fromJson(Map<String, dynamic> json) => _$SampleTaskItemFromJson(json)..createUI();
  229. Map<String, dynamic> toJson() => _$SampleTaskItemToJson(this);
  230. String getDeliveryStatusText() {
  231. // 任务单任务状态:0是待领取,1是待扦样,2已扦样
  232. return switch (deliveryStatus) { 0 => '待领取', 1 => '待扦样', 2 => '已扦样', _ => '' };
  233. }
  234. Map<String, dynamic> getReqJson() {
  235. Map<String, dynamic> map = {};
  236. map['state'] = state;
  237. map['id'] = id;
  238. map['xzqhCode'] = xzqhCode;
  239. map['xiangXzqhName'] = xiangXzqhName;
  240. map['cunXzqhName'] = cunXzqhName;
  241. map['qyddjwd'] = qyddjwd;
  242. map['zzmj'] = zzmj;
  243. map['trdllx'] = trdllx;
  244. map['bdcnhhhzs'] = bdcnhhhzs;
  245. map['lxfs'] = lxfs;
  246. map['lspz'] = lspz;
  247. map['jtpzmc'] = jtpzmc;
  248. map['sfyzpz'] = sfyzpz;
  249. map['yzpzlx'] = yzpzlx;
  250. map['shsj'] = shsj;
  251. map['qysj'] = qysj;
  252. map['qysl'] = qysl;
  253. map['qydbsl'] = qydbsl;
  254. map['wendu'] = wendu;
  255. map['shidu'] = shidu;
  256. map['zztdzwsfygcpw'] = zztdzwsfygcpw;
  257. map['gcpwlx'] = gcpwlx;
  258. map['zztdzwsysytrsfywr'] = zztdzwsysytrsfywr;
  259. map['wrwlx'] = wrwlx;
  260. map['scgczsffsbjyzdbch'] = scgczsffsbjyzdbch;
  261. map['bchlx'] = bchlx;
  262. map['shqjsffslyytq'] = shqjsffslyytq;
  263. map['shlssfsfpg'] = shlssfsfpg;
  264. map['jnlbdsffszmwr'] = jnlbdsffszmwr;
  265. map['zjdswrlx'] = zjdswrlx;
  266. map['jnlbdsfzjswr'] = jnlbdsfzjswr;
  267. map['zjswrlx'] = zjswrlx;
  268. List<UseMedicineItem>? medicineList = codeUseMedicineList?.where((e) => e.id == null).toList();
  269. if (medicineList != null && medicineList.isNotEmpty) {
  270. map['codeUseMedicineList'] = medicineList.map((e) => e.toReqJson()).toList();
  271. }
  272. map['dgryName'] = dgryName;
  273. map['tqqk'] = tqqk;
  274. List<NonghuItem>? nonghuList = codeSamplingNonghuList?.where((e) => e.id == null).toList();
  275. if (nonghuList != null && nonghuList.isNotEmpty) {
  276. map['codeSamplingNonghuList'] = nonghuList.map((e) => e.toReqJson()).toList();
  277. }
  278. map['filePictureList'] = filePictureList;
  279. return map;
  280. }
  281. }
  282. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  283. class UrlItem {
  284. final String? name;
  285. final String? url;
  286. const UrlItem({this.name,this.url});
  287. factory UrlItem.fromJson(Map<String, dynamic> json) => _$UrlItemFromJson(json);
  288. Map<String, dynamic> toJson() => _$UrlItemToJson(this);
  289. }
  290. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  291. class EnterpriseItem {
  292. final num? id; // 单位id
  293. final String? address; // 具体地址
  294. final String? beizhu; // 备注
  295. final num? bgsmj; // 办公室面积(m²)
  296. final num? cqlb; // 产权类别
  297. final num? dnczbksr; // 当年财政拨款收入
  298. final num? dnywwtsr; // 当年业务委托收入
  299. final num? dwdzSheng; // 省id
  300. final String? dwdzShengName; // 省名称
  301. final num? dwdzShi; // 市id
  302. final String? dwdzShiName; // 市名称
  303. final num? dwdzXian; // 县id
  304. final String? dwdzXianName; //县名称
  305. final num? dwjb; // 单位级别
  306. final String? dwmc; //单位名称
  307. final num? dwxz; //单位性质
  308. final String? frdb; //法人代表
  309. final num? jglb; //机构类别
  310. final num? jyyrs; //检验员人数
  311. final String? lxfs; //联系方式
  312. final num? rybzsl; //人员编制数量
  313. final String? shtyxydm; //社会统一信用代码
  314. final num? sysmj; //实验室面积(m²)
  315. final num? zjzmj; //总建筑面积(m²)
  316. final num? zrs; //总人数
  317. final String? dwdz; //单位地址
  318. final String? createTime; //创建时间
  319. final String? creatorDeptId; //创建人所在部门id
  320. final num? deptId; //隶属部门Id
  321. final String? sjzgdw; //上级主管单位
  322. // final List<>? jyllList; //检验能力集合
  323. // final List<>? jyzsList; //检验证书集合
  324. final String? flowCode; //审核编号
  325. final num? flowStatus; //审核状态:0待发起,1审核中,2通过,3驳回
  326. final String? flowCause; //审核意见
  327. final num? flowCheckUserId; //审核人id
  328. final String? flowTime; //审核时间
  329. // final List<>? kycxtdList; //科研创新团队
  330. // final List<>? xdbzList; //牵头或参与制修订标准
  331. // final List<>? kyxmList; //牵头或参与负责科研项目
  332. // final List<>? hdryList; //获得荣誉
  333. // final List<>? personnelList; //人员信息
  334. // final List<>? instrumentEquipmentList; //设备信息
  335. final num? personnelCount; //人员数量
  336. final num? instrumentEquipmentCount; //设备数量
  337. // final List<>? filePictureList; //附件(图片)地址
  338. // final List<>? filePictureTwoList; //附件(图片)地址
  339. // final List<>? guaPaiDeptRespVoList; //挂牌部门集合
  340. const EnterpriseItem({
  341. this.id,
  342. this.address,
  343. this.beizhu,
  344. this.bgsmj,
  345. this.cqlb,
  346. this.dnczbksr,
  347. this.dnywwtsr,
  348. this.dwdzSheng,
  349. this.dwdzShengName,
  350. this.dwdzShi,
  351. this.dwdzShiName,
  352. this.dwdzXian,
  353. this.dwdzXianName,
  354. this.dwjb,
  355. this.dwmc,
  356. this.dwxz,
  357. this.frdb,
  358. this.jglb,
  359. this.jyyrs,
  360. this.lxfs,
  361. this.rybzsl,
  362. this.shtyxydm,
  363. this.sysmj,
  364. this.zjzmj,
  365. this.zrs,
  366. this.dwdz,
  367. this.createTime,
  368. this.creatorDeptId,
  369. this.deptId,
  370. this.sjzgdw,
  371. this.flowCode,
  372. this.flowStatus,
  373. this.flowCause,
  374. this.flowCheckUserId,
  375. this.flowTime,
  376. this.personnelCount,
  377. this.instrumentEquipmentCount,
  378. });
  379. factory EnterpriseItem.fromJson(Map<String, dynamic> json) => _$EnterpriseItemFromJson(json);
  380. Map<String, dynamic> toJson() => _$EnterpriseItemToJson(this);
  381. }
  382. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  383. class UseMedicineItem {
  384. num? id; //ID
  385. String? cjsj; //创建时间
  386. String? syff; //施药方式
  387. String? synypz; //使用农药品种
  388. num? synysl; //扦样使用农药的数量(公斤或毫升/每亩地)
  389. String? sysj; //施药时间
  390. num? zjCodeSamplingTaskDetailsKcjcId;
  391. num? zjCodeSamplingTaskDetailsSgjcId;
  392. String? createTime; //创建时间
  393. String? jcz; //检测值
  394. String? zczfw; //正常值范围
  395. UseMedicineItem({
  396. this.id,
  397. this.cjsj,
  398. this.syff,
  399. this.synypz,
  400. this.synysl,
  401. this.sysj,
  402. this.zjCodeSamplingTaskDetailsKcjcId,
  403. this.zjCodeSamplingTaskDetailsSgjcId,
  404. this.createTime,
  405. this.jcz,
  406. this.zczfw,
  407. });
  408. factory UseMedicineItem.fromJson(Map<String, dynamic> json) => _$UseMedicineItemFromJson(json);
  409. Map<String, dynamic> toJson() => _$UseMedicineItemToJson(this);
  410. Map<String, dynamic> toReqJson() {
  411. Map<String, dynamic> map = {};
  412. map['id'] = id;
  413. map['synypz'] = synypz;
  414. map['synysl'] = synysl;
  415. map['sysj'] = sysj;
  416. map['syff'] = syff;
  417. return map;
  418. }
  419. }
  420. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  421. class NonghuItem {
  422. /// ID
  423. num? id;
  424. /// 被调查农户或合作社
  425. String? bdcnhhhzs;
  426. /// 扦样数量(公斤)
  427. num? qysl;
  428. /// 联系方式
  429. String? lxfs;
  430. /// 扦样代表数量(公斤)
  431. num? qydbsl;
  432. /// 收购扦样任务单ID
  433. num? zjCodeSamplingTaskDetailsSgjcId;
  434. /// 库存扦样任务单ID
  435. num? zjCodeSamplingTaskDetailsKcjcId;
  436. NonghuItem({
  437. this.id,
  438. this.bdcnhhhzs,
  439. this.qysl,
  440. this.lxfs,
  441. this.qydbsl,
  442. this.zjCodeSamplingTaskDetailsKcjcId,
  443. this.zjCodeSamplingTaskDetailsSgjcId,
  444. });
  445. factory NonghuItem.fromJson(Map<String, dynamic> json) => _$NonghuItemFromJson(json);
  446. Map<String, dynamic> toJson() => _$NonghuItemToJson(this);
  447. Map<String, dynamic> toReqJson() {
  448. Map<String, dynamic> map = {};
  449. map['id'] = id;
  450. map['bdcnhhhzs'] = bdcnhhhzs;
  451. map['qysl'] = qysl;
  452. map['lxfs'] = lxfs;
  453. map['qydbsl'] = qydbsl;
  454. return map;
  455. }
  456. }
  457. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  458. class SamplingTaskAllotSgjcItem {
  459. final num? id; //id
  460. final num? zjBaseGrainInformationId; //品种id
  461. final String? cypzmc; //采样品种名称
  462. final num? samplingCount; //计划采样数量
  463. final String? bsjzsj; //报送截至时间
  464. final num? personnelId; // 人员id
  465. final num? zjCodeSamplingPlanId; //计划id
  466. final num? zjCodeSamplingTaskId; //任务id
  467. final String? creater; //创建人
  468. final String? createDate; //创建时间
  469. final String? updateDate; //修改时间
  470. final String? cyjhbmCode; //采样计划编号
  471. final String? cyjhmc; //采样计划名称
  472. final String? niandu; //年度
  473. final String? zzpz; //种植品种
  474. final num? jhcysl; //计划采样数量
  475. const SamplingTaskAllotSgjcItem({
  476. this.id,
  477. this.zjBaseGrainInformationId,
  478. this.cypzmc,
  479. this.samplingCount,
  480. this.bsjzsj,
  481. this.personnelId,
  482. this.zjCodeSamplingPlanId,
  483. this.zjCodeSamplingTaskId,
  484. this.creater,
  485. this.createDate,
  486. this.updateDate,
  487. this.cyjhbmCode,
  488. this.cyjhmc,
  489. this.niandu,
  490. this.zzpz,
  491. this.jhcysl,
  492. });
  493. factory SamplingTaskAllotSgjcItem.fromJson(Map<String, dynamic> json) => _$SamplingTaskAllotSgjcItemFromJson(json);
  494. Map<String, dynamic> toJson() => _$SamplingTaskAllotSgjcItemToJson(this);
  495. }
  496. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  497. class JyjgxxItem {
  498. //企业id
  499. final num? zjBaseEnterpriseId;
  500. //单位名称
  501. final String? dwmc;
  502. //具体地址
  503. final String? address;
  504. //检验单号
  505. final String? jydh;
  506. //样品接收时间
  507. final String? ypjssj;
  508. //数据标记 1-质量,2-品质,3-食品安全,4-储存
  509. final num? sjbj;
  510. const JyjgxxItem({
  511. this.zjBaseEnterpriseId,
  512. this.dwmc,
  513. this.address,
  514. this.jydh,
  515. this.ypjssj,
  516. this.sjbj,
  517. });
  518. factory JyjgxxItem.fromJson(Map<String, dynamic> json) => _$JyjgxxItemFromJson(json);
  519. Map<String, dynamic> toJson() => _$JyjgxxItemToJson(this);
  520. }
  521. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  522. class SampleTaskItemKcjcRsp {
  523. /// ID
  524. num? id;
  525. /// 检验人员ID
  526. num? zjBasePersonnelId;
  527. ///
  528. num? zjCodeSamplingTaskId;
  529. /// 采样计划详情ID
  530. num? zjCodeSamplingPlanId;
  531. /// 创建时间
  532. String? createTime;
  533. /// 机构id
  534. num? zjBaseEnterpriseId;
  535. /// (下发或分解)行政区划Id
  536. num? xzqh;
  537. /// 是否施药
  538. num? sfsy;
  539. /// 编码
  540. String? code;
  541. /// 备注
  542. String? bz;
  543. /// 承储企业名称
  544. String? ccqymc;
  545. /// 扦样仓房
  546. String? qycf;
  547. /// 扦样货位
  548. String? qyhw;
  549. /// 扦样区域
  550. String? qyqy;
  551. /// 仓型
  552. String? cangxing;
  553. /// 入库时间
  554. String? rksj;
  555. /// 入库等级
  556. num? rkdj;
  557. /// 上层粮温(℃)
  558. num? sclw;
  559. /// 产地
  560. String? guoChandi;
  561. /// 产地
  562. String? shengChandi;
  563. /// 代表数量(吨)
  564. num? dbsl;
  565. /// 粮食性质--库存性质
  566. String? lsxz;
  567. /// 收获年度
  568. String? shnd;
  569. /// 扦样时间
  570. String? qysj;
  571. /// 最近施药时间
  572. String? zjsysj;
  573. /// 使用药剂名称
  574. String? syyjmc;
  575. /// 虫害发生情况
  576. num? chfsqk;
  577. /// 扦样时上层粮温(℃)
  578. num? qyssclw;
  579. /// 储粮技术设施
  580. String? cljsss;
  581. /// 扦样任务单号
  582. String? qyrwdh;
  583. /// 样品编号
  584. String? ypbh;
  585. /// 扦样人员姓名
  586. String? name;
  587. /// 任务类型
  588. num? rwlx;
  589. /// 单位名称
  590. String? dwmc;
  591. /// 采样品种名称
  592. num? cypzmc;
  593. /// 采样品种名称
  594. String? cypzName;
  595. /// 种植品种
  596. String? zzpz;
  597. /// 计划采样数量
  598. num? jhcysl;
  599. /// 品质检验数量
  600. num? pzjysl;
  601. /// 质量检验数量
  602. num? zljysl;
  603. /// 食安检验数量
  604. num? sajysl;
  605. /// 储存检验数量
  606. num? ccjysl;
  607. /// 报送截止时间
  608. String? bsjzsj;
  609. /// 扦样机构
  610. num? jhcyjg;
  611. /// 品种id
  612. num? zjBaseGrainInformationId;
  613. /// 采样计划编号
  614. String? cyjhbmCode;
  615. /// 采样计划名称
  616. String? cyjhmc;
  617. /// 年度
  618. String? niandu;
  619. ///
  620. List<SampleTaskAllotItemRsp>? codeSamplingTaskAllotSgjcRespList;
  621. /// 分解状态0是未分解,1已保存,2已分解
  622. num? state;
  623. /// 人员名称
  624. String? qyryName;
  625. /// 下发部门
  626. String? xfbmName;
  627. /// 任务单任务状态:0是待扦样,1已扦样
  628. num? deliveryStatus;
  629. /// 粮食品种
  630. num? lspz;
  631. /// 所在货位粮食总数(吨)
  632. String? szhwlszs;
  633. /// 附件地址
  634. List<FileRsp>? fileList;
  635. ///
  636. num? jclb;
  637. SampleTaskItemKcjcRsp({
  638. this.id,
  639. this.zjBasePersonnelId,
  640. this.zjCodeSamplingTaskId,
  641. this.zjCodeSamplingPlanId,
  642. this.createTime,
  643. this.zjBaseEnterpriseId,
  644. this.xzqh,
  645. this.sfsy,
  646. this.code,
  647. this.bz,
  648. this.ccqymc,
  649. this.qycf,
  650. this.qyhw,
  651. this.qyqy,
  652. this.cangxing,
  653. this.rksj,
  654. this.rkdj,
  655. this.sclw,
  656. this.guoChandi,
  657. this.shengChandi,
  658. this.dbsl,
  659. this.lsxz,
  660. this.shnd,
  661. this.qysj,
  662. this.zjsysj,
  663. this.syyjmc,
  664. this.chfsqk,
  665. this.qyssclw,
  666. this.cljsss,
  667. this.qyrwdh,
  668. this.ypbh,
  669. this.name,
  670. this.rwlx,
  671. this.dwmc,
  672. this.cypzmc,
  673. this.cypzName,
  674. this.zzpz,
  675. this.jhcysl,
  676. this.pzjysl,
  677. this.zljysl,
  678. this.sajysl,
  679. this.ccjysl,
  680. this.bsjzsj,
  681. this.jhcyjg,
  682. this.zjBaseGrainInformationId,
  683. this.cyjhbmCode,
  684. this.cyjhmc,
  685. this.niandu,
  686. this.codeSamplingTaskAllotSgjcRespList,
  687. this.state,
  688. this.qyryName,
  689. this.xfbmName,
  690. this.deliveryStatus,
  691. this.lspz,
  692. this.szhwlszs,
  693. this.fileList,
  694. this.jclb,
  695. });
  696. factory SampleTaskItemKcjcRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskItemKcjcRspFromJson(json);
  697. Map<String, dynamic> toJson() => _$SampleTaskItemKcjcRspToJson(this);
  698. Map<String, dynamic> getReqJson() {
  699. Map<String, dynamic> map = {};
  700. map['state'] = state;
  701. map['id'] = id;
  702. map['zjBasePersonnelId'] = zjBasePersonnelId;
  703. map['zjCodeSamplingTaskId'] = zjCodeSamplingTaskId;
  704. map['zjCodeSamplingPlanId'] = zjCodeSamplingPlanId;
  705. map['zjBaseEnterpriseId'] = zjBaseEnterpriseId;
  706. map['zjBaseGrainInformationId'] = zjBaseGrainInformationId;
  707. map['qyqy'] = qyqy;
  708. map['rksj'] = rksj;
  709. map['rkdj'] = rkdj;
  710. map['guoChandi'] = guoChandi;
  711. map['sclw'] = sclw;
  712. map['dbsl'] = dbsl;
  713. map['szhwlszs'] = szhwlszs;
  714. map['shnd'] = shnd;
  715. map['qysj'] = qysj;
  716. map['sfsy'] = sfsy;
  717. map['zjsysj'] = zjsysj;
  718. map['syyjmc'] = syyjmc;
  719. map['chfsqk'] = chfsqk;
  720. map['qyssclw'] = qyssclw;
  721. map['cljsss'] = cljsss;
  722. map['bz'] = bz;
  723. return map;
  724. }
  725. }
  726. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  727. class FileRsp {
  728. /// 文件编号
  729. num? id;
  730. /// 文件名
  731. String? name;
  732. /// 文件 URL
  733. String? url;
  734. /// 来源类型:0企业附件、1计划附件...
  735. num? objType;
  736. /// 来源id:企业id、计划id...
  737. num? objId;
  738. /// 来源细分:因为企业中有两个附件,要区分开
  739. num? type;
  740. FileRsp({
  741. this.id,
  742. this.name,
  743. this.url,
  744. this.objType,
  745. this.objId,
  746. this.type,
  747. });
  748. factory FileRsp.fromJson(Map<String, dynamic> json) => _$FileRspFromJson(json);
  749. Map<String, dynamic> toJson() => _$FileRspToJson(this);
  750. }
  751. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  752. class SampleTaskAllotItemRsp {
  753. /// id
  754. num? id;
  755. /// 品种id
  756. num? zjBaseGrainInformationId;
  757. /// 采样品种名称
  758. String? cypzmc;
  759. /// 计划采样数量
  760. num? samplingCount;
  761. /// 报送截至时间
  762. String? bsjzsj;
  763. /// 人员id
  764. num? personnelId;
  765. /// 计划id
  766. num? zjCodeSamplingPlanId;
  767. /// 任务id
  768. num? zjCodeSamplingTaskId;
  769. ///
  770. String? creater;
  771. ///
  772. String? createDate;
  773. ///
  774. String? updateDate;
  775. /// 采样计划编号
  776. String? cyjhbmCode;
  777. /// 采样计划名称
  778. String? cyjhmc;
  779. /// 年度
  780. String? niandu;
  781. /// 种植品种
  782. String? zzpz;
  783. /// 计划采样数量
  784. num? jhcysl;
  785. /// 种植品种
  786. String? zzpzmc;
  787. SampleTaskAllotItemRsp({
  788. this.id,
  789. this.zjBaseGrainInformationId,
  790. this.cypzmc,
  791. this.samplingCount,
  792. this.bsjzsj,
  793. this.personnelId,
  794. this.zjCodeSamplingPlanId,
  795. this.zjCodeSamplingTaskId,
  796. this.creater,
  797. this.createDate,
  798. this.updateDate,
  799. this.cyjhbmCode,
  800. this.cyjhmc,
  801. this.niandu,
  802. this.zzpz,
  803. this.jhcysl,
  804. this.zzpzmc,
  805. });
  806. factory SampleTaskAllotItemRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskAllotItemRspFromJson(json);
  807. Map<String, dynamic> toJson() => _$SampleTaskAllotItemRspToJson(this);
  808. }