Subversion Repositories SmartDukaan

Rev

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

Rev 4378 Rev 5158
Line 35... Line 35...
35
 
35
 
36
@SuppressWarnings("serial")
36
@SuppressWarnings("serial")
37
public class ContactUsController extends BaseController {
37
public class ContactUsController extends BaseController {
38
 
38
 
39
    private static final long     ADMIN_AGENT_ID = 1;
39
    private static final long     ADMIN_AGENT_ID = 1;
-
 
40
    
-
 
41
    private static final long	  DEF_ASSIGNEE_FOR_ORDER_CANCEL = 4;
40
 
42
 
41
    private String                id;
43
    private String                id;
42
 
44
 
43
    private static Logger         log        = Logger.getLogger(Class.class);
45
    private static Logger         log        = Logger.getLogger(Class.class);
44
 
46
 
Line 157... Line 159...
157
                Ticket ticket = new Ticket();
159
                Ticket ticket = new Ticket();
158
                ticket.setAirwayBillNo(awb);
160
                ticket.setAirwayBillNo(awb);
159
                ticket.setProductName(product);
161
                ticket.setProductName(product);
160
                ticket.setCategory(ticketCategory);
162
                ticket.setCategory(ticketCategory);
161
                ticket.setDescription("From: " + email + "\n\nSubject: " + subject + "\n\nBody: " + message);
163
                ticket.setDescription("From: " + email + "\n\nSubject: " + subject + "\n\nBody: " + message);
-
 
164
                
-
 
165
                if(communicationType == 2) {
-
 
166
                    ticket.setAssigneeId(DEF_ASSIGNEE_FOR_ORDER_CANCEL);
-
 
167
                }
162
 
168
                
163
                if (orderId != -1) {
169
                if (orderId != -1) {
164
                    ticket.setOrderId(orderId);
170
                    ticket.setOrderId(orderId);
165
                }
171
                }
166
 
172
 
167
                ticket.setCreatorId(ADMIN_AGENT_ID);
173
                ticket.setCreatorId(ADMIN_AGENT_ID);