yangle
2024-01-15 b07daff9a51ce707cbff1db7d3002f2846ba77ad
WebAPI/Controllers/»ù´¡×ÊÁÏ/»ù´¡×ÊÁÏ/Xt_FastICSchemeController.cs
@@ -223,6 +223,45 @@
        }
        #endregion
        #region è®¾ç½®ä¸ºé»˜è®¤æ–¹æ¡ˆ
        /// <summary>
        /// è®¾ç½®ä¸ºé»˜è®¤æ–¹æ¡ˆ
        ///参数:string sql。
        ///返回值:object。
        /// </summary>
        [Route("Xt_FastICScheme/SetDefaultScheme")]
        [HttpGet]
        public object SetDefaultScheme(Int64 HInterID,string user)
        {
            try
            {
                oCN.BeginTran();
                oCN.RunProc("update Xt_FastICSchemeMain set HUseingFlag = 0");
                oCN.RunProc("update Xt_FastICSchemeMain set HUseingFlag = 1 where HInterID = " + HInterID);
                oCN.Commit();
                objJsonResult.code = "0";
                objJsonResult.count = 1;
                objJsonResult.Message = "设置成功!";
                objJsonResult.data = 1;
                return objJsonResult;
            }
            catch (Exception e)
            {
                oCN.RollBack();
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.Message;
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region è¿‡æ»¤æ–¹æ¡ˆåˆ é™¤åŠŸèƒ½
        [Route("Xt_FastICScheme/DeltetXt_FastICScheme")]
        [HttpGet]