| | |
| | | throw new Exception($"æ²¡ææ¾å°å¯¹ä»»å¡æçå·ï¼ã{taskInfo.task_barcode}ã对åºç空æçåºåºè®°å½"); |
| | | //0ä¸åæ ¼,1åæ ¼ |
| | | int weighingResult = 0; |
| | | decimal Standard_value_NumResult = 0; //æ åå¼è®¡ç®ç»æ |
| | | Dt_weighing_standards standars = Dt_weighing_standardsRepository.Instance.FindFirst(r => r.weighing_materiel_id == boxDetail.boxdtl_materielid && |
| | | r.weighing_bearing_id == boxDetail.boxdtl_type && r.weighing_manufacturer == goodsInfo.mesInfo_madeUnit && r.weighing_type == goodsInfo.mesInfo_standard); |
| | | if (null != standars) |
| | |
| | | //å·®å¼å¼ |
| | | // decimal differencWeiging = standars.weighing_standard_value.GetValueOrDefault() - currentWeighing; |
| | | decimal differencWeiging = int.Parse(goodsInfo.mesInfo_bak_3) - currentWeighing; // è佼修æ |
| | | Standard_value_NumResult = differencWeiging; // æ åå¼è®¡ç®ç»æèµå¼ |
| | | if (differencWeiging < 0) |
| | | { |
| | | if (standars.weighing_positive_value >= -differencWeiging) |
| | |
| | | conDetail.containerdtl_number = goodsInfo.mesInfo_number; |
| | | conDetail.containerdtl_goodsCode = goodsInfo.mesInfo_qrCode; |
| | | conDetail.Standard_value = goodsInfo.mesInfo_bak_3; // èä½¼å ä¸è¿ä¸ª |
| | | conDetail.Placeoforigin = goodsInfo.mesInfo_bak_4; // èä½¼å ä¸è¿ä¸ª |
| | | conDetail.Standard_value_NumResult = Standard_value_NumResult.ToString(); |
| | | |
| | | conDetail.containerdtl_goodsWeight = "0"; // èä½¼å ä¸äºè¿ä¸ªif 92 - 100è¡ |
| | | if (standars != null) |