Ejemplo n.º 1
0
        public void UpdateStation(StationListRecord record)
        {
            long retId = record.StationId;

            BusinessHelper.InserUpdateStation(ref retId, record.StationName, record.StationDesc, record.StationAddress, record.TaxCode);
            if (retId != -1)
            {
                record.StationId = retId;
            }
        }
Ejemplo n.º 2
0
        public List <StationListRecord> GetAllStation()
        {
            List <StationListRecord> collec = new List <StationListRecord>();
            DataTable dt = BusinessHelper.ListAllStation(-1);

            foreach (DataRow _row in dt.Rows)
            {
                StationListRecord sl = new StationListRecord();
                sl.StationId      = Convert.ToInt64(_row["stationid"]);
                sl.StationName    = _row["stationname"].ToString();
                sl.StationDesc    = _row["stationdesc"].ToString();
                sl.StationAddress = _row["stationaddress"].ToString();
                sl.TaxCode        = _row["stationtaxcode"].ToString();

                collec.Add(sl);
            }

            return(collec);
        }
Ejemplo n.º 3
0
 public void DeleteStation(StationListRecord record)
 {
     BusinessHelper.DeleteStation(record.StationId);
 }