///// <summary> ///// 方法实例 ///// </summary> ///// <returns></returns> //public IList<PerformanceMstModel> ExampleMethod<PerformanceMstModel>(string param) //{ // //编写代码 //} /// <summary> /// 保存数据 /// </summary> /// <param name="performanceMstEntity"></param> /// <param name="performanceDtlTextContEntities"></param> /// <param name="performanceDtlBuDtlEntities"></param> /// <param name="performanceDtlTarImplEntities"></param> /// <returns></returns> public SavedResult <Int64> SavePerformanceMst(PerformanceMstModel performanceMstEntity, List <PerformanceDtlTextContModel> performanceDtlTextContEntities, List <PerformanceDtlBuDtlModel> performanceDtlBuDtlEntities, List <PerformanceDtlTarImplModel> performanceDtlTarImplEntities) { SavedResult <Int64> savedResult = base.Save <Int64>(performanceMstEntity); if (savedResult.Status == ResponseStatus.Success && savedResult.KeyCodes.Count > 0) { //if (performanceDtlEvalEntities.Count > 0) //{ // PerformanceDtlEvalRule.Save(performanceDtlEvalEntities, savedResult.KeyCodes[0]); //} if (performanceDtlTextContEntities != null && performanceDtlTextContEntities.Count > 0) { PerformanceDtlTextContRule.Save(performanceDtlTextContEntities, savedResult.KeyCodes[0]); } if (performanceDtlBuDtlEntities != null && performanceDtlBuDtlEntities.Count > 0) { PerformanceDtlBuDtlRule.Save(performanceDtlBuDtlEntities, savedResult.KeyCodes[0]); } if (performanceDtlTarImplEntities != null && performanceDtlTarImplEntities.Count > 0) { for (int i = 0; i < performanceDtlTarImplEntities.Count; i++) { performanceDtlTarImplEntities[i].MstPhid = savedResult.KeyCodes[0]; } PerformanceDtlTarImplRule.Save(performanceDtlTarImplEntities, savedResult.KeyCodes[0]); } } return(savedResult); }
///// <summary> ///// 方法实例 ///// </summary> ///// <returns></returns> //public IList<PerformanceDtlTarImplModel> ExampleMethod<PerformanceDtlTarImplModel>(string param) //{ // //编写代码 //} /// <summary> /// 保存数据 /// </summary> /// <param name="performanceDtlTarImplEntity"></param> /// <param name="performanceDtlEvalEntities"></param> /// <param name="performanceDtlTextContEntities"></param> /// <param name="performanceDtlTarImplEntities"></param> /// <param name="performanceDtlBuDtlEntities"></param> /// <returns></returns> public SavedResult <Int64> SavePerformanceDtlTarImpl(PerformanceDtlTarImplModel performanceDtlTarImplEntity, List <PerformanceDtlEvalModel> performanceDtlEvalEntities, List <PerformanceDtlTextContModel> performanceDtlTextContEntities, List <PerformanceDtlTarImplModel> performanceDtlTarImplEntities, List <PerformanceDtlBuDtlModel> performanceDtlBuDtlEntities) { SavedResult <Int64> savedResult = base.Save <Int64>(performanceDtlTarImplEntity); if (savedResult.Status == ResponseStatus.Success && savedResult.KeyCodes.Count > 0) { if (performanceDtlEvalEntities.Count > 0) { PerformanceDtlEvalRule.Save(performanceDtlEvalEntities, savedResult.KeyCodes[0]); } if (performanceDtlTextContEntities.Count > 0) { PerformanceDtlTextContRule.Save(performanceDtlTextContEntities, savedResult.KeyCodes[0]); } if (performanceDtlTarImplEntities.Count > 0) { PerformanceDtlTarImplRule.Save(performanceDtlTarImplEntities, savedResult.KeyCodes[0]); } if (performanceDtlBuDtlEntities.Count > 0) { PerformanceDtlBuDtlRule.Save(performanceDtlBuDtlEntities, savedResult.KeyCodes[0]); } } return(savedResult); }