|
@@ -185,7 +185,7 @@
|
|
|
|
|
|
|
|
// self.btnSign.tintColor = UIColorFromRGB(0x996633);
|
|
// self.btnSign.tintColor = UIColorFromRGB(0x996633);
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
self.btnCopy =[[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"order_copy"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
|
|
self.btnCopy =[[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"order_copy"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
|
|
|
style:UIBarButtonItemStylePlain
|
|
style:UIBarButtonItemStylePlain
|
|
|
target:self
|
|
target:self
|
|
@@ -401,8 +401,8 @@
|
|
|
ViewController.mail_to = send_to;
|
|
ViewController.mail_to = send_to;
|
|
|
NSString* subject = nil;
|
|
NSString* subject = nil;
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
- subject=[NSString stringWithFormat:@"%@ -- SO# %@ from NEW PACIFIC DIRECT,INC.",company,so];
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
|
|
+ subject=[NSString stringWithFormat:@"%@ -- SO# %@ from %@",company,so,COMPANY_NAME];
|
|
|
|
|
|
|
|
if (appDelegate.user_type == USER_ROLE_CUSTOMER&&self.is_shoporder) {
|
|
if (appDelegate.user_type == USER_ROLE_CUSTOMER&&self.is_shoporder) {
|
|
|
NSString *companyName = [appDelegate.customerInfo objectForKey:@"customer_name"];
|
|
NSString *companyName = [appDelegate.customerInfo objectForKey:@"customer_name"];
|
|
@@ -687,7 +687,7 @@
|
|
|
// [((MainViewController*)appDelegate.main_vc) reloadCart:true immediately:false];
|
|
// [((MainViewController*)appDelegate.main_vc) reloadCart:true immediately:false];
|
|
|
// if(self.selectOrder)
|
|
// if(self.selectOrder)
|
|
|
// self.selectOrder(self.content_data);
|
|
// self.selectOrder(self.content_data);
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
int count = [[self.content_data objectForKey:@"count"] intValue];
|
|
int count = [[self.content_data objectForKey:@"count"] intValue];
|
|
|
for (int i = 0; i < count; i++) {
|
|
for (int i = 0; i < count; i++) {
|
|
|
NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
@@ -775,7 +775,7 @@
|
|
|
if([[order_json valueForKey:@"result"] intValue]==2)
|
|
if([[order_json valueForKey:@"result"] intValue]==2)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
int count = [[weakSelf.content_data objectForKey:@"count"] intValue];
|
|
int count = [[weakSelf.content_data objectForKey:@"count"] intValue];
|
|
|
for (int i = 0; i < count; i++) {
|
|
for (int i = 0; i < count; i++) {
|
|
|
NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
@@ -921,7 +921,7 @@
|
|
|
// // if(self.selectOrder)
|
|
// // if(self.selectOrder)
|
|
|
// // self.selectOrder(self.content_data);
|
|
// // self.selectOrder(self.content_data);
|
|
|
//
|
|
//
|
|
|
-//#ifdef BUILD_NPD
|
|
|
|
|
|
|
+//#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
// int count = [[self.content_data objectForKey:@"count"] intValue];
|
|
// int count = [[self.content_data objectForKey:@"count"] intValue];
|
|
|
// for (int i = 0; i < count; i++) {
|
|
// for (int i = 0; i < count; i++) {
|
|
|
// NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
// NSString *key = [NSString stringWithFormat:@"section_%d",i];
|
|
@@ -1349,7 +1349,7 @@
|
|
|
// return 150;
|
|
// return 150;
|
|
|
|
|
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",indexPath.section]];
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",indexPath.section]];
|
|
|
NSDictionary *data = [section_item objectForKey:@"data"];
|
|
NSDictionary *data = [section_item objectForKey:@"data"];
|
|
|
NSString *type = [section_item objectForKey:@"type"];
|
|
NSString *type = [section_item objectForKey:@"type"];
|
|
@@ -1554,7 +1554,7 @@
|
|
|
|
|
|
|
|
NSString*labeltitle = nil;
|
|
NSString*labeltitle = nil;
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]];
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]];
|
|
|
NSString *title = [section_item objectForKey:@"title"];
|
|
NSString *title = [section_item objectForKey:@"title"];
|
|
|
labeltitle = title;
|
|
labeltitle = title;
|
|
@@ -1734,7 +1734,7 @@
|
|
|
self.content_data_control = [self translate_json:self.content_data_download changed:self.changed_data];
|
|
self.content_data_control = [self translate_json:self.content_data_download changed:self.changed_data];
|
|
|
|
|
|
|
|
*/
|
|
*/
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
NSUInteger section = sender.tag;
|
|
NSUInteger section = sender.tag;
|
|
|
NSMutableDictionary *section_item = [[self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]] mutableCopy];
|
|
NSMutableDictionary *section_item = [[self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]] mutableCopy];
|
|
|
NSString *title = [section_item objectForKey:@"title"];
|
|
NSString *title = [section_item objectForKey:@"title"];
|
|
@@ -1843,13 +1843,13 @@
|
|
|
|
|
|
|
|
if(self.content_data==nil)
|
|
if(self.content_data==nil)
|
|
|
return 0;
|
|
return 0;
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
return [[self.content_data objectForKey:@"count"] integerValue];
|
|
return [[self.content_data objectForKey:@"count"] integerValue];
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-#ifdef BUILD_USAI
|
|
|
|
|
- return [[self.content_data objectForKey:@"count"] integerValue];
|
|
|
|
|
-#endif
|
|
|
|
|
|
|
+//#ifdef BUILD_USAI
|
|
|
|
|
+// return [[self.content_data objectForKey:@"count"] integerValue];
|
|
|
|
|
+//#endif
|
|
|
|
|
|
|
|
#if defined(BUILD_HOMER) || defined(BUILD_GATIT)
|
|
#if defined(BUILD_HOMER) || defined(BUILD_GATIT)
|
|
|
return [[self.content_data objectForKey:@"count"] integerValue];
|
|
return [[self.content_data objectForKey:@"count"] integerValue];
|
|
@@ -1865,7 +1865,7 @@
|
|
|
}
|
|
}
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
|
|
{
|
|
{
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
|
|
|
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]];
|
|
NSDictionary *section_item = [self.content_data objectForKey:[NSString stringWithFormat:@"section_%ld",section]];
|
|
|
NSDictionary *data = [section_item objectForKey:@"data"];
|
|
NSDictionary *data = [section_item objectForKey:@"data"];
|
|
@@ -1960,7 +1960,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(section==3) {
|
|
if(section==3) {
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
return 6;
|
|
return 6;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
@@ -1985,7 +1985,7 @@
|
|
|
UIApplication * app = [UIApplication sharedApplication];
|
|
UIApplication * app = [UIApplication sharedApplication];
|
|
|
AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
AppDelegate *appDelegate = (AppDelegate *)[app delegate];
|
|
|
|
|
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
/**
|
|
/**
|
|
|
* ver1.90
|
|
* ver1.90
|
|
|
*/
|
|
*/
|
|
@@ -3167,7 +3167,7 @@
|
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Shipping"];
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Shipping"];
|
|
|
break;
|
|
break;
|
|
|
case 2: {
|
|
case 2: {
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
cell.chargeLabel.text = @"Liftgate Fee(No loading dock):";
|
|
cell.chargeLabel.text = @"Liftgate Fee(No loading dock):";
|
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Liftgate Fee(No loading dock)"];
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Liftgate Fee(No loading dock)"];
|
|
|
#endif
|
|
#endif
|
|
@@ -3185,7 +3185,7 @@
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case 3: {
|
|
case 3: {
|
|
|
-#ifdef BUILD_NPD
|
|
|
|
|
|
|
+#if defined(BUILD_NPD) || defined(BUILD_USAI)
|
|
|
cell.chargeLabel.text = @"Handling Fee:";
|
|
cell.chargeLabel.text = @"Handling Fee:";
|
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Handling Fee"];
|
|
cell.priceLabel.text =[self.content_data valueForKey:@"Handling Fee"];
|
|
|
#endif
|
|
#endif
|