| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //夿æ¯å¦ææ¥çå
¨é¨çç»çæé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_Group_AllQuery", 3, false, HMaker)) |
| | | { |
| | | //å¦ææ²¡æè¿ä¸ªæé |
| | | //æ ¹æ®ç¨æ·å¯¹åºçç»çå
³ç³»ï¼è¿æ»¤æ¡ä»¶ä¸å¢å åªæ¾ç¤ºå¯¹åºççç» |
| | | DataSet dsHitemID = oCn.RunProcReturn("exec h_p_Gy_GetSQLGroupByUser '" + HMaker + "'", "h_p_Gy_GetSQLGroupByUser"); |
| | | string sqlGroupID = DBUtility.ClsPub.isStrNull(dsHitemID.Tables[0].Rows[0]["HBack"]); |
| | | if (sqlGroupID == "" || sqlGroupID == null)//å¦ææ²¡æç»å®çç»å让ä»çä¸å°ææ |
| | | { |
| | | sqlGroupID = "and 1 = 2"; |
| | | } |
| | | sqlGroupID = sqlGroupID.Replace("HitemID", "HGroupID");//æ¿æ¢sqlè¯å¥ä¸çHitemID |
| | | sWhere = sWhere + sqlGroupID; |
| | | } |
| | | //è¿ååè¡¨ä¿¡æ¯ |
| | | ds = oCn.RunProcReturn("select * from h_v_Pay_GroupBalBillList where 1=1 " + sWhere + " order by hmainid desc", "h_v_Pay_GroupBalBillList"); |
| | | List<object> columnNameList = new List<object>(); |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¥èµç»ç®åé使¹éå®¡æ ¸äºç |
| | | /// <summary> |
| | | /// å·¥èµç»ç®åæ¹éå®¡æ ¸äºç |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Pay_GroupBalBillController/CheckAllByTimeAndGroup")] |
| | | [HttpGet] |
| | | public object CheckAllByTimeAndGroup(string sWhere, string HMaker) |
| | | { |
| | | try |
| | | { |
| | | //夿æé |
| | | if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 3, false, HMaker)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¨æ²¡æè¯¥æ¨¡åæé,请ä¸ç®¡çåèç³»ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCn.RunProcReturn($"exec h_p_Pay_GroupBalBill_CheckAllByTimeAndGroup " + sWhere + "", "h_p_Pay_GroupBalBill_CheckAllByTimeAndGroup"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå¨è¿ç¨å¤æå¤±è´¥ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æåï¼"; |
| | | objJsonResult.data = ds.Tables[0].Rows[0]["HRemark"]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¥è¯¢å表信æ¯å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¥èµç»ç®åï¼éä½ï¼ å
³é/åå
³é |
| | | /// <summary> |