| | |
| | | BillNew.omodel.HBillNo = mainList[0].HBillNo;//éå
¥typeå¾å°çåæ®å· |
| | | BillNew.omodel.HDate = HDate; |
| | | BillNew.omodel.HRemark = mainList[0].HRemark;//夿³¨ |
| | | BillNew.omodel.HRemarkSN = mainList[0].HRemarkSN;//SN夿³¨ |
| | | BillNew.omodel.HMaker = mainList[0].HMaker; |
| | | BillNew.omodel.HSourceID = ClsPub.isLong(mainList[0].HSourceID); |
| | | BillNew.omodel.HICMOInterID = ClsPub.isLong(mainList[0].HICMOInterID); |
| | |
| | | oSub.HKeyInspect = DBUtility.ClsPub.isLong(subList[i].HKeyInspect); |
| | | oSub.HInspectInstruMentID = DBUtility.ClsPub.isLong(subList[i].HInspectInstruMentID); |
| | | oSub.HInspectResult = DBUtility.ClsPub.isStrNull(subList[i].HResult); |
| | | |
| | | oSub.HQualityStdID = DBUtility.ClsPub.isLong(subList[i].HQualityStdID);//è´¨éæ å |
| | | oSub.HInspectMethodID = DBUtility.ClsPub.isLong(subList[i].HInspectMethodID);//æ£éªæ¹æ³ |
| | | oSub.HInspectBasisID = DBUtility.ClsPub.isLong(subList[i].HInspectBasisID);//æ£éªä¾æ® |
| | | oSub.HCompareSymbol = DBUtility.ClsPub.isStrNull(subList[i].HCompareSymbol);//æ¯è¾ç¬¦ |
| | | |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | #region é¦ä»¶æ£éªåæ ¹æ®æºåç±»åè·åä¿¡æ¯-æºå为工åºåºç«å |
| | | #region æ«ä»¶æ£éªåæ ¹æ®æºåç±»åè·åä¿¡æ¯-æºå为工åºåºç«å |
| | | [Route("QC_ProcessCheckBill/get_StationOutBill")] |
| | | [HttpGet] |
| | | public object get_StationOutBill(string HInterID, string user) |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¥åºæ£éªåæ ¹æ®æºåç±»åè·åä¿¡æ¯-æºå为ç产订å |
| | | [Route("QC_ProcessCheckBill/get_ICMOBill")] |
| | | [HttpGet] |
| | | public object get_ICMOBill(string HICMOInterID, string HICMOEntryID, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | string sReturn = ""; |
| | | string sql = ""; |
| | | if (oSystemParameter.ShowBill(ref sReturn)) |
| | | { |
| | | switch (oSystemParameter.omodel.QC_FirstPieceCheckBill_QCSchemeSource) |
| | | { |
| | | case "ç©æ": |
| | | sql = "exec h_p_QC_ProcessCheck_GetICMOBillList " + "'ç©æ','" + HICMOInterID + "','" + HICMOEntryID + "'"; |
| | | break; |
| | | case "å·¥èºè·¯çº¿": |
| | | sql = "exec h_p_QC_ProcessCheckB_GetICMOBillList " + "'å·¥èºè·¯çº¿','" + HICMOInterID + "','" + HICMOEntryID + "'"; |
| | | break; |
| | | } |
| | | |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn(sql, "h_p_QC_ProcessCheckB_GetICMOBillList"); |
| | | |
| | | //æ·»å åå |
| | | 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 = "æ¥è¯¢æ°æ®å¼å¸¸ï¼è¯·ä¸ç®¡çåèç³»ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |