| | |
| | | public String strToday { get; set; } |
| | | public boolean is_parts_direct { get; set; } |
| | | public boolean is_ie_direct { get; set; } |
| | | //public String approveStatus { get; set; } |
| | | |
| | | public Integer pageCnt { get; set; } |
| | | public boolean fistPageBreak { get; set; } |
| | |
| | | public String ndt_fax{get;set;} |
| | | |
| | | public Boolean notSpecialDealer { get; set; } |
| | | //4月11号之后 |
| | | //public Boolean fourMaand { get; set; } |
| | | //是否发货 |
| | | public Boolean delivered { get; set; } |
| | | |
| | | |
| | | public OrderPdf2Controller() { |
| | | id = ApexPages.currentPage().getParameters().get('id'); |
| | |
| | | PDF_Property__c, Opportunity.Name, PDF_No__c, Description, PDF_Order_No__c,CrossCooperativeProject__c, |
| | | Olympus_Price_BeforeDiscount_D__c, Discount_D__c, OlympusContractPricesD__c, CustomerContractPriceD__c, |
| | | Opportunity.ProductSegment__c, Opportunity.SalesChannel__c, Opportunity.Machine_Parts__c, |
| | | SpecialDeliveryAccount__c, SpecialDeliveryAccount_D__c, SpecialDeliveryContact2__c, SpecialDeliveryContact2_D__c |
| | | SpecialDeliveryAccount__c, SpecialDeliveryAccount_D__c, SpecialDeliveryContact2__c, SpecialDeliveryContact2_D__c,ApproveStatus__c,CreatedDate,Is_DeliveredTem__c |
| | | from Order where Id = :id]; |
| | | if (orderList.size() == 0) { |
| | | return null; |
| | |
| | | productSegment = order.Opportunity.ProductSegment__c; |
| | | is_parts_direct = false; |
| | | is_ie_direct = false; |
| | | //gwy 4月11号新公司还没有二级备案证 |
| | | delivered = order.Is_DeliveredTem__c; |
| | | /*approveStatus = order.ApproveStatus__c; |
| | | Datetime date2 = order.CreatedDate; |
| | | Datetime date3 = Datetime.newInstance(2022,4,11,0,0,0); |
| | | fourMaand = date2>date3 ? true:false;*/ |
| | | //还剩下有了新的二级备案证的代码 |
| | | if (order.Opportunity.ProductSegment__c == 'IE' && order.Opportunity.SalesChannel__c == 'direct') { |
| | | is_ie_direct = true; |
| | | } |