1
zrg
2024-10-15 a1e3e548ea03ceb32d07bf9f73f4719dd14f7f2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
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
{
    /// <summary>
    /// TOP API: dingtalk.oapi.process.workrecord.create
    /// </summary>
    public class OapiProcessWorkrecordCreateRequest : BaseDingTalkRequest<DingTalk.Api.Response.OapiProcessWorkrecordCreateResponse>
    {
        /// <summary>
        /// 请求
        /// </summary>
        public string Request { get; set; }
 
        public SaveFakeProcessInstanceRequestDomain Request_ { set { this.Request = TopUtils.ObjectToJson(value); } } 
 
        #region IDingTalkRequest Members
 
        public override string GetApiName()
        {
            return "dingtalk.oapi.process.workrecord.create";
        }
 
        public override string GetApiCallType()
        {
            return DingTalkConstants.CALL_TYPE_OAPI;
        }
 
        public override IDictionary<string, string> GetParameters()
        {
            TopDictionary parameters = new TopDictionary();
            parameters.Add("request", this.Request);
            if (this.otherParams != null)
            {
                parameters.AddAll(this.otherParams);
            }
            return parameters;
        }
 
        public override void Validate()
        {
        }
 
    /// <summary>
/// FormComponentValueVoDomain Data Structure.
/// </summary>
[Serializable]
 
public class FormComponentValueVoDomain : TopObject
{
            /// <summary>
            /// 扩展字段
            /// </summary>
            [XmlElement("extValue")]
            public string ExtValue { get; set; }
    
            /// <summary>
            /// 表单名称
            /// </summary>
            [XmlElement("name")]
            public string Name { get; set; }
    
            /// <summary>
            /// 表单值
            /// </summary>
            [XmlElement("value")]
            public string Value { get; set; }
}
 
    /// <summary>
/// NotifierVODomain Data Structure.
/// </summary>
[Serializable]
 
public class NotifierVODomain : TopObject
{
            /// <summary>
            /// 抄送时机,可选值有 start, start_finish, finish
            /// </summary>
            [XmlElement("notify_position")]
            public string NotifyPosition { get; set; }
    
            /// <summary>
            /// 抄送人的用户ID
            /// </summary>
            [XmlElement("user_id")]
            public string UserId { get; set; }
}
 
    /// <summary>
/// SaveFakeProcessInstanceRequestDomain Data Structure.
/// </summary>
[Serializable]
 
public class SaveFakeProcessInstanceRequestDomain : TopObject
{
            /// <summary>
            /// 应用id
            /// </summary>
            [XmlElement("agentid")]
            public Nullable<long> Agentid { get; set; }
    
            /// <summary>
            /// 流程实例业务动作
            /// </summary>
            [XmlElement("biz_action")]
            public string BizAction { get; set; }
    
            /// <summary>
            /// 审批自定义数据
            /// </summary>
            [XmlElement("custom_data")]
            public string CustomData { get; set; }
    
            /// <summary>
            /// 表单参数列表
            /// </summary>
            [XmlArray("form_component_values")]
            [XmlArrayItem("form_component_value_vo")]
            public List<FormComponentValueVoDomain> FormComponentValues { get; set; }
    
            /// <summary>
            /// 流程实例主单instId
            /// </summary>
            [XmlElement("main_instance_id")]
            public string MainInstanceId { get; set; }
    
            /// <summary>
            /// 抄送人列表
            /// </summary>
            [XmlArray("notifiers")]
            [XmlArrayItem("notifier_v_o")]
            public List<NotifierVODomain> Notifiers { get; set; }
    
            /// <summary>
            /// 审批发起人
            /// </summary>
            [XmlElement("originator_user_id")]
            public string OriginatorUserId { get; set; }
    
            /// <summary>
            /// 审批模板唯一码
            /// </summary>
            [XmlElement("process_code")]
            public string ProcessCode { get; set; }
    
            /// <summary>
            /// 审批单评论
            /// </summary>
            [XmlElement("remark")]
            public string Remark { get; set; }
    
            /// <summary>
            /// 实例标题
            /// </summary>
            [XmlElement("title")]
            public string Title { get; set; }
    
            /// <summary>
            /// 实例跳转链接
            /// </summary>
            [XmlElement("url")]
            public string Url { get; set; }
}
 
        #endregion
    }
}