using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model.WorkOrderApi { /// /// 工单表 - 售后管理系统 /// [BsonIgnoreExtraElements] public class Bus_WorkOrder_Base : IBaseModel { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 工单编号 /// public string ordercode { get; set; } /// /// 通话唯一ID /// public string unique_id { get; set; } /// /// 通话记录id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string callrecordid { get; set; } /// /// 类型id (字典)(两类:咨询、售后、业务办理、预约登记、订单) /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string typeid { get; set; } /// /// 工单状态:0创建,1待处理,2待指派,3待接单,9完成 /// public int state { get; set; } = 0; //--------------------------------------------------------- /// /// 客户id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string customerid { get; set; } /// /// 客户姓名 /// public string name { get; set; } /// /// 单位名称 /// public string company { get; set; } /// /// 来电电话 /// public string callintel { get; set; } /// /// 联系电话 /// public string phone { get; set; } /// /// 省code(自动获取) /// public string province { get; set; } /// /// 市code(自动获取) /// public string city { get; set; } //--------------------------------------------------------- /// /// 客户项目id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string proid { get; set; } /// /// 项目名称 /// public string projectname { get; set; } /// /// 项目地点 /// public string address { get; set; } /// /// 故障设备 /// public string faulty_equipment { get; set; } /// /// 故障内容/咨询内容 /// public string content { get; set; } /// /// 故障类型 /// 两级: 一级:话务故障、系统性能(4小时)、软件bug(2小时定位到人,8小时给予预计处理完成时间)、甲方环境(4小时)、商务授权(24小时)、超出维保(24小时)、未知原因(48小时) /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string faulty_typeid { get; set; } /// /// 故障类型 /// 两级: 一级:话务故障 /// 二级:话务故障:用户自有线路(2小时)、中间件(4小时定位到处理人)、语音交换问题(4小时)] /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string faulty_type2id { get; set; } /// /// 售后来源(字典)(三大类:甲方对施工人员、客服对施工人员、商务部门转接) /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string sourceid { get; set; } /// /// 处理时效(字典)(2小时、4小时、8小时、24小时、48小时) /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string productive { get; set; } //--------------------------------------------------------- /// /// 咨询部门id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string deptid { get; set; } /// /// 最后处理部门id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string dealdeptid { get; set; } /// /// 最后处理时间 /// public DateTime? dealtime { get; set; } /// /// 最后处理人工号 /// public string dealuser { get; set; } /// /// 最后处理人姓名 /// public string dealusername { get; set; } /// /// 处理结果 /// public string result { get; set; } //--------------------------------------------------------- /// /// 创建时间 - 手动填写 /// public DateTime createtime { get; set; } = DateTime.Now; /// /// 创建人工号 /// public string createuser { get; set; } /// /// 创建人姓名 /// public string createusername { get; set; } /// /// 是否删除(0正常1删除) /// public int isdelete { get; set; } = 0; /// /// 删除用户 /// public string deleteuser { get; set; } /// /// 删除时间 /// public DateTime? deletetime { get; set; } /// /// 指派时间 /// public DateTime? zptime { get; set; } = DateTime.Now; /// /// 指派人code /// public string zpusercode { get; set; } /// /// 接收人 /// public string touser { get; set; } /// /// 业务类型 /// public string businesstype { get; set; } /// /// 工单有效性,1有效0无效 /// public int iseffective { get; set; } /// /// 是否立即处理,1是0否 /// public int dealinstantly { get; set; } /// /// 接单人 /// public string sureuser { get; set; } /// /// 是否退回过(退回次数) /// public int isreback { get; set; } = 0; } /// /// 工单状态:0未处理,1已处理 /// public enum EnumOrderType { /// /// 0创建工单 /// create = 0, /// /// 1未处理 /// deal = 1, /// /// 2已指派 /// appoint = 2, /// /// 3已接单 /// accept = 3, /// /// 9已处理 /// complete = 9, } }