| | |
| | | } |
| | | #endregion |
| | | |
| | | #region è´¨éæ¨¡å 设å¤å·¥èºåæ°è¶å¿å¾ æ ¹æ®æµè½¬å¡è·å设å¤+模å
· |
| | | #region è´¨éæ¨¡å 设å¤å·¥èºåæ°è¶å¿å¾ æ ¹æ®æµè½¬å¡+å·¥åº è·åè®¾å¤ |
| | | |
| | | [Route("QC_CustomerAppealReport/Get_EquipList")] |
| | | [HttpGet] |
| | | public object Get_EquipList(string HProcExchBillNo, string user) |
| | | public object Get_EquipList(string HProcExchBillNo,string HProcID, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("select distinct b.HInterID HItemID,b.HEquipFileNumber HEquipFileNumber,b.HName HName,d.HMouldNo HMouldNumber,d.HName HMouldName " + |
| | | " from SB_EquipICMOTechParamBillMain a left join Gy_EquipFileBillMain b on a.HEquipID=b.HInterID" + |
| | | " left join Sc_ICMOBillStatus_Tmp c on a.HProcExchInterID = c.HSourceInterID and a.HProcExchEntryID = c.HSourceEntryID and a.HProcID = c.HProcID" + |
| | | " left join Gy_MouldFileMain d on c.HMouldID = d.HInterID where HProcExchBillNo='" + HProcExchBillNo + "'", "SB_EquipICMOTechParamBillMain"); |
| | | ds = oCN.RunProcReturn("select isnull(c.HInterID,0)设å¤id,isnull(c.HEquipFileNumber,'') 设å¤ä»£ç ,isnull(c.HName,'') 设å¤åç§°,b.HRelBeginDate å¼å§æ¶é´,b.HRelEndDate ç»ææ¶é´ from Sc_ProcessExchangeBillMain a " + |
| | | " inner join Sc_ProcessExchangeBillSub b on a.HInterID=b.HInterID" + |
| | | " left join Gy_EquipFileBillMain c on b.HSourceID=c.HSourceID" + |
| | | " where a.HBillNo='" + HProcExchBillNo + "'and b.HProcID='"+ HProcID + "' and b.HSourceID !=0 ", "Sc_ProcessExchangeBillMain"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | |
| | | Dictionary<object, object> dic = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<object, object>>(sWhere); |
| | | |
| | | string HProcExchBillNo = dic["HProcExchBillNo"].ToString(); |
| | | string HProcName = dic["HProcName"].ToString(); |
| | | string HProcID = dic["HProcID"].ToString(); |
| | | string HTechParamName = dic["HTechParamName"].ToString(); |
| | | string HEquipName = dic["HEquipName"].ToString(); |
| | | string HEquipID = dic["HEquipID"].ToString(); |
| | | string HBeginDate = dic["HBeginDate"].ToString(); |
| | | string HEndDate = dic["HEndDate"].ToString(); |
| | | |
| | | if ((HProcExchBillNo == null || HProcExchBillNo == "")&&(HProcName == null || HProcName == "") && (HTechParamName == null || HTechParamName == "") && (HEquipName == null || HEquipName == "")) |
| | | if ((HProcExchBillNo == null || HProcExchBillNo == "")&&(HProcID == null || HProcID == "") && (HTechParamName == null || HTechParamName == "") && (HEquipID == null || HEquipID == "")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_SB_EquipICMOTechParamBillList '" + HProcExchBillNo + "','" + HProcName + "','" + HTechParamName + "','"+HEquipName+"','"+Type+"'", "h_p_SB_EquipICMOTechParamBillList"); |
| | | ds = oCN.RunProcReturn("exec h_p_SB_EquipICMOTechParamBillList '" + HProcExchBillNo + "','" + HProcID + "','" + HTechParamName + "','"+ HEquipID + "','" + HBeginDate + "','" + HEndDate + "','" + Type+"'", "h_p_SB_EquipICMOTechParamBillList"); |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | |
| | | //ç¹å»ä¸»è¡¨æ ¼çæµè½¬å¡,æ¥è¯¢åè¡¨æ ¼æ°æ® |
| | | [Route("QC_CustomerAppealReport/Get_QC_FiveMenOneRingList_Right")] |
| | | [HttpGet] |
| | | public object Get_QC_FiveMenOneRingList_Right(string linterid, string user) |
| | | public object Get_QC_FiveMenOneRingList_Right(string linterid,string SNs, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_QC_FiveMenOneRingList_Query '" + linterid + "'", "h_p_QC_FiveMenOneRingList_Query"); |
| | | ds = oCN.RunProcReturn("exec h_p_QC_FiveMenOneRingList_Query '" + linterid + "','" + SNs + "'", "h_p_QC_FiveMenOneRingList_Query"); |
| | | |
| | | // éåææè¡¨ |
| | | foreach (DataTable table in ds.Tables) |
| | |
| | | |
| | | [Route("QC_CustomerAppealReport/Get_EquipICMOTechParamList")] |
| | | [HttpGet] |
| | | public object Get_EquipICMOTechParamList(string linterid, string user) |
| | | public object Get_EquipICMOTechParamList(string linterid, string HProcID, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn(@"select a.HProcExchBillNo,g.HEquipFileNumber,g.HName 设å¤åç§°,b.HName ç©æåç§°,h.HName å·¥åºåç§° from SB_EquipICMOTechParamBillMain a left join Gy_Material b on a.HMaterID = b.HItemID |
| | | left join Gy_Source e on a.HSourceID = e.HItemID left join Gy_EquipFileBillMain g on a.HEquipID = g.HInterID left join Gy_Process h on a.HProcID = h.HItemID", "SB_EquipICMOTechParamBillMain"); |
| | | ds = oCN.RunProcReturn("select a.HBillNo å·¥åºæµè½¬å¡å·,e.HInterID 设å¤id,e.HEquipFileNumber 设å¤ä»£ç ,e.HName 设å¤åç§°,d.HName çäº§èµæº,a.HMaterID ç©æid,c.HName ç©æåç§°,b.HProcID å·¥åºid,f.HName å·¥åºåç§°,b.HRelBeginDate å¼å§æ¶é´,b.HRelEndDate ç»ææ¶é´ " + |
| | | "from Sc_ProcessExchangeBillMain a inner join Sc_ProcessExchangeBillSub b on a.HInterID=b.HInterID " + |
| | | "left join Gy_Material c on a.HMaterID = c.HItemID left join Gy_Source d on b.HSourceID = d.HItemID " + |
| | | "left join Gy_EquipFileBillMain e on b.HSourceID = e.HSourceID left join Gy_Process f on b.HProcID = f.HItemID where a.HInterID='"+linterid+ "' and b.HProcID='"+HProcID+"'", "SB_EquipICMOTechParamBillMain"); |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region è´¨éæ¨¡å 设å¤å·¥èºåæ°è¶å¿å¾ æ ¹æ®ç©æ+设å¤+å·¥åº è·å 产åå·¥èºåæ°æ¸
å å·¥èºåæ° |
| | | |
| | | [Route("QC_CustomerAppealReport/Get_TechParamList")] |
| | | [HttpGet] |
| | | public object Get_TechParamList(string HMaterID, string HProID, string HEquId, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("select c.HName å·¥èºåæ°,b.HDataForm ééæ¥æº from Gy_MaterialTechParamBillMain a " + |
| | | "inner join Gy_MaterialTechParamBillSub b on a.HInterID = b.HInterID " + |
| | | "left join Gy_TechnologyParameter c on b.HTechParamID = c.HItemID where a.HMaterID='" + HMaterID + "' and a.HProcID='"+ HProID + "' and a.HEquipID='"+ HEquId + "' and b.HDataForm='设å¤éé' ", "SB_EquipICMOTechParamBillMain"); |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |