| | |
| | | if (rectCo.size() == 0) { |
| | | throw new ControllerUtil.myException('not found 办事处 recodetype'); |
| | | } |
| | | Account account2 = new Account(); |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | // 客户 |
| | | Account account = new Account(); |
| | | account.RecordTypeId = rectCo[0].Id; |
| | |
| | | account.Name = 'Katsu テスト'; |
| | | account.Quolified_Approve_Status__c = 'Draft'; |
| | | account.If_Need_Quolified__c = true; |
| | | account.ParentId = account2.Id; |
| | | insert account; |
| | | |
| | | Product2 product = new Product2(); |
| | |
| | | throw new ControllerUtil.myException('not found 办事处 recodetype'); |
| | | } |
| | | // 客户 |
| | | Account account2 = new Account(); |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | Account account = new Account(); |
| | | account.RecordTypeId = rectCo[0].Id; |
| | | account.Phone = '13888888888'; |
| | | account.Name = 'Katsu テスト'; |
| | | account.Quolified_Approve_Status__c = 'Draft'; |
| | | account.If_Need_Quolified__c = true; |
| | | account.ParentId = account2.Id; |
| | | insert account; |
| | | //查不出任何样本品,SFDA_Status__c会被触发器修改为停止 |
| | | Product2 product = new Product2(); |
| | |
| | | samOrder.DeliveryContact__c = 'thh'; |
| | | samOrder.ReceivePart__c = '办事处'; |
| | | samOrder.Account__c = account.Id; |
| | | samOrder.province__c ='四川省'; |
| | | samOrder.city__c ='成都市'; |
| | | insert samOrder; |
| | | |
| | | //选中保存 |
| | |
| | | Test.setCurrentPage(ref2); |
| | | OrdergoodsController controller2 = new OrdergoodsController(new ApexPages.StandardController(samOrder)); |
| | | controller2.init(); |
| | | controller2.getprovinceop(); |
| | | controller2.getCityop(); |
| | | controller2.provinceName='四川省'; |
| | | controller2.cityName='成都市'; |
| | | controller2.productInfoList[0].check = true; |
| | | controller2.productInfoList[0].SOLDel.ItemQuantity__c = 5; |
| | | controller2.save(); |
| | | controller2.confirmBtn(); |
| | | |
| | | } |
| | | } |