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
95c407fd
Commit
95c407fd
authored
Jul 11, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改计算精度问题
parent
3e43ba17
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
ICRAppDelegate.m
XFFruit/AppDelegate/ICRAppDelegate.m
+3
-4
Info.plist
XFFruit/Info.plist
+2
-2
ICRAppMacro.h
XFFruit/Macro/ICRAppMacro.h
+4
-4
GXFProcessMaterial.h
XFFruit/ViewControllers/Process/Views/GXFProcessMaterial.h
+1
-1
ShopDetaileViewController.m
...trollers/PurchaseNotice/Views/ShopDetaileViewController.m
+5
-3
No files found.
XFFruit/AppDelegate/ICRAppDelegate.m
View file @
95c407fd
...
@@ -74,10 +74,9 @@
...
@@ -74,10 +74,9 @@
}
}
#pragma mark enterprise alertView 企业版提示
#pragma mark enterprise alertView 企业版提示
-
(
void
)
enterpriseUpdate
{
-
(
void
)
enterpriseUpdate
{
NSString
*
path
=
[[
NSBundle
mainBundle
]
pathForResource
:
@"Info"
ofType
:
@"plist"
];
NSString
*
version
=
[[[
NSBundle
mainBundle
]
infoDictionary
]
objectForKey
:
@"CFBundleShortVersionString"
];
NSDictionary
*
content
=
[
NSDictionary
dictionaryWithContentsOfFile
:
path
];
NSString
*
version
=
[
content
valueForKey
:
@"CFBundleVersion"
]
;
self
.
version
=
version
;
self
.
version
=
version
;
// 获取服务器更新信息
// 获取服务器更新信息
...
...
XFFruit/Info.plist
View file @
95c407fd
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
4
<
/string
>
<
string
>
1.2.
6
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.2.4
<
/string
>
<
string
>
0
<
/string
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
NSAllowsArbitraryLoads
<
/k
e
y
>
<
k
e
y
>
NSAllowsArbitraryLoads
<
/k
e
y
>
...
...
XFFruit/Macro/ICRAppMacro.h
View file @
95c407fd
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/cruiser-server/rest"
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:7580/cruiser-server/rest"
//********测试环境********
//********测试环境********
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7280/cruiser-server/rest"
//
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7280/cruiser-server/rest"
//********
现场
正式环境*********
//********正式环境*********
//
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7380/cruiser-server/rest"
#define HTTP_REST_API_BASE_URL @"http://122.224.171.126:7380/cruiser-server/rest"
#define HTTP_REST_REPORT_BASE_URL @"http://122.224.171.126:7380"
#define HTTP_REST_REPORT_BASE_URL @"http://122.224.171.126:7380"
// HTTP
// HTTP
//#define HTTP_REST_API_BASE_URL @"http://115.28.191.44:8080/IPatrol/rest"
//#define HTTP_REST_API_BASE_URL @"http://115.28.191.44:8080/IPatrol/rest"
//10月23 122.224.171.126:7280
//10月23 122.224.171.126:7280
...
...
XFFruit/ViewControllers/Process/Views/GXFProcessMaterial.h
View file @
95c407fd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
@property
(
nonatomic
,
copy
)
NSString
*
place
;
//产地
@property
(
nonatomic
,
copy
)
NSString
*
place
;
//产地
@property
(
nonatomic
,
copy
)
NSString
*
quality
;
//品质信息
@property
(
nonatomic
,
copy
)
NSString
*
quality
;
//品质信息
@property
(
nonatomic
,
strong
)
NSNumber
*
baseQty
;
//基础数量
@property
(
nonatomic
,
strong
)
NSNumber
*
baseQty
;
//基础数量
@property
(
nonatomic
,
strong
)
NSNumber
*
basePrice
;
//基础单价
@property
(
nonatomic
,
assign
)
NSNumber
*
basePrice
;
//基础单价
@property
(
nonatomic
,
strong
)
NSNumber
*
total
;
//金额
@property
(
nonatomic
,
strong
)
NSNumber
*
total
;
//金额
@property
(
nonatomic
,
copy
)
NSString
*
remark
;
//备注
@property
(
nonatomic
,
copy
)
NSString
*
remark
;
//备注
-
(
instancetype
)
initWithDict
:
(
NSDictionary
*
)
dict
;
-
(
instancetype
)
initWithDict
:
(
NSDictionary
*
)
dict
;
...
...
XFFruit/ViewControllers/PurchaseNotice/Views/ShopDetaileViewController.m
View file @
95c407fd
...
@@ -490,11 +490,13 @@ typedef enum : NSUInteger {
...
@@ -490,11 +490,13 @@ typedef enum : NSUInteger {
-
(
void
)
setPacktAndTotalPrice
{
-
(
void
)
setPacktAndTotalPrice
{
if
(
self
.
basePrice
&&
foundationUnitPrice
.
text
.
length
>
0
)
{
if
(
self
.
basePrice
&&
foundationUnitPrice
.
text
.
length
>
0
)
{
if
(
foundationQuantity
.
text
.
length
>
0
)
{
if
(
foundationQuantity
.
text
.
length
>
0
)
{
float
totalPrice
=
[
self
.
basePrice
floatValue
]
*
[
foundationQuantity
.
text
floatValue
];
float
basePrice
=
[
self
.
basePrice
doubleValue
];
totalMoney
.
text
=
[
NSString
stringWithFormat
:
@"%.2f"
,
totalPrice
];
float
foundationQtt
=
[
foundationQuantity
.
text
doubleValue
];
float
totalPrice
=
basePrice
*
1000
*
foundationQtt
;
totalMoney
.
text
=
[
NSString
stringWithFormat
:
@"%.2f"
,
totalPrice
/
1000
];
self
.
totalPrice
=
[
NSNumber
numberWithFloat
:
totalPrice
];
self
.
totalPrice
=
[
NSNumber
numberWithFloat
:
totalPrice
];
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
floatValue
]
>
0
)
{
if
(
packageQuantity
.
text
.
length
>
0
&&
[
packageQuantity
.
text
floatValue
]
>
0
)
{
float
packagePrice
=
totalPrice
/
[
packageQuantity
.
text
floatValue
];
float
packagePrice
=
totalPrice
/
[
packageQuantity
.
text
floatValue
]
/
1000
;
packageUnitPrice
.
text
=
[
NSString
stringWithFormat
:
@"%.2f"
,
packagePrice
];
packageUnitPrice
.
text
=
[
NSString
stringWithFormat
:
@"%.2f"
,
packagePrice
];
self
.
packPrice
=
[
NSNumber
numberWithFloat
:
packagePrice
];
self
.
packPrice
=
[
NSNumber
numberWithFloat
:
packagePrice
];
}
}
...
...
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