| Line 82... |
Line 82... |
| 82 |
static{
|
82 |
static{
|
| 83 |
sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
83 |
sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 84 |
emailFromAddress = "build@shop2020.in";
|
84 |
emailFromAddress = "build@shop2020.in";
|
| 85 |
password = "cafe@nes";
|
85 |
password = "cafe@nes";
|
| 86 |
mailer = new GmailUtils();
|
86 |
mailer = new GmailUtils();
|
| 87 |
sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
87 |
//sendTo = new String[]{"vikram.raghav@shop2020.in"};
|
| 88 |
/*sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
88 |
sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 89 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
89 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 90 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
90 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 91 |
*/itemIdpendingOrdersMap = new HashMap<Long,Long>();
|
91 |
itemIdpendingOrdersMap = new HashMap<Long,Long>();
|
| 92 |
CatalogClient catalogServiceClient = null;
|
92 |
CatalogClient catalogServiceClient = null;
|
| 93 |
try {
|
93 |
try {
|
| 94 |
catalogServiceClient = new CatalogClient();
|
94 |
catalogServiceClient = new CatalogClient();
|
| 95 |
} catch (TTransportException e1) {
|
95 |
} catch (TTransportException e1) {
|
| 96 |
// TODO Auto-generated catch block
|
96 |
// TODO Auto-generated catch block
|
| Line 959... |
Line 959... |
| 959 |
+"<td>" + "Item ID" + "</td>"
|
959 |
+"<td>" + "Item ID" + "</td>"
|
| 960 |
+"<td>" + "Available - Reserve" + "</td>"
|
960 |
+"<td>" + "Available - Reserve" + "</td>"
|
| 961 |
+"<td>" + "Total Held" + "</td>"
|
961 |
+"<td>" + "Total Held" + "</td>"
|
| 962 |
+"</tr>";
|
962 |
+"</tr>";
|
| 963 |
|
963 |
|
| 964 |
emailSubjectTxt = "Held Inventory is more than available "+ sdf.format(System.currentTimeMillis());
|
964 |
emailSubjectTxt = "Items with (Total Held > Net Available) Inventory "+ sdf.format(System.currentTimeMillis());
|
| 965 |
if(heldMoreThanAvailable.length() > 0){
|
965 |
if(heldMoreThanAvailable.length() > 0){
|
| 966 |
text = "<html><table border=\"1\" align=\"center\">"+tableHeader+heldMoreThanAvailable.toString()+"</table></html>";
|
966 |
text = "<html><table border=\"1\" align=\"center\">"+tableHeader+heldMoreThanAvailable.toString()+"</table></html>";
|
| 967 |
try {
|
967 |
try {
|
| 968 |
mailer.sendSSLMessage(sendTo,emailSubjectTxt, emailFromAddress, password, text);
|
968 |
mailer.sendSSLMessage(sendTo,emailSubjectTxt, emailFromAddress, password, text);
|
| 969 |
//mailer.sendSSLMessage(sendTo,"Snapdeal Inventory Updates sent for " +(iterator-1)+" items "+ sdf.format(System.currentTimeMillis()),inventoryChangeItems.toString(), emailFromAddress, password, new ArrayList<File>());
|
969 |
//mailer.sendSSLMessage(sendTo,"Snapdeal Inventory Updates sent for " +(iterator-1)+" items "+ sdf.format(System.currentTimeMillis()),inventoryChangeItems.toString(), emailFromAddress, password, new ArrayList<File>());
|