예제 #1
0
    protected void ODS_TransportationRoute_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        Controls_TextBox tbShipFrom = ((Controls_TextBox)(this.FV_TransportationRoute.FindControl("tbShipFrom")));
        Controls_TextBox tbShipTo   = ((Controls_TextBox)(this.FV_TransportationRoute.FindControl("tbShipTo")));

        transportationRoute             = (TransportationRoute)e.InputParameters[0];
        transportationRoute.Code        = transportationRoute.Code.Trim();
        transportationRoute.Description = transportationRoute.Description.Trim();
        transportationRoute.ShipFrom    = TheTransportationAddressMgr.LoadTransportationAddress(GetTransportationAddressId(tbShipFrom.Text.Trim()));
        transportationRoute.ShipTo      = TheTransportationAddressMgr.LoadTransportationAddress(GetTransportationAddressId(tbShipTo.Text.Trim()));
    }
예제 #2
0
    protected void FV_TransportationRoute_DataBound(object sender, EventArgs e)
    {
        if (TransportationRouteCode != null && TransportationRouteCode != string.Empty)
        {
            TransportationRoute transportationRoute = (TransportationRoute)((FormView)sender).DataItem;

            Controls_TextBox tbShipFrom = (Controls_TextBox)this.FV_TransportationRoute.FindControl("tbShipFrom");

            if (transportationRoute.ShipFrom != null && transportationRoute.ShipFrom.Id.ToString() != string.Empty)
            {
                tbShipFrom.Text = transportationRoute.ShipFrom.FullAddressAndId;
            }

            Controls_TextBox tbShipTo = (Controls_TextBox)this.FV_TransportationRoute.FindControl("tbShipTo");

            if (transportationRoute.ShipTo != null && transportationRoute.ShipTo.Id.ToString() != string.Empty)
            {
                tbShipTo.Text = transportationRoute.ShipTo.FullAddressAndId;
            }
        }
    }
예제 #3
0
    protected void ODS_TransportationRoute_Updating(object sender, ObjectDataSourceMethodEventArgs e)
    {
        Controls_TextBox tbShipFrom = ((Controls_TextBox)(this.FV_TransportationRoute.FindControl("tbShipFrom")));
        Controls_TextBox tbShipTo = ((Controls_TextBox)(this.FV_TransportationRoute.FindControl("tbShipTo")));

        transportationRoute = (TransportationRoute)e.InputParameters[0];
        transportationRoute.Code = transportationRoute.Code.Trim();
        transportationRoute.Description = transportationRoute.Description.Trim();
        transportationRoute.ShipFrom = TheTransportationAddressMgr.LoadTransportationAddress(GetTransportationAddressId(tbShipFrom.Text.Trim()));
        transportationRoute.ShipTo = TheTransportationAddressMgr.LoadTransportationAddress(GetTransportationAddressId(tbShipTo.Text.Trim()));
    }
예제 #4
0
 public virtual void UpdateTransportationRoute(TransportationRoute entity)
 {
     entityDao.UpdateTransportationRoute(entity);
 }
예제 #5
0
 public virtual void DeleteTransportationRoute(TransportationRoute entity)
 {
     entityDao.DeleteTransportationRoute(entity);
 }
 public virtual void UpdateTransportationRoute(TransportationRoute entity)
 {
     Update(entity);
 }
예제 #7
0
 public override void DeleteTransportationRoute(TransportationRoute entity)
 {
     DeleteTransportationRoute(entity.Code);
 }
 public virtual void CreateTransportationRoute(TransportationRoute entity)
 {
     Create(entity);
 }
 public virtual void DeleteTransportationRoute(TransportationRoute entity)
 {
     Delete(entity);
 }
 public virtual void CreateTransportationRoute(TransportationRoute entity)
 {
     Create(entity);
 }
예제 #11
0
 public void UpdateTransportationRoute(TransportationRoute transportationRoute)
 {
     TransportationRouteMgr.UpdateTransportationRoute(transportationRoute);
 }
예제 #12
0
 public void DeleteTransportationRoute(TransportationRoute transportationRoute)
 {
     TransportationRouteMgr.DeleteTransportationRoute(transportationRoute);
 }
예제 #13
0
 public void CreateTransportationRoute(TransportationRoute transportationRoute)
 {
     TransportationRouteMgr.CreateTransportationRoute(transportationRoute);
 }
 public override void DeleteTransportationRoute(TransportationRoute entity)
 {
     DeleteTransportationRoute(entity.Code);
 }