|
|
@@ -218,7 +218,7 @@
|
|
|
{
|
|
|
if([mode isEqualToString:@"Regular Mode"])
|
|
|
{
|
|
|
- self.mode=@"Regular Mode";
|
|
|
+ self.mode=@"RM";
|
|
|
NSString* title = self.user;
|
|
|
[main_vc.buttonUser setTitle:title forState:UIControlStateNormal];
|
|
|
|
|
|
@@ -233,7 +233,7 @@
|
|
|
else
|
|
|
{
|
|
|
|
|
|
- self.mode=@"Trade Show Mode";
|
|
|
+ self.mode=@"TM";
|
|
|
NSString* title = self.user;
|
|
|
[main_vc.buttonUser setTitle:title forState:UIControlStateNormal];
|
|
|
|
|
|
@@ -359,38 +359,38 @@
|
|
|
//}
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
|
{
|
|
|
- NSString* order_filter_source_path =[[NSBundle mainBundle] pathForResource:@"status_filter_cadedate" ofType:@"json" ];
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
|
|
- NSString *documents = [paths objectAtIndex:0];
|
|
|
- NSString *dist_path = [documents stringByAppendingPathComponent:@"status_filter_cadedate.json"];
|
|
|
-
|
|
|
-
|
|
|
- if ([[NSFileManager defaultManager] fileExistsAtPath:dist_path]) {
|
|
|
-
|
|
|
- NSLog(@"文件已经存在了");
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- // NSLog(@"resourceSampleImagesFolderPath=%@",resourceFolderPath);
|
|
|
-
|
|
|
- NSData *mainBundleFile = [NSData dataWithContentsOfFile:order_filter_source_path];
|
|
|
-
|
|
|
- // NSLog(@"mainBundleFile==%@",mainBundleFile);
|
|
|
-
|
|
|
- [[NSFileManager defaultManager] createFileAtPath:dist_path
|
|
|
-
|
|
|
- contents:mainBundleFile
|
|
|
-
|
|
|
- attributes:nil];
|
|
|
-
|
|
|
- }
|
|
|
+// NSString* order_filter_source_path =[[NSBundle mainBundle] pathForResource:@"status_filter_cadedate" ofType:@"json" ];
|
|
|
+// /var/folders/65/j0_0c8rx66zb29cjnjndr11r0000gn/T/AppIconMaker/appicon.png
|
|
|
+//
|
|
|
+//
|
|
|
+// NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
|
|
|
+// NSString *documents = [paths objectAtIndex:0];
|
|
|
+// NSString *dist_path = [documents stringByAppendingPathComponent:@"status_filter_cadedate.json"];
|
|
|
+//
|
|
|
+//
|
|
|
+// if ([[NSFileManager defaultManager] fileExistsAtPath:dist_path]) {
|
|
|
+//
|
|
|
+// NSLog(@"文件已经存在了");
|
|
|
+//
|
|
|
+// }
|
|
|
+// else
|
|
|
+// {
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+// // NSLog(@"resourceSampleImagesFolderPath=%@",resourceFolderPath);
|
|
|
+//
|
|
|
+// NSData *mainBundleFile = [NSData dataWithContentsOfFile:order_filter_source_path];
|
|
|
+//
|
|
|
+// // NSLog(@"mainBundleFile==%@",mainBundleFile);
|
|
|
+//
|
|
|
+// [[NSFileManager defaultManager] createFileAtPath:dist_path
|
|
|
+//
|
|
|
+// contents:mainBundleFile
|
|
|
+//
|
|
|
+// attributes:nil];
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
self.offline_mode = OFFLINE_MODE;
|
|
|
// Override point for customization after application launch.
|
|
|
@@ -470,6 +470,8 @@
|
|
|
}
|
|
|
-(void) Logout
|
|
|
{
|
|
|
+ MainViewController * main_vc= (MainViewController*)self.main_vc;
|
|
|
+ [main_vc logoutOrder];
|
|
|
self.user = nil;
|
|
|
self.password=nil;
|
|
|
self.user_icon=nil;
|