コード例 #1
0
        public bool RemoveShipMethod(ShipMethod shipmethod)
        {
            ShipMethodData data = new ShipMethodData();
            bool           ret  = false;

            try
            {
                ret = data.DeleteShipMethod(shipmethod);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveShipMethod");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
コード例 #2
0
        public int AddShipMethod(ShipMethod shipmethod)
        {
            ShipMethodData data = new ShipMethodData();
            int            id   = 0;

            try
            {
                id = data.AddShipMethod(shipmethod);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddShipMethod");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(id);
        }
コード例 #3
0
        public ShipMethod GetShipMethods(int shipMethodID)
        {
            ShipMethodData data = new ShipMethodData();
            ShipMethod     sm   = new ShipMethod();

            try
            {
                sm = data.GetShipMethod(shipMethodID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetShipMethods");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(sm);
        }
コード例 #4
0
 public bool Contains(ShipMethod shipMethod)
 {
     return(this.List.Contains(shipMethod));
 }
コード例 #5
0
 public void Remove(ShipMethod shipMethod)
 {
     this.List.Remove(shipMethod);
 }
コード例 #6
0
 public void Insert(int index, ShipMethod shipMethod)
 {
     this.List.Insert(index, shipMethod);
 }
コード例 #7
0
 public int IndexOf(ShipMethod shipMethod)
 {
     return(this.List.IndexOf(shipMethod));
 }
コード例 #8
0
 public int Add(ShipMethod shipMethod)
 {
     return(this.List.Add(shipMethod));
 }