/// <summary>
 /// 设置稿件的责任编辑
 /// </summary>
 /// <param name="setEntity"></param>
 /// <returns></returns>
 public bool SetContributeEditor(SetContributionEditorEntity setEntity)
 {
     return ContributeSetDataAccess.Instance.SetContributeEditor(setEntity);
 }
        public ActionResult SetContributionEditor(long[] CIDArray, long AuthorID)
        {
            ExecResult execResult = new ExecResult();

            try
            {
                if (AuthorID == 0)
                {
                    execResult.result = EnumJsonResult.failure.ToString();
                    execResult.msg = "请选择责任编辑";
                }
                else if (CIDArray != null && CIDArray.Length == 0)
                {
                    execResult.result = EnumJsonResult.failure.ToString();
                    execResult.msg = "请选择要设置的稿件";
                }
                else
                {
                    SetContributionEditorEntity setEntity = new SetContributionEditorEntity();
                    setEntity.JournalID = JournalID;
                    setEntity.AuthorID = AuthorID;
                    setEntity.CIDArray = CIDArray;
                    IContributionFacadeService service = ServiceContainer.Instance.Container.Resolve<IContributionFacadeService>();
                    execResult = service.SetContributeEditor(setEntity);
                }
            }
            catch (Exception ex)
            {
                execResult.result = EnumJsonResult.error.ToString();
                execResult.msg = "设置稿件责任编辑出现异常:" + ex.Message;
                WKT.Log.LogProvider.Instance.Error("设置稿件责任编辑出现异常:" + ex.Message);
            }

            return Content(JsonConvert.SerializeObject(execResult));
        }
 /// <summary>
 /// 设置稿件的责任编辑
 /// </summary>
 /// <param name="setEntity"></param>
 /// <returns></returns>
 public bool SetContributeEditor(SetContributionEditorEntity setEntity)
 {
     return ContributeSetBusProvider.SetContributeEditor(setEntity);
 }
        /// <summary>
        /// 设置稿件的责任编辑
        /// </summary>
        /// <param name="setEntity"></param>
        /// <returns></returns>
        public bool SetContributeEditor(SetContributionEditorEntity setEntity)
        {
            bool flag = false;
            DbCommand cmd = db.GetStoredProcCommand("UP_SetContributionEditor");

            db.AddInParameter(cmd, "@JournalID", DbType.Int64, setEntity.JournalID);
            db.AddInParameter(cmd, "@CIDArray", DbType.String, string.Join(",", setEntity.CIDArray));
            db.AddInParameter(cmd, "@AuthorID", DbType.Int64, setEntity.AuthorID);

            try
            {
                db.ExecuteNonQuery(cmd);
                flag = true;
            }
            catch (SqlException sqlEx)
            {
                throw sqlEx;
            }
            return flag;
        }
 /// <summary>
 /// 设置稿件的责任编辑
 /// </summary>
 /// <param name="setEntity"></param>
 /// <returns></returns>
 public ExecResult SetContributeEditor(SetContributionEditorEntity setEntity)
 {
     HttpClientHelper clientHelper = new HttpClientHelper();
     ExecResult execResult = clientHelper.PostAuth<ExecResult, SetContributionEditorEntity>(GetAPIUrl(APIConstant.CONTRIBUTION_SETCONTRIBUTEEDITOR), setEntity);
     return execResult;
 }