高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
public with sharing class ConsumptionPDFController {
    /*****************検索用******************/
    //public Consumable_order__c coc { get; set; }
    /*****************画面初始化用********************************/
    /******20160313_add**************/
    /*public String IdCheck{get;set;}
    public Boolean EditAble{get;set;}
    public String yuanP{get;set;}
    //暂用20160323
    public Decimal disCount{get;set;}
    //增加“其他”判断
    public String OthersStatus{get;set;}
    //医院经销商分离
    public String SecondDealer{get;set;}*/
    /*****************画面表示Bean******************/
    // public List<ConsumableorderdetailsInfo> ConsumableorderdetailsRecords { get; set; }
    // public Integer ConsumableorderdetailsCount { get; set; }
 
    // /*****************ソート時再検索条件(画面からの入力条件を無視するため)******************/
    // private String cate1ForSort = null;
    // // 产品 ID
    // private String ESetId = '';
    // private String[] ProidListAll = new String[]{};
    // public String baseUrl {get;private set;}
    
    public ConsumptionPDFController() {
        //Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=8');
        //baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
        //ESetId = ApexPages.currentPage().getParameters().get('esetId');
        //ConsumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>();
    }
    
    //订单编码自动生成
    
    // // 画面初始化
    // public void init() {
 
    //     //coc.Order_date__c = Date.today();
    //     List<Consumable_order_details__c> ConsumableorderdetailsSelected = new List<Consumable_order_details__c>();
        
    //     coc = new Consumable_order__c();
    //     ConsumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>();
 
    //     if(ESetId== NULL || ESetId==''){
    //     }else{
    //         List<Consumable_order__c> qs = New List<Consumable_order__c>();
    //         qs = [select Name,
    //                     ShipmentAccount__c,
    //                     Dealer_Customer__c,
    //                     Order_ForHospital__c,
    //                     Order_ForDealerText__c,
    //                     Consumable_pdf_insert_day__c
    //                 From Consumable_order__c
    //                 Where Id =:ESetId];
    //      if (qs.size()>0){
    //             coc = qs[0];
    //         }
    //         // 選択済みの明细を取得
    //         ConsumableorderdetailsSelected = [select Id,
    //                                                 Name,
    //                                                 Consumable_order__c,
    //                                                 Consumable_Product__c,
    //                                                 Consumable_Product__r.Name,
    //                                                 Consumable_Product__r.Name__c,
    //                                                 Sterilization_limit__c,Consumable_count__c,
    //                                                 Deliver_date__c,
    //                                                 Bar_Code__c,
    //                                                 Intra_Trade_List_RMB__c,
    //                                                 Asset_Model_No__c,
    //                                                 Sum_of_money__c,
    //                                                 Order_details_Piece__c,
    //                                                 Box_Piece__c,
    //                                                 Guarantee_period_for_products__c
    //                                             from Consumable_order_details__c
    //                                             where  Consumable_Sale_order__c = :ESetId
    //                                             order by Name ];
    //         for (Integer i = 0; i < ConsumableorderdetailsSelected.size(); i++) {
    //             ConsumableorderdetailsRecords.add(new ConsumableorderdetailsInfo(ConsumableorderdetailsSelected[i]));
    //         }
    //     }
    // }
 
    // Data Bean
    /*class ConsumableorderdetailsInfo implements Comparable {
        public Consumable_order_details__c esd { get; set; }
        public Product2__c Prod { get; set; }
 
        // 已存产品明细
        public ConsumableorderdetailsInfo(Consumable_order_details__c e) {
            esd = e;
            Prod = e.Consumable_Product__r;
        }
        // 排序
        public Integer compareTo(Object compareTo) { 
            return null; 
        }  
    }*/
}