Пример #1
0
 public kopaCodesRec this[int row]
 {
     get
     {
         DataRow      wRow = Rows[row];
         kopaCodesRec wRec = new kopaCodesRec();
         wRec.ecoCode     = (string)wRow[cEcoCode];
         wRec.setId       = (string)wRow[cSetId];
         wRec.kopaCode    = (string)wRow[cKopaCode];
         wRec.pageId      = (string)wRow[cPageId];
         wRec.period      = (string)wRow[cPeriod];
         wRec.description = (string)wRow[cDescription];
         wRec.selected    = (int)wRow[cSelected];
         wRec.strategy    = (int)wRow[cStrategy];
         wRec.disUsed     = (int)wRow[cDisUsed];
         wRec.updBy       = (string)wRow[cUpdBy];
         wRec.updWhen     = (DateTime)wRow[cUpdWhen];
         return(wRec);
     }
     set
     {
         DataRow wRow = Rows[row];
         wRow[cEcoCode]     = value.ecoCode;
         wRow[cSetId]       = value.setId;
         wRow[cKopaCode]    = value.kopaCode;
         wRow[cPageId]      = value.pageId;
         wRow[cPeriod]      = value.period;
         wRow[cDescription] = value.description;
         wRow[cSelected]    = value.selected;
         wRow[cStrategy]    = value.strategy;
         wRow[cDisUsed]     = value.disUsed;
         wRow[cUpdBy]       = value.updBy;
         wRow[cUpdWhen]     = value.updWhen;
     }
 }
Пример #2
0
 public void SelectAllLoad(Connect aConnect)
 {
     SelectAll(aConnect);
     while (SelectAllFetch())
     {
         mList.Add(mRec);
         mRec = new kopaCodesRec();
     }
 }
Пример #3
0
 public void Clear()
 {
     mList = new ArrayList();
     mRec  = new kopaCodesRec();
 }