| | |
| | | } |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_MouldFileList " + sWhere + "order by 日期 desc", "h_v_Gy_MouldFileList"); |
| | | ds = oCN.RunProcReturn("select * from h_v_Gy_MouldFileList " + sWhere + "order by 条码编号 desc", "h_v_Gy_MouldFileList"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Gy_MouldFileList where 1 = 1 "; |
| | | string sql = sql1 + sWhere + "order by 日期 desc"; |
| | | string sql = sql1 + sWhere + "order by 条码编号 desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Gy_MouldFileList"); |
| | | } |
| | | |
| | |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn($"select * from Gy_BarCodeBill where HBarCode='{HbarCode}' ", "Gy_Material"); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "成功"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "查找失败!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "成功"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | catch (Exception) |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | [Route("Gy_BarCodeBillList/GetBarCodeBillPermission")] |
| | | [HttpGet] |
| | | public object GetBarCodeBillPermission(string user) |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_BarCodeBillList_Print", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无权限查询!"; |
| | | objJsonResult.data = 0; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |