예제 #1
0
 protected override void ReadLine(BinaryReader reader)
 {
     PayWelfareTable.RowData rowData = new PayWelfareTable.RowData();
     base.Read <int>(reader, ref rowData.Order, CVSReader.intParse);
     this.columnno = 0;
     base.Read <int>(reader, ref rowData.SysID, CVSReader.intParse);
     this.columnno = 1;
     base.Read <string>(reader, ref rowData.TabName, CVSReader.stringParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.TabIcon, CVSReader.stringParse);
     this.columnno = 3;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
예제 #2
0
 protected override bool OnLine(string[] Fields)
 {
     PayWelfareTable.RowData rowData = new PayWelfareTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Order))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.SysID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.TabName))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.TabIcon))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }