Beispiel #1
0
    protected void lbStationUsableDataBind()
    {
        lbStationUsable.Items.Clear();

        Model.StationRelation[] msrs = dbll.getStationsInfoOrderByName();
        for (int i = 0; i < msrs.Length; i++)
        {
            ListItem li = new ListItem();
            li.Value = msrs[i].StationID.ToString() + "#" + msrs[i].StationTableID.ToString();
            li.Text  = msrs[i].StationName + " ( " + msrs[i].StationID.ToString() + " ) ";
            lbStationUsable.Items.Add(li);
        }
    }
Beispiel #2
0
 protected void initlboxStationAll()
 {
     lboxStationAll.Items.Clear();
     if (mAllStation != null)
     {
         mAllStation = null;
     }
     mAllStation = dbll.getStationsInfoOrderByName();
     for (int i = 0; i < mAllStation.Length; i++)
     {
         if (mAllStation[i].StationID == 0)
         {
             continue;
         }
         ListItem liAllStation = new ListItem();
         liAllStation.Value = mAllStation[i].StationID.ToString() + "#" + mAllStation[i].StationTableID.ToString();
         liAllStation.Text  = mAllStation[i].StationName + "(" + mAllStation[i].StationID.ToString() + ")";
         lboxStationAll.Items.Add(liAllStation);
     }
 }