| | |
| | | ds = oCN.RunProcReturn("Select HBarCode barcode,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType from Gy_BarCodeBill where HSourceBillNo='" + list.billno.ToString().Trim() + "' Order by HItemID ", "Gy_BarCodeBill"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | LogService.Write("å½åè®¢åæ ç»å®æ¡ç "); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "å½åè®¢åæ ç»å®æ¡ç !"; |
| | | objJsonResult.data = null; |
| | |
| | | if (strList.Count > 0) |
| | | { |
| | | string Str = String.Join(",", strList.ToArray()); |
| | | LogService.Write("æ¡ç :" + Str.ToString() + " ä¸å
å«å¨è®¢å:" + list.billno + "ä¸!"); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "æ¡ç :" + Str.ToString() + " ä¸å
å«å¨è®¢å:" + list.billno + "ä¸!"; |
| | | objJsonResult.data = null; |
| | |
| | | bool IsBarCodePack = oBill.IsBarCodePack(list.packagebarcode); |
| | | if (IsBarCodePack == false) |
| | | { |
| | | LogService.Write("ç®±ç å·²åå¨,ä¸è½éå¤ç»å®ï¼"); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "ç®±ç å·²åå¨,ä¸è½éå¤ç»å®ï¼"; |
| | | objJsonResult.data = null; |
| | |
| | | ds = oCN.RunProcReturn("Select * from Gy_BarCodeBill where HBarCode='" + list.packagebarcode.ToString().Trim() + "' and HStopflag='1'", "Gy_BarCodeBill"); |
| | | if (ds != null && ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | LogService.Write("æ¤ç®±æ¡ç å·²ä½åº"); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "æ¤ç®±æ¡ç å·²ä½åº"; |
| | | objJsonResult.data = null; |
| | |
| | | bool IsBarCode = oBill.IsBarCodePack(list.barcodes[i].barcode); |
| | | if (IsBarCodePack == false) |
| | | { |
| | | LogService.Write("æ¡ç å·²åå¨,ä¸è½éå¤ç»å®ï¼"); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "æ¡ç å·²åå¨,ä¸è½éå¤ç»å®ï¼"; |
| | | objJsonResult.data = null; |
| | |
| | | } |
| | | if (bResult) |
| | | { |
| | | LogService.Write("æäº¤æåç®±æ¡ç ï¼" + list.packagebarcode); |
| | | Log.LogSaveInfo("æäº¤æåç®±æ¡ç ï¼" + list.packagebarcode); //è®°å½æäº¤æ°æ® |
| | | objJsonResult.status = 0; |
| | | objJsonResult.msg = "success"; |
| | | objJsonResult.data = null; |
| | | Log.LogSaveInfo("æäº¤æåç®±æ¡ç ï¼" + list.packagebarcode); //è®°å½æäº¤æ°æ® |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | LogService.Write("ä¿å失败ï¼" +DBUtility.ClsPub.sExeReturnInfo); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | LogService.Write("ç®±æ¡ç ç»å®å
³ç³»æäº¤æ¥å£ æåºå¼å¸¸" + e.Message.ToString()); |
| | | objJsonResult.status = -1; |
| | | objJsonResult.msg = e.Message; |
| | | objJsonResult.data = null; |