using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
namespace DingTalk.Api.Request
{
///
/// TOP API: dingtalk.oapi.rhino.mos.exec.perform.batch.create
///
public class OapiRhinoMosExecPerformBatchCreateRequest : BaseDingTalkRequest
{
///
/// 入参
///
public string BatchCreateOperationReq { get; set; }
public BatchCreateOperationWithEntityReqDomain BatchCreateOperationReq_ { set { this.BatchCreateOperationReq = TopUtils.ObjectToJson(value); } }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.rhino.mos.exec.perform.batch.create";
}
public override string GetApiCallType()
{
return DingTalkConstants.CALL_TYPE_OAPI;
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("batch_create_operation_req", this.BatchCreateOperationReq);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
}
///
/// SourceDomain Data Structure.
///
[Serializable]
public class SourceDomain : TopObject
{
///
/// sourceId
///
[XmlElement("source_id")]
public string SourceId { get; set; }
///
/// sourceType
///
[XmlElement("source_type")]
public string SourceType { get; set; }
}
///
/// EntityConditionDomain Data Structure.
///
[Serializable]
public class EntityConditionDomain : TopObject
{
///
/// 实体ids
///
[XmlArray("entity_ids")]
[XmlArrayItem("number")]
public List EntityIds { get; set; }
///
/// 实体来源(暂未支持)
///
[XmlElement("entity_source")]
public SourceDomain EntitySource { get; set; }
///
/// 实体type
///
[XmlElement("entity_type")]
public string EntityType { get; set; }
}
///
/// PerformOperationReqDomain Data Structure.
///
[Serializable]
public class PerformOperationReqDomain : TopObject
{
///
/// 上下文
///
[XmlElement("context")]
public string Context { get; set; }
///
/// 设备id
///
[XmlArray("device_ids")]
[XmlArrayItem("number")]
public List DeviceIds { get; set; }
///
/// flow版本
///
[XmlElement("flow_version")]
public Nullable FlowVersion { get; set; }
///
/// 工序类型
///
[XmlElement("operation_type")]
public string OperationType { get; set; }
///
/// 工序唯一id
///
[XmlElement("operation_uid")]
public Nullable OperationUid { get; set; }
///
/// 执行状态
///
[XmlElement("perform_status")]
public string PerformStatus { get; set; }
///
/// 优先级
///
[XmlElement("priority")]
public Nullable Priority { get; set; }
///
/// 执行耗时
///
[XmlElement("process_cost_time")]
public string ProcessCostTime { get; set; }
///
/// 执行完成时间
///
[XmlElement("process_end_time")]
public Nullable ProcessEndTime { get; set; }
///
/// 执行开始时间
///
[XmlElement("process_start_time")]
public Nullable ProcessStartTime { get; set; }
///
/// 工序类型码
///
[XmlElement("process_type_code")]
public string ProcessTypeCode { get; set; }
///
/// 工段
///
[XmlElement("section_code")]
public string SectionCode { get; set; }
///
/// 工号
///
[XmlArray("work_nos")]
[XmlArrayItem("string")]
public List WorkNos { get; set; }
///
/// 工作站
///
[XmlElement("workstation_code")]
public string WorkstationCode { get; set; }
}
///
/// BatchCreateOperationWithEntityReqDomain Data Structure.
///
[Serializable]
public class BatchCreateOperationWithEntityReqDomain : TopObject
{
///
/// 实体条件
///
[XmlElement("entity_condition")]
public EntityConditionDomain EntityCondition { get; set; }
///
/// 订单id
///
[XmlElement("order_id")]
public Nullable OrderId { get; set; }
///
/// 工序请求
///
[XmlArray("perform_operation_reqs")]
[XmlArrayItem("perform_operation_req")]
public List PerformOperationReqs { get; set; }
///
/// 来源
///
[XmlElement("source")]
public SourceDomain Source { get; set; }
///
/// 租户id
///
[XmlElement("tenant_id")]
public string TenantId { get; set; }
///
/// 用户id
///
[XmlElement("userid")]
public string Userid { get; set; }
}
#endregion
}
}