voucher.html
14.5 KB
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html>
<head>
<title>voucher.md</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<style>
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
body {
font-family: "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
font-size: 14px;
padding: 0 12px;
line-height: 22px;
word-wrap: break-word;
}
#code-csp-warning {
position: fixed;
top: 0;
right: 0;
color: white;
margin: 16px;
text-align: center;
font-size: 12px;
font-family: sans-serif;
background-color:#444444;
cursor: pointer;
padding: 6px;
box-shadow: 1px 1px 1px rgba(0,0,0,.25);
}
#code-csp-warning:hover {
text-decoration: none;
background-color:#007acc;
box-shadow: 2px 2px 2px rgba(0,0,0,.25);
}
body.scrollBeyondLastLine {
margin-bottom: calc(100vh - 22px);
}
body.showEditorSelection .code-line {
position: relative;
}
body.showEditorSelection .code-active-line:before,
body.showEditorSelection .code-line:hover:before {
content: "";
display: block;
position: absolute;
top: 0;
left: -12px;
height: 100%;
}
body.showEditorSelection li.code-active-line:before,
body.showEditorSelection li.code-line:hover:before {
left: -30px;
}
.vscode-light.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(0, 0, 0, 0.15);
}
.vscode-light.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(0, 0, 0, 0.40);
}
.vscode-dark.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(255, 255, 255, 0.4);
}
.vscode-dark.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(255, 255, 255, 0.60);
}
.vscode-high-contrast.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(255, 160, 0, 0.7);
}
.vscode-high-contrast.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(255, 160, 0, 1);
}
img {
max-width: 100%;
max-height: 100%;
}
a {
color: #4080D0;
text-decoration: none;
}
a:focus,
input:focus,
select:focus,
textarea:focus {
outline: 1px solid -webkit-focus-ring-color;
outline-offset: -1px;
}
hr {
border: 0;
height: 2px;
border-bottom: 2px solid;
}
h1 {
padding-bottom: 0.3em;
line-height: 1.2;
border-bottom-width: 1px;
border-bottom-style: solid;
}
h1, h2, h3 {
font-weight: normal;
}
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code {
font-size: inherit;
line-height: auto;
}
a:hover {
color: #4080D0;
text-decoration: underline;
}
table {
border-collapse: collapse;
}
table > thead > tr > th {
text-align: left;
border-bottom: 1px solid;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
padding: 5px 10px;
}
table > tbody > tr + tr > td {
border-top: 1px solid;
}
blockquote {
margin: 0 7px 0 5px;
padding: 0 16px 0 10px;
border-left: 5px solid;
}
code {
font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
font-size: 14px;
line-height: 19px;
}
body.wordWrap pre {
white-space: pre-wrap;
}
.mac code {
font-size: 12px;
line-height: 18px;
}
pre:not(.hljs),
pre.hljs code > div {
padding: 16px;
border-radius: 3px;
overflow: auto;
}
/** Theming */
.vscode-light,
.vscode-light pre code {
color: rgb(30, 30, 30);
}
.vscode-dark,
.vscode-dark pre code {
color: #DDD;
}
.vscode-high-contrast,
.vscode-high-contrast pre code {
color: white;
}
.vscode-light code {
color: #A31515;
}
.vscode-dark code {
color: #D7BA7D;
}
.vscode-light pre:not(.hljs),
.vscode-light code > div {
background-color: rgba(220, 220, 220, 0.4);
}
.vscode-dark pre:not(.hljs),
.vscode-dark code > div {
background-color: rgba(10, 10, 10, 0.4);
}
.vscode-high-contrast pre:not(.hljs),
.vscode-high-contrast code > div {
background-color: rgb(0, 0, 0);
}
.vscode-high-contrast h1 {
border-color: rgb(0, 0, 0);
}
.vscode-light table > thead > tr > th {
border-color: rgba(0, 0, 0, 0.69);
}
.vscode-dark table > thead > tr > th {
border-color: rgba(255, 255, 255, 0.69);
}
.vscode-light h1,
.vscode-light hr,
.vscode-light table > tbody > tr + tr > td {
border-color: rgba(0, 0, 0, 0.18);
}
.vscode-dark h1,
.vscode-dark hr,
.vscode-dark table > tbody > tr + tr > td {
border-color: rgba(255, 255, 255, 0.18);
}
.vscode-light blockquote,
.vscode-dark blockquote {
background: rgba(127, 127, 127, 0.1);
border-color: rgba(0, 122, 204, 0.5);
}
.vscode-high-contrast blockquote {
background: transparent;
border-color: #fff;
}
</style>
<link rel="stylesheet" href="file:///file%3A///D%3A/Program%20Files/Microsoft%20VS%20Code/css/def.css" type="text/css">
<style>
/* Tomorrow Theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* Tomorrow Comment */
.hljs-comment,
.hljs-quote {
color: #8e908c;
}
/* Tomorrow Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #c82829;
}
/* Tomorrow Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #f5871f;
}
/* Tomorrow Yellow */
.hljs-attribute {
color: #eab700;
}
/* Tomorrow Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #718c00;
}
/* Tomorrow Blue */
.hljs-title,
.hljs-section {
color: #4271ae;
}
/* Tomorrow Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #8959a8;
}
.hljs {
display: block;
overflow-x: auto;
color: #4d4d4c;
padding: 0.5em;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
</style>
<style>
/*
* Markdown PDF CSS
*/
body {
font-family: "Meiryo", "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
}
pre {
background-color: #f8f8f8;
border: 1px solid #cccccc;
border-radius: 3px;
overflow-x: auto;
white-space: pre-wrap;
overflow-wrap: break-word;
}
pre:not(.hljs) {
padding: 23px;
line-height: 19px;
}
blockquote {
background: rgba(127, 127, 127, 0.1);
border-color: rgba(0, 122, 204, 0.5);
}
.emoji {
height: 1.4em;
}
/* for inline code */
:not(pre):not(.hljs) > code {
color: #C9AE75; /* Change the old color so it seems less like an error */
font-size: inherit;
}
/* Page Break : use <div class="page"/> to insert page break
-------------------------------------------------------- */
.page {
page-break-after: always;
}
</style>
<link rel="stylesheet" href="file:///e%3A/%E8%B5%84%E6%96%99/%E9%9B%86%E6%88%90%E4%B8%AD%E5%BF%83/table.css" type="text/css">
</head>
<body>
<p><font color=#666666 size=5 face="PingFangSC-Regular">财务凭证</font></p>
<ul>
<li><a href="#0">使用场景</a></li>
<li><a href="#1">操作说明</a>
<ul>
<li><a href="#10">财务凭证设置</a></li>
<li><a href="#11">凭证推送ACTION</a></li>
</ul>
</li>
<li><a href="#2">开发相关</a></li>
</ul>
<H3 id=0 style="border-left: 4px solid #3677D5;height:42px;line-height:42px;background:#F4F4F4"><font color=#08C size=4 face="PingFangSC-Semibold" > 使用场景</font></H3>
<p>流程凭证集成用以实现,OA中相关财务流程审批完成后,自动将相应表单数据写入财务系统,生成财务凭证的功能。</p>
<H3 id=1 style="border-left: 4px solid #3677D5;height:42px;line-height:42px;background:#F4F4F4"><font color=#08C size=4 face="PingFangSC-Semibold" > 操作说明</font></H3>
<p><font id=10 color="red" size="4" face="黑体">财务凭证设置</font></p>
<p>操作入口:<strong>集成中心</strong> - <strong>财务凭证</strong><br>
<img src="image/voucher01.png" alt="财务凭证" /><br>
点击 <strong>新建</strong>,弹出新建 <strong>财务凭证</strong> 页面<br>
<img src="image/voucher02.png" alt="新建凭证集成1" /><br>
<strong>名称:</strong>凭证集成的名称,用以区分不同的凭证集成配置。<br>
<strong>财务系统:</strong>选择要进行凭证推送的财务软件。(<a href="#4">注1</a>)<br>
<strong>数据源:</strong>选择要进行凭证推送的数据表所在的数据库,选择的内容是在 <strong>集成中心</strong> - <strong>数据源设置</strong> 中设置的。(<a href="#6">注2</a>)<br>
<strong>接口地址:</strong>填写财务系统凭证接口地址。(<a href="#7">注3</a>)<br>
<strong>编码:</strong>选择财务系统接收的凭证文件编码。(<a href="#7">注3</a>)<br>
<strong>选择流程:</strong>选择用以生成凭证数据的OA流程。(<a href="#8">注4</a>)</p>
<p><span id=4>注1:目前支持的财务软件:NC5、NC6、U8(版本:V10、V11、V12)、K3(版本:V10)。</span><br>
<span id=6>注2:数据源只在财务系统选择U8、K3时才会出现。U8、K3是通过写入财务软件凭证表来实现凭证推送的。</span><br>
<span id=7>注3:接口地址编码、只在财务系统选择NC5、NC6时才会出现。NC5、NC6是通过NC系统的 <strong>应用集成</strong> - <strong>信息交互平台</strong> - <strong>手动加载界面</strong> - <strong>目标URL地址</strong> 来实现凭证推送的。</span><br>
<span id=8>注4:仅支持使用自定义表单的流程。</span></p>
<p>填写完以上信息并保存后,界面会加载出该财务软件的相关信息并显示 <strong>财务凭证ID</strong><br>
<img src="image/voucher03.png" alt="新建凭证集成2" /></p>
<p>可以在,凭证主表信息设置、凭证借方信息设置、凭证贷方信息设置中别放设置凭证中所需推送的数据来源。<br>
<img src="image/voucher04.png" alt="凭证信息设置" /></p>
<p><strong>表单:</strong>选择流程表单字段,并推送流程表单中该字段的数据。(<a href="#9">注5</a>)<br>
<strong>自定义信息:</strong>推送所填写的固定文本。<br>
<strong>流程requestid:</strong>OA流程的requestid。<br>
<strong>自定义SQL:</strong>支持单独设置执行自定义SQL的数据源,并使用自定义SQL的查询结果作为推送的数据。(<a href="#10">注6</a>)<br>
<strong>创建人:</strong>流程创建人工号。<br>
<strong>创建人部门:</strong>流程创建人部门编码。<br>
<strong>创建人分部:</strong>流程创建人分部编码。<br>
<img src="image/voucher05.png" alt="数据来源" /></p>
<p><span id=9>注5:<br>
1)凭证主表信息设置中只允许选择流程主表的字段。<br>
2)凭证借贷方信息设置中支持选择流程主表的字段与任意一张明细表的字段。<br>
4)凭证借贷方信息设置中如果选择了某张明细表的字段后,其他字段如果也要选择流程表单字段时,只支持选择主表字段或者相同的明细表字段。<br>
4)凭证借贷方信息设置中允许相同的明细表字段,也允许选择不相同的明细表字段。
</span><br>
<span id=10>注6:<br>
1)自定义SQL:以SQL查询语句的形式进行数据转换<br>
2)格式如: select somefield as newvalue from table_name where somefield=#主表.流程主表的数据库字段名#<br>
默认带入值: #主表.流程主表的数据库字段名#、#明细表N.流程明细表N的数据库字段名#<br>
N表示第几张明细表如:明细表1、明细表2...<br>
3)转换结果只识别查询SQL中查询结果列名(别名)为:newvalue
</span></p>
<p><font id=11 color="red" size="4" face="黑体">凭证推送ACTION</font></p>
<p>当配置完凭证主表、借贷方信息设置后,需在 <strong>集成中心</strong> - <strong>流程流转集成</strong> 中注册凭证推送的ACTION,并在 <strong>流程引擎</strong> - <strong>路径设置</strong> - <strong>流转设置</strong> - <strong>节点信息</strong> 的 <strong>节点前附加操作</strong> 或 <strong>节点后附加操作</strong> 中配置后,才能实现凭证推送。</p>
<p><strong>集成中心</strong> - <strong>流程流转集成</strong> 中注册凭证推送的ACTION</p>
<p><strong>接口动作名称:</strong>自行填写,接口名称,不能重复<br>
<strong>接口动作标识:</strong>自行填写,接口的唯一标识,后台存储时使用,不能重复<br>
<strong>接口动作类文件:</strong>固定文本:weaver.interfaces.workflow.action.WorkflowToFinanceRunXml<br>
<strong>添加参数:</strong><br>
<strong>参数名称:</strong>voucherXmlId; <strong>参数值:</strong>当前财务凭证ID;</p>
<img src="image/voucher06.png" alt="当前财务凭证ID" />
<p>在流程合适的 <strong>节点附加动作</strong> 或 <strong>出口</strong> 中配置该接口动作,并在流程触发该动作后,即可生成凭证</p>
<img src="image/voucher07.png" alt="节点后附加操作" />
<p>凭证推送时关于凭证中借贷分录的生成规则:<br>
1)当借贷信息设置中,只对应了主表字段时:只会生成一行凭证的借方分录和贷方分录。<br>
2)当借贷信息设置中,有对应明细表字段时:按所对应的明细表数据行数生成凭证的借贷分录行数。<br>
3)在凭证借贷信息设置中所对应的借贷金额的数据是0或者非有效金额数据时,不会生成相应凭证的借贷分录。</p>
<p>当推送的财务系统是NC时,会在OA的应用服务器以下目录保存推送给NC系统的凭证XML文件:<br>
ecology/WEB-INF/fna/fnaVoucher/XML/NC/yyyy/mm/dd/<br>
推送的凭证XML文件命名:req_+requestid+_+32位随机数+<em>send.xml<br>
NC系统的凭证回执文件命名:req</em>+requestid+_32位随机数_receive.xml</p>
<H3 id=2 style="border-left: 4px solid #3677D5;height:42px;line-height:42px;background:#F4F4F4"><font color=#08C size=4 face="PingFangSC-Semibold" > 开发相关</font></H3>
<ol>
<li><strong>数据库相关</strong><br>
1)凭证设置数据表:<strong>fnaVoucherXml</strong>、<strong>fnaFinancesetting</strong>、<strong>fnaVoucherObjInfo</strong></li>
<li><strong>代码相关</strong><br>
1)财务凭证列表页面:<strong>/integration/financelist.jsp</strong><br>
2)凭证推送ACTION类:<strong>weaver.interfaces.workflow.action.WorkflowToFinanceRunXml.java</strong><br>
3)NC5凭证生成类:<strong>weaver.fna.fnaVoucher.financesetting.NC5Handle</strong><br>
4)NC6凭证生成类:<strong>weaver.fna.fnaVoucher.financesetting.NCHandle</strong><br>
5)U8凭证生成类:<strong>weaver.fna.fnaVoucher.financesetting.U8Handle</strong><br>
6)K3凭证生成类:<strong>weaver.fna.fnaVoucher.financesetting.K3Handle</strong></li>
</ol>
</body>
</html>