|
@@ -52,8 +52,7 @@
|
|
|
ViewController.isLocalfile=YES;
|
|
ViewController.isLocalfile=YES;
|
|
|
NSString* subject;
|
|
NSString* subject;
|
|
|
|
|
|
|
|
- NSString* cur_time =[RAUtils current_date];
|
|
|
|
|
- subject =@"Sales Order";
|
|
|
|
|
|
|
+ subject =[NSString stringWithFormat:@"Sales Order %@",self.order_code];
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
NSString* customer_email= [appDelegate.customerInfo valueForKey:@"customer_email"];
|
|
NSString* customer_email= [appDelegate.customerInfo valueForKey:@"customer_email"];
|
|
|
|
|
|
|
@@ -66,7 +65,7 @@
|
|
|
}
|
|
}
|
|
|
ViewController.mail_to = send_to;
|
|
ViewController.mail_to = send_to;
|
|
|
|
|
|
|
|
- ViewController.attachment_name = [NSString stringWithFormat:@"NPD_Product_List %@.pdf",cur_time];
|
|
|
|
|
|
|
+ ViewController.filename = [NSString stringWithFormat:@"%@.pdf",self.order_code];
|
|
|
ViewController.mail_subject = subject;
|
|
ViewController.mail_subject = subject;
|
|
|
|
|
|
|
|
ViewController.hidenavi = false;
|
|
ViewController.hidenavi = false;
|
|
@@ -440,7 +439,6 @@
|
|
|
|
|
|
|
|
ViewController.url = url;
|
|
ViewController.url = url;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[self.navigationController pushViewController:ViewController animated:YES];
|
|
[self.navigationController pushViewController:ViewController animated:YES];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -480,6 +478,7 @@
|
|
|
NSString* url=[self.content_data valueForKey:@"pdfUrl"];
|
|
NSString* url=[self.content_data valueForKey:@"pdfUrl"];
|
|
|
DebugLog(@"pdf url:%@",url);
|
|
DebugLog(@"pdf url:%@",url);
|
|
|
ViewController.url = url;
|
|
ViewController.url = url;
|
|
|
|
|
+
|
|
|
[self.navigationController pushViewController:ViewController animated:YES];
|
|
[self.navigationController pushViewController:ViewController animated:YES];
|
|
|
}
|
|
}
|
|
|
|
|
|