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
404500c5
Commit
404500c5
authored
9 years ago
by
freecui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加工单接口bug修改
parent
cad79801
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
99 deletions
+148
-99
NSDate+FormatterAdditions.m
XFFruit/General/Categories/NSDate+FormatterAdditions.m
+1
-0
IBTModel.h
XFFruit/Utilities/IBTModels/IBTModel.h
+1
-0
IBTModel.m
XFFruit/Utilities/IBTModels/IBTModel.m
+42
-0
GXFNewProcessViewController.m
...rollers/Process/Controllers/GXFNewProcessViewController.m
+104
-99
No files found.
XFFruit/General/Categories/NSDate+FormatterAdditions.m
View file @
404500c5
...
@@ -290,6 +290,7 @@
...
@@ -290,6 +290,7 @@
}
}
-
(
NSString
*
)
httpParameterString
{
-
(
NSString
*
)
httpParameterString
{
NSString
*
str
=
[
self
stringWithFormatter
:
@"%Y-%m-%d %H:%M:%S"
];
return
[
self
stringWithFormatter
:
@"%Y-%m-%d %H:%M:%S"
];
return
[
self
stringWithFormatter
:
@"%Y-%m-%d %H:%M:%S"
];
}
}
-
(
NSString
*
)
coverStringFromString
{
-
(
NSString
*
)
coverStringFromString
{
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/IBTModels/IBTModel.h
View file @
404500c5
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
// Fuctions
// Fuctions
-
(
NSDictionary
*
)
dictForCommit
;
-
(
NSDictionary
*
)
dictForCommit
;
-
(
NSMutableDictionary
*
)
mutableDictDateToStringForCommit
;
//把属性为日期类型的转化为string
-
(
NSDictionary
*
)
dictForLocalSave
;
-
(
NSDictionary
*
)
dictForLocalSave
;
-
(
void
)
praseFromJsonDict
:(
NSDictionary
*
)
dict
;
-
(
void
)
praseFromJsonDict
:(
NSDictionary
*
)
dict
;
-
(
void
)
praseFromLocalDict
:(
NSDictionary
*
)
dict
;
-
(
void
)
praseFromLocalDict
:(
NSDictionary
*
)
dict
;
...
...
This diff is collapsed.
Click to expand it.
XFFruit/Utilities/IBTModels/IBTModel.m
View file @
404500c5
...
@@ -418,6 +418,48 @@
...
@@ -418,6 +418,48 @@
return
mDict
;
return
mDict
;
}
}
-
(
NSMutableDictionary
*
)
mutableDictDateToStringForCommit
{
unsigned
int
count
;
objc_property_t
*
properties
=
class_copyPropertyList
([
self
class
],
&
count
);
if
(
count
==
0
)
{
free
(
properties
);
return
nil
;
}
NSMutableDictionary
*
mDict
=
[
NSMutableDictionary
dictionary
];
NSDictionary
*
dictSpKeyDict
=
[[
self
class
]
specialKeysAndReplaceKeys
];
NSArray
*
arrSpecialKeys
=
[
dictSpKeyDict
allKeys
];
NSArray
*
arrCustomKeys
=
[[
self
class
]
customAcitonKeys
];
NSArray
*
arrLocalKeys
=
[[
self
class
]
localKeys
];
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
objc_property_t
property
=
properties
[
i
];
NSString
*
key
=
[
NSString
stringWithUTF8String
:
property_getName
(
property
)];
id
value
=
[
self
valueForKey
:
key
];
if
([
value
isKindOfClass
:[
NSDate
class
]])
{
value
=
[
value
httpParameterString
];
}
if
(
value
)
{
if
([
arrCustomKeys
containsObject
:
key
]
||
[
arrLocalKeys
containsObject
:
key
])
{
continue
;
}
else
if
([
arrSpecialKeys
containsObject
:
key
])
{
[
mDict
addEntriesFromDictionary
:@{
dictSpKeyDict
[
key
]
:
value
}];
}
else
{
[
mDict
addEntriesFromDictionary
:@{
key
:
value
}];
}
}
}
free
(
properties
);
return
mDict
;
}
-
(
NSDictionary
*
)
dictForLocalSave
{
-
(
NSDictionary
*
)
dictForLocalSave
{
unsigned
int
count
;
unsigned
int
count
;
objc_property_t
*
properties
=
class_copyPropertyList
([
self
class
],
&
count
);
objc_property_t
*
properties
=
class_copyPropertyList
([
self
class
],
&
count
);
...
...
This diff is collapsed.
Click to expand it.
XFFruit/ViewControllers/Process/Controllers/GXFNewProcessViewController.m
View file @
404500c5
This diff is collapsed.
Click to expand it.
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