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())); }
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; } } }
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())); }
public virtual void UpdateTransportationRoute(TransportationRoute entity) { entityDao.UpdateTransportationRoute(entity); }
public virtual void DeleteTransportationRoute(TransportationRoute entity) { entityDao.DeleteTransportationRoute(entity); }
public virtual void UpdateTransportationRoute(TransportationRoute entity) { Update(entity); }
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); }
public void UpdateTransportationRoute(TransportationRoute transportationRoute) { TransportationRouteMgr.UpdateTransportationRoute(transportationRoute); }
public void DeleteTransportationRoute(TransportationRoute transportationRoute) { TransportationRouteMgr.DeleteTransportationRoute(transportationRoute); }
public void CreateTransportationRoute(TransportationRoute transportationRoute) { TransportationRouteMgr.CreateTransportationRoute(transportationRoute); }
public override void DeleteTransportationRoute(TransportationRoute entity) { DeleteTransportationRoute(entity.Code); }