using MadRunFabric.Common; using MadRunFabric.Model; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DistributionApi.Models.Input { public class DistriWorkOrderInput { /// /// 自增id /// public string id { get; set; } /// /// 紧急程度 - 1一般 2紧急 /// public int emergencyid { get; set; } /// /// 计划工单Id /// public string plantaskid { get; set; } /// /// 工单分类(1随机工单,2计划工单) /// public int wosorts { get; set; } = 1; /// /// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信 /// public int channel { get; set; } = 1; /// /// 项目名称id /// public string projectid { get; set; } /// /// 工单编号 ------------------------------------------- /// public string wocode { get; set; } /// /// 配送工单状态:0创建工单,1转派或者抢单(待取货),2已取货(配送中),3货物异常(异常),4已完结/待评价,5已取消,6挂起 ,9已评价 /// public int wostate { get; set; } = 0; /// /// 电梯岗 - 工单状态(0无操作,1已接单(待取货),2已取货(待配送)) ------------------------------------------- /// public int wostate_elevator { get; set; } = 0; /// /// 处理内容 /// public string detail { get; set; } /// /// 配送物品 ------------------------------------------- /// public List goodslist { get; set; } /// /// 配送物品 - 拆单参数 /// public List goodslist_chaidan { get; set; } /// /// 收件(地址,科室,联系) ------------------------------------------- 把收/发地址信息保存起来,保证地址的独立性 /// public List receiverlist { get; set; } /// /// 发货(地址,科室,联系) /// public List deliverylist { get; set; } /// /// 发货人 /// public string deliveryname { get; set; } /// /// 发货电话 /// public string deliverytel { get; set; } /// /// 转派人 ------------------------------------------- /// public string touser { get; set; } /// /// 处理人 /// public string dealby { get; set; } /// /// 处理时间 /// public DateTime dealtime { get; set; } /// /// 是否最后一步 0否 1是 /// public int islast { get; set; } = 0; /// /// 收货人签字 ------------------------------------------- /// public List signbypic { get; set; } /// /// 是否送达(0否1是) - 异常上报 /// public string sended { get; set; } /// /// 异常说明 /// public string exceptions { get; set; } ///// ///// 是否同意修改(0无操作,1不同意,2同意) -------------------------------------------申请 - 修改取消 ///// //public int isagree { get; set; } } #region 字段 model /// /// 配送物品 /// public class DistributionGoodsLists { /// /// 物品id /// public string goodsid { get; set; } /// /// 物品名称 /// public string goodsname { get; set; } /// /// 紧急程度 - 1一般 2紧急 /// public int typeid { get; set; } /// /// 是否提醒 - 提醒(关联工单,即将提醒内填写的内容展示在该物品下单成功后的物品种类后面) /// public bool isremind { get; set; } /// /// 提醒备注 /// public string remark { get; set; } /// /// 数量 /// public int num { get; set; } /// /// 楼宇名称id ---------------------------------------------关联科室 /// public string buildingid { get; set; } /// /// 楼宇 /// public string building_name { get; set; } /// /// 层数id /// public string floorid { get; set; } /// /// 层数 /// public string floor_name { get; set; } /// /// 科室(例如:内科|消化科[一级|二级|三级]) - 原因:科室可能是一级二级三级...不确定,所以用"|"隔开 /// public string department_name { get; set; } } #endregion }