| | |
| | | Map < String, String > provinceGIMap = new Map< String, String > (); |
| | | //检索OCSM管理省对象 |
| | | //集中采购询价 增加检索助理 |
| | | List < OCM_Management_Province__c > ompList = [select id, Name, SalesManage__c,GI_assistant__c from OCM_Management_Province__c ]; |
| | | List < OCM_Management_Province__c > ompList = [select id, Name, SalesManage__c,GI_assistant__c,Window1__c from OCM_Management_Province__c ]; |
| | | //存放map<省,担当> |
| | | for (OCM_Management_Province__c omp: ompList) { |
| | | provinceOwnerMap.put(omp.Name, omp.SalesManage__c); |
| | | provinceGIMap.put(omp.Name,omp.GI_assistant__c); |
| | | //provinceGIMap.put(omp.Name,omp.GI_assistant__c); //Commented by Li Jun 20230420 |
| | | provinceGIMap.put(omp.Name, omp.Window1__c);// Add By Li Jun 更新 签收单的【营业助理】值,从OCSM管理省对应的【营业窗口】字段获取 |
| | | } |
| | | // 电子签收单 end |
| | | |
| | |
| | | tempeSF.DNName__c = tempDN.Name; |
| | | tempeSF.Statu_Achievements__c = tempDN.Statu_Achievements__c; |
| | | tempeSF.Statu_Achievements_DN__c = tempDN.ID; |
| | | tempeSF.Sales_assistant_name_text__c = tempDN.Sales_assistant_name_text__c; |
| | | tempeSF.Sales_assistant_name_text__c = tempDN.Sales_assistant_name_text__c;//Updated By Li Jun 20230420 |
| | | tempeSF.RC_Manager__c = tempDN.RC_Manager__c; |
| | | //生成签收单时,给是否无偿出库赋值 精琢技术 thh 2021-10-15 start |
| | | if(tempDN.Statu_Achievements__r.orderType__c == 'ZM16'){ |
| | |
| | | tempSADN.Is_Corrosion__c=opp.Is_Corrosion__c; |
| | | // 电子签收单 赋值营业助理和营业管理部担当 start |
| | | //集中采购的询价 精琢技术 wql 2020/01/11 start |
| | | //Add By Li Jun 20230420 Start |
| | | tempSADN.Sales_assistant_name_text__c =opp.OCM_man_province_cus__c!='' && provinceGIMap.containskey(opp.OCM_man_province_cus__c)?provinceGIMap.get(opp.OCM_man_province_cus__c):''; |
| | | //Add By Li Jun 20230420 End |
| | | if(opp.Group_purchase_PCL__c){ |
| | | tempSADN.Sales_assistant_name_text__c = provinceGIMap.get('集采课'); |
| | | //tempSADN.Sales_assistant_name_text__c = provinceGIMap.get('集采课'); //Commented By Li Jun 20230420 |
| | | tempSADN.RC_Manager__c = provinceOwnerMap.get('集采课'); |
| | | }else{ |
| | | tempSADN.Sales_assistant_name_text__c = opp.Sales_assistant_name_text__c; |
| | | //tempSADN.Sales_assistant_name_text__c = opp.Sales_assistant_name_text__c; //Commented By Li Jun 20230420 |
| | | tempSADN.RC_Manager__c = provinceOwnerMap.get(opp.OCM_man_province_cus__c); |
| | | } |
| | | //集中采购的询价 精琢技术 wql 2020/01/11 end |