| | |
| | | /// </summary> |
| | | [Route("QC_CustomerAppealReport/QC_InspectionFormReport")] |
| | | [HttpGet] |
| | | public object QC_InspectionFormReport(string sWhere) |
| | | public object QC_InspectionFormReport(string sWhere,string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | if (sWhere == null || sWhere == "") { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "鏃犳煡璇㈡潯浠讹紒"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //ds = oCN.RunProcReturn("exec h_p_QC_InspectionFormReport '" + Year + "','" + DeptName + "'", "h_p_QC_InspectionFormReport"); |
| | | Dictionary<object, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<object, object>>(sWhere); |
| | | |
| | | |
| | | string HBeginDate = dic["HBeginDate"].ToString(); |
| | | string HEndDate = dic["HEndDate"].ToString(); |
| | | int limit = int.Parse(dic["limit"].ToString()); |
| | | int HQCCheckItemID = int.Parse(dic["HQCCheckItemID"].ToString()); |
| | | int HMaterID = int.Parse(dic["HMaterID"].ToString()); |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_QC_InspectionFormReport '" + HBeginDate + "','" + HEndDate + "'," + limit + "," + HQCCheckItemID + "," + HMaterID, "h_p_QC_InspectionFormReport"); |
| | | |
| | | //娣诲姞鍒楀悕 |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |