public with sharing class ConsumptionPDFController {
    //add by allen 迁移报错增加，迁移完成过后可删除init
    public void init() {}
    /*****************検索用******************/
    //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; 
        }  
    }*/
}