| | |
| | | private WebS.WebService1 oWebs = new WebS.WebService1(); |
| | | |
| | | #region äº§éæ±æ¥å表 |
| | | [Route("Sc_MESProductReportStepBill/Get_Sc_MESProductReportBillList")] |
| | | [Route("Sc_MESProductReportStepBill/Get_Sc_MESProductReportBillListxxxx")] |
| | | [HttpGet] |
| | | public object Get_Sc_MESProductReportBillList(string sWhere) |
| | | public object Get_Sc_MESProductReportBillListxxxx(string sWhere) |
| | | { |
| | | try |
| | | { |
| | |
| | | #endregion |
| | | |
| | | #region äº§éæ±æ¥ç¼è¾è·åæ°æ® |
| | | [Route("Sc_MESProductReportStepBill/Get_Sc_MESProductReportEditBillListxxxx")] |
| | | [HttpGet] |
| | | public object Get_Sc_MESProductReportEditBillListxxxx(string linterid, string HICMOInID, string HICMOEnID) |
| | | { |
| | | try |
| | | { |
| | | //æ ¹æ®éæ©èµæºIDè·åå½åç产工åã责任人 |
| | | ds=oCN.RunProcReturn("select * from h_v_IF_ICMOBillProcessWorkQty_Tmp where HInterID='" + linterid + "' and HICMOInterID='" + HICMOInID + "' and HICMOEntryID='" + HICMOEnID + "'", "h_v_IF_ICMOBillProcessWorkQty_Tmp"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åèµæºç»å®æ°æ®æåï¼"; |
| | | objJsonResult.data = ds; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ææ èµæºç»å®ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.Message.ToString(); |
| | | objJsonResult.data = null; |
| | | |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | #endregion |
| | | |
| | | #region äº§éæ±æ¥åè¡¨æ° |
| | | [Route("Sc_MESProductReportStepBill/Get_Sc_MESProductReportBillList")] |
| | | [HttpGet] |
| | | public object Get_Sc_MESProductReportBillList(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | //夿æ¯å¦ææ¥è¯¢æé |
| | | if (!DBUtility.ClsPub.Security_Log("MES_ProcExchReport_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æéæ¥è¯¢!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_IF_ICMOBillWorkQtyStatus_Tmp " + sWhere + "order by åæ®å· desc", "h_v_IF_ICMOBillWorkQtyStatus_Tmp"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_IF_ICMOBillWorkQtyStatus_Tmp where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_IF_ICMOBillWorkQtyStatus_Tmp"); |
| | | } |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ¥è¯¢æ°æ®æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region äº§éæ±æ¥ç¼è¾è·åæ°æ®æ° |
| | | [Route("Sc_MESProductReportStepBill/Get_Sc_MESProductReportEditBillList")] |
| | | [HttpGet] |
| | | public object Get_Sc_MESProductReportEditBillList(string linterid, string HICMOInID, string HICMOEnID) |
| | |
| | | try |
| | | { |
| | | //æ ¹æ®éæ©èµæºIDè·åå½åç产工åã责任人 |
| | | ds=oCN.RunProcReturn("select * from h_v_IF_ICMOBillProcessWorkQty_Tmp where HInterID='" + linterid + "' and HICMOInterID='" + HICMOInID + "' and HICMOEntryID='" + HICMOEnID + "'", "h_v_IF_ICMOBillProcessWorkQty_Tmp"); |
| | | ds = oCN.RunProcReturn("select * from h_v_IF_ICMOBillWorkQtyStatus_Tmp where HInterID='" + linterid + "' and HICMOInterID='" + HICMOInID + "' and HICMOEntryID='" + HICMOEnID + "'", "h_v_IF_ICMOBillWorkQtyStatus_Tmp"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | |