xinyb
10 天以前 658898d28cded745ca15ee0a89e3025358356259
提交 | 用户 | age
a6a76f 1 package com.yc.utils;
F 2
3 import java.io.Serializable;
6e88ad 4 import java.util.*;
a6a76f 5
F 6
7 /**
8  * Gt-grid返回的json对象
5c4e49 9  *
a6a76f 10  * @author 邓文峰
F 11  * 2010-2-23
5c4e49 12  **/
F 13 public class GTJson implements Serializable {
14     private String action;
15     private PageInfo pageInfo;
16     private String panelAction;//面板动作
17     private String panelTable;//面板的表名
18     private String doccode;//面板的单号
19     private String masterCode;//10类型参数转换
20     private List<HashMap<String, String>> deletedRecords = new ArrayList<HashMap<String, String>>();
21     private List<HashMap<String, String>> insertedRecords = new ArrayList<HashMap<String, String>>();
22     private List<HashMap<String, String>> updatedRecords = new ArrayList<HashMap<String, String>>();
23     private List<HashMap<String, String>> panelRecords = new ArrayList<HashMap<String, String>>();
24     private List<HashMap<String, String>> vssRecords = new ArrayList<HashMap<String, String>>();//更新时用全匹配更新
25     private List<HashMap<String, String>> oARecords = new ArrayList<HashMap<String, String>>();//保存OA审核时把格线数据传回后台
26     private List<HashMap<String, String>> tranRecords = new ArrayList<HashMap<String, String>>();//确定时提交的数据
27     private List<HashMap<String, String>> emptyRecords = new ArrayList<HashMap<String, String>>();//空数据
28     private List<HashMap<String, String>> auditRecords = new ArrayList<HashMap<String, String>>();
a6a76f 29
5c4e49 30     //---------3表结构
F 31     private List<HashMap<String, String>> otherDeleteds = new ArrayList<HashMap<String, String>>();
32     private List<HashMap<String, String>> otherInserteds = new ArrayList<HashMap<String, String>>();
33     private List<HashMap<String, String>> otherUpdateds = new ArrayList<HashMap<String, String>>();
34     private List<HashMap<String, String>> otherVss = new ArrayList<HashMap<String, String>>();
35     private List<HashMap<String, String>> otherOA = new ArrayList<HashMap<String, String>>();
36     private String otherTable;//三表的表类型
37     private int otherFormid = 0;//三表的功能号
38     private String otherKey;//关联表关键字
39     private List<HashMap<String, String>> otherTranRecords = new ArrayList<HashMap<String, String>>();//确定时提交的数据
40     private List<HashMap<String, String>> muilTranRecords = new ArrayList<HashMap<String, String>>();//多表确定时提交的数据
41     private String[] fieldsName;//字段显示列表,把它提交到数据库,避免用*号查询,性能较好
42     private String fields;//字段显示列表,作为淘宝接口的字段列表
43     //---------多表结构
44     private List<Panel> panels;//面板数据集合
45     private List<Grid> grids;//表格数据集合
46     private String gType;//表示当前页面是哪一个窗体类型,因为499类型是由多个功能号组成,所以需要通过这个来区分
47     private String formid;//499类型的主功能号
48     private String fl;//499类型返回参数
49     private String oa = "";//审核,通过,驳回
50     private boolean cp;//复单标记
51     private String expr = "";//权限控制
52     private String cudoc = "";//自定义单号功能
53     private String otherColns = "";//过滤列
54     private String colns = "";//过滤列
55     private String token = "";//令牌
56     private String disableDuplicateSubmitUUID = "";//防止重复提交的唯一标记
57     private int aFlag = 0;
58     private int isGantt = 0;//是否为甘特图
59     private String[] rowids;//15类型 复单处理前台rowid更新不了的问题,传到这里再作进一步处理
60     private String btnId = "";
61     private int clickTran = 0;//直接点击确认触发
62     private int dcFlag = 0;//flag标记数据范围检查已通过
63     private String primeKey = "";//主键,用作更新,删除时候做where条件,匹配
64     private String otherPrimeKey = "";//15,77类型的第三表主键
65     private Map<String, String> refKeyMap = new HashMap<>();//保存多表中子功能号有关联
66     private int is497 = 0;//app保存多表中的子功能时是传16,1类型,需要返回rowid,后端需要知道是多表才能返回rowid
67     private String userName;
952226 68     private String userCode;
5c4e49 69     private int onlinePay = -1;//在线支付
F 70     private int onlineRefund = -1;//在线退款
71     private String tableName;
72     private String excludeSelectNextDocument="";//需要跳过下一单单据列表
ff13e4 73     private String otherTableName;
5c4e49 74
952226 75     public String getUserCode() {
F 76         return userCode;
77     }
78
79     public void setUserCode(String userCode) {
80         this.userCode = userCode;
81     }
82
ff13e4 83     public String getExcludeSelectNextDocument() {
5c4e49 84         return excludeSelectNextDocument;
F 85     }
86
87     public void setExcludeSelectNextDocument(String excludeSelectNextDocument) {
88         this.excludeSelectNextDocument = excludeSelectNextDocument;
89     }
59226b 90
F 91     public String getTableName() {
5c4e49 92         return tableName;
F 93     }
59226b 94
5c4e49 95     public void setTableName(String tableName) {
F 96         this.tableName = tableName;
97     }
6e88ad 98
5c4e49 99     public int getOnlinePay() {
F 100         return onlinePay;
101     }
366271 102
5c4e49 103     public void setOnlinePay(int onlinePay) {
F 104         this.onlinePay = onlinePay;
105     }
366271 106
5c4e49 107     public int getOnlineRefund() {
F 108         return onlineRefund;
109     }
366271 110
5c4e49 111     public void setOnlineRefund(int onlineRefund) {
F 112         this.onlineRefund = onlineRefund;
113     }
6e88ad 114
5c4e49 115     public String getUserName() {
F 116         return userName;
117     }
a6a76f 118
5c4e49 119     public void setUserName(String userName) {
F 120         this.userName = userName;
121     }
a6a76f 122
5c4e49 123     public int getIs497() {
F 124         return is497;
125     }
a6a76f 126
5c4e49 127     public void setIs497(int is497) {
F 128         this.is497 = is497;
129     }
a6a76f 130
5c4e49 131     public Map<String, String> getRefKeyMap() {
F 132         return refKeyMap;
133     }
a6a76f 134
5c4e49 135     public void setRefKeyMap(Map<String, String> refKeyMap) {
F 136         this.refKeyMap = refKeyMap;
137     }
a6a76f 138
5c4e49 139     public String getOtherPrimeKey() {
F 140         return otherPrimeKey;
141     }
142
143     public void setOtherPrimeKey(String otherPrimeKey) {
144         this.otherPrimeKey = otherPrimeKey;
145     }
146
147     public String getPrimeKey() {
148         return primeKey;
149     }
150
151     public void setPrimeKey(String primeKey) {
152         this.primeKey = primeKey;
153     }
154
155     public int getDcFlag() {
156         return dcFlag;
157     }
158
159     public void setDcFlag(int dcFlag) {
160         this.dcFlag = dcFlag;
161     }
162
163     public int getClickTran() {
164         return clickTran;
165     }
166
167     public void setClickTran(int clickTran) {
168         this.clickTran = clickTran;
169     }
170
171     public String getBtnId() {
172         return btnId;
173     }
174
175     public void setBtnId(String btnId) {
176         this.btnId = btnId;
177     }
178
179     public int getIsGantt() {
180         return isGantt;
181     }
182
183     public void setIsGantt(int isGantt) {
184         this.isGantt = isGantt;
185     }
186
187     //------treegrid增加需要处理的内容
188     private HashMap<String, String> IO;
189     private List<HashMap<String, String>> Changes;//数据保存处理
190     private List<HashMap<String, String>> otherChanges;//数据保存处理
191     //---把treegrid的格式转化为以前gtgrid的格式,兼容以前的代码
192     private String funlink = "";//功能链接
193     private List<Map<String, Map<String, String>>> taobao = new ArrayList<Map<String, Map<String, String>>>();//taobao接口集合,以接口名称为key,应用级参数集合为值
194     private int tbtotal = 0;//淘宝接口返回数据总数量
195
196     public int getTbtotal() {
197         return tbtotal;
198     }
199
200     public void setTbtotal(int tbtotal) {
201         this.tbtotal = tbtotal;
202     }
203
204     Map<String, String> env;
205
206     private String keyID;//接口主从表ID,用来处理当重复下载,需要根据这个ID来判断当前ERP是否已存在,以决定是用update,还是新增
207     private static String picMatch = "^\\|/smallpic.*?" + JsonUtil.IMGRANG.replaceAll("\\|", "\\\\|") + "+?"; //去掉格式图片,因为这个不是真正的图片不需要保存到数据库
208     private static String picMatch_uuid = "^\\|/getImage.*?" + JsonUtil.IMGRANG.replaceAll("\\|", "\\\\|") + "+?"; //去掉格式图片,因为这个不是真正的图片不需要保存到数据库
209
210     public List<HashMap<String, String>> getAuditRecords() {
211         return auditRecords;
212     }
213
214     public void setAuditRecords(List<HashMap<String, String>> auditRecords) {
215         this.auditRecords = auditRecords;
216     }
217
218     public String[] getRowids() {
219         return rowids;
220     }
221
222     public void setRowids(String[] rowids) {
223         this.rowids = rowids;
224     }
225
226     public String getKeyID() {
227         return keyID;
228     }
229
230     public void setKeyID(String keyID) {
231         this.keyID = keyID;
232     }
233
234     public Map<String, String> getEnv() {
235         return env;
236     }
237
238     public void setEnv(Map<String, String> env) {
239         this.env = env;
240     }
241
242     public List<Map<String, Map<String, String>>> getTaobao() {
243         return taobao;
244     }
245
246     public void setTaobao(List<Map<String, Map<String, String>>> taobao) {
247         this.taobao = taobao;
248     }
249
250     public String getFields() {
251         return fields;
252     }
253
254     public void setFields(String fields) {
255         this.fields = fields;
256     }
257
258     public String getFunlink() {
259         return funlink;
260     }
261
262     public void setFunlink(String funlink) {
263         this.funlink = funlink;
264     }
a6a76f 265
F 266
5c4e49 267     public String getMasterCode() {
F 268         return masterCode;
269     }
a6a76f 270
5c4e49 271     public void setMasterCode(String masterCode) {
F 272         this.masterCode = masterCode;
273     }
a6a76f 274
5c4e49 275     public List<HashMap<String, String>> getOtherOA() {
F 276         return otherOA;
277     }
a6a76f 278
5c4e49 279     public void setOtherOA(List<HashMap<String, String>> otherOA) {
F 280         this.otherOA = otherOA;
281     }
a6a76f 282
5c4e49 283     public String getDisableDuplicateSubmitUUID() {
F 284         return disableDuplicateSubmitUUID;
285     }
a6a76f 286
5c4e49 287     public void setDisableDuplicateSubmitUUID(String disableDuplicateSubmitUUID) {
F 288         this.disableDuplicateSubmitUUID = disableDuplicateSubmitUUID;
289     }
290
291     /**
292      * 装配只有格线窗体类型数据作为集合传过去
293      *
294      * @param action-表示当前操作是保存还是确定(save,tran)
295      * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
296      * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
297      * @param doccode-单号(修改操作需要指定)
298      * @param masterCode-关键主字段,作为查询替换的字段
299      * @param insertedRecords--表示格线新增数据
300      * @param updatedRecords--表示格线修改数据
301      * @param panelRecords--表示面板数据(新增或修改)
302      **/
303     public void create0(String action, String panelAction, String doccode,
304                         List<HashMap<String, String>> insertedRecords,
305                         List<HashMap<String, String>> updatedRecords,
306                         String gType,
307                         String formid
308     ) {
309         this.action = action;
310         this.panelAction = panelAction;
311         this.panelTable = formid + ";" + gType.split("\\|")[0];
312         this.doccode = doccode;
313         this.insertedRecords = insertedRecords;
314         this.updatedRecords = updatedRecords;
315         this.gType = gType;
316         this.formid = formid;
317     }
318
319     /**
320      * 装配只有面板窗体类型数据作为集合传过去
321      *
322      * @param action-表示当前操作是保存还是确定(save,tran)
323      * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
324      * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
325      * @param doccode-单号(修改操作需要指定)
326      * @param masterCode-关键主字段,作为查询替换的字段
327      * @param insertedRecords--表示格线新增数据
328      * @param updatedRecords--表示格线修改数据
329      * @param panelRecords--表示面板数据(新增或修改)
330      **/
331     public void create1(String action, String panelAction, String doccode,
332                         List<HashMap<String, String>> panelRecords,
333                         String gType,
334                         String formid
335     ) {
336         this.action = action;
337         this.panelAction = panelAction;
338         this.panelTable = formid + ";" + gType.split("\\|")[0];
339         this.doccode = doccode;
340         this.panelRecords = panelRecords;
341         this.gType = gType;
342         this.formid = formid;
343     }
344
345     /**
346      * 装配双表(面板和格线)窗体类型数据作为集合传过去
347      *
348      * @param action-表示当前操作是保存还是确定(save,tran)
349      * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
350      * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
351      * @param doccode-单号(修改操作需要指定)
352      * @param masterCode-关键主字段,作为查询替换的字段
353      * @param insertedRecords--表示格线新增数据
354      * @param updatedRecords--表示格线修改数据
355      * @param panelRecords--表示面板数据(新增或修改)
356      **/
357     public void create2(String action, String panelAction, String doccode,
358                         List<HashMap<String, String>> insertedRecords,
359                         List<HashMap<String, String>> updatedRecords,
360                         List<HashMap<String, String>> panelRecords,
361                         String gType,
362                         String formid
363     ) {
364         this.action = action;
365         this.panelAction = panelAction;
366         this.panelTable = formid + ";" + gType.split("\\|")[0];
367         this.panelRecords = panelRecords;
368         this.insertedRecords = insertedRecords;
369         this.doccode = doccode;
370         this.updatedRecords = updatedRecords;
371         this.gType = gType;
372         this.formid = formid;
373     }
374
375     /**
376      * 淘宝调用
377      *
378      * @param action
379      * @param panelAction
380      * @param doccode
381      * @param insertedRecords
382      * @param updatedRecords
383      * @param panelRecords
384      * @param gType
385      * @param formid
386      * @param conts
387      */
388     public void create2taobao(String action, String panelAction, String doccode,
389                               List<HashMap<String, String>> insertedRecords,
390                               List<HashMap<String, String>> updatedRecords,
391                               List<HashMap<String, String>> panelRecords,
392                               String gType,
393                               String formid,
394                               String conts,
395                               int total
396     ) {
a6a76f 397 //        this.action = action;
F 398 //        this.panelAction = panelAction;
399 //        this.panelTable = formid+";"+gType.split("\\|")[0];
5c4e49 400         this.panelRecords = panelRecords;
F 401         this.insertedRecords = insertedRecords;
a6a76f 402 //        this.doccode = doccode;
5c4e49 403         this.updatedRecords = updatedRecords;
F 404         this.colns = conts;
405         this.tbtotal = total;
a6a76f 406 //        this.gType = gType;
F 407 //        this.formid = formid;
5c4e49 408     }
a6a76f 409
5c4e49 410     /**
F 411      * 装配3表类型数据作为集合传过去
412      *
413      * @param action-表示当前操作是保存还是确定(save,tran)
414      * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
415      * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
416      * @param doccode-单号(修改操作需要指定)
417      * @param masterCode-关键主字段,作为查询替换的字段
418      * @param insertedRecords--表示格线新增数据
419      * @param updatedRecords--表示格线修改数据
420      * @param panelRecords--表示面板数据(新增或修改)
421      **/
422     public void create3(
423             //--常规基础数据
424             String action, String panelAction, String doccode,
425             List<HashMap<String, String>> insertedRecords,
426             List<HashMap<String, String>> updatedRecords,
427             List<HashMap<String, String>> panelRecords,
428
429             //如果当前是3表结构  则需要把下面的的传进来,否则为null
430             List<HashMap<String, String>> otherInserteds,
431             List<HashMap<String, String>> otherUpdateds,
432             String otherTable, int otherFormid, String otherKey,
433             String otherColns,
434             //--3表 end
435             String gType,
436             String formid
437     ) {
438         this.action = action;
439         this.panelAction = panelAction;
440         this.panelTable = formid + ";" + gType.split("\\|")[0];
441         this.doccode = doccode;
442         this.insertedRecords = insertedRecords;
443         this.updatedRecords = updatedRecords;
444         this.panelRecords = panelRecords;
445         this.otherInserteds = otherInserteds;
446         this.otherUpdateds = otherUpdateds;
447         this.otherTable = otherTable;
448         this.otherFormid = otherFormid;
449         this.otherKey = otherKey;
450         this.gType = gType;
451         this.formid = formid;
452     }
453
454     /**
455      * 装配多表窗体类型数据作为集合传过去
456      *
457      * @param action-表示当前操作是保存还是确定(save,tran)
458      * @param panelAction-指明面板数据当前是新增还是修改(add,update)--必填
459      * @param panelTable-指明面板当前所属的功能号和类型(格式:"formid;type")--必填
460      * @param doccode-单号(修改操作需要指定)
461      * @param masterCode-关键主字段,作为查询替换的字段
462      * @param insertedRecords--表示格线新增数据
463      * @param updatedRecords--表示格线修改数据
464      * @param panelRecords--表示面板数据(新增或修改)
465      **/
466     public void create4(
467             //--常规基础数据
468             String action, String panelAction, String panelTable, String doccode,
469
470             List<Panel> panels,
471             List<Grid> grids,
472
473             String gType,
474             String formid
475     ) {
476         this.action = action;
477         this.panelAction = panelAction;
478         this.panelTable = panelTable;
479         this.doccode = doccode;
480         this.panels = panels;
481         this.grids = grids;
482         this.gType = gType;
483         this.formid = formid;
484     }
485
486     public void process() {
487         String delrowid = "";//保存二表是新增且又删除的rowid,以便给第三表做关联删除用
488         if (Changes != null && Changes.size() > 0) {
489             int index = 0;
490             for (HashMap<String, String> map : Changes) {
176de8 491                 if (isGantt == 0){
F 492                     if(!"Fix1".equalsIgnoreCase(map.get("id"))) {
493                         map.remove("id");
494                     }
495                 }
5c4e49 496                 if (
F 497                         ("1".equalsIgnoreCase(map.get("Deleted")) || "true".equalsIgnoreCase(map.get("Deleted")))
498                                 && (!"1".equalsIgnoreCase(map.get("Added")) && !"true".equalsIgnoreCase(map.get("Added")))//当存在新增行又马上删除的情况,在这里需要做个判断
499                 ) {
500                     if (map.containsKey("G")) map.remove("G");//去掉甘特图的信息
501                     deletedRecords.add(map);
502                     continue;
503                 }
504                 if ("1".equalsIgnoreCase(map.get("Added")) && "1".equalsIgnoreCase(map.get("Deleted"))) {
505                     //新增且又马上删除的情况
506                     if ("15".equalsIgnoreCase(this.getgType())) {
507                         delrowid += "," + map.get("rowid");
508                     }
509                 }
510                 if (
511                         ("1".equalsIgnoreCase(map.get("Added")) || "true".equalsIgnoreCase(map.get("Added")))
512                                 && (!"1".equalsIgnoreCase(map.get("Deleted")) && !"true".equalsIgnoreCase(map.get("Deleted")))
513                 ) {
514                     if (this.getCp() && "15".equalsIgnoreCase(this.getgType())) {//15类型且是复单情况处理rowid
515                         if (rowids != null) {
516                             map.put("rowid", rowids[index]);
517                         }
518                     }
519                     insertedRecords.add(map);
520                     index++;
521                     continue;
522                 }
176de8 523                 if (("1".equalsIgnoreCase(map.get("Changed")) || "true".equalsIgnoreCase(map.get("Changed")))&&!"Fix1".equalsIgnoreCase(map.get("id"))) {//id=Fix1表示是统计列数据行,不需要提交后台处理
5c4e49 524                     getChanged(map, updatedRecords, vssRecords);
F 525                     continue;
526                 }
527                 if ("1".equalsIgnoreCase(map.get("OAChanged")) || "true".equalsIgnoreCase(map.get("OAChanged"))) {
528                     oARecords.add(map);
529                     continue;
530                 }
531                 if ("1".equalsIgnoreCase(map.get("_YCAUDIT_")) || "true".equalsIgnoreCase(map.get("_YCAUDIT_"))) {//处理审计数据
532                     auditRecords.add(map);
533                     continue;
534                 }
535
536             }
a6a76f 537         }
5c4e49 538         if (otherChanges != null && otherChanges.size() > 0) {//三表结构
F 539             for (HashMap<String, String> map : otherChanges) {
176de8 540                 if(!"Fix1".equalsIgnoreCase(map.get("id"))) {
F 541                     map.remove("id");
542                 }
5c4e49 543                 if (
F 544                     //"1".equalsIgnoreCase(map.get("Deleted"))||"true".equalsIgnoreCase(map.get("Deleted"))
545                         ("1".equalsIgnoreCase(map.get("Deleted")) || "true".equalsIgnoreCase(map.get("Deleted")))
546                                 && (!"1".equalsIgnoreCase(map.get("Added")) && !"true".equalsIgnoreCase(map.get("Added")))
547                 ) {
548                     otherDeleteds.add(map);
549                     continue;
550                 }
551                 if (
552                     //"1".equalsIgnoreCase(map.get("Added"))||"true".equalsIgnoreCase(map.get("Added"))
553                         ("1".equalsIgnoreCase(map.get("Added")) || "true".equalsIgnoreCase(map.get("Added")))
554                                 && (!"1".equalsIgnoreCase(map.get("Deleted")) && !"true".equalsIgnoreCase(map.get("Deleted")))
555                 ) {
556                     if (delrowid.contains("," + map.get("rowid"))) {
557                         if (this.cp) continue;//复单时且当前行关联的第二表是删除,且这一行也就不需要增加写到后台
558                         otherDeleteds.add(map);
559                     } else
560                         otherInserteds.add(map);
561                     continue;
562                 }
176de8 563                 if (("1".equalsIgnoreCase(map.get("Changed")) || "true".equalsIgnoreCase(map.get("Changed")))&&!"Fix1".equalsIgnoreCase(map.get("id"))) {
5c4e49 564                     getChanged(map, otherUpdateds, otherVss);
F 565                     continue;
566                 }
567                 if ("1".equalsIgnoreCase(map.get("OAChanged")) || "true".equalsIgnoreCase(map.get("OAChanged"))) {
568                     otherOA.add(map);
569                     continue;
570                 }
571                 if ("1".equalsIgnoreCase(map.get("_YCAUDIT_")) || "true".equalsIgnoreCase(map.get("_YCAUDIT_"))) {//处理审计数据
572                     auditRecords.add(map);
573                     continue;
574                 }
575             }
a6a76f 576         }
5c4e49 577     }
F 578
579     public void getChanged(HashMap<String, String> map, List<HashMap<String, String>> upp, List<HashMap<String, String>> vss) {
580         HashMap<String, String> up = new HashMap<String, String>();
581         HashMap<String, String> vs = new HashMap<String, String>();
582         map.remove("Changed");
583         Iterator<Map.Entry<String, String>> iter = map.entrySet().iterator();
584         String flg = "";
585         int ind = 0;
586         boolean img = false;
587         while (iter.hasNext()) {
588             Map.Entry<String, String> entry = iter.next();
589             img = false;
590             String key = entry.getKey();
591             String value = entry.getValue();
592             if (key.lastIndexOf("Orig") < 0 && !map.containsKey(key + "Orig")) {
593                 img = this.checkImg(value);
594                 if (img) continue;
595             } else {
596                 flg = key;
597             }
598             if (value != null && value != "")
599                 value = value.replaceAll("&amp;", "&").replaceAll("&lt;", "<").replaceAll("&gt;", ">");
600             if (key.equalsIgnoreCase("_ConstWidth")) continue;
601             if (key.equalsIgnoreCase("id")) {
602                 if (value != null && value != "")
603                     if (value.startsWith("AR")) continue;
604
605             }
606             if (key.lastIndexOf("Orig") > -1) {//表示需要放在匹配里面
607                 ind += 1;
a6a76f 608 //        if(value!=null&&!"".equalsIgnoreCase(value)){
F 609 //        img=this.checkImg(map.get(key.substring(0,key.length()-4)));//取得当是Orig时候,原值是不是就是图片的值,需要处理这种情况
610 //        if(img) continue;
611 //        }
5c4e49 612                 if (value != null && !value.matches(picMatch_uuid)) {//当前是上传,但不是图片,保留的只是显示值,而不是实际值需要去掉
F 613
614                     vs.put(key.substring(0, key.length() - 4), value);
615
616                 } else {
617                     flg = key.substring(0, key.length() - 4);//保存在当前行中需要移除的值
618
619                 }
620                 String temp = map.get(key.substring(0, key.length() - 4));//取新值
621                 if (temp != null && temp != "")
622                     temp = temp.replaceAll("&amp;", "&").replaceAll("&lt;", "<").replaceAll("&gt;", ">");//去掉更新时候存在&的转义
623                 if (!img)
624                     up.put(key.substring(0, key.length() - 4), temp);
625             } else {
626                 if (flg.equalsIgnoreCase(key)) {
627                     continue;
628                 } else if (!vs.containsKey(key)) vs.put(key, value);
629             }
630         }
631         if ((!img && ind > 0)) {//(!img&&ind>0)是没有图片的情况,
632             upp.add(up);
633             vss.add(vs);
a6a76f 634         }
F 635     }
5c4e49 636
F 637
638     private boolean checkImg(String value) {
639         if (value == null) return false;
640         if (value.matches(picMatch_uuid)) //JsonUtil.IMGRANG
641             return true;
642
643         return false;
a6a76f 644     }
5c4e49 645
F 646     public int getaFlag() {
647         return aFlag;
648     }
a6a76f 649
F 650
5c4e49 651     public void setaFlag(int aFlag) {
F 652         this.aFlag = aFlag;
653     }
a6a76f 654
F 655
5c4e49 656     public List<HashMap<String, String>> getOtherChanges() {
F 657         return otherChanges;
658     }
a6a76f 659
F 660
5c4e49 661     public void setOtherChanges(List<HashMap<String, String>> otherChanges) {
F 662         this.otherChanges = otherChanges;
663     }
a6a76f 664
F 665
5c4e49 666     public HashMap<String, String> getIO() {
F 667         return IO;
668     }
a6a76f 669
F 670
5c4e49 671     public void setIO(HashMap<String, String> iO) {
F 672         IO = iO;
673     }
a6a76f 674
F 675
5c4e49 676     public List<HashMap<String, String>> getChanges() {
F 677         return Changes;
678     }
a6a76f 679
F 680
5c4e49 681     public void setChanges(List<HashMap<String, String>> changes) {
F 682         Changes = changes;
683     }
a6a76f 684
F 685
5c4e49 686     public String getToken() {
F 687         return token;
688     }
a6a76f 689
5c4e49 690     public void setToken(String token) {
F 691         this.token = token;
692     }
a6a76f 693
5c4e49 694     public String getOtherColns() {
F 695         return otherColns;
696     }
a6a76f 697
5c4e49 698     public void setOtherColns(String otherColns) {
F 699         this.otherColns = otherColns;
700     }
a6a76f 701
5c4e49 702     public String getColns() {
F 703         return colns;
704     }
a6a76f 705
5c4e49 706     public void setColns(String colns) {
F 707         this.colns = colns;
708     }
a6a76f 709
5c4e49 710     public String getCudoc() {
F 711         return cudoc;
712     }
a6a76f 713
5c4e49 714     public void setCudoc(String cudoc) {
F 715         this.cudoc = cudoc;
716     }
a6a76f 717
5c4e49 718     public String getExpr() {
F 719         return expr;
720     }
721
722     public void setExpr(String expr) {
723         this.expr = expr;
724     }
725
726     public boolean getCp() {
727         return cp;
728     }
729
730     public void setCp(boolean cp) {
731         this.cp = cp;
732     }
733
734     public String getOa() {
735         return oa;
736     }
737
738     public void setOa(String oa) {
739         this.oa = oa;
740     }
741
742     public String getFl() {
743         return fl;
744     }
745
746     public void setFl(String fl) {
747         this.fl = fl;
748     }
749
750     public List<HashMap<String, String>> getEmptyRecords() {
751         return emptyRecords;
752     }
753
754     public void setEmptyRecords(List<HashMap<String, String>> emptyRecords) {
755         this.emptyRecords = emptyRecords;
756     }
757
758     public String getFormid() {
759         return formid;
760     }
761
762     public void setFormid(String formid) {
763         this.formid = formid;
764     }
765
766     public List<HashMap<String, String>> getMuilTranRecords() {
767         return muilTranRecords;
768     }
769
770     public void setMuilTranRecords(List<HashMap<String, String>> muilTranRecords) {
771         this.muilTranRecords = muilTranRecords;
772     }
773
774     public String getgType() {
775         return gType;
776     }
777
778     public void setgType(String gType) {
779         this.gType = gType;
780     }
781
782     public List<Panel> getPanels() {
783         return panels;
784     }
785
786     public void setPanels(List<Panel> panels) {
787         this.panels = panels;
788     }
789
790     public List<Grid> getGrids() {
791         return grids;
792     }
793
794     public void setGrids(List<Grid> grids) {
795         this.grids = grids;
796     }
797
798     public String getOtherKey() {
799         return otherKey;
800     }
801
802     public void setOtherKey(String otherKey) {
803         this.otherKey = otherKey;
804     }
805
806     public int getOtherFormid() {
807         return otherFormid;
808     }
809
810     public void setOtherFormid(int otherFormid) {
811         this.otherFormid = otherFormid;
812     }
813
814     public List<HashMap<String, String>> getOtherDeleteds() {
815         return otherDeleteds;
816     }
817
818     public void setOtherDeleteds(List<HashMap<String, String>> otherDeleteds) {
819         this.otherDeleteds = otherDeleteds;
820     }
821
822     public List<HashMap<String, String>> getOtherInserteds() {
823         return otherInserteds;
824     }
825
826     public void setOtherInserteds(List<HashMap<String, String>> otherInserteds) {
827         this.otherInserteds = otherInserteds;
828     }
829
830     public List<HashMap<String, String>> getOtherUpdateds() {
831         return otherUpdateds;
832     }
833
834     public void setOtherUpdateds(List<HashMap<String, String>> otherUpdateds) {
835         this.otherUpdateds = otherUpdateds;
836     }
837
838     public List<HashMap<String, String>> getOtherVss() {
839         return otherVss;
840     }
841
842     public void setOtherVss(List<HashMap<String, String>> otherVss) {
843         this.otherVss = otherVss;
844     }
845
846     public String getOtherTable() {
847         return otherTable;
848     }
849
850     public void setOtherTable(String otherTable) {
851         this.otherTable = otherTable;
852     }
853
854     public List<HashMap<String, String>> getOtherTranRecords() {
855         return otherTranRecords;
856     }
857
858     public void setOtherTranRecords(List<HashMap<String, String>> otherTranRecords) {
859         this.otherTranRecords = otherTranRecords;
860     }
861
862     public String getDoccode() {
863         return doccode;
864     }
865
866     public void setDoccode(String doccode) {
867         this.doccode = doccode;
868     }
869
870     public String getPanelAction() {
871         return panelAction;
872     }
873
874     public void setPanelAction(String panelAction) {
875         this.panelAction = panelAction;
876     }
877
878     public String getPanelTable() {
879         return panelTable;
880     }
881
882     public void setPanelTable(String panelTable) {
883         this.panelTable = panelTable;
884     }
885
886     public List<HashMap<String, String>> getTranRecords() {
887         return tranRecords;
888     }
889
890     public void setTranRecords(List<HashMap<String, String>> tranRecords) {
891         this.tranRecords = tranRecords;
892     }
893
894     public List<HashMap<String, String>> getDeletedRecords() {
895         return deletedRecords;
896     }
897
898     public void setDeletedRecords(List<HashMap<String, String>> deletedRecords) {
899         this.deletedRecords = deletedRecords;
900     }
901
902     public List<HashMap<String, String>> getInsertedRecords() {
903         return insertedRecords;
904     }
905
906     public void setInsertedRecords(List<HashMap<String, String>> insertedRecords) {
907         this.insertedRecords = insertedRecords;
908     }
909
910     public List<HashMap<String, String>> getUpdatedRecords() {
911         return updatedRecords;
912     }
913
914     public void setUpdatedRecords(List<HashMap<String, String>> updatedRecords) {
915         this.updatedRecords = updatedRecords;
916     }
917
918     public List<HashMap<String, String>> getVssRecords() {
919         return vssRecords;
920     }
921
922     public void setVssRecords(List<HashMap<String, String>> vssRecords) {
923         this.vssRecords = vssRecords;
924     }
925
926     public String[] getFieldsName() {
927         return fieldsName;
928     }
929
930     public void setFieldsName(String[] fieldsName) {
931         this.fieldsName = fieldsName;
932     }
933
934     public String getAction() {
935         return action;
936     }
937
938     public void setAction(String action) {
939         this.action = action;
940     }
941
942     public PageInfo getPageInfo() {
943         return pageInfo;
944     }
945
946     public void setPageInfo(PageInfo pageInfo) {
947         this.pageInfo = pageInfo;
948     }
949
950     public List<HashMap<String, String>> getPanelRecords() {
951         return panelRecords;
952     }
953
954     public void setPanelRecords(List<HashMap<String, String>> panelRecords) {
955         this.panelRecords = panelRecords;
956     }
957
958     public List<HashMap<String, String>> getoARecords() {
959         return oARecords;
960     }
961
962     public void setoARecords(List<HashMap<String, String>> oARecords) {
963         this.oARecords = oARecords;
964     }
ff13e4 965
F 966     public void setOtherTableName(String otherTableName) {
967         this.otherTableName = otherTableName;
968     }
969
970     public String getOtherTableName() {
971         return otherTableName;
972     }
a6a76f 973 }