Commit c86c82fa authored by Sandy's avatar Sandy

正式版2.0.6

parent 805d1f66
...@@ -37,7 +37,11 @@ ...@@ -37,7 +37,11 @@
} else { } else {
dbPath = [path stringByAppendingString:@"function.db"]; dbPath = [path stringByAppendingString:@"function.db"];
} }
if ([[NSFileManager defaultManager] fileExistsAtPath:dbPath]) {
[[NSFileManager defaultManager] removeItemAtPath:dbPath error:nil];
}
self.dataBase = [FMDatabase databaseWithPath:dbPath]; self.dataBase = [FMDatabase databaseWithPath:dbPath];
CLog(@"dbPath = %@",dbPath); CLog(@"dbPath = %@",dbPath);
BOOL isOpen = [_dataBase open]; BOOL isOpen = [_dataBase open];
......
...@@ -100,8 +100,8 @@ ...@@ -100,8 +100,8 @@
@"新建采购通知",@"查看采购通知", @"查看采购通知", @"新建采购通知",@"查看采购通知", @"查看采购通知",
@"新建采购单",@"查看采购单", @"查看采购单", @"供应商确认采购单",//【供应商】", @"新建采购单",@"查看采购单", @"查看采购单", @"供应商确认采购单",//【供应商】",
@"新建发运单",@"查看发运单", @"查看发运单", @"新建发运单",@"查看发运单", @"查看发运单",
@"新建加工单",@"查看加工单", @"查看加工单",
@"新建转运单", @"查看转运单", @"查看转运单", @"新建转运单", @"查看转运单", @"查看转运单",
@"新建加工单",@"查看加工单", @"查看加工单",
@"查看收货单", @"查看收货单"]; @"查看收货单", @"查看收货单"];
#ifdef Demonstrate #ifdef Demonstrate
...@@ -133,8 +133,8 @@ ...@@ -133,8 +133,8 @@
@(4),@(5),@(5),//"采购通知", @(4),@(5),@(5),//"采购通知",
@(6),@(7),@(7),@(8),//"采购单" @(6),@(7),@(7),@(8),//"采购单"
@(9),@(10),@(10),//"发运单" @(9),@(10),@(10),//"发运单"
@(11),@(12),@(12),//"转运单"
@(13),@(14),@(14),//加工单 @(13),@(14),@(14),//加工单
@(11),@(12),@(12),//"转运单"
@(15),@(15),];//收货单 @(15),@(15),];//收货单
if ((functionsId.count != functionsName.count) ||(functionsId.count != functionsImageName.count)||(functionsName.count != functionsImageName.count)) { if ((functionsId.count != functionsName.count) ||(functionsId.count != functionsImageName.count)||(functionsName.count != functionsImageName.count)) {
NSLog(@"展现功能界面:插入的数据不是一一对应的"); NSLog(@"展现功能界面:插入的数据不是一一对应的");
......
No preview for this file type
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
//********开发环境******** //********开发环境********
#define HTTP_REST_API_BASE_URL @"http://gomoredev:8090/cruiser-server/rest" #define HTTP_REST_API_BASE_URL @"http://gomoredev:8090/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://gomoredev:8090" #define HTTP_REST_REPORT_BASE_URL @"http://gomoredev:8090"
#else #else
//********测试环境******** //********测试环境********
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
} }
#ifdef DEBUG #ifdef DEBUG
self.m_containerView.m_cCodeTextF.text = @"923"; self.m_containerView.m_cCodeTextF.text = @"211534962";
self.m_containerView.m_userNameTextF.text = @"admin"; self.m_containerView.m_userNameTextF.text = @"admin";
self.m_containerView.m_passwordTextF.text = @"thoradmin"; self.m_containerView.m_passwordTextF.text = @"thoradmin";
#else #else
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
- (void)onLoginTapped:(__unused id)sender - (void)onLoginTapped:(__unused id)sender
{ {
// [[GXFFunctionDB sharedInstance] deleteTables];
#if 0 #if 0
ICRAppViewControllerManager *mgr = ICRAppViewControllerManager *mgr =
[ICRAppViewControllerManager getAppViewControllerManager]; [ICRAppViewControllerManager getAppViewControllerManager];
...@@ -159,10 +159,11 @@ ...@@ -159,10 +159,11 @@
ICRAppViewControllerManager *mgr = [ICRAppViewControllerManager getAppViewControllerManager]; ICRAppViewControllerManager *mgr = [ICRAppViewControllerManager getAppViewControllerManager];
[mgr openMainFrame]; [mgr openMainFrame];
#pragma 可以开新线程 ,待优化 #pragma 可以开新线程 ,待优化
//当登陆成功时就建立功能数据表 //当登陆成功时就建立功能数据表
// [[GXFFunctionDB sharedInstance] deleteTables]; [[GXFFunctionDB sharedInstance] deleteTables];
[[GXFFunctionDB sharedInstance] createTables]; [[GXFFunctionDB sharedInstance] createTables];
//完成对初始化数据书库的操作 //完成对初始化数据书库的操作
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment