using OpenAuth.Repository.Domain; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenAuth.App.Response { /// ///无人机案件 /// [SugarTable("drone_caseinfo_single")] public partial class Sugar_Drone_caseinfo_single { public Sugar_Drone_caseinfo_single() { } /// /// 初始化 /// /// /// public void Init(SysUser user, SqlSugarClient db) { //主键 this.Id = Guid.NewGuid().ToString(); //创建人和创建时间 this.createtime = DateTime.Now; this.createuser = user.Id.ToString(); this.createusername = user.Name; //案件是否关闭,默认0 未关闭 this.is_closed = 0; //是否删除,默认0 未删除 this.is_delete = 0; //是否判读 this.is_intact = 0; //是否退回 this.is_improve = 0; //处理状态 this.handle_status_id = 0; this.handle_status_name = "未办理"; // 案件是否已查看 is_checked = 0; //时间戳标识案件编号 this.case_no = DateTime.Now.ToString("yyyyMMddHHmmssffff"); if (string.IsNullOrEmpty(case_description)) case_description = ""; if (string.IsNullOrEmpty(address)) address = ""; if (string.IsNullOrEmpty(typeid)) typeid = ""; if (string.IsNullOrEmpty(typename)) typename = ""; if (string.IsNullOrEmpty(countyid)) countyid = ""; if (string.IsNullOrEmpty(countyname)) countyname = ""; if (string.IsNullOrEmpty(streetid)) streetid = ""; if (string.IsNullOrEmpty(streetname)) streetname = ""; if (string.IsNullOrEmpty(communityid)) communityid = ""; if (string.IsNullOrEmpty(communityname)) communityname = ""; InitOther(db); } /// /// 修改 /// /// /// public void Update(SysUser user, SqlSugarClient db) { InitOther(db); } /// /// 初始化 类型、状态、县镇村等名称 /// /// private void InitOther(SqlSugarClient db) { //类型 if (!string.IsNullOrEmpty(typeid)) { var typeModel = db.Queryable().Where(c => c.ItemDetailId.ToString() == this.typeid).First(); if (typeModel != null) { this.typename = typeModel.ItemName; } } //案件状态 if (!string.IsNullOrEmpty(case_status_id)) { var statusModel = db.Queryable().Where(c => c.ItemDetailId.ToString() == this.case_status_id).First(); if (statusModel != null) { this.case_status_name = statusModel.ItemName; } } //县 if (!string.IsNullOrEmpty(countyid)) { var model = db.Queryable().Where(c => c.Id.ToString() == countyid).First(); if (model != null) { countyname = model.Name; } } //镇 if (!string.IsNullOrEmpty(streetid)) { var model = db.Queryable().Where(c => c.Id.ToString() == streetid).First(); if (model != null) { streetname = model.Name; } } //村 if (!string.IsNullOrEmpty(communityid)) { var model = db.Queryable().Where(c => c.Id.ToString() == communityid).First(); if (model != null) { communityname = model.Name; } } } /// /// Desc: /// Default: /// Nullable:False /// [SugarColumn(IsPrimaryKey = true)] public string Id { get; set; } /// /// Desc:案件编号 /// Default: /// Nullable:True /// public string case_no { get; set; } /// /// Desc:案件名称 /// Default: /// Nullable:True /// public string case_name { get; set; } /// /// Desc:案件描述 /// Default: /// Nullable:True /// public string case_description { get; set; } /// /// Desc:开始时间 /// Default: /// Nullable:True /// public DateTime? start_time { get; set; } /// /// Desc:结束时间 /// Default: /// Nullable:True /// public DateTime? end_time { get; set; } /// /// Desc:地址 /// Default: /// Nullable:True /// public string address { get; set; } /// /// Desc:经度 /// Default: /// Nullable:True /// public decimal? lng { get; set; } /// /// Desc:纬度 /// Default: /// Nullable:True /// public decimal? lat { get; set; } /// /// Desc:类型 /// Default: /// Nullable:True /// public string typeid { get; set; } /// /// Desc:类型 /// Default: /// Nullable:True /// public string typename { get; set; } /// /// Desc:处理状态 0 1 2 3 4 /// Default: /// Nullable:True /// public int? handle_status_id { get; set; } /// /// Desc:处理状态 0待接收1待判定2待整改3待审核4已完成 /// Default: /// Nullable:True /// public string handle_status_name { get; set; } /// /// Desc:案件状态 /// Default: /// Nullable:True /// public string case_status_id { get; set; } /// /// Desc:案件状态 /// Default: /// Nullable:True /// public string case_status_name { get; set; } /// /// Desc:创建时间 /// Default: /// Nullable:True /// public DateTime? createtime { get; set; } /// /// Desc:创建人 /// Default: /// Nullable:True /// public string createuser { get; set; } /// /// Desc:无人机编号 /// Default: /// Nullable:True /// public string drone_no { get; set; } /// /// Desc:案件处理人 /// Default: /// Nullable:True /// public string deal_userid { get; set; } /// /// Desc:案件处理人 /// Default: /// Nullable:True /// public string deal_username { get; set; } /// /// Desc:创建人姓名 /// Default: /// Nullable:True /// public string createusername { get; set; } /// /// Desc:是否删除 /// Default: /// Nullable:True /// public int? is_delete { get; set; } /// /// Desc:县 /// Default: /// Nullable:True /// public string countyid { get; set; } /// /// Desc:县 /// Default: /// Nullable:True /// public string countyname { get; set; } /// /// Desc:镇 /// Default: /// Nullable:True /// public string streetid { get; set; } /// /// Desc:镇 /// Default: /// Nullable:True /// public string streetname { get; set; } /// /// Desc:村 /// Default: /// Nullable:True /// public string communityid { get; set; } /// /// Desc:村 /// Default: /// Nullable:True /// public string communityname { get; set; } /// /// Desc:备注 /// Default: /// Nullable:True /// public string remark { get; set; } /// /// Desc:是否关闭 /// Default: /// Nullable:True /// public int? is_closed { get; set; } /// /// Desc:面积 /// Default: /// Nullable:True /// public string area { get; set; } /// /// Desc:是否违法(0-合法,1-违法,2-其他) /// Default: /// Nullable:True /// public int? is_illegal { get; set; } /// /// Desc:关闭人 /// Default: /// Nullable:True /// public string close_user { get; set; } /// /// Desc:关闭时间 /// Default: /// Nullable:True /// public DateTime? close_time { get; set; } /// /// Desc:判读人 /// Default: /// Nullable:True /// public string identification_user { get; set; } /// /// Desc:判读时间 /// Default: /// Nullable:True /// public DateTime? identification_time { get; set; } /// /// Desc:是否判读 (0未判读 1已判读 99已关闭) /// Default: /// Nullable:True /// public int? is_intact { get; set; } /// /// Desc:关闭人id /// Default: /// Nullable:True /// public string close_userid { get; set; } /// /// Desc:判读人id /// Default: /// Nullable:True /// public string identification_userid { get; set; } /// /// Desc:审核人id /// Default: /// Nullable:True /// public string verifyuserid { get; set; } /// /// Desc:审核人 /// Default: /// Nullable:True /// public string verifyuser { get; set; } /// /// Desc:审核时间 /// Default: /// Nullable:True /// public DateTime? verifytime { get; set; } /// /// Desc:是否改进 /// Default: /// Nullable:True /// public int? is_improve { get; set; } /// /// Desc:改进原因 /// Default: /// Nullable:True /// public string improve_reason { get; set; } /// /// Desc:是否分发 /// Default: /// Nullable:True /// public int? is_dispense { get; set; } /// /// Desc:分发人 /// Default: /// Nullable:True /// public string dispense_userid { get; set; } /// /// Desc:分发时间 /// Default: /// Nullable:True /// public DateTime? dispense_time { get; set; } /// /// Desc:分发人姓名 /// Default: /// Nullable:True /// public string dispense_username { get; set; } /// /// Desc:审核状态 /// Default: /// Nullable:True /// public int? verifystatus { get; set; } /// /// Desc:审核状态 /// Default: /// Nullable:True /// public string verifystatusname { get; set; } /// /// Desc:是否已查看(0未查看,1已查看) /// Default: /// Nullable:True /// public int? is_checked { get; set; } /// /// Desc:处理时间 /// Default: /// Nullable:True /// public DateTime? deal_time { get; set; } /// /// Desc:是否退回 /// Default: /// Nullable:True /// public int? is_drawback { get; set; } /// /// Desc:填报人 /// Default: /// Nullable:True /// public string examiner_id { get; set; } /// /// Desc:填报人 /// Default: /// Nullable:True /// public string examiner_name { get; set; } /// /// Desc:填报时间 /// Default: /// Nullable:True /// public DateTime? examine_time { get; set; } /// /// Desc:整改措施(0拆除复耕1补办手续) /// Default: /// Nullable:True /// public string measure_name { get; set; } /// /// Desc:照片 /// Default: /// Nullable:True /// public string casepic { get; set; } /// /// Desc:处理意见 /// Default: /// Nullable:True /// public string opinion { get; set; } /// /// Desc:处理结果 /// Default: /// Nullable:True /// public int? result { get; set; } /// /// Desc:处理方式(0立案1非立案2移交其他部门处理3未处理) /// Default: /// Nullable:True /// public string result_name { get; set; } /// /// Desc:处理意见 /// Default: /// Nullable:True /// public string opinion_name { get; set; } /// /// Desc:处理时间 /// Default: /// Nullable:True /// public DateTime? handletime { get; set; } /// /// Desc:处理人 /// Default: /// Nullable:True /// public string handleuser { get; set; } /// /// Desc:处理姓名 /// Default: /// Nullable:True /// public string handleusername { get; set; } /// /// Desc:是否协办 /// Default: /// Nullable:True /// public int? is_assist { get; set; } /// /// Desc:处理措施 /// Default: /// Nullable:True /// public string measure_name_deal { get; set; } /// /// Desc:其他实际用途 /// Default: /// Nullable:True /// public string qita_use_to { get; set; } /// /// Desc:违法联系人 /// Default: /// Nullable:True /// public string illegal_contact { get; set; } /// /// Desc:违法人身份证号 /// Default: /// Nullable:True /// public string illegal_shenfenzhenghao { get; set; } /// /// Desc:查处类型 /// Default: /// Nullable:True /// public int? investigation_type { get; set; } /// /// Desc:查处结果 /// Default: /// Nullable:True /// public string investigation_result { get; set; } /// /// Desc:立案号 /// Default: /// Nullable:True /// public string registr_number { get; set; } /// /// Desc:0建设中 1已建成 /// Default: /// Nullable:True /// public int? is_build_complete { get; set; } /// /// Desc:实际用途 /// Default: /// Nullable:True /// public string actual_use_to { get; set; } /// /// Desc:办理人 /// Default: /// Nullable:True /// public string transactor_id { get; set; } /// /// Desc:办理人 /// Default: /// Nullable:True /// public string transactor_name { get; set; } /// /// Desc:办理时间 /// Default: /// Nullable:True /// public DateTime? transact_time { get; set; } /// /// Desc:图斑id /// Default: /// Nullable:True /// public string geomid { get; set; } /// /// Desc:农用地面积 /// Default: /// Nullable:True /// public string nongyongdi_area { get; set; } /// /// Desc:耕地面积 /// Default: /// Nullable:True /// public string gengdi_area { get; set; } /// /// Desc:永久基本农田面积 /// Default: /// Nullable:True /// public string yongjiujibennongtian_area { get; set; } /// /// Desc:重点区域面积 /// Default: /// Nullable:True /// public string zhongdianquyu_area { get; set; } /// /// Desc:生态保护红线面积 /// Default: /// Nullable:True /// public string shengtaibaohuhongxian_area { get; set; } /// /// Desc:国土空间规划面积 /// Default: /// Nullable:True /// public string guotukongjianguihua_area { get; set; } /// /// Desc:附件 /// Default: /// Nullable:True /// public string fujian { get; set; } /// /// Desc:接收人 /// Default: /// Nullable:True /// public string jieshou_people { get; set; } /// /// Desc:接收时间 /// Default: /// Nullable:True /// public string jieshou_time { get; set; } /// /// Desc:判定依据说明 /// Default: /// Nullable:True /// public string pandingyijushuoming { get; set; } /// /// Desc:项目名称 /// Default: /// Nullable:True /// public string xiangmumc { get; set; } /// /// Desc:项目主体 /// Default: /// Nullable:True /// public string xiangmuzhuti { get; set; } /// /// Desc:违法类型(0非农化1非粮化) /// Default: /// Nullable:True /// public int? weifaleixing { get; set; } /// /// Desc:验收表 /// Default: /// Nullable:True /// public string yanshoubiao { get; set; } /// /// Desc:整改附件 /// Default: /// Nullable:True /// public string zhenggaifujian { get; set; } /// /// Desc:拆除复耕后照片 /// Default: /// Nullable:True /// public string chaichufugenghoupic { get; set; } /// /// Desc:是否接收 /// Default: /// Nullable:True /// public int? is_jieshou { get; set; } /// /// Desc:案件照片 /// Default:''::character varying /// Nullable:True /// public string anjianzhaopian { get; set; } } }