Ejemplo n.º 1
0
        public void UpdateTank(TankListRecord record)
        {
            long retId = record.TankId;

            BusinessHelper.InserUpdateTank(ref retId, record.StationId, record.FuelId, record.TankName, record.TankDesc, record.Max, record.Offset);
            if (retId != -1)
            {
                record.TankId = retId;
            }
        }
Ejemplo n.º 2
0
        public List <TankListRecord> GetAllTank(long stationid)
        {
            List <TankListRecord> _list  = new List <TankListRecord>();
            DataTable             dtTank = BusinessHelper.ListAllTank((long)stationid);

            foreach (DataRow _row in dtTank.Rows)
            {
                TankListRecord tlrec = new TankListRecord();
                tlrec.StationId = stationid;
                tlrec.FuelId    = Convert.ToInt64(_row["fuelid"]);
                tlrec.TankDesc  = _row["tankdesc"].ToString();
                tlrec.TankId    = Convert.ToInt64(_row["tankid"]);
                tlrec.TankName  = _row["tankname"].ToString();
                tlrec.Max       = Convert.ToDouble(_row["capacity"]);
                tlrec.Offset    = Convert.ToDouble(_row["offset"]);
                _list.Add(tlrec);
            }

            return(_list);
        }
Ejemplo n.º 3
0
 public void DeleteTank(TankListRecord record)
 {
     BusinessHelper.DeleteTank(record.TankId);
 }