| | |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¥ç¨é¡¹ç® ä»»å¡å®è£
è´¹ ãä»»å¡èæ ¸è´¹ãä»»å¡éå±è´¹ãä»»å¡å·¥è´¹ 鿩项ç®è´¹ç¨åç±»è¿å 对åºåç±»ç项ç®è´¹ç¨ |
| | | [Route("PM_ProjectBill/getGy_Project")] |
| | | [HttpGet] |
| | | public object getGy_Project(string HItemID) |
| | | { |
| | | try |
| | | { |
| | | |
| | | ds = oCN.RunProcReturn("select top 1 * from Gy_ProjectMoney where HProjectMoneyClassID='"+HItemID+ "' and isnull(HCheckEmp,'') !='' and HStopflag=0 order by HItemID desc", "Gy_ProjectMoney"); |
| | | |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "该项ç®è´¹ç¨åç±»ä¸ç项ç®è´¹ç¨æ æ°æ®"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region æåº¦é¶æ®µè®¡åä¿å/ç¼è¾ |
| | | /// <summary> |
| | | /// ä¿åæåº¦é¶æ®µè®¡å |