public ScheduleWF(IOrganizationService service, new_incidentservice target, new_incidentserviceparameter paramters, new_flightoccurrence orginalFlightOccurrence, IEmailTemplate iEmailTemplate) : base(service, target, paramters, orginalFlightOccurrence, iEmailTemplate) { }
public CashierWF(IOrganizationService service, new_incidentservice target, new_incidentserviceparameter paramters, new_flightoccurrence orginalFlightOccurrence, IEmailTemplate iEmailTemplate) : base(service, target, paramters, orginalFlightOccurrence, iEmailTemplate) { }
protected virtual string GenerateTemplateTitle(string title, new_flightoccurrence orginalFlightOccurrence) { var url = GetURLPath(orginalFlightOccurrence.ToEntityReference()); title = title.Replace("!URL!", url); return(title); }
public new_flightoccurrence GetOriginalFlight() { if (_orginalFlightOccurrence == null) { Guid?flight = null; if (_target.Attributes.Contains("new_flight")) { if (_target.new_Flight != null) { flight = _target.new_Flight.Id; } else { flight = null; } } if (!flight.HasValue) { throw new ArgumentException("There is no original Flight"); } Entity temp = _service.Retrieve("new_flightoccurrence", flight.Value, new ColumnSet(true)); _orginalFlightOccurrence = temp.ToEntity <new_flightoccurrence>(); } return(_orginalFlightOccurrence); }
public Observer(IOrganizationService service, new_incidentservice target, new_incidentserviceparameter paramters, new_flightoccurrence orginalFlightOccurrence, IEmailTemplate configEmailTemplate) { _service = service; _target = target; _paramters = paramters; _orginalFlightOccurrence = orginalFlightOccurrence; _emailTemplate = configEmailTemplate; }
protected virtual string GenerateTemplateBody(string body, new_flightoccurrence orginalFlightOccurrence) { var urlCrm = GetURLPath(orginalFlightOccurrence.ToEntityReference()); var eurl = urlCrm;//HttpUtility.UrlEncode(urlCrm); var url = "<a href='" + eurl + "' target='_blank'>flight</a>"; body = body.Replace("!URL!", url); return(body); }
public Observer(IOrganizationService service, new_incidentservice target, new_incidentserviceparameter paramters, new_flightoccurrence orginalFlightOccurrence, IEmailTemplate configEmailTemplate) { _service = service; _target = target; _paramters = paramters; _orginalFlightOccurrence = orginalFlightOccurrence; _emailTemplate = configEmailTemplate; }
public new_flightoccurrence GetOriginalFlight() { if (_orginalFlightOccurrence == null) { Guid? flight = null; if (_target.Attributes.Contains("new_flight")) { if (_target.new_Flight != null) flight = _target.new_Flight.Id; else flight = null; } if (!flight.HasValue) throw new ArgumentException("There is no original Flight"); Entity temp = _service.Retrieve("new_flightoccurrence", flight.Value, new ColumnSet(true)); _orginalFlightOccurrence = temp.ToEntity<new_flightoccurrence>(); } return _orginalFlightOccurrence; }
protected virtual string GenerateTemplateBody(string body, new_flightoccurrence orginalFlightOccurrence) { var urlCrm = GetURLPath(orginalFlightOccurrence.ToEntityReference()); var eurl = urlCrm;//HttpUtility.UrlEncode(urlCrm); var url = "<a href='" + eurl + "' target='_blank'>flight</a>"; body = body.Replace("!URL!", url); return body; }
protected virtual string GenerateTemplateTitle(string title, new_flightoccurrence orginalFlightOccurrence) { var url = GetURLPath(orginalFlightOccurrence.ToEntityReference()); title = title.Replace("!URL!", url); return title; }