|
@@ -1992,7 +1992,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
if(is_subaction)
|
|
if(is_subaction)
|
|
|
{
|
|
{
|
|
|
NSMutableDictionary* sub_action = [[item_json objectForKey:[NSString stringWithFormat:@"item_%d",subaction_tag]] mutableCopy];
|
|
NSMutableDictionary* sub_action = [[item_json objectForKey:[NSString stringWithFormat:@"item_%d",subaction_tag]] mutableCopy];
|
|
|
- int refresh = [[sub_action valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[sub_action valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[sub_action valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[sub_action valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSString* refresh_trigger = [sub_action valueForKey:@"name"];
|
|
NSString* refresh_trigger = [sub_action valueForKey:@"name"];
|
|
|
NSDictionary * restore_json=[sub_action objectForKeyedSubscript:@"restore"];
|
|
NSDictionary * restore_json=[sub_action objectForKeyedSubscript:@"restore"];
|
|
@@ -2136,7 +2136,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
if(restore_json!=nil)
|
|
if(restore_json!=nil)
|
|
@@ -2188,7 +2188,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
@@ -2325,7 +2325,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
if(restore_json!=nil)
|
|
if(restore_json!=nil)
|
|
@@ -2559,11 +2559,11 @@ if(!self.alert.isBeingDismissed)
|
|
|
[self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
[self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
|
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];
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
|
bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
if(restore_json!=nil)
|
|
if(restore_json!=nil)
|
|
@@ -2716,11 +2716,11 @@ if(!self.alert.isBeingDismissed)
|
|
|
[self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
[self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
|
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];
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
|
bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
if(restore_json!=nil)
|
|
if(restore_json!=nil)
|
|
@@ -3003,7 +3003,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// [self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
// [self.content_data_download setObject:section_json forKey:[NSString stringWithFormat:@"section_%ld",(long)indexPath.section ]];
|
|
|
// }
|
|
// }
|
|
|
//
|
|
//
|
|
|
- // if(refresh==1)
|
|
|
|
|
|
|
+ // if(refresh)
|
|
|
// {
|
|
// {
|
|
|
//
|
|
//
|
|
|
// if(restore_json!=nil)
|
|
// if(restore_json!=nil)
|
|
@@ -4901,7 +4901,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
if([[type lowercaseString] isEqualToString:@"date"])
|
|
if([[type lowercaseString] isEqualToString:@"date"])
|
|
|
{
|
|
{
|
|
|
dpvc.pickerMode = UIDatePickerModeDate;
|
|
dpvc.pickerMode = UIDatePickerModeDate;
|
|
|
- [dateFormatter setDateFormat:@"yyyy/MM/dd"];
|
|
|
|
|
|
|
+ [dateFormatter setDateFormat:@"MM/dd/yyyy"];
|
|
|
}
|
|
}
|
|
|
else if([[type lowercaseString] isEqualToString:@"time"])
|
|
else if([[type lowercaseString] isEqualToString:@"time"])
|
|
|
{
|
|
{
|
|
@@ -4911,7 +4911,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
dpvc.pickerMode = UIDatePickerModeDateAndTime;
|
|
dpvc.pickerMode = UIDatePickerModeDateAndTime;
|
|
|
- [dateFormatter setDateFormat:@"yyyy/MM/dd HH:mm:ss"];
|
|
|
|
|
|
|
+ [dateFormatter setDateFormat:@"MM/dd/yyyy HH:mm:ss"];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
__weak typeof(self) weakSelf = self;
|
|
__weak typeof(self) weakSelf = self;
|
|
@@ -5363,7 +5363,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
@@ -5419,7 +5419,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// [self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
// [self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|
|
@@ -5438,7 +5438,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
|
|
|
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
@@ -5488,7 +5488,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
@@ -5986,7 +5986,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
//
|
|
//
|
|
|
// NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
// NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
|
// bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
// bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
|
- // if(refresh==1)
|
|
|
|
|
|
|
+ // if(refresh)
|
|
|
// {
|
|
// {
|
|
|
//
|
|
//
|
|
|
// if(restore_json!=nil)
|
|
// if(restore_json!=nil)
|
|
@@ -6105,7 +6105,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
//
|
|
//
|
|
|
// NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
// NSDictionary * restore_json=[item_json objectForKeyedSubscript:@"restore"];
|
|
|
// bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
// bool partial_refresh=[[item_json valueForKey:@"partial_refresh"] boolValue];
|
|
|
- // if(refresh==1)
|
|
|
|
|
|
|
+ // if(refresh)
|
|
|
// {
|
|
// {
|
|
|
//
|
|
//
|
|
|
// if(restore_json!=nil)
|
|
// if(restore_json!=nil)
|
|
@@ -6276,7 +6276,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
@@ -6332,7 +6332,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// [self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
// [self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|
|
@@ -6362,7 +6362,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
// DebugLog(@"endedit %d_%d",indexPath.section,indexPath.row);
|
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
NSMutableDictionary* item_json =[((NSMutableArray*)self.content_data_control[indexPath.section])[indexPath.row] mutableCopy];
|
|
|
|
|
|
|
|
- int refresh = [[item_json valueForKey:@"refresh"] intValue];
|
|
|
|
|
|
|
+ bool refresh = [[item_json valueForKey:@"refresh"] boolValue];
|
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
bool discardDirty = [[item_json valueForKey:@"discard_dirty"] boolValue];
|
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
NSString* refresh_trigger = [item_json valueForKey:@"name"];
|
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
NSString* subid=[item_json valueForKey:@"subid"];
|
|
@@ -6414,7 +6414,7 @@ if(!self.alert.isBeingDismissed)
|
|
|
[self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
[self.editorTable reloadSections:sectionToReload withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(refresh==1)
|
|
|
|
|
|
|
+ if(refresh)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|
|
[self refresh:refresh_trigger discardDirty:discardDirty];
|