|
|
@@ -235,7 +235,7 @@
|
|
|
appDelegate=(AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
});
|
|
|
// AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
|
|
|
- NSDictionary *urgencyDic = [appDelegate globalParameterForKey:@"urgencyDic"];
|
|
|
+ NSDictionary *urgencyDic = [RASingleton.sharedInstance globalParameterForKey:@"urgencyDic"];
|
|
|
|
|
|
id count = [urgencyDic objectForKey:@"count"];
|
|
|
|
|
|
@@ -1356,7 +1356,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
NSMutableDictionary * itemjson=[[sectionjson objectForKey:[NSString stringWithFormat:@"item_%d",j ]] mutableCopy];
|
|
|
// NSMutableDictionary * to_itemjson=[[to_sectionjson objectForKey:[NSString stringWithFormat:@"item_%d",j ]] mutableCopy];
|
|
|
|
|
|
- if([[itemjson valueForKey:@"dirty"] isEqualToString:@"true"])
|
|
|
+ if([[itemjson valueForKey:@"dirty"] isEqualToString:@"true"] && [itemjson[@"noneoverride"] boolValue]!=true)
|
|
|
{
|
|
|
int toindex = -1;
|
|
|
for(int l=0;l<[to_sectionjson[@"count"] intValue];l++)
|
|
|
@@ -3846,8 +3846,8 @@ if(!self.alert.isBeingDismissed)
|
|
|
// 此处应移动到erp mobile 项目内
|
|
|
if([type isEqualToString:@"price"])
|
|
|
{
|
|
|
- BOOL can_see_price = [[appDelegate globalParameterForKey:@"can_see_price"] boolValue];
|
|
|
- BOOL price_hidden = [[appDelegate globalParameterForKey:@"price_hidden"] boolValue];
|
|
|
+ BOOL can_see_price = [[RASingleton.sharedInstance globalParameterForKey:@"can_see_price"] boolValue];
|
|
|
+ BOOL price_hidden = [[RASingleton.sharedInstance globalParameterForKey:@"price_hidden"] boolValue];
|
|
|
|
|
|
if(can_see_price&&price_hidden==false)
|
|
|
{
|
|
|
@@ -4285,8 +4285,8 @@ if(!self.alert.isBeingDismissed)
|
|
|
NSString* totalprice = [NSString stringWithFormat:@"%.2f",(unitprice* (1.0-discount/100)+dprice)*count];
|
|
|
|
|
|
|
|
|
- BOOL can_see_price = [[appDelegate globalParameterForKey:@"can_see_price"] boolValue];
|
|
|
- BOOL price_hidden = [[appDelegate globalParameterForKey:@"price_hidden"] boolValue];
|
|
|
+ BOOL can_see_price = [[RASingleton.sharedInstance globalParameterForKey:@"can_see_price"] boolValue];
|
|
|
+ BOOL price_hidden = [[RASingleton.sharedInstance globalParameterForKey:@"price_hidden"] boolValue];
|
|
|
|
|
|
if(can_see_price&&price_hidden==false)
|
|
|
{
|
|
|
@@ -5022,7 +5022,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
{
|
|
|
#ifdef OFFLINE_MODE
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
- BOOL offline_mode = [[appDelegate globalParameterForKey:@"offline_mode"] boolValue];
|
|
|
+ BOOL offline_mode = [[RASingleton.sharedInstance globalParameterForKey:@"offline_mode"] boolValue];
|
|
|
if(offline_mode)
|
|
|
{
|
|
|
|
|
|
@@ -5084,8 +5084,8 @@ if(!self.alert.isBeingDismissed)
|
|
|
|
|
|
NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
- NSString *user = [appDelegate globalParameterForKey:@"user"];
|
|
|
- NSString *password = [appDelegate globalParameterForKey:@"password"];
|
|
|
+ NSString *user = [RASingleton.sharedInstance globalParameterForKey:@"user"];
|
|
|
+ NSString *password = [RASingleton.sharedInstance globalParameterForKey:@"password"];
|
|
|
|
|
|
if(user!=nil)
|
|
|
[params setValue:user forKey:@"user"];
|