| | |
| | | /// PPM绩æè¶å¿å¾æ¥è¡¨ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("QC_QualityReportsController/GetQC_PPMReport_Json")] |
| | | [Route("QC_CustomerAppealReport/GetQC_PPMReport_Json")] |
| | | [HttpGet] |
| | | public object GetQC_PPMReport_Json(string sWhere) |
| | | { |
| | |
| | | Dictionary<object, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<object, object>>(sWhere); |
| | | |
| | | string HYear = dic["HYear"].ToString();//å¹´ |
| | | string HDeptID = dic["HDeptID"].ToString();//é¨é¨ |
| | | string HMonth = dic["HMonth"].ToString();//æ |
| | | string HSupID = dic["HSupID"].ToString();//ä¾åºå |
| | | string HDivisionName = dic["HDivisionName"].ToString();//äºä¸é¨ |
| | | string HProject = dic["HProject"].ToString();//项ç®å· |
| | | string HBatchWork = dic["HBatchWork"].ToString();//æ¯å¦é产 |
| | | string HDivisionName = dic["HDivisionName"].ToString();//äºä¸é¨ |
| | | string HDeptID = dic["HDeptID"].ToString();//é¨é¨ |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_QC_PPMReport '" + HYear.ToString() + "'," + HDeptID.ToString() + ",'" + HProject + "','" + HBatchWork + "','" + HDivisionName + "'", "h_p_QC_PPMReport"); |
| | | ds = oCN.RunProcReturn("exec h_p_QC_PPMReport '" + HYear + "','" + HMonth + "','" + HDivisionName + "','" + HProject + "','" + HBatchWork + "','" + HDeptID + "','" + HSupID + "'", "h_p_QC_PPMReport"); |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | |
| | | string HBeginDate = dic["HBeginDate"].ToString(); |
| | | string HEndDate = dic["HEndDate"].ToString(); |
| | | string HBatchNo = dic["HBatchNo"].ToString();//æ¹æ¬¡å· |
| | | string HBatchNo1 = dic["HBatchNo1"].ToString();//IDå· |
| | | string HProject = dic["HProject"].ToString();//项ç®å· |
| | | string HBatchWork = dic["HBatchWork"].ToString();//æ¯å¦é产 |
| | | string HDivisionName = dic["HDivisionName"].ToString();//äºä¸é¨ |
| | |
| | | string HReceiveMan = dic["HReceiveMan"].ToString();//æä½å |
| | | string HEquipNumber = dic["HEquipNumber"].ToString();//设å¤ç¼ç |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_QC_QualityDailyReprot '" + HBeginDate + "','" + HEndDate + "','" + HBatchNo + "','" + HProject + "','" + HBatchWork + "','" + HDivisionName + "','" + HProcName + "','" + HReceiveMan + "','" + HEquipNumber + "'", "h_p_QC_QualityDailyReprot"); |
| | | ds = oCN.RunProcReturn("exec h_p_QC_QualityDailyReprot '" + HBeginDate + "','" + HEndDate + "','" + HBatchNo + "','" + HBatchNo1 + "','" + HProject + "','" + HBatchWork + "','" + HDivisionName + "','" + HProcName + "','" + HReceiveMan + "','" + HEquipNumber + "'", "h_p_QC_QualityDailyReprot"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |