|
@@ -142,7 +142,7 @@
|
|
|
NSString* msg;
|
|
NSString* msg;
|
|
|
if(appDelegate.offline_mode)
|
|
if(appDelegate.offline_mode)
|
|
|
{
|
|
{
|
|
|
- msg=@"Are you sure to mark order as ready for submit?";
|
|
|
|
|
|
|
+ msg=@"Are you sure to mark offline order as ready for submit?";
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -726,7 +726,20 @@
|
|
|
[appDelegate closeOrder];
|
|
[appDelegate closeOrder];
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
|
|
|
|
|
|
- UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @"Submit successful." message:[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
+ NSString* title=nil;
|
|
|
|
|
+ NSString* msg=nil;
|
|
|
|
|
+ if(appDelegate.offline_mode)
|
|
|
|
|
+ {
|
|
|
|
|
+ title=TITLE_OFFLINE_SUBMIT;
|
|
|
|
|
+ msg=MSG_OFFLINE_SUBMIT;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ title=@"Submit successful.";
|
|
|
|
|
+ msg=[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle: title message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
|
[alert show];
|
|
[alert show];
|
|
|
|
|
|
|
@@ -831,7 +844,21 @@
|
|
|
appDelegate.order_code = orderCode;
|
|
appDelegate.order_code = orderCode;
|
|
|
appDelegate.order_status = [[editor_json valueForKey:@"orderStatus"] intValue];
|
|
appDelegate.order_status = [[editor_json valueForKey:@"orderStatus"] intValue];
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
|
- UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @"Submit successful." message:[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
+
|
|
|
|
|
+ NSString* title=nil;
|
|
|
|
|
+ NSString* msg=nil;
|
|
|
|
|
+ if(appDelegate.offline_mode)
|
|
|
|
|
+ {
|
|
|
|
|
+ title=TITLE_OFFLINE_SUBMIT;
|
|
|
|
|
+ msg=MSG_OFFLINE_SUBMIT;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ title=@"Submit successful.";
|
|
|
|
|
+ msg=[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle: title message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
|
[alert show];
|
|
[alert show];
|
|
|
// // self.labelContact.text=appDelegate.contact_name;
|
|
// // self.labelContact.text=appDelegate.contact_name;
|
|
@@ -919,7 +946,20 @@
|
|
|
[appDelegate closeOrder];
|
|
[appDelegate closeOrder];
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
|
|
|
|
|
|
- UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @"Submit successful." message:[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
+ NSString* title=nil;
|
|
|
|
|
+ NSString* msg=nil;
|
|
|
|
|
+ if(appDelegate.offline_mode)
|
|
|
|
|
+ {
|
|
|
|
|
+ title=TITLE_OFFLINE_SUBMIT;
|
|
|
|
|
+ msg=MSG_OFFLINE_SUBMIT;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ title=@"Submit successful.";
|
|
|
|
|
+ msg=[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle: title message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
|
[alert show];
|
|
[alert show];
|
|
|
|
|
|
|
@@ -1037,7 +1077,22 @@
|
|
|
appDelegate.order_code = orderCode;
|
|
appDelegate.order_code = orderCode;
|
|
|
appDelegate.order_status = [[editor_json valueForKey:@"orderStatus"] intValue];
|
|
appDelegate.order_status = [[editor_json valueForKey:@"orderStatus"] intValue];
|
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
[((MainViewController*)appDelegate.main_vc) reloadOrder:true immediately:false];
|
|
|
- UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @"Submit successful." message:[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
+
|
|
|
|
|
+ NSString* title=nil;
|
|
|
|
|
+ NSString* msg=nil;
|
|
|
|
|
+ if(appDelegate.offline_mode)
|
|
|
|
|
+ {
|
|
|
|
|
+ title=TITLE_OFFLINE_SUBMIT;
|
|
|
|
|
+ msg=MSG_OFFLINE_SUBMIT;
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ title=@"Submit successful.";
|
|
|
|
|
+ msg=[NSString stringWithFormat:@"SO#: %@",[editor_json valueForKey:@"so#"]];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ UIAlertView * alert = [[UIAlertView alloc] initWithTitle: title message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
|
|
|
|
|
|
|
|
[alert show];
|
|
[alert show];
|
|
|
// // self.labelContact.text=appDelegate.contact_name;
|
|
// // self.labelContact.text=appDelegate.contact_name;
|