Skip to content

Commit 417287a

Browse files
committed
change jdocs copy user and address logist
1 parent 943364b commit 417287a

11 files changed

+369
-385
lines changed

README.md

Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@
33

44
## Newest
55

6-
【2018-10-09
6+
【2018-10-26
77

8-
> * 高亮导入OA数据
9-
> * 优化导入OA数据逻辑
10-
> * 优化设置FLAG逻辑
11-
> * 优化保存文件逻辑
8+
> * 修改复制判决书内人员逻辑,判断与OA人员差异,聪明复制
9+
> * 优化配置文件,尤其日期范围和条数
10+
> * 添加判决书和邮单日志记录FLAG
1211
1312
## Guide
1413

15-
法院书记员批量生成邮单脚本程序,减轻书记员负担
14+
法院人员批量生成邮单程序,减轻书记员负担
1615

17-
> * 灵感来自于法院书记员发送案件复制邮单麻烦,完成功能如下
18-
> * 技术:python-docx,pandas
16+
> * 灵感来自于法院人员发送案件生成寄件邮单麻烦,完成功能如下
17+
> * 技术:python-docx,pandas,StyleFrame,configparser
1918
> * 打包程序:pyinstaller(单文件没压缩)
2019
2120
- [x] 重命名判决书
2221
- 判决书来自于[中国裁判文书网](http://wenshu.court.gov.cn/)
2322
- 重命名后格式 ***判决书_XXX.docx***
2423

2524
- [x] 批量填充判决书地址到数据模板
26-
- 先从 ***法院书记员OA系统*** 下载信息表
27-
- 编辑数据模板[data_main.xlsx](./demo_docs/data_main.xlsx)
28-
- 选择自动填充判决书的地址到数据模板[data_main.xlsx](./demo_docs/data_main.xlsx),其他缺失的律师和地址需要***自行***填充
25+
- 先从 ***法院人员OA系统***(法院工作的都有)下载信息表
26+
- 添加OA数据[data_oa.xlsx](./demo_docs/data_oa.xlsx)到数据模板
27+
- 选择自动填充判决书[判决书_XXX.docx](./demo_docs/jdocs)的地址到数据模板[data_main.xlsx](./demo_docs/data_main.xlsx),其他缺失的律师(代理人)及地址需要***手动***填充
2928

3029
- [x] 最后批量生成寄送邮单
3130
- [邮单模板](./demo_docs/sheet.docx)
@@ -47,30 +46,19 @@
4746

4847
```python
4948
[config]
50-
# 数据模板地址
51-
data_xlsx = data_main.xlsx
52-
# oa数据地址
53-
data_oa_xlsx = data_oa.xlsx
54-
# 邮单模板地址
55-
sheet_docx = sheet.docx
56-
# 是否重命名判决书
57-
flag_rename_jdocs = True
58-
# 是否填充判决书地址
59-
flag_fill_jdocs_adr = True
60-
# 是否填充伪手机
61-
flag_fill_phone = False
62-
# 是否导入oa数据
63-
flag_append_oa = True
64-
# 导入oa数据的最后几行
65-
oa_last_lines = 100
66-
# 是否打印邮单
67-
flag_to_postal = True
68-
# 打印数据模板的最后几行
69-
data_last_lines = 100
70-
# 打印数据模板的日期范围
71-
date_range = 2018-06-01:2018-08-01
72-
# 检查数据模板的内容格式
73-
flag_check_data = True
49+
data_xlsx = data_main.xlsx # 数据模板地址
50+
data_oa_xlsx = data_oa.xlsx # OA数据地址
51+
sheet_docx = sheet.docx # 邮单模板地址
52+
flag_rename_jdocs = True # 是否重命名判决书
53+
flag_fill_jdocs_adr = True # 是否填充判决书地址
54+
flag_fill_phone = False # 是否填充伪手机
55+
flag_append_oa = True # 是否导入OA数据
56+
flag_to_postal = True # 是否打印邮单
57+
flag_check_jdocs = False # 是否检查用户格式,输出提示信息
58+
flag_check_postal = False # 是否检查邮单格式,输出提示信息
59+
date_range = #2018-09-01:2018-12-01 # 打印数据日期范围,比行数优先,去掉注释后读取,井号注释掉
60+
last_lines_oa = 50 # 导入OA数据的最后几行,当flag_append_oa开启才有效
61+
last_lines_data = 50 # 打印数据的最后几行
7462
```
7563

7664
除了部分当事人地址自动填充外,填充律师规则如下:
@@ -92,5 +80,5 @@ Enjoy
9280

9381
## Licence
9482

95-
- 版权见代码
96-
- MIT Licence
83+
- 版权见代码,MIT Licence
84+
- 打包好exe即源码,没有后门放心使用

config.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

demo_docs/address_tmp.xlsx

-5.4 KB
Binary file not shown.

demo_docs/conf.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[config]
2+
data_xlsx = data_main.xlsx # 数据模板地址
3+
data_oa_xlsx = data_oa.xlsx # OA数据地址
4+
sheet_docx = sheet.docx # 邮单模板地址
5+
flag_rename_jdocs = True # 是否重命名判决书
6+
flag_fill_jdocs_adr = True # 是否填充判决书地址
7+
flag_fill_phone = False # 是否填充伪手机
8+
flag_append_oa = True # 是否导入OA数据
9+
flag_to_postal = True # 是否打印邮单
10+
flag_check_jdocs = False # 是否检查用户格式,输出提示信息
11+
flag_check_postal = False # 是否检查邮单格式,输出提示信息
12+
date_range = #2018-09-01:2018-12-01 # 打印数据日期范围,比行数优先,去掉注释后读取,井号注释掉
13+
last_lines_oa = 50 # 导入OA数据的最后几行,当flag_append_oa开启才有效
14+
last_lines_data = 50 # 打印数据的最后几行
15+

demo_docs/config.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

demo_docs/data_main.xlsx

-275 Bytes
Binary file not shown.

demo_docs/data_main_temp.xlsx

-5.8 KB
Binary file not shown.

demo_docs/history.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.
Binary file not shown.
-162 KB
Binary file not shown.

0 commit comments

Comments
 (0)