| | |
| | | } |
| | | #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] |