public RetractionsBillsEntity GetRetractionsBillsModel(RetractionsBillsQuery query) { IContributionInfoService service = ServiceContainer.Instance.Container.Resolve <IContributionInfoService>(); RetractionsBillsEntity model = service.GetRetractionsBills(query); return(model); }
/// <summary> /// 撤稿 /// </summary> /// <param name="retractionsBillsEntity"></param> /// <returns></returns> public ExecResult DraftContribution(RetractionsBillsEntity model) { ExecResult execResult = new ExecResult(); bool result = false; if (model.PKID == 0) { result = ContributionInfoBusProvider.DraftContribution(model); } else { result = UpdateRetractionsBills(model); } if (result) { execResult.result = EnumJsonResult.success.ToString(); execResult.msg = "撤稿成功!"; } else { execResult.result = EnumJsonResult.failure.ToString(); execResult.msg = "撤稿失败!"; } return(execResult); }
public bool UpdateRetractionsBills(RetractionsBillsEntity model) { IContributionInfoService service = ServiceContainer.Instance.Container.Resolve <IContributionInfoService>(); bool result = service.UpdateRetractionsBills(model); return(result); }
public ExecResult Draft(RetractionsBillsEntity model) { IContributionInfoService service = ServiceContainer.Instance.Container.Resolve <IContributionInfoService>(); ExecResult result = service.DraftContribution(model); return(result); }
/// <summary> /// 编辑撤稿表信息 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool UpdateRetractionsBills(RetractionsBillsEntity model) { HttpClientHelper clientHelper = new HttpClientHelper(); bool result = clientHelper.Post <bool, RetractionsBillsEntity>(GetAPIUrl(APIConstant.DRAFT_UPDATE), model); return(result); }
/// <summary> /// 撤稿 /// </summary> /// <param name="model"></param> /// <returns></returns> public ExecResult DraftContributionInfo(RetractionsBillsEntity model) { HttpClientHelper clientHelper = new HttpClientHelper(); ExecResult result = clientHelper.Post <ExecResult, RetractionsBillsEntity>(GetAPIUrl(APIConstant.DRAFT_DRAFT), model); return(result); }
/// <summary> /// 获取撤稿信息实体 /// </summary> /// <param name="query"></param> /// <returns></returns> public RetractionsBillsEntity GetRetractionsBillsModel(RetractionsBillsQuery query) { HttpClientHelper clientHelper = new HttpClientHelper(); RetractionsBillsEntity model = clientHelper.Post <RetractionsBillsEntity, RetractionsBillsQuery>(GetAPIUrl(APIConstant.DRAFT_GETMODEL), query); if (model != null) { if (model.Handler > 0) { model.HandlerName = GetMemberName(model.Handler); } } return(model); }
/// <summary> /// 编辑撤稿信息 /// </summary> /// <param name="retractionsBillsEntity"></param> /// <param name="trans"></param> /// <returns></returns> public bool UpdateRetractionsBills(RetractionsBillsEntity model) { return(ContributionInfoBusProvider.UpdateRetractionsBills(model)); }
/// <summary> /// 编辑撤稿信息 /// </summary> /// <param name="retractionsBillsEntity"></param> /// <param name="trans"></param> /// <returns></returns> public bool UpdateRetractionsBills(RetractionsBillsEntity model) { return(ContributionInfoDataAccess.Instance.UpdateRetractionsBills(model)); }
/// <summary> /// 撤稿 /// </summary> /// <param name="retractionsBillsEntity"></param> /// <returns></returns> public bool DraftContribution(RetractionsBillsEntity model) { return(ContributionInfoDataAccess.Instance.DraftContribution(model)); }