chore: initial commit

This commit is contained in:
XingCheng3
2026-05-29 09:34:04 +08:00
commit 78ae9dcd2e
683 changed files with 68110 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class AGV_InterAction
{
//"{
//""LocationCode"": ""位置编号"",
//""TaskCode"": ""配送任务号"",
//""deliveryType"": ""配送类型"",
//""ReqCMD"": ""请求标识""
//}"
[JsonProperty("LocationCode")]
public string LocationCode { get; set; } // 位置编号
[JsonProperty("TaskCode")]
public string TaskCode { get; set; } // 配送任务号
[JsonProperty("deliveryType")]
public string DeliveryType { get; set; } // 配送类型
[JsonProperty("ReqCMD")]
public string ReqCMD { get; set; } // 请求标识
}
}

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
//using System.Text.Json.Serialization; // 用于 System.Text.Json
using Newtonsoft.Json; // 如果使用 Newtonsoft.Json 则取消注释
namespace MisDataSaveDate.MOM
{
public class AlarmClosed
{
[JsonProperty("taskID")]
// [JsonProperty("taskID")] // Newtonsoft.Json 用法
public string alarmTaskId { get; set; } // 报警任务ID
[JsonProperty("handleInfo")]
public List<AlarmHandleInfo> HandleInfos { get; set; } // 处理信息列表
}
public class AlarmHandleInfo
{
[JsonProperty("userId")]
public string UserId { get; set; } // 处理用户ID
[JsonProperty("userCode")]
public string UserCode { get; set; } // 处理用户编号
[JsonProperty("userName")]
public string UserName { get; set; } // 处理用户名称
[JsonProperty("startTime")]
public string StartTime { get; set; } // 处理开始时间
[JsonProperty("endTime")]
public string EndTime { get; set; } // 处理完成时间(可空)
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class ApiResponse
{
[JsonProperty("code")]
public int Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("data")]
public List<Response_Data> Data { get; set; }
}
public class Response_Data
{
[JsonProperty("code")]
public int Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("dataid")]
public string DataId { get; set; }
}
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
//using System.Text.Json.Serialization; // For System.Text.Json
using Newtonsoft.Json; // Uncomment if using Newtonsoft.Json
namespace MisDataSaveDate.MOM
{
public class EmployeeInfoSave
{
[JsonProperty("data")]
public List<EmployeeInfo> Data { get; set; }
}
public class EmployeeInfo
{
[JsonProperty("personID")]
// [JsonProperty("empID")] // For Newtonsoft.Json
public string PersonId { get; set; } // 人员ID
[JsonProperty("personCode")]
public string PersonCode { get; set; } // 人员编号
[JsonProperty("personName")]
public string PersonName { get; set; } // 人员名称
[JsonProperty("orgID")]
public string OrgId { get; set; } // 所属组织
[JsonProperty("phoneNumber")]
public string PhoneNumber { get; set; } // 手机号
[JsonProperty("createTime")]
public string CreateTime { get; set; } // 创建时间
[JsonProperty("lastModifyTime")]
public string LastModifyTime { get; set; } // 最后修改时间
}
}

View File

@@ -0,0 +1,146 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class InspectionPlan
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("usecompecode")]
public string CompileUnitCode { get; set; }
[JsonProperty("usecompename")]
public string CompileUnitName { get; set; }
[JsonProperty("checktypecode")]
public string CheckTypeCode { get; set; }
[JsonProperty("checktypename")]
public string CheckTypeName { get; set; }
[JsonProperty("cycleplan")]
public string IsCyclePlan { get; set; }
[JsonProperty("checkcycle")]
public string CheckCycle { get; set; }
[JsonProperty("cycleunit")]
public string CycleUnit { get; set; }
[JsonProperty("nextchecktime")]
public string NextCheckTime { get; set; }
[JsonProperty("planstatus")]
public string PlanStatus { get; set; }
[JsonProperty("whetherinspect")]
public string WhetherInspect { get; set; }
[JsonProperty("taskvalidityperiod")]
public string TaskValidityPeriod { get; set; }
[JsonProperty("validityunit")]
public string ValidityUnit { get; set; }
[JsonProperty("daysahead")]
public string DaysAhead { get; set; }
[JsonProperty("aheadunit")]
public string AheadUnit { get; set; }
[JsonProperty("checkobjects")]
public List<CheckObject> CheckObjects { get; set; }
}
public class CheckObject
{
[JsonProperty("checkobjectsid")]
public string CheckObjectId { get; set; }
[JsonProperty("amcode")]
public string AssetCode { get; set; }
[JsonProperty("amname")]
public string AssetName { get; set; }
[JsonProperty("poscode")]
public string PositionCode { get; set; }
[JsonProperty("posname")]
public string PositionName { get; set; }
[JsonProperty("plancheckercode")]
public string PlanCheckerCode { get; set; }
[JsonProperty("plancheckername")]
public string PlanCheckerName { get; set; }
[JsonProperty("detail")]
public List<CheckDetail> Details { get; set; }
}
public class CheckDetail
{
[JsonProperty("detailid")]
public string DetailId { get; set; }
[JsonProperty("checkpart")]
public string CheckPart { get; set; }
[JsonProperty("checkitem")]
public string CheckItem { get; set; }
[JsonProperty("checkcontent")]
public string CheckContent { get; set; }
[JsonProperty("checkmethodcode")]
public string CheckMethodCode { get; set; }
[JsonProperty("checkmethodname")]
public string CheckMethodName { get; set; }
[JsonProperty("standardclaim")]
public string StandardClaim { get; set; }
[JsonProperty("resulttype")]
public string ResultType { get; set; }
[JsonProperty("resultoptionsids")]
public string ResultOptionsIds { get; set; }
[JsonProperty("resultoptions")]
public string ResultOptions { get; set; }
[JsonProperty("Abnmeasurescode")]
public string AbnormalMeasuresCode { get; set; }
[JsonProperty("abnmeasuresname")]
public string AbnormalMeasuresName { get; set; }
[JsonProperty("checkstatusenumcode")]
public string CheckStatusEnumCode { get; set; }
[JsonProperty("checkstatusenumname")]
public string CheckStatusEnumName { get; set; }
[JsonProperty("isphotographed")]
public string IsPhotographed { get; set; }
[JsonProperty("plancheckercode")]
public string PlanCheckerCode { get; set; }
[JsonProperty("plancheckername")]
public string PlanCheckerName { get; set; }
[JsonProperty("lastchecktime")]
public string LastCheckTime { get; set; }
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class LineSideStock
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("process")]
public string Process { get; set; }
}
public class Res_LineSideStock
{
[JsonProperty("code")]
public int Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("data")]
public List<LSSData> Data { get; set; }
}
public class LSSData
{
[JsonProperty("processNo")]
public string ProcessNo { get; set; }
[JsonProperty("locationNo")]
public string LocationNo { get; set; }
[JsonProperty("emptySlots")]
public string EmptySlots { get; set; }
}
}

View File

@@ -0,0 +1,290 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MisDataSaveDate.MOM
{
public class DispatchOrder
{
/// <summary>
/// 派工单ID
/// </summary>
public string orderID { get; set; }
/// <summary>
/// 派工单号
/// </summary>
public string orderNo { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public string materialId { get; set; }
/// <summary>
/// 物料编号
/// </summary>
public string materialCode { get; set; }
/// <summary>
/// 物料名称
/// </summary>
public string materialName { get; set; }
/// <summary>
/// 物料规格
/// </summary>
public string materialSpec { get; set; }
/// <summary>
/// 物料型号
/// </summary>
public string materialModel { get; set; }
/// <summary>
/// 工程号
/// </summary>
public string projectCode { get; set; }
/// <summary>
/// 工程名称
/// </summary>
public string projectName { get; set; }
/// <summary>
/// 断路器产线根据此判断是不是同一工艺路线
/// </summary>
public string routingId { get; set; }
/// <summary>
/// 数量
/// </summary>
public string qty { get; set; }
/// <summary>
/// 计划投产时间
/// </summary>
public string planStartTime { get; set; }
/// <summary>
/// 派工任务列表
/// </summary>
public List<DispatchTask> dispatchTask { get; set; }
}
public class DispatchTask
{
/// <summary>
/// 任务ID
/// </summary>
public string taskId { get; set; }
/// <summary>
/// 任务号
/// </summary>
public string taskNo { get; set; }
/// <summary>
/// 工单工序ID
/// </summary>
public string workOrderProcessId { get; set; }
/// <summary>
/// 工单号
/// </summary>
public string workOrderNo { get; set; }
/// <summary>
/// 工作中心ID
/// </summary>
public string workCenterId { get; set; }
/// <summary>
/// 工作中心编号
/// </summary>
public string workCenterCode { get; set; }
/// <summary>
/// 工作中心名称
/// </summary>
public string workCenterName { get; set; }
/// <summary>
/// 工序ID
/// </summary>
public string processId { get; set; }
/// <summary>
/// 工序编号
/// </summary>
public string processCode { get; set; }
/// <summary>
/// 工序名称
/// </summary>
public string processName { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public string materialId { get; set; }
/// <summary>
/// 物料编号
/// </summary>
public string materialCode { get; set; }
/// <summary>
/// 物料名称
/// </summary>
public string materialName { get; set; }
/// <summary>
/// 物料型号
/// </summary>
public string materialModel { get; set; }
/// <summary>
/// 计划投产时间
/// </summary>
public string planStartTime { get; set; }
/// <summary>
/// 计划产出时间
/// </summary>
public string planEndTime { get; set; }
/// <summary>
/// 派工数量
/// </summary>
public string dispatchQty { get; set; }
/// <summary>
/// 任务状态
/// </summary>
public string taskStatus { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public string createdAt { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public string modifiedAt { get; set; }
/// <summary>
/// 配送信息列表
/// </summary>
public List<DeliveryInfo> deliveryInfo { get; set; }
}
public class DeliveryInfo
{
/// <summary>
/// 配送计划ID
/// </summary>
public string deliveryInfoid { get; set; }
/// <summary>
/// 工单备料ID
/// </summary>
public string momid { get; set; }
/// <summary>
/// 备料号
/// </summary>
public string preparationNo { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public string materialId { get; set; }
/// <summary>
/// 物料编号
/// </summary>
public string materialCode { get; set; }
/// <summary>
/// 物料名称
/// </summary>
public string materialName { get; set; }
/// <summary>
/// 物料规格
/// </summary>
public string materialSpec { get; set; }
/// <summary>
/// 物料型号
/// </summary>
public string materialModel { get; set; }
/// <summary>
/// 物料描述
/// </summary>
public string materialDesc { get; set; }
/// <summary>
/// 工序ID
/// </summary>
public string processId { get; set; }
/// <summary>
/// 工序编号
/// </summary>
public string processCode { get; set; }
/// <summary>
/// 工序名称
/// </summary>
public string processName { get; set; }
/// <summary>
/// 工作中心ID
/// </summary>
public string workCenterId { get; set; }
/// <summary>
/// 工作中心编号
/// </summary>
public string workCenterCode { get; set; }
/// <summary>
/// 工作中心名称
/// </summary>
public string workCenterName { get; set; }
/// <summary>
/// 所需数量
/// </summary>
public string requiredQty { get; set; }
/// <summary>
/// 计划时间
/// </summary>
public string planTime { get; set; }
/// <summary>
/// 批次号
/// </summary>
public string batchNo { get; set; }
/// <summary>
/// 序列号
/// </summary>
public string serialNo { get; set; }
/// <summary>
/// 配送位置ID
/// </summary>
public string deliveryPosId { get; set; }
/// <summary>
/// 配送位置编号
/// </summary>
public string deliveryPosCode { get; set; }
/// <summary>
/// 配送位置名称
/// </summary>
public string deliveryPosName { get; set; }
}
}

View File

@@ -0,0 +1,143 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MisDataSaveDate.MOM
{
/// <summary>
/// 工艺方案类
/// </summary>
public class ProcessScheme
{
/// <summary>
/// 工艺方案ID数据唯一标识
/// </summary>
public string id { get; set; }
/// <summary>
/// 工艺方案编号
/// </summary>
public string code { get; set; }
/// <summary>
/// 工艺方案编号
/// </summary>
public string name { get; set; }
/// <summary>
/// 订单号(生产订单或生产工单的编号)
/// </summary>
public string orderNo { get; set; }
/// <summary>
/// 产品ID
/// </summary>
public string productId { get; set; }
/// <summary>
/// 产品编号
/// </summary>
public string productCode { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public string productName { get; set; }
/// <summary>
/// 产品规格(非必填)
/// </summary>
public string productSpec { get; set; }
/// <summary>
/// 产品型号(非必填)
/// </summary>
public string model { get; set; }
/// <summary>
/// 创建时间格式为yyyy-MM-dd HH:mm:ss
/// </summary>
public string createdTime { get; set; }
/// <summary>
/// 最后修改时间格式为yyyy-MM-dd HH:mm:ss
/// </summary>
public string lastModifiedTime { get; set; }
/// <summary>
/// 工序信息
/// </summary>
public List<ProcessInfo> processInfo { get; set; }
public List<RoutingInfo> routingInfo { get; set; }
}
/// <summary>
/// 工序信息类
/// </summary>
public class ProcessInfo
{
/// <summary>
/// 顺序号
/// </summary>
public string sequenceNo { get; set; }
/// <summary>
/// 工序ID
/// </summary>
public string processId { get; set; }
/// <summary>
/// 工序编号
/// </summary>
public string processCode { get; set; }
/// <summary>
/// 工序名称
/// </summary>
public string processName { get; set; }
/// <summary>
/// 文档信息(文档路径)
/// </summary>
public string docInfo { get; set; }
/// <summary>
/// 文档名称
/// </summary>
public string filename { get; set; }
/// <summary>
/// 工序信息id
/// </summary>
public string processInfoid { get; set; }
}
public class RoutingInfo
{
/// <summary>
/// 工艺路线信息ID
/// </summary>
public string routingid { get; set; }
/// <summary>
/// 工艺路线编号
/// </summary>
public string routingcode { get; set; }
/// <summary>
/// 工序ID
/// </summary>
public string processId { get; set; }
/// <summary>
/// 工序号
/// </summary>
public string processCode { get; set; }
/// <summary>
/// 工序名称
/// </summary>
public string processName { get; set; }
}
}

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class MaterialInfoSave
{
[JsonProperty("data")]
public List<Material> Data { get; set; }
}
public class Material
{
[JsonProperty("materialID")]
public string MaterialID { get; set; }
[JsonProperty("materialCode")]
public string MaterialCode { get; set; }
[JsonProperty("materialName")]
public string MaterialName { get; set; }
[JsonProperty("unitOfMeasure")]
public string UnitOfMeasure { get; set; }
[JsonProperty("materialCategory")]
public string MaterialCategory { get; set; }
[JsonProperty("materialSpec")]
public string MaterialSpec { get; set; }
[JsonProperty("materialModel")]
public string MaterialModel { get; set; }
[JsonProperty("materialDescription")]
public string MaterialDescription { get; set; }
[JsonProperty("createTime")]
public string CreateTime { get; set; }
[JsonProperty("lastModifyTime")]
public string LastModifyTime { get; set; }
}
}

View File

@@ -0,0 +1,241 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExternalDataSync.MOM
{
public class OnlineCheckData
{
/// <summary>
/// MsgId
/// </summary>
public string MsgId { get; set; } = "";
/// <summary>
/// OpCode
/// </summary>
public string OpCode { get; set; } = "";
/// <summary>
/// ProductionCode
/// </summary>
public string ProductionCode { get; set; } = "";
/// <summary>
/// CheckTime
/// </summary>
public string ScanTime { get; set; } = "";
/// <summary>
/// EndTime
/// </summary>
public string EndTime { get; set; } = "";
/// <summary>
/// CheckPerson
/// </summary>
public string CheckPerson { get; set; } = "";
/// <summary>
/// Powerused
/// </summary>
public string Powerused { get; set; } = "";
/// <summary>
/// QualityMark
/// </summary>
public int QualityMark { get; set; } = 1;
public List<OnlineCheckData_CheckData> CheckData { get; set; } = new List<OnlineCheckData_CheckData>();
}
public class OnlineCheckData_CheckData
{
/// <summary>
/// CheckCode
/// </summary>
public string CheckCode { get; set; } = "";
/// <summary>
/// CheckName
/// </summary>
public string CheckName { get; set; } = "";
/// <summary>
/// ProductionCode
/// </summary>
public string Unit { get; set; }
/// <summary>
/// StandardValue
/// </summary>
public string StandardValue { get; set; } = "";
/// <summary>
/// MinValue
/// </summary>
public string MinValue { get; set; } = "";
/// <summary>
/// MaxValue
/// </summary>
public string MaxValue { get; set; } = "";
/// <summary>
/// CheckValue
/// </summary>
public string CheckValue { get; set; } = "";
/// <summary>
/// QualityMark
/// </summary>
public int QualityMark { get; set; } = 1;
}
/// <summary>
/// 测试数据上传接口响应类
/// </summary>
public class OnlineCheckDataResponse
{
/// <summary>
/// 响应码 200正常、500失败
/// </summary>
public string Code { get; set; } = "";
/// <summary>
/// 响应消息,出错时返回接口调用失败原因
/// </summary>
public string Message { get; set; } = "";
/// <summary>
/// 请求编号,响应结果带回请求编号
/// </summary>
public string MsgId { get; set; } = "";
/// <summary>
/// 携带数据JSON格式字符串数据
/// </summary>
public string Data { get; set; } = "";
}
public class PrintTaskData
{
/// string msg = $"MARK|{printTemplete}|{productCode},{printDate}";
/// <summary>
/// printTemplete
/// </summary>
public string printTemplete { get; set; } = "";
/// <summary>
/// productCode
/// </summary>
public string productCode { get; set; } = "";
/// <summary>
/// printDate
/// </summary>
public string printDate { get; set; } = "";
}
/// <summary>
/// 设备状态数据上传
/// </summary>
public class OnlineStatusData
{
/// <summary>
/// 消息ID
/// </summary>
public string MsgId { get; set; } = "";
/// <summary>
/// 设备编码
/// </summary>
public string DeviceCode { get; set; } = "";
/// <summary>
/// 数据类型: Status-设备状态, Use-使用情况
/// </summary>
public string DataType { get; set; } = "";
/// <summary>
/// 状态数据列表
/// </summary>
public List<OnlineStatusData_CheckData> CheckData { get; set; } = new List<OnlineStatusData_CheckData>();
}
/// <summary>
/// 设备状态数据明细
/// </summary>
public class OnlineStatusData_CheckData
{
/// <summary>
/// 状态代码
/// </summary>
public string StatuCode { get; set; } = "";
/// <summary>
/// 状态名称
/// </summary>
public string StatuName { get; set; } = "";
/// <summary>
/// 状态值
/// </summary>
public string StatuValue { get; set; } = "";
}
/// <summary>
/// 获取位置待测试产品信息 - 请求类
/// </summary>
public class GetWaitCheckProductDataRequest
{
/// <summary>
/// 请求编号 GUID
/// </summary>
public string MsgId { get; set; } = "";
/// <summary>
/// 位置号 AC1104-1, AC1104-2等
/// </summary>
public string OpCode { get; set; } = "";
}
/// <summary>
/// 获取位置待测试产品信息 - 响应类
/// </summary>
public class GetWaitCheckProductDataResponse
{
/// <summary>
/// 响应码 200正常、500失败
/// </summary>
public string Code { get; set; } = "";
/// <summary>
/// 响应消息,出错时返回接口调用失败原因
/// </summary>
public string Message { get; set; } = "";
/// <summary>
/// 请求编号,响应结果带回请求编号
/// </summary>
public string MsgId { get; set; } = "";
/// <summary>
/// 响应数据
/// </summary>
public GetWaitCheckProductDataResult Data { get; set; } = new GetWaitCheckProductDataResult();
}
/// <summary>
/// 获取位置待测试产品信息 - 响应数据
/// </summary>
public class GetWaitCheckProductDataResult
{
/// <summary>
/// 产品编号,唯一产品编码,若无待测产品则空
/// </summary>
public string ProductionCode { get; set; } = "";
/// <summary>
/// 产品型号,待测产品型号
/// </summary>
public string ProductModel { get; set; } = "";
/// <summary>
/// 产品型号代码,机型对应数字类型编号
/// </summary>
public int ProductModelCode { get; set; } = 0;
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class OrganizationData
{
[JsonProperty("data")]
public List<Organization> Data { get; set; }
}
public class Organization
{
[JsonProperty("orgID")]
public string OrgID { get; set; }
[JsonProperty("orgCode")]
public string OrgCode { get; set; }
[JsonProperty("orgName")]
public string OrgName { get; set; }
[JsonProperty("classification")]
public string Classification { get; set; }
[JsonProperty("level")]
public string LevelNo { get; set; }
[JsonProperty("detail")]
public string Detail { get; set; }
[JsonProperty("createTime")]
public string CreateTime { get; set; }
[JsonProperty("lastModifyTime")]
public string LastModifyTime { get; set; }
}
}

View File

@@ -0,0 +1,182 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class ProductionOrder
{
[JsonProperty("orderID")]
public string OrderID { get; set; }
[JsonProperty("orderNo")]
public string OrderNo { get; set; }
[JsonProperty("materialId")]
public string MaterialId { get; set; }
[JsonProperty("materialCode")]
public string MaterialCode { get; set; }
[JsonProperty("materialName")]
public string MaterialName { get; set; }
[JsonProperty("materialSpec")]
public string MaterialSpec { get; set; }
[JsonProperty("materialModel")]
public string MaterialModel { get; set; }
[JsonProperty("orderType")]
public string OrderType { get; set; }
[JsonProperty("clr")]
public string Clr { get; set; }
[JsonProperty("planproddate")]
public string PlanProdDate { get; set; }
[JsonProperty("planprodqty")]
public string PlanProdQty { get; set; }
[JsonProperty("planoutputdate")]
public string PlanOutputDate { get; set; }
[JsonProperty("planoutputqty")]
public string PlanOutputQty { get; set; }
[JsonProperty("projectno")]
public string ProjectNo { get; set; }
[JsonProperty("projectname")]
public string ProjectName { get; set; }
[JsonProperty("planid")]
public string PlanId { get; set; }
[JsonProperty("processplan")]
public List<ProcessPlan> ProcessPlans { get; set; }
}
public class ProcessPlan
{
[JsonProperty("rountingid")]
public string RoutingId { get; set; }
[JsonProperty("processplanId")]
public string ProcessPlanId { get; set; }
[JsonProperty("processplanNo")]
public string ProcessPlanNo { get; set; }
[JsonProperty("workOrderProcessId")]
public string WorkOrderProcessId { get; set; }
[JsonProperty("workOrderNo")]
public string WorkOrderNo { get; set; }
[JsonProperty("workCenterId")]
public string WorkCenterId { get; set; }
[JsonProperty("workCenterCode")]
public string WorkCenterCode { get; set; }
[JsonProperty("workCenterName")]
public string WorkCenterName { get; set; }
[JsonProperty("processId")]
public string ProcessId { get; set; }
[JsonProperty("processCode")]
public string ProcessCode { get; set; }
[JsonProperty("processName")]
public string ProcessName { get; set; }
[JsonProperty("materialId")]
public string MaterialId { get; set; }
[JsonProperty("materialCode")]
public string MaterialCode { get; set; }
[JsonProperty("materialName")]
public string MaterialName { get; set; }
[JsonProperty("materialModel")]
public string MaterialModel { get; set; }
[JsonProperty("planStartTime")]
public string PlanStartTime { get; set; }
[JsonProperty("planEndTime")]
public string PlanEndTime { get; set; }
[JsonProperty("qty")]
public decimal Qty { get; set; }
[JsonProperty("outqty")]
public decimal OutQty { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("createdAt")]
public string CreatedAt { get; set; }
[JsonProperty("modifiedAt")]
public string ModifiedAt { get; set; }
[JsonProperty("deliveryInfo")]
public List<DeliveryMaterialInfo> DeliveryInfo { get; set; }
}
public class DeliveryMaterialInfo
{
[JsonProperty("deliveryInfoid")]
public string DeliveryInfoId { get; set; }
[JsonProperty("preparationNo")]
public string PreparationNo { get; set; }
[JsonProperty("materialId")]
public string MaterialId { get; set; }
[JsonProperty("materialCode")]
public string MaterialCode { get; set; }
[JsonProperty("materialName")]
public string MaterialName { get; set; }
[JsonProperty("materialSpec")]
public string MaterialSpec { get; set; }
[JsonProperty("materialModel")]
public string MaterialModel { get; set; }
[JsonProperty("materialDesc")]
public string MaterialDesc { get; set; }
[JsonProperty("processId")]
public string ProcessId { get; set; }
[JsonProperty("processCode")]
public string ProcessCode { get; set; }
[JsonProperty("processName")]
public string ProcessName { get; set; }
[JsonProperty("workCenterId")]
public string WorkCenterId { get; set; }
[JsonProperty("workCenterCode")]
public string WorkCenterCode { get; set; }
[JsonProperty("workCenterName")]
public string WorkCenterName { get; set; }
[JsonProperty("requiredQty")]
public decimal RequiredQty { get; set; }
[JsonProperty("planTime")]
public string PlanTime { get; set; }
}
}

View File

@@ -0,0 +1,268 @@
using Newtonsoft.Json;
using NPOI.OpenXml4Net.OPC;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
namespace MisDataSaveDate.MOM
{
public class QTStandardInfo
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("name_chs")]
public string NameChs { get; set; }
[JsonProperty("createdate")]
public string CreateDate { get; set; }
[JsonProperty("lastmodifiedtime")]
public string LastModifiedTime { get; set; }
[JsonProperty("materialid")]
public MaterialID Material { get; set; }
[JsonProperty("note")]
public string Note { get; set; }
[JsonProperty("procedureid")]
public ProcedureInfo Procedure { get; set; }
[JsonProperty("standardsortid")]
public StandardSortInfo StandardSort { get; set; }
[JsonProperty("standardstate")]
public string StandardState { get; set; }
[JsonProperty("standardtypeid")]
public StandardTypeInfo StandardType { get; set; }
[JsonProperty("meqmstandarditemsource")]
public List<StandardItemSource> StandardItemList { get; set; }
[JsonProperty("meqmstandardvaluesource")]
public List<StandardValueInfo> StandardValueList { get; set; }
}
public class MaterialidInfo
{
[JsonProperty("materialid")]
public string MaterialId { get; set; }
[JsonProperty("materialid_code")]
public string MaterialCode { get; set; }
[JsonProperty("materialid_name_chs")]
public string MaterialName { get; set; }
}
public class ProcedureInfo
{
[JsonProperty("procedureid")]
public string ProcedureId { get; set; }
[JsonProperty("procedureid_name_chs")]
public string ProcedureName { get; set; }
[JsonProperty("procedureid_ppbzgx_gxbh")]
public string ProcedureCode { get; set; }
}
public class StandardSortInfo
{
[JsonProperty("standardsortid")]
public string StandardSortId { get; set; }
[JsonProperty("standardsortid_code")]
public string StandardSortCode { get; set; }
[JsonProperty("standardsortid_name_chs")]
public string StandardSortName { get; set; }
[JsonProperty("standardsortid_sortpath")]
public string StandardSortPath { get; set; }
}
public class StandardTypeInfo
{
[JsonProperty("standardtypeid")]
public string StandardTypeId { get; set; }
[JsonProperty("standardtypeid_code")]
public string StandardTypeCode { get; set; }
[JsonProperty("standardtypeid_iseffective")]
public string IsEffective { get; set; }
[JsonProperty("standardtypeid_issystem")]
public string IsSystem { get; set; }
[JsonProperty("standardtypeid_name_chs")]
public string StandardTypeName { get; set; }
}
public class StandardItemSource
{
[JsonProperty("id")]
public string itemId { get; set; }
[JsonProperty("standardid")]
public RelatedStandard Standard { get; set; }
[JsonProperty("createtime")]
public DateTime CreateTime { get; set; }
[JsonProperty("inspecclassification")]
public string InspectionClassification { get; set; }
[JsonProperty("inspecclassificationname")]
public string InspectionClassificationName { get; set; }
[JsonProperty("note")]
public string Note { get; set; }
[JsonProperty("targetauxdescribe")]
public string TargetAuxDescribe { get; set; }
[JsonProperty("targetdescribe")]
public string TargetDescribe { get; set; }
[JsonProperty("targetgroupid")]
public TargetGroup TargetGroup { get; set; }
[JsonProperty("targetid")]
public TargetInfo Target { get; set; }
[JsonProperty("targetno")]
public string TargetNo { get; set; }
}
public class RelatedStandard
{
[JsonProperty("standardid")]
public string StandardId { get; set; }
[JsonProperty("standardid_code")]
public string StandardCode { get; set; }
[JsonProperty("standardid_name_chs")]
public string StandardName { get; set; }
}
public class TargetGroup
{
[JsonProperty("targetgroupid")]
public string TargetGroupId { get; set; }
[JsonProperty("targetgroupid_code")]
public string TargetGroupCode { get; set; }
[JsonProperty("targetgroupid_name_chs")]
public string TargetGroupName { get; set; }
}
public class TargetInfo
{
[JsonProperty("targetid")]
public string TargetId { get; set; }
[JsonProperty("targetid_code")]
public string TargetCode { get; set; }
[JsonProperty("targetid_name_chs")]
public string TargetName { get; set; }
[JsonProperty("targetid_note")]
public string TargetNote { get; set; }
[JsonProperty("targetid_targetgroupid")]
public string TargetGroupId { get; set; }
[JsonProperty("targetid_targettype")]
public string TargetType { get; set; }
}
public class StandardValueInfo
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("inspectionresults")]
public InspectionResult InspectionResults { get; set; }
[JsonProperty("inspectionresultsname")]
public string InspectionResultsName { get; set; }
[JsonProperty("itemvaluetype")]
public string ItemValueType { get; set; }
[JsonProperty("lowercharacter")]
public string LowerCharacter { get; set; }
[JsonProperty("lowerdiffvalue")]
public decimal? LowerDiffValue { get; set; }
[JsonProperty("lowervalue")]
public decimal? LowerValue { get; set; }
[JsonProperty("note")]
public string Note { get; set; }
[JsonProperty("standardid")]
public string StandardId { get; set; }
[JsonProperty("standarditemid")]
public string StandardItemId { get; set; }
[JsonProperty("standardstrvalue")]
public string StandardStrValue { get; set; }
[JsonProperty("standardvalue")]
public string StandardValue { get; set; }
[JsonProperty("targetvalueid")]
public TargetValue TargetValue { get; set; }
[JsonProperty("uppercharacter")]
public string UpperCharacter { get; set; }
[JsonProperty("upperdiffvalue")]
public string UpperDiffValue { get; set; }
[JsonProperty("uppervalue")]
public string UpperValue { get; set; }
[JsonProperty("valueno")]
public string ValueNo { get; set; }
}
public class InspectionResult
{
[JsonProperty("inspectionresults")]
public string InspectionResults { get; set; }
[JsonProperty("inspectionresults_code")]
public string InspectionResultsCode { get; set; }
[JsonProperty("inspectionresults_enable")]
public string InspectionResultsEnable { get; set; }
[JsonProperty("inspectionresults_name")]
public string InspectionResultsName { get; set; }
}
public class TargetValue
{
[JsonProperty("targetvalueid")]
public string TargetValueId { get; set; }
[JsonProperty("targetvalueid_code")]
public string TargetValueCode { get; set; }
[JsonProperty("targetvalueid_name")]
public string TargetValueName { get; set; }
}
}

View File

@@ -0,0 +1,287 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MisDataSaveDate.MOM
{
public class QTTemplateInfo
{
[JsonProperty("note")]
public string Note { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("productionworkcenter")]
public ProdWorkCenter ProductionWorkCenter { get; set; }
[JsonProperty("classidentifier2")]
public string ClassIdentifier2 { get; set; }
[JsonProperty("classidentifier1")]
public string ClassIdentifier1 { get; set; }
[JsonProperty("filedata")]
public string FileData { get; set; }
[JsonProperty("classidentifier4")]
public string ClassIdentifier4 { get; set; }
[JsonProperty("classidentifier3")]
public string ClassIdentifier3 { get; set; }
[JsonProperty("classidentifier6")]
public string ClassIdentifier6 { get; set; }
[JsonProperty("materialid")]
public MaterialID Material { get; set; }
[JsonProperty("type")]
public Type Type { get; set; }
[JsonProperty("classidentifier5")]
public string ClassIdentifier5 { get; set; }
[JsonProperty("procedureid")]
public ProcedureID Process { get; set; }
[JsonProperty("classidentifier8")]
public string ClassIdentifier8 { get; set; }
[JsonProperty("classidentifier7")]
public string ClassIdentifier7 { get; set; }
[JsonProperty("lastmodifieduserid")]
public string LastModifiedUserId { get; set; }
[JsonProperty("materialtype")]
public MaterialType MaterialType { get; set; }
[JsonProperty("createuserid")]
public string CreateUserId { get; set; }
[JsonProperty("lastmodifieduser")]
public string LastModifiedUser { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("state")]
public string State { get; set; }
[JsonProperty("lastmodifiedtime")]
public string LastModifiedTime { get; set; }
[JsonProperty("createtime")]
public string CreateTime { get; set; }
[JsonProperty("xm_inspectfile")]
public List<XmInspectFile> XmInspectFile { get; set; }
[JsonProperty("qualityorg")]
public QualityOrg QualityOrg { get; set; }
[JsonProperty("createuser")]
public string CreateUser { get; set; }
[JsonProperty("recordtemplateitems")]
public List<RecordTemplateItem> RecordTemplateItems { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("productionorg")]
public ProductionOrg ProductionOrg { get; set; }
}
public class ProdWorkCenter
{
[JsonProperty("productionworkcenter_ppsczx_zxbh")]
public string ProductionWorkCenterPpsczxZxbh { get; set; }
[JsonProperty("productionworkcenter")]
public string ProductionWorkCenter { get; set; }
[JsonProperty("productionworkcenter_name_chs")]
public string ProductionWorkCenterNameChs { get; set; }
}
public class MaterialID
{
[JsonProperty("materialid_code")]
public string MaterialIdCode { get; set; }
[JsonProperty("materialid")]
public string MaterialId { get; set; }
[JsonProperty("materialid_name_chs")]
public string MaterialIdNameChs { get; set; }
}
public class Type
{
[JsonProperty("type_name")]
public string TypeName { get; set; }
[JsonProperty("type")]
public string TypeID { get; set; }
[JsonProperty("type_code")]
public string TypeCode { get; set; }
}
public class ProcedureID
{
[JsonProperty("procedureid_ppbzgx_gxbh")]
public string ProcedureIdPpbzgxGxbh { get; set; }
[JsonProperty("procedureid_name_chs")]
public string ProcedureIdNameChs { get; set; }
[JsonProperty("procedureid")]
public string ProcedureId { get; set; }
}
public class MaterialType
{
[JsonProperty("materialtype_code")]
public string MaterialTypeCode { get; set; }
[JsonProperty("materialtype")]
public string MaterialTypeValue { get; set; }
[JsonProperty("materialtype_name_chs")]
public string MaterialTypeNameChs { get; set; }
}
public class QualityOrg
{
[JsonProperty("qualityorg_ppzzzl_zzbh")]
public string QualityOrgPpzzzlZzbh { get; set; }
[JsonProperty("qualityorg")]
public string QualityOrgValue { get; set; }
[JsonProperty("qualityorg_name_chs")]
public string QualityOrgNameChs { get; set; }
}
public class ProductionOrg
{
[JsonProperty("productionorg_name_chs")]
public string ProductionOrgNameChs { get; set; }
[JsonProperty("productionorg_ppzzsc_zzbh")]
public string ProductionOrgPpzzscZzbh { get; set; }
[JsonProperty("productionorg")]
public string ProductionOrgValue { get; set; }
}
public class DefaultResultValue
{
[JsonProperty("defaultresultvalue_code")]
public string DefaultResultValueCode { get; set; }
[JsonProperty("defaultresultvalue_name")]
public string DefaultResultValueName { get; set; }
[JsonProperty("defaultresultvalue")]
public string defaultResultValue { get; set; }
}
public class InspectionItemId
{
[JsonProperty("inspectionitemid_code")]
public string InspectionItemIdCode { get; set; }
[JsonProperty("inspectionitemid_name_chs")]
public string InspectionItemIdNameChs { get; set; }
[JsonProperty("inspectionitemid")]
public string inspectionItemId { get; set; }
}
public class RecordTemplateItem
{
[JsonProperty("inspectkey")]
public string InspectKey { get; set; }
[JsonProperty("note")]
public string Note { get; set; }
[JsonProperty("uploadattachments")]
public string UploadAttachments { get; set; }
[JsonProperty("mutualinspect")]
public string MutualInspect { get; set; }
[JsonProperty("importance")]
public string Importance { get; set; }
[JsonProperty("defaultvalue")]
public string DefaultValue { get; set; }
[JsonProperty("templateid")]
public string TemplateId { get; set; }
[JsonProperty("defaultresultvalue")]
public DefaultResultValue DefaultResult { get; set; }
[JsonProperty("requirementdesc")]
public string RequirementDesc { get; set; }
[JsonProperty("specialinspect")]
public string SpecialInspect { get; set; }
[JsonProperty("autoadject")]
public string AutoAdject { get; set; }
[JsonProperty("selfinspect")]
public string SelfInspect { get; set; }
[JsonProperty("inspectionitemstype")]
public string InspectionItemsType { get; set; }
[JsonProperty("requiredtext")]
public string RequiredText { get; set; }
[JsonProperty("firstinspect")]
public string FirstInspect { get; set; }
[JsonProperty("inspectionitemname")]
public string InspectionItemName { get; set; }
[JsonProperty("linenum")]
public string LineNum { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("inspectionitemid")]
public InspectionItemId InspectionItem { get; set; }
}
public class XmInspectFile
{
[JsonProperty("fileuser")]
public string FileUser { get; set; }
[JsonProperty("filename")]
public string FileName { get; set; }
[JsonProperty("filesize")]
public string FileSize { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("fileext")]
public string FileExt { get; set; }
[JsonProperty("templateid")]
public string TemplateId { get; set; }
[JsonProperty("fileid")]
public string FileId { get; set; }
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class ShiftSchedule
{
[JsonProperty("empID")]
public string EmployeeID { get; set; }
[JsonProperty("empCode")]
public string EmployeeCode { get; set; }
[JsonProperty("empName")]
public string EmployeeName { get; set; }
[JsonProperty("startDate")]
public string StartDate { get; set; }
[JsonProperty("endDate")]
public string EndDate { get; set; }
[JsonProperty("prodOrg")]
public string ProductionOrg { get; set; }
[JsonProperty("prodCenter")]
public string ProductionCenter { get; set; }
[JsonProperty("workProc")]
public string WorkProcess { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class UnitData
{
[JsonProperty("data")]
public List<Unit> Data { get; set; }
}
public class Unit
{
[JsonProperty("unitID")]
public string UnitID { get; set; }
[JsonProperty("unitCode")]
public string UnitCode { get; set; }
[JsonProperty("unitName")]
public string UnitName { get; set; }
[JsonProperty("createTime")]
public string CreateTime { get; set; }
[JsonProperty("lastModifyTime")]
public string LastModifyTime { get; set; }
}
}

View File

@@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MisDataSaveDate.MOM
{
public class WorkCenterData
{
[JsonProperty("data")]
public List<WorkCenter> Data { get; set; }
}
public class WorkCenter
{
[JsonProperty("workCenterID")]
public string WorkCenterID { get; set; }
[JsonProperty("workCenterCode")]
public string WorkCenterCode { get; set; }
[JsonProperty("workCenterName")]
public string WorkCenterName { get; set; }
[JsonProperty("orgID")]
public string OrgID { get; set; }
[JsonProperty("classification")]
public string Classification { get; set; }
[JsonProperty("level")]
public string LevelNo { get; set; }
[JsonProperty("detail")]
public string Detail { get; set; }
[JsonProperty("createTime")]
public string CreateTime { get; set; }
[JsonProperty("lastModifyTime")]
public string LastModifyTime { get; set; }
}
}

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MisDataSaveDate
{
public class MsgResHeader<T>
{
/// <summary>
/// 返回结果
/// </summary>
public int code
{
get;
set;
}
/// <summary>
/// 返回消息
/// </summary>
public string message
{
get;
set;
}
/// <summary>
/// 返回结果集
/// </summary>
public T Data {
get;
set;
}
}
}