|
@@ -298,6 +298,7 @@
|
|
|
action:@selector(onSaveClick:)];
|
|
action:@selector(onSaveClick:)];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+#ifdef BUILD_NPD
|
|
|
UIImage *submit_img = [[UIImage imageNamed:@"submit_red"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
|
|
UIImage *submit_img = [[UIImage imageNamed:@"submit_red"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
|
|
|
self.btnSubmitOrder = nil;
|
|
self.btnSubmitOrder = nil;
|
|
|
self.btnSubmitOrder =[[UIBarButtonItem alloc] initWithImage:submit_img
|
|
self.btnSubmitOrder =[[UIBarButtonItem alloc] initWithImage:submit_img
|
|
@@ -309,14 +310,24 @@
|
|
|
UIBarButtonItem *fixedItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
|
UIBarButtonItem *fixedItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
|
|
fixedItem.width = 20.0f;
|
|
fixedItem.width = 20.0f;
|
|
|
|
|
|
|
|
- AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
|
|
-
|
|
|
|
|
// if(appDelegate.user_type ==USER_ROLE_EMPLOYEE)
|
|
// if(appDelegate.user_type ==USER_ROLE_EMPLOYEE)
|
|
|
{
|
|
{
|
|
|
[items addObject:savebtn];
|
|
[items addObject:savebtn];
|
|
|
|
|
|
|
|
[items addObject:fixedItem];
|
|
[items addObject:fixedItem];
|
|
|
}
|
|
}
|
|
|
|
|
+#else
|
|
|
|
|
+
|
|
|
|
|
+ UIImage *submit_img = [UIImage imageNamed:@"submit_red"];
|
|
|
|
|
+ self.btnSubmitOrder = nil;
|
|
|
|
|
+ self.btnSubmitOrder =[[UIBarButtonItem alloc] initWithImage:submit_img
|
|
|
|
|
+ style:UIBarButtonItemStylePlain
|
|
|
|
|
+ target:self
|
|
|
|
|
+ action:@selector(onCommitOrderClick:)];
|
|
|
|
|
+ [items addObject:savebtn];
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+ AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
|
|
|
|
|
if (!self.isResume) {
|
|
if (!self.isResume) {
|
|
|
// 正常情况
|
|
// 正常情况
|