IT-KIMI_SHI\SINOIT.KIMI
2018-06-01 64c40fb427bff513f575f11e4c1e7bd9a1bfe3e3
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
package frame.file;
 
import org.apache.poi.ss.format.CellFormatType;
 
import frame.data.Entity;
 
public class IOMappingItem implements IFileload{
    private String id;
    private String parentId;
    private String fromField;
    private String toField;
    private boolean updateIgnore;
    private boolean insertIgnore;
    private CellFormatType[] exportType;
    
    @Override
    public void initLoad(Entity entity) {
        // TODO Auto-generated method stub
        
    }
    private CellFormatType[] parseExportType(String exportType) {
        if (String.IsNullOrWhiteSpace(exportType)) {
            return null;
        }
 
        String[] values = Utils.split(exportType);
        List<CellDataType> result = new List<CellDataType>();
 
        foreach (String value in values) {
        if (string.IsNullOrWhiteSpace(value)) {
            continue;
        }
 
        CellDataType? cellType = CellTypes.toExcelCellType(value);
 
        if (cellType != null) {
            result.Add(cellType.Value);
        }
    }
 
  return result.ToArray();
 
          
    }
    
    public String getId() {
        return id;
    }
    public String getParentId() {
        return parentId;
    }
    public String getFromField() {
        return fromField;
    }
    public String getToField() {
        return toField;
    }
    public boolean isInsertIgnore() {
        return insertIgnore;
    }
    //TODO  CellFormatType
    public CellFormatType[] getExportType() {
        return exportType;
    }
    
}