| | |
| | | // sWhere += $" and HEmpID in (select HEmpID from Gy_Czygl where Czymc='{user}' )"; |
| | | //} |
| | | //string sql = "select * from h_v_IF_EntrustOrderBillList where 1 = 1 " + sWhere; |
| | | //ds = oCN.RunProcReturn(sql, "h_v_IF_EntrustOrderBillList"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0 || ds == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无记录"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |