public static InjuryIncidentCostType CreateInjuryIncidentCostType(string caseNumber, decimal lineNum, global::System.DateTimeOffset costDate, decimal costAmount, global::Microsoft.Dynamics.DataEntities.InjuryCostType injuryCostType, global::Microsoft.Dynamics.DataEntities.InjuryIncident injuryIncident) { InjuryIncidentCostType injuryIncidentCostType = new InjuryIncidentCostType(); injuryIncidentCostType.CaseNumber = caseNumber; injuryIncidentCostType.LineNum = lineNum; injuryIncidentCostType.CostDate = costDate; injuryIncidentCostType.CostAmount = costAmount; if ((injuryCostType == null)) { throw new global::System.ArgumentNullException("injuryCostType"); } injuryIncidentCostType.InjuryCostType = injuryCostType; if ((injuryIncident == null)) { throw new global::System.ArgumentNullException("injuryIncident"); } injuryIncidentCostType.InjuryIncident = injuryIncident; return(injuryIncidentCostType); }
partial void OnInjuryIncidentChanging(global::Microsoft.Dynamics.DataEntities.InjuryIncident value);
public static InjuryIncidentFilingAgency CreateInjuryIncidentFilingAgency(string caseNumber, string filingAgencyId, global::System.DateTimeOffset reportSubmitDateTime, global::Microsoft.Dynamics.DataEntities.InjuryIncident injuryIncident, global::Microsoft.Dynamics.DataEntities.InjuryFilingAgency injuryFilingAgency) { InjuryIncidentFilingAgency injuryIncidentFilingAgency = new InjuryIncidentFilingAgency(); injuryIncidentFilingAgency.CaseNumber = caseNumber; injuryIncidentFilingAgency.FilingAgencyId = filingAgencyId; injuryIncidentFilingAgency.ReportSubmitDateTime = reportSubmitDateTime; if ((injuryIncident == null)) { throw new global::System.ArgumentNullException("injuryIncident"); } injuryIncidentFilingAgency.InjuryIncident = injuryIncident; if ((injuryFilingAgency == null)) { throw new global::System.ArgumentNullException("injuryFilingAgency"); } injuryIncidentFilingAgency.InjuryFilingAgency = injuryFilingAgency; return(injuryIncidentFilingAgency); }
public static InjuryIncidentTreatment CreateInjuryIncidentTreatment(string caseNumber, decimal lineNum, global::System.DateTimeOffset treatmentDateTime, global::Microsoft.Dynamics.DataEntities.InjuryTreatmentType injuryTreatmentType, global::Microsoft.Dynamics.DataEntities.InjuryIncident injuryIncident) { InjuryIncidentTreatment injuryIncidentTreatment = new InjuryIncidentTreatment(); injuryIncidentTreatment.CaseNumber = caseNumber; injuryIncidentTreatment.LineNum = lineNum; injuryIncidentTreatment.TreatmentDateTime = treatmentDateTime; if ((injuryTreatmentType == null)) { throw new global::System.ArgumentNullException("injuryTreatmentType"); } injuryIncidentTreatment.InjuryTreatmentType = injuryTreatmentType; if ((injuryIncident == null)) { throw new global::System.ArgumentNullException("injuryIncident"); } injuryIncidentTreatment.InjuryIncident = injuryIncident; return(injuryIncidentTreatment); }