Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
X
xffruit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
xffruit
Commits
c86c82fa
Commit
c86c82fa
authored
Jul 27, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式版2.0.6
parent
805d1f66
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
GXFFunctionDB.m
XFFruit/Controllers/DataBaseController/GXFFunctionDB.m
+5
-1
GXFFunctionDBHelper.m
XFFruit/Controllers/DataBaseController/GXFFunctionDBHelper.m
+2
-2
Info.plist
XFFruit/Info.plist
+0
-0
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+1
-0
ICRLoginViewController.m
XFFruit/ViewControllers/Login/ICRLoginViewController.m
+5
-4
No files found.
XFFruit/Controllers/DataBaseController/GXFFunctionDB.m
View file @
c86c82fa
...
@@ -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
];
...
...
XFFruit/Controllers/DataBaseController/GXFFunctionDBHelper.m
View file @
c86c82fa
...
@@ -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
(
@"展现功能界面:插入的数据不是一一对应的"
);
...
...
XFFruit/Info.plist
View file @
c86c82fa
No preview for this file type
XFFruit/Macro/ICRAppMacro.h
View file @
c86c82fa
...
@@ -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
//********测试环境********
//********测试环境********
...
...
XFFruit/ViewControllers/Login/ICRLoginViewController.m
View file @
c86c82fa
...
@@ -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
];
//完成对初始化数据书库的操作
//完成对初始化数据书库的操作
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment