| | |
| | | { |
| | | error += $"没æç¬¦åæ¡ä»¶å¾éå®è®¢åä¿¡æ¯ï¼å®¢æ·è®¢åå·:{ tb2.Rows[i]["客æ·è®¢åå·"].ToString()},产å代ç :{tb2.Rows[i]["ç©æç¼ç "].ToString()}"; |
| | | } |
| | | } |
| | | if (error.Length > 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = ErrorResult += $"Excel模æ¿åå¨é误ï¼{error}\r\n"; ; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (error.Length > 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = ErrorResult += $"Excel模æ¿åå¨é误ï¼è¡æ°{i + 1}:{error}\r\n"; ; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | tb2.Rows[i]["HMaterID"] = ds.Tables[0].Rows[0]["HMaterID"].ToString(); |
| | | tb2.Rows[i]["SeOrderHInterID"] = ds.Tables[0].Rows[0]["FID"].ToString();//éå®è®¢å主id |
| | | tb2.Rows[i]["SeOrderHEntryID"] = ds.Tables[0].Rows[0]["FENTRYID"].ToString();//éå®è®¢ååid |
| | | } |
| | | //æ¥è¯¢éå®è¡¨å¤æææ²¡æéå®è®¢åä¿¡æ¯ |
| | | for (int i = 0; i < tb2.Rows.Count; i++) |
| | | { |
| | | |
| | | tb2.Rows[i]["HMaterID"] = ds.Tables[0].Rows[0]["HMaterID"].ToString(); |
| | | tb2.Rows[i]["SeOrderHInterID"] = ds.Tables[0].Rows[0]["FID"].ToString();//éå®è®¢å主id |
| | | tb2.Rows[i]["SeOrderHEntryID"] = ds.Tables[0].Rows[0]["FENTRYID"].ToString();//éå®è®¢ååid |
| | | |
| | | //æ¥æ¾æ¯å¦åå¨å¯¹åºå货计åå·¥å |
| | | var dt = oCN.RunProcReturn($"select * from Xs_SendGoodsPlanBillMain where HSeOrderInterID in({ds.Tables[0].Rows[0]["FID"].ToString()}) and HSeOrderEntryID in({ds.Tables[0].Rows[0]["FENTRYID"].ToString()})", "Xs_SendGoodsPlanBillMain"); |
| | | if (dt.Tables[0].Rows.Count > 0) |