From 7c7cb195462c2ded7bfe4105959ea36d1dd68ded Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期三, 11 十月 2023 19:26:36 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/classes/PCLLostReportControllerTest.cls | 78 +++++++++++++++++++-------------------
1 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/force-app/main/default/classes/PCLLostReportControllerTest.cls b/force-app/main/default/classes/PCLLostReportControllerTest.cls
index 25c8081..4300451 100644
--- a/force-app/main/default/classes/PCLLostReportControllerTest.cls
+++ b/force-app/main/default/classes/PCLLostReportControllerTest.cls
@@ -297,50 +297,50 @@
conTest2.dataEntry();
}
- @isTest
- private static void TestMeth3(){
+ //@isTest
+ // private static void TestMeth3(){
- // recode type 銈掑彇寰�
- List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '鐥呴櫌'];
- if (rectCo.size() == 0) {
- throw new ControllerUtil.myException('not found 鐥呴櫌 recodetype');
- }
- List<RecordType> rectDpt = [select Id, Name from RecordType where IsActive = true and SobjectType = 'Account' and Name IN ('瑷虹檪绉� 娑堝寲绉�', '瑷虹檪绉� 鍛煎惛绉�') order by Name desc];
- if (rectDpt.size() == 0) {
- throw new ControllerUtil.myException('not found 瑷虹檪绉� recodetype');
- }
+ // // recode type 銈掑彇寰�
+ // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '鐥呴櫌'];
+ // if (rectCo.size() == 0) {
+ // throw new ControllerUtil.myException('not found 鐥呴櫌 recodetype');
+ // }
+ // List<RecordType> rectDpt = [select Id, Name from RecordType where IsActive = true and SobjectType = 'Account' and Name IN ('瑷虹檪绉� 娑堝寲绉�', '瑷虹檪绉� 鍛煎惛绉�') order by Name desc];
+ // if (rectDpt.size() == 0) {
+ // throw new ControllerUtil.myException('not found 瑷虹檪绉� recodetype');
+ // }
- // insert
- Account company1 = new Account();
- company1.RecordTypeId = rectCo[0].Id;
- company1.Name = '鐥呴櫌銉嗐偣銉�1';
- insert company1;
+ // // insert
+ // Account company1 = new Account();
+ // company1.RecordTypeId = rectCo[0].Id;
+ // company1.Name = '鐥呴櫌銉嗐偣銉�1';
+ // insert company1;
- List<Account> dc1s = [Select Id, Name, Department_Class_Label__c, Sys_Dept_Name_Change_Chk__c from Account where Parent.Id = : company1.Id order by Department_Class_Label__c];
+ // List<Account> dc1s = [Select Id, Name, Department_Class_Label__c, Sys_Dept_Name_Change_Chk__c from Account where Parent.Id = : company1.Id order by Department_Class_Label__c];
- Account depart1 = new Account();
- depart1.RecordTypeId = rectDpt[0].Id;
- depart1.Name = '*';
- depart1.Department_Name__c = '瑷虹檪绉�1';
- depart1.ParentId= dc1s[0].Id;
- depart1.Department_Class__c = dc1s[0].Id;
- depart1.Hospital__c= company1.Id;
- insert depart1;
+ // Account depart1 = new Account();
+ // depart1.RecordTypeId = rectDpt[0].Id;
+ // depart1.Name = '*';
+ // depart1.Department_Name__c = '瑷虹檪绉�1';
+ // depart1.ParentId= dc1s[0].Id;
+ // depart1.Department_Class__c = dc1s[0].Id;
+ // depart1.Hospital__c= company1.Id;
+ // insert depart1;
- PCLLostReportController conTest2 = EditLoad();
- Set<Id> IdSet=new Set<Id> {depart1.Id};
- conTest2.deleteBrandIDSet=IdSet;
- conTest2.LostReport.LostReport.LostType__c = '閮ㄥ垎澶卞崟';
- conTest2.LostReport.LostBrands[0].lostBrand.LostPrice__c = 12;
- conTest2.LostReport.LostBrands[0].lostBrand.Lost_reason_main__c = '浠锋牸';
- conTest2.LostReport.LostBrands[0].LostProducts[0].LostProductss.Quantity__c =0;
- conTest2.LostReport.LostBrands[0].lostBrand.Agency__c = depart1.Id;
- conTest2.LostReport.LostBrands[0].lostBrand.Lost_By_Company__c = 'STORZ';
- conTest2.LostReport.LostBrands[0].LostProducts[0].lineNo2 = 0;
- conTest2.LostReport.LostBrands[0].LostProducts[0].LostProductss = new PCLLostProduct__c(Quantity__c = 0);
- // conTest2.setBrand();
- conTest2.dataEntry();
- }
+ // PCLLostReportController conTest2 = EditLoad();
+ // Set<Id> IdSet=new Set<Id> {depart1.Id};
+ // conTest2.deleteBrandIDSet=IdSet;
+ // conTest2.LostReport.LostReport.LostType__c = '閮ㄥ垎澶卞崟';
+ // conTest2.LostReport.LostBrands[0].lostBrand.LostPrice__c = 12;
+ // conTest2.LostReport.LostBrands[0].lostBrand.Lost_reason_main__c = '浠锋牸';
+ // conTest2.LostReport.LostBrands[0].LostProducts[0].LostProductss.Quantity__c =0;
+ // conTest2.LostReport.LostBrands[0].lostBrand.Agency__c = depart1.Id;
+ // conTest2.LostReport.LostBrands[0].lostBrand.Lost_By_Company__c = 'STORZ';
+ // conTest2.LostReport.LostBrands[0].LostProducts[0].lineNo2 = 0;
+ // conTest2.LostReport.LostBrands[0].LostProducts[0].LostProductss = new PCLLostProduct__c(Quantity__c = 0);
+ // // conTest2.setBrand();
+ // conTest2.dataEntry();
+ // }
--
Gitblit v1.9.1