| | |
| | | consumableorderdetailsRecordsview.add(recordsdummy); |
| | | } |
| | | |
| | | // Integer count = recordsdummy.size() / 1000; |
| | | // Integer last = recordsdummy.size() - (1000*count); |
| | | // Integer count = recordsdummy.size() / 1000; |
| | | // Integer last = recordsdummy.size() - (1000*count); |
| | | |
| | | // for(Integer i = 0; i < count ; i++){ |
| | | // List<ConsumableorderdetailsInfo> tempList = new List<ConsumableorderdetailsInfo>(); |
| | |
| | | HosErrorMap = new Map<String,String>(); |
| | | //add by rentx 2021-01-27 end |
| | | |
| | | noboxBarcodeList.clear(); |
| | | //再检索项目清空 |
| | | ConsumableorderdetailsRecordserror = new List<ConsumableorderdetailsInfo>(); |
| | | ErrorIdMap = new Map<String, String>(); |
| | | ErrorIdMap.clear(); |
| | | AllMap = new Map<String, String>(); |
| | | AllMap.clear(); |
| | | ExistIdMap = new Map<String, String>(); |
| | | ExistIdMap.clear(); |
| | | consumableorderdetails2Insert = new List<Consumable_order_details2__c>(); |
| | | ConsumableorderdetailsRecordsdummy = new List<ConsumableorderdetailsInfo>(); |
| | | /*if(EsetId != null && EsetId != ''){ |
| | | noboxBarcodeList.clear(); |
| | | //再检索项目清空 |
| | | ConsumableorderdetailsRecordserror = new List<ConsumableorderdetailsInfo>(); |
| | | ErrorIdMap = new Map<String, String>(); |
| | | ErrorIdMap.clear(); |
| | | AllMap = new Map<String, String>(); |
| | | AllMap.clear(); |
| | | ExistIdMap = new Map<String, String>(); |
| | | ExistIdMap.clear(); |
| | | consumableorderdetails2Insert = new List<Consumable_order_details2__c>(); |
| | | ConsumableorderdetailsRecordsdummy = new List<ConsumableorderdetailsInfo>(); |
| | | /*if(EsetId != null && EsetId != ''){ |
| | | List<Consumable_order_details2__c> reSet1 = [SELECT Id, |
| | | Name, |
| | | Intra_Trade_List_RMB__c, |
| | |
| | | WHERE Dealer_Arrive__c = FALSE |
| | | AND Dealer_Shipment__c= FALSE |
| | | AND Dealer_Saled__c = FALSE |
| | | // gzw fix 取消产品判断为未入库 20230323 |
| | | AND Cancellation_Flag__c = false |
| | | AND Dealer_Returned__c = false |
| | | AND Bar_Code__c in :BarCodeListP |
| | | AND Dealer_Info_text__c = :accountName |
| | |
| | | } |
| | | //add by rentx 2021-01-27 end |
| | | |
| | | makeArrivedSummary(); |
| | | makeArrivedSummary(); |
| | | |
| | | |
| | | //add by rentx 20210602 start CHAN-C3K4ZQ |
| | |
| | | |
| | | } |
| | | |
| | | public void confimResultWithoutOrder() { |
| | | /*list<String> overOrderproList = new list<String>(); |
| | | public void confimResultWithoutOrder() { |
| | | /*list<String> overOrderproList = new list<String>(); |
| | | list<String> overOrderBARcodeCunList = new list<String>(); |
| | | orderProductCunMap.clear(); |
| | | orderProductArrivedCunMap.clear(); |
| | |
| | | /*orderWantArriveCunMap.put(ass.esd.Consumable_order_minor__c + ass.esd.Asset_Model_No__c,orderWantArriveCunMap.get(ass.esd.Consumable_order_minor__c + ass.esd.Asset_Model_No__c)+1); |
| | | } |
| | | return overOrderproList;*/ |
| | | } |
| | | } |
| | | |
| | | // WYIN-BLZE48盘点丢失产品增加入库方式 update by vivek 2020-03-05 start |
| | | // 虚拟盘点单消耗品明细1创建巡回 |
| | |
| | | ins.Used_date__c = Date.today(); |
| | | ins.OwnerId = arriveAccount.OwnerId; |
| | | |
| | | insDetail1.add(ins); |
| | | } |
| | | insDetail1Map.put(acc, insDetail1); |
| | | } |
| | | insert orderList; |
| | | insDetail1.add(ins); |
| | | } |
| | | insDetail1Map.put(acc, insDetail1); |
| | | } |
| | | insert orderList; |
| | | |
| | | List<Id> orderIdList = new List<Id> (); |
| | | for (Consumable_order__c co : orderList) { |
| | |
| | | insDetail1List.add(dtl1); |
| | | } |
| | | |
| | | // 明细2 |
| | | List<Consumable_order_details2__c> d2list = accountGroupMap.get(setId.Dealer_Info__r.Name + setId.Order_Owner_WorkLocal__c); |
| | | for (Consumable_order_details2__c dtl2 : d2list) { |
| | | dtl2.Send_Date__c = Date.today(); |
| | | dtl2.Consumable_Sale_order__c = null; |
| | | dtl2.Consumable_Return_order__c = null; |
| | | dtl2.Consumable_ZS_order__c = setId.Id; |
| | | //dtl2.Delivery_List_RMB__c = null; |
| | | dtl2.Return_date__c = null; |
| | | dtl2.Return_reason__c = null; |
| | | dtl2.Consumable_Shipment_order__c = setId.Id; |
| | | // 更新借调信息 add by gzw 2020-0-415 start |
| | | dtl2.Transfer_Time__c = 1; |
| | | dtl2.Agency_Transfer__c = true; |
| | | dtl2.Frist_Transfer_Agency__c = dtl2.Dealer_Info_text__c; |
| | | // 更新借调信息 add by gzw 2020-0-415 end |
| | | updDetail2List.add(dtl2); |
| | | } |
| | | } |
| | | |
| | | insert insDetail1List; |
| | | update updDetail2List; |
| | | // 明细2 |
| | | List<Consumable_order_details2__c> d2list = accountGroupMap.get( |
| | | setId.Dealer_Info__r.Name + setId.Order_Owner_WorkLocal__c |
| | | ); |
| | | for (Consumable_order_details2__c dtl2 : d2list) { |
| | | dtl2.Send_Date__c = Date.today(); |
| | | dtl2.Consumable_Sale_order__c = null; |
| | | dtl2.Consumable_Return_order__c = null; |
| | | dtl2.Consumable_ZS_order__c = setId.Id; |
| | | //dtl2.Delivery_List_RMB__c = null; |
| | | dtl2.Return_date__c = null; |
| | | dtl2.Return_reason__c = null; |
| | | dtl2.Consumable_Shipment_order__c = setId.Id; |
| | | // 更新借调信息 add by gzw 2020-0-415 start |
| | | dtl2.Transfer_Time__c = 1; |
| | | dtl2.Agency_Transfer__c = true; |
| | | dtl2.Frist_Transfer_Agency__c = dtl2.Dealer_Info_text__c; |
| | | // 更新借调信息 add by gzw 2020-0-415 end |
| | | updDetail2List.add(dtl2); |
| | | } |
| | | } |
| | | |
| | | insert insDetail1List; |
| | | update updDetail2List; |
| | | } |
| | | |
| | | //到货确认 |
| | | public PageReference ArriveGoodsConfim() { |
| | |
| | | } |
| | | } |
| | | |
| | | if (addSaleOrderList.size() > 0) { |
| | | addSaleOrderAuto(addSaleOrderList); |
| | | } |
| | | if (addSaleOrderList.size() > 0) { |
| | | addSaleOrderAuto(addSaleOrderList); |
| | | } |
| | | |
| | | if(updateconsumableorderdetails2.size() > 0){ |
| | | update updateconsumableorderdetails2; |
| | |
| | | } |
| | | } |
| | | |
| | | return BarcodeRetrunResult.size(); |
| | | } |
| | | return BarcodeRetrunResult.size(); |
| | | } |
| | | |
| | | // 单位为个的Barcode对应的出库单 |
| | | public integer Getconsumableorderdetails2Nobox(){ |
| | |
| | | // tcm end |
| | | //add by rentx 2020-10-14 end |
| | | |
| | | codcorderdetList.add(codcorderdetail); |
| | | codcorderdetList.add(codcorderdetail); |
| | | |
| | | //返品明细 |
| | | retorddetail.Return_reason__c = ass.ReturnReason; |
| | |
| | | // tcm end |
| | | //add by rentx 2020-10-14 end |
| | | |
| | | codcorderdetList.add(retorddetail); |
| | | i++; |
| | | } |
| | | codcorderdetList.add(retorddetail); |
| | | i++; |
| | | } |
| | | |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'------end------')); |
| | | // return null; |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'------end------')); |
| | | // return null; |
| | | |
| | | if(codcList.size()>0){ |
| | | ControllerUtil.updateOrderDetailsSatus( codcList ); |
| | |
| | | // ApexPages.addMessages(e); |
| | | // ApexPages.addMessages(e.getLineNumber() + ' 11111111111111111'); |
| | | |
| | | //return null; |
| | | } |
| | | //return null; |
| | | } |
| | | } |
| | | |
| | | //跳转到返品页面 |
| | | public Pagereference ToReturnGoodsPage(){ |
| | |
| | | return ref; |
| | | } |
| | | |
| | | class ConsumableorderdetailsInfo implements Comparable { |
| | | public Consumable_order_details2__c esd { get; set; } |
| | | public Product2__c Prod { get; set; } |
| | | public String ProductName { get; set; } |
| | | //public Boolean canSELECT { get; set; } |
| | | public String barCodeNo { get; set; } |
| | | public Date sterilizationlimitDate { get; set; } |
| | | public String serialNoorLotNo { get; set; } |
| | | public String tracingCodeNo { get; set; } |
| | | public String ReturnReason { get; set; } |
| | | public String oldConsumableCount { get; set; } |
| | | public String ErrorReason { get; set; } |
| | | public boolean canEdit { get; set; } |
| | | public Integer intMark { get; set; } |
| | | public Decimal arriveAmount { get; set; } |
| | | public Decimal arrivedCount { get; set; } |
| | | public class ConsumableorderdetailsInfo implements Comparable { |
| | | public Consumable_order_details2__c esd { get; set; } |
| | | public Product2__c Prod { get; set; } |
| | | public String ProductName { get; set; } |
| | | //public Boolean canSELECT { get; set; } |
| | | public String barCodeNo { get; set; } |
| | | public Date sterilizationlimitDate { get; set; } |
| | | public String serialNoorLotNo { get; set; } |
| | | public String tracingCodeNo { get; set; } |
| | | public String ReturnReason { get; set; } |
| | | public String oldConsumableCount { get; set; } |
| | | public String ErrorReason { get; set; } |
| | | public boolean canEdit { get; set; } |
| | | public Integer intMark { get; set; } |
| | | public Decimal arriveAmount { get; set; } |
| | | public Decimal arrivedCount { get; set; } |
| | | |
| | | public String ReportProductExpirationDate {get;set;} |
| | | public ConsumableorderdetailsInfo(Consumable_order_details2__c e,string str) { |
| | |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | | } |