| | |
| | | rac.Deliver_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Arrive_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Used_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = addressNameApiMap.get(oppMap.get(InquiryNoStr).SAP_Province__c); |
| | |
| | | rac.Deliver_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Arrive_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Used_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = addressNameApiMap.get(oppMap.get(InquiryNoStr).SAP_Province__c); |
| | |
| | | // update by vivek srart 2020-02-13 |
| | | // orderdetInfo.Account_province_txt__c = accsMap.get(infoH.EndUserNo).OCM_man_province_txt__c; |
| | | // update by vivek end 2020-02-13 |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | orderdetInfo.Sterilization_limit__c = null; |
| | | }else{ |
| | | orderdetInfo.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // orderdetInfo.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | //orderdetInfo.Bar_Code__c = dnInfo.Barcode; |
| | | orderdetInfo.DeliveryNote__c = infoH.DeliveryNote; |
| | | // update by Gaozw start 20200514 |
| | |
| | | rac.Asset_Model_No__c = prdSearch.Asset_Model_No__c; |
| | | rac.Consumable_order_minor__c = order.Id; |
| | | rac.Deliver_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = accsMap.get(infoH.EndUserNo).Id; |
| | |
| | | } |
| | | rac.Asset_Model_No__c = prdSearch.Asset_Model_No__c; |
| | | rac.Deliver_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = accsMap.get(infoH.EndUserNo).Id; |
| | |
| | | rac.Deliver_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Arrive_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | rac.Used_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = addressNameApiMap.get(oppMap.get(InquiryNoStr).SAP_Province__c); |
| | |
| | | // rac.Arrive_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // rac.Used_date__c = NFMUtil.parseStr2Date(infoH.DeliveryDate); |
| | | // 自动修改最终用户 update by vivek end |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 start |
| | | if (dnInfo.ValidTo !=null && dnInfo.ValidTo.length() == 8 |
| | | && Integer.valueOf(dnInfo.ValidTo.substring(0, 4)) <= Integer.valueOf(Date.today().Year())) { |
| | | rac.Sterilization_limit__c = null; |
| | | }else{ |
| | | rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | } |
| | | // rac.Sterilization_limit__c = NFMUtil.parseStr2Date(dnInfo.ValidTo); |
| | | // gzw DB202301244151 保修期限验证日期可行性调整 end |
| | | rac.Consumable_product__c = prdSearch.Id; |
| | | rac.Bar_Code__c = dnInfo.Barcode; |
| | | rac.Used_account__c = oppMap.get(InquiryNoStr).Agency1__c; |