fs-danaus
2022-03-26 59226b7f7f2986501b3dc3efcf9c646bb0e64ff3
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
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
package com.yc.utils;
 
import java.io.Serializable;
import java.util.*;
 
 
/**
 * Gt-grid返回的json对象
 * @author 邓文峰
 * 2010-2-23
 * **/
public class GTJson implements Serializable{
private String action;
private PageInfo pageInfo;
private String panelAction;//面板动作
private String panelTable;//面板的表名
private String doccode;//面板的单号
private String masterCode;//10类型参数转换
private List<HashMap<String,String>> deletedRecords=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> insertedRecords=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> updatedRecords=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> panelRecords=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> vssRecords=new ArrayList<HashMap<String,String>>();//更新时用全匹配更新
private List<HashMap<String,String>> oARecords=new ArrayList<HashMap<String,String>>();//保存OA审核时把格线数据传回后台
private List<HashMap<String,String>> tranRecords=new ArrayList<HashMap<String,String>>();//确定时提交的数据
private List<HashMap<String,String>> emptyRecords=new ArrayList<HashMap<String,String>>();//空数据
private List<HashMap<String,String>> auditRecords=new ArrayList<HashMap<String,String>>();
 
//---------3表结构
private List<HashMap<String,String>> otherDeleteds=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> otherInserteds=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> otherUpdateds=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> otherVss=new ArrayList<HashMap<String,String>>();
private List<HashMap<String,String>> otherOA=new ArrayList<HashMap<String,String>>();
private String otherTable;//三表的表类型
private int otherFormid=0;//三表的功能号
private String otherKey;//关联表关键字
private List<HashMap<String,String>> otherTranRecords=new ArrayList<HashMap<String,String>>();//确定时提交的数据
private List<HashMap<String,String>> muilTranRecords=new ArrayList<HashMap<String,String>>();//多表确定时提交的数据
private String[] fieldsName;//字段显示列表,把它提交到数据库,避免用*号查询,性能较好
private String fields;//字段显示列表,作为淘宝接口的字段列表
//---------多表结构
private List<Panel> panels;//面板数据集合
private List<Grid> grids;//表格数据集合
private String gType;//表示当前页面是哪一个窗体类型,因为499类型是由多个功能号组成,所以需要通过这个来区分
private String formid;//499类型的主功能号
private String fl;//499类型返回参数
private String oa="";//审核,通过,驳回
private boolean cp;//复单标记
private String expr="";//权限控制
private String cudoc="";//自定义单号功能
private String otherColns="";//过滤列
private String colns="";//过滤列
private String token ="";//令牌
private String disableDuplicateSubmitUUID ="";//防止重复提交的唯一标记
private int aFlag=0;
private int isGantt=0;//是否为甘特图
private String[] rowids;//15类型 复单处理前台rowid更新不了的问题,传到这里再作进一步处理
private String btnId = "";
    private int clickTran = 0;//直接点击确认触发
    private int dcFlag = 0;//flag标记数据范围检查已通过
    private String primeKey = "";//主键,用作更新,删除时候做where条件,匹配
    private String otherPrimeKey = "";//15,77类型的第三表主键
    private Map<String, String> refKeyMap = new HashMap<>();//保存多表中子功能号有关联
    private int is497 = 0;//app保存多表中的子功能时是传16,1类型,需要返回rowid,后端需要知道是多表才能返回rowid
    private String userName;
    private int onlinePay = -1;//在线支付
    private int onlineRefund = -1;//在线退款
    private String tableName;
 
    public String getTableName() {
        return tableName;
    }
 
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
 
    public int getOnlinePay() {
        return onlinePay;
    }
 
    public void setOnlinePay(int onlinePay) {
        this.onlinePay = onlinePay;
    }
 
    public int getOnlineRefund() {
        return onlineRefund;
    }
 
    public void setOnlineRefund(int onlineRefund) {
        this.onlineRefund = onlineRefund;
    }
    public String getUserName() {
        return userName;
    }
 
    public void setUserName(String userName) {
        this.userName = userName;
    }
 
    public int getIs497() {
        return is497;
    }
 
    public void setIs497(int is497) {
        this.is497 = is497;
    }
 
    public Map<String, String> getRefKeyMap() {
        return refKeyMap;
    }
 
    public void setRefKeyMap(Map<String, String> refKeyMap) {
        this.refKeyMap = refKeyMap;
    }
 
    public String getOtherPrimeKey() {
    return otherPrimeKey;
}
public void setOtherPrimeKey(String otherPrimeKey) {
    this.otherPrimeKey = otherPrimeKey;
}
public String getPrimeKey() {
    return primeKey;
}
public void setPrimeKey(String primeKey) {
    this.primeKey = primeKey;
}
public int getDcFlag() {
    return dcFlag;
}
public void setDcFlag(int dcFlag) {
    this.dcFlag = dcFlag;
}
public int getClickTran() {
    return clickTran;
}
public void setClickTran(int clickTran) {
    this.clickTran = clickTran;
}
public String getBtnId() {
    return btnId;
}
public void setBtnId(String btnId) {
    this.btnId = btnId;
}
public int getIsGantt() {
    return isGantt;
}
public void setIsGantt(int isGantt) {
    this.isGantt = isGantt;
}
//------treegrid增加需要处理的内容
private HashMap<String,String> IO;
private List<HashMap<String,String>> Changes;//数据保存处理
private List<HashMap<String,String>> otherChanges;//数据保存处理
//---把treegrid的格式转化为以前gtgrid的格式,兼容以前的代码
private String funlink="";//功能链接
private List<Map<String,Map<String,String>>> taobao=new ArrayList<Map<String,Map<String,String>>>();//taobao接口集合,以接口名称为key,应用级参数集合为值
private int tbtotal=0;//淘宝接口返回数据总数量
public int getTbtotal() {
    return tbtotal;
}
public void setTbtotal(int tbtotal) {
    this.tbtotal = tbtotal;
}
Map<String, String>  env;
 
private String keyID;//接口主从表ID,用来处理当重复下载,需要根据这个ID来判断当前ERP是否已存在,以决定是用update,还是新增
private static String picMatch="^\\|/smallpic.*?"+JsonUtil.IMGRANG.replaceAll("\\|", "\\\\|")+"+?"; //去掉格式图片,因为这个不是真正的图片不需要保存到数据库
private static String picMatch_uuid="^\\|/getImage.*?"+JsonUtil.IMGRANG.replaceAll("\\|", "\\\\|")+"+?"; //去掉格式图片,因为这个不是真正的图片不需要保存到数据库
public List<HashMap<String, String>> getAuditRecords() {
    return auditRecords;
}
public void setAuditRecords(List<HashMap<String, String>> auditRecords) {
    this.auditRecords = auditRecords;
}
public String[] getRowids() {
    return rowids;
}
public void setRowids(String[] rowids) {
    this.rowids = rowids;
}
public String getKeyID() {
    return keyID;
}
public void setKeyID(String keyID) {
    this.keyID = keyID;
}
public Map<String, String> getEnv() {
    return env;
}
public void setEnv(Map<String, String> env) {
    this.env = env;
}
public List<Map<String, Map<String, String>>> getTaobao() {
    return taobao;
}
public void setTaobao(List<Map<String, Map<String, String>>> taobao) {
    this.taobao = taobao;
}
public String getFields() {
    return fields;
}
public void setFields(String fields) {
    this.fields = fields;
}
public String getFunlink() {
    return funlink;
}
public void setFunlink(String funlink) {
    this.funlink = funlink;
}
 
 
public String getMasterCode() {
    return masterCode;
}
public void setMasterCode(String masterCode) {
    this.masterCode = masterCode;
}
 
    public List<HashMap<String, String>> getOtherOA() {
        return otherOA;
    }
 
    public void setOtherOA(List<HashMap<String, String>> otherOA) {
        this.otherOA = otherOA;
    }
    public String getDisableDuplicateSubmitUUID() {
        return disableDuplicateSubmitUUID;
    }
 
    public void setDisableDuplicateSubmitUUID(String disableDuplicateSubmitUUID) {
        this.disableDuplicateSubmitUUID = disableDuplicateSubmitUUID;
    }
    /**
 * 装配只有格线窗体类型数据作为集合传过去
 * @param action-表示当前操作是保存还是确定(save,tran)
 * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
 * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
 * @param doccode-单号(修改操作需要指定)
 * @param masterCode-关键主字段,作为查询替换的字段
 * @param insertedRecords--表示格线新增数据
 
 * @param updatedRecords--表示格线修改数据
 * @param panelRecords--表示面板数据(新增或修改)
 *
 * 
 * **/
public void create0(String action, String panelAction,String doccode,
    List<HashMap<String, String>> insertedRecords, 
    List<HashMap<String, String>> updatedRecords,
    String gType, 
    String formid
    ) {
    this.action = action;
    this.panelAction = panelAction;
    this.panelTable = formid+";"+gType.split("\\|")[0];
    this.doccode = doccode;
    this.insertedRecords = insertedRecords;
    this.updatedRecords = updatedRecords;
    this.gType = gType;
    this.formid = formid;
}
/**
 * 装配只有面板窗体类型数据作为集合传过去
 * @param action-表示当前操作是保存还是确定(save,tran)
 * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
 * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
 * @param doccode-单号(修改操作需要指定)
 * @param masterCode-关键主字段,作为查询替换的字段
 * @param insertedRecords--表示格线新增数据
 * @param updatedRecords--表示格线修改数据
 * @param panelRecords--表示面板数据(新增或修改)
 *
 * 
 * **/
public void create1(String action, String panelAction,String doccode,
    List<HashMap<String, String>> panelRecords,
    String gType, 
    String formid
    ) {
    this.action = action;
    this.panelAction = panelAction;
    this.panelTable = formid+";"+gType.split("\\|")[0];
    this.doccode = doccode;
    this.panelRecords = panelRecords;
    this.gType = gType;
    this.formid = formid;
}
/**
 * 装配双表(面板和格线)窗体类型数据作为集合传过去
 * @param action-表示当前操作是保存还是确定(save,tran)
 * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
 * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
 * @param doccode-单号(修改操作需要指定)
 * @param masterCode-关键主字段,作为查询替换的字段
 * @param insertedRecords--表示格线新增数据
 * @param updatedRecords--表示格线修改数据
 * @param panelRecords--表示面板数据(新增或修改)
 *
 * 
 * **/
public void create2(String action, String panelAction,String doccode,
    List<HashMap<String, String>> insertedRecords, 
    List<HashMap<String, String>> updatedRecords,
    List<HashMap<String, String>> panelRecords,
    String gType, 
    String formid
    ) {
    this.action = action;
    this.panelAction = panelAction;
    this.panelTable = formid+";"+gType.split("\\|")[0];
    this.panelRecords = panelRecords;
    this.insertedRecords = insertedRecords;
    this.doccode = doccode;
    this.updatedRecords = updatedRecords;
    this.gType = gType;
    this.formid = formid;
}
 
/**
 * 淘宝调用
 * @param action
 * @param panelAction
 * @param doccode
 * @param insertedRecords
 * @param updatedRecords
 * @param panelRecords
 * @param gType
 * @param formid
 * @param conts
 */
public void create2taobao(String action, String panelAction,String doccode,
        List<HashMap<String, String>> insertedRecords, 
        List<HashMap<String, String>> updatedRecords,
        List<HashMap<String, String>> panelRecords,
        String gType, 
        String formid,
        String conts,
        int total
        ) {
//        this.action = action;
//        this.panelAction = panelAction;
//        this.panelTable = formid+";"+gType.split("\\|")[0];
        this.panelRecords = panelRecords;
        this.insertedRecords = insertedRecords;
//        this.doccode = doccode;
        this.updatedRecords = updatedRecords;
        this.colns=conts;
        this.tbtotal=total;
//        this.gType = gType;
//        this.formid = formid;
    }
 
/**
 * 装配3表类型数据作为集合传过去
 * @param action-表示当前操作是保存还是确定(save,tran)
 * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
 * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
 * @param doccode-单号(修改操作需要指定)
 * @param masterCode-关键主字段,作为查询替换的字段
 * @param insertedRecords--表示格线新增数据
 * @param updatedRecords--表示格线修改数据
 * @param panelRecords--表示面板数据(新增或修改)
 *
 * 
 * **/
public void create3(
    //--常规基础数据
    String action, String panelAction, String doccode,
    List<HashMap<String, String>> insertedRecords, 
    List<HashMap<String, String>> updatedRecords,
    List<HashMap<String, String>> panelRecords,
    
    //如果当前是3表结构  则需要把下面的的传进来,否则为null
    List<HashMap<String, String>> otherInserteds, 
    List<HashMap<String, String>> otherUpdateds, 
    String otherTable, int otherFormid, String otherKey, 
    String otherColns,
    //--3表 end
    String gType, 
    String formid
    ) {
    this.action = action;
    this.panelAction = panelAction;
    this.panelTable = formid+";"+gType.split("\\|")[0];
    this.doccode = doccode;
    this.insertedRecords = insertedRecords;
    this.updatedRecords = updatedRecords;
    this.panelRecords = panelRecords;
    this.otherInserteds = otherInserteds;
    this.otherUpdateds = otherUpdateds;
    this.otherTable = otherTable;
    this.otherFormid = otherFormid;
    this.otherKey = otherKey;
    this.gType = gType;
    this.formid = formid;
}
/**
 * 装配多表窗体类型数据作为集合传过去
 * @param action-表示当前操作是保存还是确定(save,tran)
 * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
 * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
 * @param doccode-单号(修改操作需要指定)
 * @param masterCode-关键主字段,作为查询替换的字段
 * @param insertedRecords--表示格线新增数据
 * @param updatedRecords--表示格线修改数据
 * @param panelRecords--表示面板数据(新增或修改)
 *
 * 
 * **/
public void create4(
    //--常规基础数据
    String action, String panelAction, String panelTable, String doccode,
    
    List<Panel> panels, 
    List<Grid> grids, 
    
    String gType, 
    String formid
    ) {
    this.action = action;
    this.panelAction = panelAction;
    this.panelTable = panelTable;
    this.doccode = doccode;
    this.panels = panels;
    this.grids = grids;
    this.gType = gType;
    this.formid = formid;
}
public void process(){
       String delrowid="";//保存二表是新增且又删除的rowid,以便给第三表做关联删除用
    if(Changes!=null&&Changes.size()>0){
        int index=0;
        for(HashMap<String,String> map:Changes){
            if(isGantt==0) map.remove("id");
            if(
                ("1".equalsIgnoreCase(map.get("Deleted"))||"true".equalsIgnoreCase(map.get("Deleted")))
                &&(!"1".equalsIgnoreCase(map.get("Added"))&&!"true".equalsIgnoreCase(map.get("Added")))//当存在新增行又马上删除的情况,在这里需要做个判断
                ){
                if(map.containsKey("G")) map.remove("G");//去掉甘特图的信息
                deletedRecords.add(map);
                continue;
            }
            if("1".equalsIgnoreCase(map.get("Added"))&&"1".equalsIgnoreCase(map.get("Deleted"))){
                //新增且又马上删除的情况
                if("15".equalsIgnoreCase(this.getgType())){
                delrowid+=","+map.get("rowid");
                }
            }
            if(
                ("1".equalsIgnoreCase(map.get("Added"))||"true".equalsIgnoreCase(map.get("Added")))
                &&(!"1".equalsIgnoreCase(map.get("Deleted"))&&!"true".equalsIgnoreCase(map.get("Deleted")))
                ){
                if(this.getCp()&&"15".equalsIgnoreCase(this.getgType())){//15类型且是复单情况处理rowid
                    if(rowids!=null) {
                        map.put("rowid", rowids[index]);
                    }
                }
                insertedRecords.add(map);
                index++;
                continue;
            }
            if("1".equalsIgnoreCase(map.get("Changed"))||"true".equalsIgnoreCase(map.get("Changed"))){
                getChanged(map,updatedRecords,vssRecords);
                continue;
            }
            if("1".equalsIgnoreCase(map.get("OAChanged"))||"true".equalsIgnoreCase(map.get("OAChanged"))){
                oARecords.add(map);
                continue;
            }
            if("1".equalsIgnoreCase(map.get("_YCAUDIT_"))||"true".equalsIgnoreCase(map.get("_YCAUDIT_"))){//处理审计数据
                auditRecords.add(map);
                continue;
            }
            
        }
    }
    if(otherChanges!=null&&otherChanges.size()>0){//三表结构
        for(HashMap<String,String> map:otherChanges){
            map.remove("id");
            if(
                //"1".equalsIgnoreCase(map.get("Deleted"))||"true".equalsIgnoreCase(map.get("Deleted"))
                ("1".equalsIgnoreCase(map.get("Deleted"))||"true".equalsIgnoreCase(map.get("Deleted")))
                &&(!"1".equalsIgnoreCase(map.get("Added"))&&!"true".equalsIgnoreCase(map.get("Added")))    
                ){
                otherDeleteds.add(map);
                continue;
            }
            if(
                //"1".equalsIgnoreCase(map.get("Added"))||"true".equalsIgnoreCase(map.get("Added"))
                ("1".equalsIgnoreCase(map.get("Added"))||"true".equalsIgnoreCase(map.get("Added")))
                &&(!"1".equalsIgnoreCase(map.get("Deleted"))&&!"true".equalsIgnoreCase(map.get("Deleted")))    
                ){
                  if(delrowid.contains(","+map.get("rowid"))){
                          if(this.cp) continue;//复单时且当前行关联的第二表是删除,且这一行也就不需要增加写到后台
                      otherDeleteds.add(map);   
                  }else
                      otherInserteds.add(map); 
                continue;
            }
            if("1".equalsIgnoreCase(map.get("Changed"))||"true".equalsIgnoreCase(map.get("Changed"))){
                getChanged(map,otherUpdateds,otherVss);
                continue;
            }
            if("1".equalsIgnoreCase(map.get("OAChanged"))||"true".equalsIgnoreCase(map.get("OAChanged"))){
                otherOA.add(map);
                continue;
            }
            if("1".equalsIgnoreCase(map.get("_YCAUDIT_"))||"true".equalsIgnoreCase(map.get("_YCAUDIT_"))){//处理审计数据
                auditRecords.add(map);
                continue;
            }
        }
    }
}
public void getChanged(HashMap<String, String> map,List<HashMap<String,String>> upp,List<HashMap<String,String>> vss) {
    HashMap<String,String> up=new HashMap<String,String>();
    HashMap<String,String> vs=new HashMap<String,String>();
    map.remove("Changed");
    Iterator<Map.Entry<String,String>> iter = map.entrySet().iterator(); 
    String flg="";
    int ind=0;
    boolean img=false;
    while (iter.hasNext()) {
        Map.Entry<String,String> entry =iter.next(); 
        img=false;
        String key = entry.getKey(); 
        String value = entry.getValue(); 
        if(key.lastIndexOf("Orig")<0&&!map.containsKey(key+"Orig")){
        img=this.checkImg(value);
        if(img) continue;
        }else{
            flg=key;
        }
        if(value!=null&&value!="") value=value.replaceAll("&amp;", "&").replaceAll("&lt;", "<").replaceAll("&gt;", ">");
        if(key.equalsIgnoreCase("_ConstWidth")) continue;
        if(key.equalsIgnoreCase("id")){
            if(value!=null&&value!="")
            if(value.startsWith("AR")) continue;
            
        }
        if(key.lastIndexOf("Orig")>-1){//表示需要放在匹配里面
        ind+=1;
//        if(value!=null&&!"".equalsIgnoreCase(value)){
//        img=this.checkImg(map.get(key.substring(0,key.length()-4)));//取得当是Orig时候,原值是不是就是图片的值,需要处理这种情况
//        if(img) continue;
//        }
        if(value!=null&&!value.matches(picMatch_uuid)){//当前是上传,但不是图片,保留的只是显示值,而不是实际值需要去掉
                
                    vs.put(key.substring(0,key.length()-4), value);
                
        }else{
            flg=key.substring(0,key.length()-4);//保存在当前行中需要移除的值
           
        }
            String temp=map.get(key.substring(0,key.length()-4));//取新值
            if(temp!=null&&temp!="") temp=temp.replaceAll("&amp;", "&").replaceAll("&lt;", "<").replaceAll("&gt;", ">");//去掉更新时候存在&的转义
            if(!img)
            up.put(key.substring(0,key.length()-4),temp );
        }else{
        if(flg.equalsIgnoreCase(key)){
                continue;
        }else
            if(!vs.containsKey(key)) vs.put(key, value);
        }
    }
    if((!img&&ind>0)){//(!img&&ind>0)是没有图片的情况, 
    upp.add(up);
    vss.add(vs);
    }
}
 
 
 
private boolean checkImg(String value) {
    if(value==null) return false;
    if(value.matches(picMatch_uuid)) //JsonUtil.IMGRANG
    return true;
    
    return false;
}
public int getaFlag() {
    return aFlag;
}
 
 
 
public void setaFlag(int aFlag) {
    this.aFlag = aFlag;
}
 
 
 
public List<HashMap<String, String>> getOtherChanges() {
    return otherChanges;
}
 
 
 
public void setOtherChanges(List<HashMap<String, String>> otherChanges) {
    this.otherChanges = otherChanges;
}
 
 
 
public HashMap<String, String> getIO() {
    return IO;
}
 
 
 
public void setIO(HashMap<String, String> iO) {
    IO = iO;
}
 
 
 
public List<HashMap<String, String>> getChanges() {
    return Changes;
}
 
 
 
public void setChanges(List<HashMap<String, String>> changes) {
    Changes = changes;
}
 
 
 
public String getToken() {
    return token;
}
public void setToken(String token) {
    this.token = token;
}
public String getOtherColns() {
    return otherColns;
}
public void setOtherColns(String otherColns) {
    this.otherColns = otherColns;
}
public String getColns() {
    return colns;
}
public void setColns(String colns) {
    this.colns = colns;
}
public String getCudoc() {
    return cudoc;
}
public void setCudoc(String cudoc) {
    this.cudoc = cudoc;
}
public String getExpr() {
    return expr;
}
public void setExpr(String expr) {
    this.expr = expr;
}
public boolean getCp() {
    return cp;
}
public void setCp(boolean cp) {
    this.cp = cp;
}
public String getOa() {
    return oa;
}
public void setOa(String oa) {
    this.oa = oa;
}
public String getFl() {
    return fl;
}
public void setFl(String fl) {
    this.fl = fl;
}
public List<HashMap<String, String>> getEmptyRecords() {
    return emptyRecords;
}
public void setEmptyRecords(List<HashMap<String, String>> emptyRecords) {
    this.emptyRecords = emptyRecords;
}
public String getFormid() {
    return formid;
}
public void setFormid(String formid) {
    this.formid = formid;
}
public List<HashMap<String, String>> getMuilTranRecords() {
    return muilTranRecords;
}
public void setMuilTranRecords(List<HashMap<String, String>> muilTranRecords) {
    this.muilTranRecords = muilTranRecords;
}
public String getgType() {
    return gType;
}
public void setgType(String gType) {
    this.gType = gType;
}
public List<Panel> getPanels() {
    return panels;
}
public void setPanels(List<Panel> panels) {
    this.panels = panels;
}
public List<Grid> getGrids() {
    return grids;
}
public void setGrids(List<Grid> grids) {
    this.grids = grids;
}
public String getOtherKey() {
    return otherKey;
}
public void setOtherKey(String otherKey) {
    this.otherKey = otherKey;
}
public int getOtherFormid() {
    return otherFormid;
}
public void setOtherFormid(int otherFormid) {
    this.otherFormid = otherFormid;
}
public List<HashMap<String, String>> getOtherDeleteds() {
    return otherDeleteds;
}
public void setOtherDeleteds(List<HashMap<String, String>> otherDeleteds) {
    this.otherDeleteds = otherDeleteds;
}
public List<HashMap<String, String>> getOtherInserteds() {
    return otherInserteds;
}
public void setOtherInserteds(List<HashMap<String, String>> otherInserteds) {
    this.otherInserteds = otherInserteds;
}
public List<HashMap<String, String>> getOtherUpdateds() {
    return otherUpdateds;
}
public void setOtherUpdateds(List<HashMap<String, String>> otherUpdateds) {
    this.otherUpdateds = otherUpdateds;
}
public List<HashMap<String, String>> getOtherVss() {
    return otherVss;
}
public void setOtherVss(List<HashMap<String, String>> otherVss) {
    this.otherVss = otherVss;
}
 
public String getOtherTable() {
    return otherTable;
}
public void setOtherTable(String otherTable) {
    this.otherTable = otherTable;
}
public List<HashMap<String, String>> getOtherTranRecords() {
    return otherTranRecords;
}
public void setOtherTranRecords(List<HashMap<String, String>> otherTranRecords) {
    this.otherTranRecords = otherTranRecords;
}
public String getDoccode() {
    return doccode;
}
public void setDoccode(String doccode) {
    this.doccode = doccode;
}
public String getPanelAction() {
    return panelAction;
}
public void setPanelAction(String panelAction) {
    this.panelAction = panelAction;
}
public String getPanelTable() {
    return panelTable;
}
public void setPanelTable(String panelTable) {
    this.panelTable = panelTable;
}
public List<HashMap<String, String>> getTranRecords() {
    return tranRecords;
}
public void setTranRecords(List<HashMap<String, String>> tranRecords) {
    this.tranRecords = tranRecords;
}
public List<HashMap<String, String>> getDeletedRecords() {
    return deletedRecords;
}
public void setDeletedRecords(List<HashMap<String, String>> deletedRecords) {
    this.deletedRecords = deletedRecords;
}
public List<HashMap<String, String>> getInsertedRecords() {
    return insertedRecords;
}
public void setInsertedRecords(List<HashMap<String, String>> insertedRecords) {
    this.insertedRecords = insertedRecords;
}
public List<HashMap<String, String>> getUpdatedRecords() {
    return updatedRecords;
}
public void setUpdatedRecords(List<HashMap<String, String>> updatedRecords) {
    this.updatedRecords = updatedRecords;
}
public List<HashMap<String, String>> getVssRecords() {
    return vssRecords;
}
public void setVssRecords(List<HashMap<String, String>> vssRecords) {
    this.vssRecords = vssRecords;
}
public String[] getFieldsName() {
    return fieldsName;
}
public void setFieldsName(String[] fieldsName) {
    this.fieldsName = fieldsName;
}
 
public String getAction() {
    return action;
}
public void setAction(String action) {
    this.action = action;
}
public PageInfo getPageInfo() {
    return pageInfo;
}
public void setPageInfo(PageInfo pageInfo) {
    this.pageInfo = pageInfo;
}
public List<HashMap<String, String>> getPanelRecords() {
    return panelRecords;
}
public void setPanelRecords(List<HashMap<String, String>> panelRecords) {
    this.panelRecords = panelRecords;
}
 
    public List<HashMap<String, String>> getoARecords() {
        return oARecords;
    }
 
    public void setoARecords(List<HashMap<String, String>> oARecords) {
        this.oARecords = oARecords;
    }
}