using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace MadRunFabric.Model
{
///
/// 报修工单基础表
///
public class Wo_Repair_Base : IBaseModel
{
///
/// id 工单编号,通话标识ID,渠道来源,工单状态,省code,市code,项目id,项目类型id,楼id,楼层id,系统id,设备名称id,报修地点,报修地点,报修时间,报修人
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 工单编号
///
public string wocode { get; set; } = "";
///
/// 通话标识ID
///
//[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string callid { get; set; } = "";
///
/// 渠道来源 1表示PC 2表示安卓 3表示IOS 4表示微信
///
public int channel { get; set; } = 1;
///
/// 工单状态:0创建工单,1已转派(转派或者抢单),2已处理,3已评价,7挂起,8已取消,9已超时
///
public int wostate { get; set; } = 0;
///
/// 省code
///
public string province { get; set; } = "";
///
/// 市code
///
public string city { get; set; } = "";
///
/// 项目id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string projectid { get; set; }
///
/// 项目类型id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string protypeid { get; set; }
///
/// 楼id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string buildid { get; set; }
///
/// 楼层id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string floorid { get; set; }
///
/// 系统id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string systemid { get; set; }
///
/// 设备名称id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string equipmentid { get; set; }
///
/// 报修地点(楼栋,楼层名称,例如:办公楼 6层)
///
public string repairreplace { get; set; } = "";
///
/// 报修地点 - 房间号(例如:1006)
///
public string repairoom { get; set; } = "";
///
/// 报修时间
///
public DateTime? repairtime { get; set; }
///
/// 报修人
///
public string repairman { get; set; } = "";
///
/// 联系方式
///
public string contactway { get; set; } = "";
///
/// 故障说明 设备名称
///
public string faultdescripe { get; set; } = "";
///
/// 故障图片
///
public List faultpic;
///
/// 预约时间
///
public DateTime? appointtime { get; set; }
///
/// 类型(1派单2抢单)
///
public int totype { get; set; } = 0;
///
/// 接单人
///
public List touser { get; set; }
///
/// 接单人姓名
///
public List tousername { get; set; }
///
/// 接单时间
///
public DateTime? totime { get; set; }
///
/// 到场时间
///
public DateTime? arrivetime { get; set; }
///
/// 故障类型id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string faulttypeid { get; set; }
///
/// 是否使用耗材
///
public int ismaterials { get; set; } = 0;
///
/// 耗材信息
///
public List materials { get; set; }
///
/// 是否缺少耗材
///
public int islosematerials { get; set; } = 0;
///
/// 缺少耗材信息
///
public List losematerials { get; set; }
///
/// 处理人
///
public List dealuser { get; set; }
///
/// 处理人姓名
///
public List dealusername { get; set; }
///
/// 处理时间
///
public DateTime? dealtime { get; set; }
///
/// 挂起时间
///
public DateTime? hanguptime { get; set; }
///
/// 评价时间
///
public DateTime? evaluatetime { get; set; }
///
/// 分数
///
public int score { get; set; } = 0;
///
/// 取消时间
///
public DateTime? canceltime { get; set; }
///
/// 提交时间
///
public DateTime createtime { get; set; } = DateTime.Now;
///
/// 提交人工号
///
public string createuser { get; set; } = "";
///
/// 提交人姓名
///
public string createusername { get; set; } = "";
///
/// 是否删除
///
public int isdelete { get; set; } = 0;
///
/// 删除用户
///
public string deleteuser { get; set; } = "";
///
/// 接单班组科室
///
public string Jwocode { get; set; }
///
/// 改派遣班组科室
///
public string Pwcode { get; set; }
///
/// 处理人来源
///
public string CLpeoplefrom { get; set; }
///
/// 删除时间
///
public DateTime? deletetime { get; set; }
///
/// 班组接单时间
///
public DateTime? tobztimes { get; set; }
///
/// 维修时效id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string wxtimeid { get; set; }
///
/// 挂起原因
///
public string gqbecause { get; set; }
///
/// 第一次选择的时效id
///
public string wxtimeidone { get; set; }
///
/// 选择维修时效说明
///
public string wxdemodes { get; set; }
///
/// 超时了多久
///
public string wxtimecenter { get; set; }
///
/// 是否返修
///
public int? isrepair { get; set; }
}
}