Subversion Repositories SmartDukaan

Rev

Rev 3105 | Rev 3125 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3105 Rev 3107
Line 42... Line 42...
42
 
42
 
43
public class PaymentDetailsGenerator {
43
public class PaymentDetailsGenerator {
44
    
44
    
45
    private static Logger logger = LoggerFactory.getLogger(PaymentDetailsGenerator.class);
45
    private static Logger logger = LoggerFactory.getLogger(PaymentDetailsGenerator.class);
46
    
46
    
-
 
47
    private static final int S_NO = 0, PAYMENT_ID = 1, GATEWAY = 2, PAYMENT_METHOD = 3, TXN_ID = 4, AMOUNT = 5, PAY_STATUS = 6, 
-
 
48
    PAY_STATUS_DESC = 7, TXN_STATUS = 8, REF_CODE = 9, TXN_TIME = 10, CUST_ID = 11, NAME = 12, 
-
 
49
    MOB_NO = 13, ADDR = 14, PINCODE = 15, CITY = 16, STATE = 17, EMAIL = 18, ORDER_ID = 19, ORDER_STATUS = 20, 
-
 
50
    ORDER_STATUS_DESC = 21, ITEM_ID = 22, PROD_GRP = 23, BRAND = 24, MOD_NAME = 25, MOD_NUM = 26, QTY = 27;
-
 
51
    
47
    TransactionServiceClient tsc;
52
    TransactionServiceClient tsc;
48
    in.shop2020.model.v1.order.TransactionService.Client tClient;
53
    in.shop2020.model.v1.order.TransactionService.Client tClient;
49
 
54
 
50
    PaymentServiceClient psc;
55
    PaymentServiceClient psc;
51
    in.shop2020.payments.PaymentService.Client pClient;
56
    in.shop2020.payments.PaymentService.Client pClient;
52
 
57
 
53
    UserContextServiceClient usc;
58
    UserContextServiceClient usc;
54
    in.shop2020.model.v1.user.UserContextService.Client uClient;
59
    in.shop2020.model.v1.user.UserContextService.Client uClient;
55
 
60
 
56
    Map<Long, PaymentGateway> gateWays = new HashMap<Long, PaymentGateway>(3);
61
    Map<Long, PaymentGateway> gateWays = new HashMap<Long, PaymentGateway>(4);
57
 
62
 
58
    public PaymentDetailsGenerator() {
63
    public PaymentDetailsGenerator() {
59
        try {
64
        try {
60
            tsc = new TransactionServiceClient();
65
            tsc = new TransactionServiceClient();
61
            tClient = tsc.getClient();
66
            tClient = tsc.getClient();
Line 139... Line 144...
139
        titleCell.setCellStyle(style);
144
        titleCell.setCellStyle(style);
140
 
145
 
141
        paymentSheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 6));
146
        paymentSheet.addMergedRegion(new CellRangeAddress(0, 0, 0, 6));
142
 
147
 
143
        paymentSheet.createRow(paymentSerialNo++);
148
        paymentSheet.createRow(paymentSerialNo++);
144
 
-
 
145
        final int S_NO = 0, PAYMENT_ID = 1, GATEWAY = 2, PAYMENT_METHOD = 3, TXN_ID = 4, AMOUNT = 5, PAY_STATUS = 6, 
-
 
146
                  PAY_STATUS_DESC = 7, TXN_STATUS = 8, REF_CODE = 9, TXN_TIME = 10, CUST_ID = 11, NAME = 12, 
-
 
147
                  MOB_NO = 13, ADDR = 14, PINCODE = 15, CITY = 16, STATE = 17, EMAIL = 18, ORDER_ID = 19, ORDER_STATUS = 20, 
-
 
148
                  ORDER_STATUS_DESC = 21, ITEM_ID = 22, PROD_GRP = 23, BRAND = 24, MOD_NAME = 25, MOD_NUM = 26, QTY = 27;
-
 
149
        
149
        
150
        Row headerRow = paymentSheet.createRow(paymentSerialNo++);
150
        Row headerRow = paymentSheet.createRow(paymentSerialNo++);
151
        headerRow.createCell(S_NO).setCellValue("S.No");
151
        headerRow.createCell(S_NO).setCellValue("S.No");
152
        headerRow.createCell(PAYMENT_ID).setCellValue("Payment Id");
152
        headerRow.createCell(PAYMENT_ID).setCellValue("Payment Id");
153
        headerRow.createCell(GATEWAY).setCellValue("Gateway");
153
        headerRow.createCell(GATEWAY).setCellValue("Gateway");