| | |
| | | public DLL.ClsPay_SingleBalBill BillOld0 = new DLL.ClsPay_SingleBalBill(); // |
| | | |
| | | /// <summary> |
| | | /// è¿åå·¥èµç»ç®ä¸ªäººå表 |
| | | /// è¿åå·¥èµç»ç®ä¸ªäººå表(个人) |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | |
| | | return objJsonResult; |
| | | } |
| | | ds = Sc_GetSingleBalBill(sWhere); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è¿åè®°å½æåï¼"; |
| | |
| | | { |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Pay_SingleBalBillList order by æ¥æ desc", "h_v_Pay_SingleBalBillList"); |
| | | return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Pay_SingleBalBillList order by hmainid desc", "h_v_Pay_SingleBalBillList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Pay_SingleBalBillList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + "order by æ¥æ desc"; |
| | | string sql = sql1 + sWhere + " order by hmainid desc"; |
| | | return new SQLHelper.ClsCN().RunProcReturn(sql, "h_v_Pay_SingleBalBillList"); |
| | | } |
| | | |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæå·¥èµç»ç® |
| | | /// </summary> |
| | | /// <param name="HBeginDate">å¼å§æ¥æ</param> |
| | | /// <param name="HEndDate">ç»ææ¥æ</param> |
| | | /// <param name="HDeptID">é¨é¨ID</param> |
| | | /// <returns></returns> |
| | | [Route("Pay_SingleBalBill/GenerateSalary")] |
| | | [HttpGet] |
| | | public object GenerateSalary(string HBeginDate, string HEndDate,int HDeptID) |
| | | { |
| | | try |
| | | { |
| | | string sql = $"exec h_p_Gy_GenerateSalary '{HBeginDate}','{HEndDate}','{HDeptID}' "; |
| | | oCN.RunProc(sql); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "çææå"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | // |
| | | } |
| | | } |