123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- import 'package:json_annotation/json_annotation.dart';
- import 'package:lszlgl/model/num_converter.dart';
- import 'package:lszlgl/model/string_converter.dart';
- part 'sample_task_rsp.g.dart';
- @JsonSerializable(genericArgumentFactories: true)
- class SampleTaskListRsp {
- final num? total;
- final List<SampleTaskItem>? list;
- const SampleTaskListRsp({
- this.total,
- this.list,
- });
- factory SampleTaskListRsp.fromJson(Map<String, dynamic> json) => _$SampleTaskListRspFromJson(json);
- Map<String, dynamic> toJson() => _$SampleTaskListRspToJson(this);
- }
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class SampleTaskItem {
- final num? id;
- final String? qyryName; // 人员名称
- final String? fjrq; // 分解日期
- final String? ypbh; // 样品编号
- final String? jtpzmc; // 具体品种名称
- final num? deliveryStatus; // 任务单任务状态:0是待扦样,1已扦样
- final num? jhcysl; // 计划采样数量
- final num? zljysl; // 质量检验数量
- final num? pzjyjg; // 品质检验机构
- final num? pzjysl; // 品质检验数量
- final num? sajyjg; // 食安检验机构
- final num? sajysl; // 食安检验数量
- final num? jhcyjg; // 扦样机构
- final String? lspz; // 粮食品种
- final num? bchlx; // 病虫害类型
- final String? bdcnhhhzs; // 被调查农户或合作社
- final num? gcpwlx; // 工厂排污类型
- final String? lxfs; // 联系方式
- final num? qydbsl; // 扦样代表数量(公斤)
- final String? qyddjwd; // 扦样地点经纬度
- final String? qysj; // 扦样时间
- final num? qysl; // 扦样数量(公斤)
- final bool? scgczsffsbjyzdbch; // 生产过程中是否发生比较严重的病虫害
- final String? sheng; // 省
- final String? shi; // 市
- final String? qu; // 区
- final String? xian; // 县
- final String? cun; // 村
- final num? shidu; // 湿度
- final String? shsj; // 收获时间
- final num? trdllx; // 土壤地理类型
- final num? wendu; // 温度
- final num? wrwlx; // 污染物类型
- final num? zzmj; // 种植面积(亩地)
- final bool? zztdzwsfygcpw; // 种植土地周围是否有工厂排污
- final bool? zztdzwsysytrsfywr; // 种植土地周围使用水源、土壤是否有污染
- final num? zjBaseEnterpriseId; // 企业基本信息ID
- final num? zjBasePersonnelId; // 人员基本信息表ID
- final num? zjCodeSamplingTaskId;
- final num? zjCodeSamplingPlanId; // 采样计划详情ID
- final String? xzqh; // 行政区划
- final num? zjBaseGrainInformationId; // 品种id
- final num? cypzmc; // 采样品种名称
- final String? cypzName; // 采样品种名称
- final String? qyrwdh; // 扦样任务单号
- final num? shengXzqh; // 省行政区划id
- final num? shiXzqh; // 市行政区划id
- final num? quXzqh; // 区行政区划id
- final num? xiangXzqh; // 县行政区划id
- final num? cunXzqh; // 村行政区划id
- final num? createTime; // 创建时间
- final num? state; // 0是待扦样,1已扦样,2已完成
- final String? name; // 扦样人员姓名
- final String? rwjssj; // 任务接收时间
- final String? bsjzsj; // 报送截止时间
- final num? rwlx; // 任务类型/监测环节
- final num? jclb; // 监测类别
- final String? dwmc; // 单位名称
- final List<EnterpriseItem>? enterpriseList; // 机构信息
- final List<UseMedicineItem>? codeUseMedicineList; // 种植期间农药使用情况
- final String? zzpz; // 种植品种
- final String? shengXzqhName; // 省
- final String? shiXzqhName; // 市
- final String? quXzqhName; // 区
- final String? xiangXzqhName; // 县
- final String? cunXzqhName; // 村
- final String? cyjhbmCode; // 采样计划编号
- final String? cyjhmc; // 采样计划名称
- final String? niandu; // 年度
- final List<SamplingTaskAllotSgjcItem>? codeSamplingTaskAllotSgjcRespList; // 任务分配
- // final List<>? codeSamplingTaskDetailsKcjcRespVO; // 库存检测
- // final List<>? fplist; // 分配多条信息
- final num? sfyzpz; // 是否优质品种
- final num? yzpzlx; // 优质品种类型
- final num? shqjsffslyytq; // 收货期间是否发生连阴雨天气
- final num? shlssfsfpg; // 收货粮食水分是否偏高
- final num? jnlbdsffszmwr; // 近年来本地是否发生真菌毒素污染
- final num? zjdswrlx; // 真菌毒素污染类型
- final num? jnlbdsfzjswr; // 近年来本地是否发生重金属污染
- final num? zjswrlx; // 重金属污染类型
- final List<JyjgxxItem>? jyjgxxRespVOList; // 检验机构信息
- final num? jypzStatus; // 检验品质按钮0显示1不显示
- const SampleTaskItem({
- this.id,
- this.qyryName,
- this.fjrq,
- this.ypbh,
- this.jtpzmc,
- this.deliveryStatus,
- this.jhcysl,
- this.zljysl,
- this.pzjyjg,
- this.pzjysl,
- this.sajyjg,
- this.sajysl,
- this.jhcyjg,
- this.lspz,
- this.bchlx,
- this.bdcnhhhzs,
- this.gcpwlx,
- this.lxfs,
- this.qydbsl,
- this.qyddjwd,
- this.qysj,
- this.qysl,
- this.scgczsffsbjyzdbch,
- this.sheng,
- this.shi,
- this.qu,
- this.xian,
- this.cun,
- this.shidu,
- this.shsj,
- this.trdllx,
- this.wendu,
- this.wrwlx,
- this.zzmj,
- this.zztdzwsfygcpw,
- this.zztdzwsysytrsfywr,
- this.zjBaseEnterpriseId,
- this.zjBasePersonnelId,
- this.zjCodeSamplingTaskId,
- this.zjCodeSamplingPlanId,
- this.xzqh,
- this.zjBaseGrainInformationId,
- this.cypzmc,
- this.cypzName,
- this.qyrwdh,
- this.shengXzqh,
- this.shiXzqh,
- this.quXzqh,
- this.xiangXzqh,
- this.cunXzqh,
- this.createTime,
- this.state,
- this.name,
- this.rwjssj,
- this.bsjzsj,
- this.rwlx,
- this.jclb,
- this.dwmc,
- this.enterpriseList,
- this.codeUseMedicineList,
- this.zzpz,
- this.shengXzqhName,
- this.shiXzqhName,
- this.quXzqhName,
- this.xiangXzqhName,
- this.cunXzqhName,
- this.cyjhbmCode,
- this.cyjhmc,
- this.niandu,
- this.codeSamplingTaskAllotSgjcRespList,
- this.sfyzpz,
- this.yzpzlx,
- this.shqjsffslyytq,
- this.shlssfsfpg,
- this.jnlbdsffszmwr,
- this.zjdswrlx,
- this.jnlbdsfzjswr,
- this.zjswrlx,
- this.jyjgxxRespVOList,
- this.jypzStatus,
- });
- factory SampleTaskItem.fromJson(Map<String, dynamic> json) => _$SampleTaskItemFromJson(json);
- Map<String, dynamic> toJson() => _$SampleTaskItemToJson(this);
- String getDeliveryStatusText() {
- return switch (deliveryStatus) { 0 => '待扦样', 1 => '已扦样', _ => '' };
- }
- }
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class EnterpriseItem {
- final num? id; // 单位id
- final String? address; // 具体地址
- final String? beizhu; // 备注
- final num? bgsmj; // 办公室面积(m²)
- final num? cqlb; // 产权类别
- final num? dnczbksr; // 当年财政拨款收入
- final num? dnywwtsr; // 当年业务委托收入
- final num? dwdzSheng; // 省id
- final String? dwdzShengName; // 省名称
- final num? dwdzShi; // 市id
- final String? dwdzShiName; // 市名称
- final num? dwdzXian; // 县id
- final String? dwdzXianName; //县名称
- final num? dwjb; // 单位级别
- final String? dwmc; //单位名称
- final num? dwxz; //单位性质
- final String? frdb; //法人代表
- final num? jglb; //机构类别
- final num? jyyrs; //检验员人数
- final String? lxfs; //联系方式
- final num? rybzsl; //人员编制数量
- final String? shtyxydm; //社会统一信用代码
- final num? sysmj; //实验室面积(m²)
- final num? zjzmj; //总建筑面积(m²)
- final num? zrs; //总人数
- final String? dwdz; //单位地址
- final String? createTime; //创建时间
- final String? creatorDeptId; //创建人所在部门id
- final num? deptId; //隶属部门Id
- final String? sjzgdw; //上级主管单位
- // final List<>? jyllList; //检验能力集合
- // final List<>? jyzsList; //检验证书集合
- final String? flowCode; //审核编号
- final num? flowStatus; //审核状态:0待发起,1审核中,2通过,3驳回
- final String? flowCause; //审核意见
- final num? flowCheckUserId; //审核人id
- final String? flowTime; //审核时间
- // final List<>? kycxtdList; //科研创新团队
- // final List<>? xdbzList; //牵头或参与制修订标准
- // final List<>? kyxmList; //牵头或参与负责科研项目
- // final List<>? hdryList; //获得荣誉
- // final List<>? personnelList; //人员信息
- // final List<>? instrumentEquipmentList; //设备信息
- final num? personnelCount; //人员数量
- final num? instrumentEquipmentCount; //设备数量
- // final List<>? filePictureList; //附件(图片)地址
- // final List<>? filePictureTwoList; //附件(图片)地址
- // final List<>? guaPaiDeptRespVoList; //挂牌部门集合
- const EnterpriseItem({
- this.id,
- this.address,
- this.beizhu,
- this.bgsmj,
- this.cqlb,
- this.dnczbksr,
- this.dnywwtsr,
- this.dwdzSheng,
- this.dwdzShengName,
- this.dwdzShi,
- this.dwdzShiName,
- this.dwdzXian,
- this.dwdzXianName,
- this.dwjb,
- this.dwmc,
- this.dwxz,
- this.frdb,
- this.jglb,
- this.jyyrs,
- this.lxfs,
- this.rybzsl,
- this.shtyxydm,
- this.sysmj,
- this.zjzmj,
- this.zrs,
- this.dwdz,
- this.createTime,
- this.creatorDeptId,
- this.deptId,
- this.sjzgdw,
- this.flowCode,
- this.flowStatus,
- this.flowCause,
- this.flowCheckUserId,
- this.flowTime,
- this.personnelCount,
- this.instrumentEquipmentCount,
- });
- factory EnterpriseItem.fromJson(Map<String, dynamic> json) => _$EnterpriseItemFromJson(json);
- Map<String, dynamic> toJson() => _$EnterpriseItemToJson(this);
- }
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class UseMedicineItem {
- final num? id; //ID
- final String? cjsj; //创建时间
- final String? syff; //施药方式
- final String? synypz; //使用农药品种
- final num? synysl; //扦样使用农药的数量(公斤或毫升/每亩地)
- final String? sysj; //施药时间
- final num? zjCodeSamplingTaskDetailsKcjcId;
- final num? zjCodeSamplingTaskDetailsSgjcId;
- final String? createTime; //创建时间
- final String? jcz; //检测值
- final String? zczfw; //正常值范围
- const UseMedicineItem({
- this.id,
- this.cjsj,
- this.syff,
- this.synypz,
- this.synysl,
- this.sysj,
- this.zjCodeSamplingTaskDetailsKcjcId,
- this.zjCodeSamplingTaskDetailsSgjcId,
- this.createTime,
- this.jcz,
- this.zczfw,
- });
- factory UseMedicineItem.fromJson(Map<String, dynamic> json) => _$UseMedicineItemFromJson(json);
- Map<String, dynamic> toJson() => _$UseMedicineItemToJson(this);
- }
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class SamplingTaskAllotSgjcItem {
- final num? id; //id
- final num? zjBaseGrainInformationId; //品种id
- final String? cypzmc; //采样品种名称
- final num? samplingCount; //计划采样数量
- final String? bsjzsj; //报送截至时间
- final num? personnelId; // 人员id
- final num? zjCodeSamplingPlanId; //计划id
- final num? zjCodeSamplingTaskId; //任务id
- final String? creater; //创建人
- final String? createDate; //创建时间
- final String? updateDate; //修改时间
- final String? cyjhbmCode; //采样计划编号
- final String? cyjhmc; //采样计划名称
- final String? niandu; //年度
- final String? zzpz; //种植品种
- final num? jhcysl; //计划采样数量
- const SamplingTaskAllotSgjcItem({
- this.id,
- this.zjBaseGrainInformationId,
- this.cypzmc,
- this.samplingCount,
- this.bsjzsj,
- this.personnelId,
- this.zjCodeSamplingPlanId,
- this.zjCodeSamplingTaskId,
- this.creater,
- this.createDate,
- this.updateDate,
- this.cyjhbmCode,
- this.cyjhmc,
- this.niandu,
- this.zzpz,
- this.jhcysl,
- });
- factory SamplingTaskAllotSgjcItem.fromJson(Map<String, dynamic> json) => _$SamplingTaskAllotSgjcItemFromJson(json);
- Map<String, dynamic> toJson() => _$SamplingTaskAllotSgjcItemToJson(this);
- }
- @JsonSerializable(converters: [NumConverter(), StringConverter()])
- class JyjgxxItem {
- final num? zjBaseEnterpriseId; //企业id
- final String? dwmc; //单位名称
- final String? address; //具体地址
- final String? jydh; //检验单号
- final String? ypjssj; //样品接收时间
- JyjgxxItem({
- this.zjBaseEnterpriseId,
- this.dwmc,
- this.address,
- this.jydh,
- this.ypjssj,
- });
- factory JyjgxxItem.fromJson(Map<String, dynamic> json) => _$JyjgxxItemFromJson(json);
- Map<String, dynamic> toJson() => _$JyjgxxItemToJson(this);
- }
|