| | |
| | | sptc.dataBeans[1].amount[0].Amount = 200; |
| | | sptc.dataBeans[1].isChanged = '1'; |
| | | sptc.saveBtn(); |
| | | |
| | | sptc.UpdateBtn(); |
| | | List<Opportunity> opps = [select Id,SAP_Province__c,Amount,Owner_System__c from Opportunity where RecordTypeId = :rt[0].Id order by ownerId]; |
| | | System.debug('opps======+++'+opps); |
| | | // sptc.isDelete(sptc.dataBeans); |
| | | // System.assertEquals(24, opps.size()); |
| | | // System.assertEquals('北京市', opps[0].SAP_Province__c); |
| | | //System.assertEquals(u1.Id, opps[0].Owner_System__c); |
| | |
| | | sptc.searchByDpt(); |
| | | //导出 |
| | | sptc.exportBycsv(); |
| | | sptc.csvAsString = '销售本部,省,GDP,GI,ET,BF,GS,URO,GYN,ENT,ENG\n5.华东,上海市,100,2000,2345,123,1200,400,500,40,55'; |
| | | sptc.csvAsString = '销售本部,省,GDP,GI,ET,BF,GS,URO,GYN,ENT,ENG1,ENG2\n5.华东,上海市,100,2000,2345,123,1200,400,500,40,55,3'; |
| | | //test read csv file |
| | | sptc.importCSVFile(); |
| | | |