|
@@ -1471,9 +1471,9 @@ repeat:
|
|
|
return jsobj;
|
|
return jsobj;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-+(NSDictionary*)direct_save_TearSheet:(NSString*) request_url name:(NSString*)name delete:(NSString* )ids note:(NSString* )saveNote modelIds:(NSDictionary *)modelIds
|
|
|
|
|
|
|
++(NSDictionary*)direct_save_TearSheet:(NSMutableDictionary*)params//(NSString*) request_url name:(NSString*)name delete:(NSString* )ids note:(NSString* )saveNote modelIds:(NSDictionary *)modelIds
|
|
|
{
|
|
{
|
|
|
- NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
|
|
|
|
+ // NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
if(appDelegate.user!=nil)
|
|
if(appDelegate.user!=nil)
|
|
|
[params setValue:appDelegate.user forKey:@"user"];
|
|
[params setValue:appDelegate.user forKey:@"user"];
|
|
@@ -1481,7 +1481,7 @@ repeat:
|
|
|
[params setValue:appDelegate.contact_id forKey:@"contactId"];
|
|
[params setValue:appDelegate.contact_id forKey:@"contactId"];
|
|
|
if(appDelegate.password!=nil)
|
|
if(appDelegate.password!=nil)
|
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
|
-
|
|
|
|
|
|
|
+ /*
|
|
|
[params setValue:request_url forKey:@"pdfUrl"];
|
|
[params setValue:request_url forKey:@"pdfUrl"];
|
|
|
[params setValue:name forKey:@"pdfName"];
|
|
[params setValue:name forKey:@"pdfName"];
|
|
|
[params setValue:ids forKey:@"itemIds"];
|
|
[params setValue:ids forKey:@"itemIds"];
|
|
@@ -1489,7 +1489,7 @@ repeat:
|
|
|
[params setValue:[modelIds objectForKey:@"product_ids"] forKey:@"product_ids"];
|
|
[params setValue:[modelIds objectForKey:@"product_ids"] forKey:@"product_ids"];
|
|
|
[params setValue:[modelIds objectForKey:@"item_ids"] forKey:@"item_ids"];
|
|
[params setValue:[modelIds objectForKey:@"item_ids"] forKey:@"item_ids"];
|
|
|
[params setValue:[modelIds objectForKey:@"remove_item"] forKey:@"remove_item"];
|
|
[params setValue:[modelIds objectForKey:@"remove_item"] forKey:@"remove_item"];
|
|
|
-
|
|
|
|
|
|
|
+ */
|
|
|
NSData* json= nil;
|
|
NSData* json= nil;
|
|
|
|
|
|
|
|
if(appDelegate.offline_mode)
|
|
if(appDelegate.offline_mode)
|
|
@@ -1582,9 +1582,9 @@ repeat:
|
|
|
NSDictionary *jsobj = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableLeaves error:&error];
|
|
NSDictionary *jsobj = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableLeaves error:&error];
|
|
|
return jsobj;
|
|
return jsobj;
|
|
|
}
|
|
}
|
|
|
-+(NSDictionary*)save_TearSheet:(NSString*) path name:(NSString*)name delete:(NSString* )ids note:(NSString*)note configureParams:(NSString *)configureParams modelIds:(NSDictionary *)modelIds
|
|
|
|
|
|
|
++(NSDictionary*)save_TearSheet:(NSMutableDictionary *)params//(NSString*) path name:(NSString*)name delete:(NSString* )ids note:(NSString*)note configureParams:(NSString *)configureParams modelIds:(NSDictionary *)modelIds
|
|
|
{
|
|
{
|
|
|
- NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
|
|
|
|
+ // NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
if(appDelegate.user!=nil)
|
|
if(appDelegate.user!=nil)
|
|
|
[params setValue:appDelegate.user forKey:@"user"];
|
|
[params setValue:appDelegate.user forKey:@"user"];
|
|
@@ -1592,7 +1592,7 @@ repeat:
|
|
|
[params setValue:appDelegate.contact_id forKey:@"contactId"];
|
|
[params setValue:appDelegate.contact_id forKey:@"contactId"];
|
|
|
if(appDelegate.password!=nil)
|
|
if(appDelegate.password!=nil)
|
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
[params setValue:appDelegate.password forKey:@"password"];
|
|
|
-
|
|
|
|
|
|
|
+ /*
|
|
|
[params setValue:path forKey:@"pdfPath"];
|
|
[params setValue:path forKey:@"pdfPath"];
|
|
|
[params setValue:name forKey:@"pdfName"];
|
|
[params setValue:name forKey:@"pdfName"];
|
|
|
[params setValue:note forKey:@"pdfNote"];
|
|
[params setValue:note forKey:@"pdfNote"];
|
|
@@ -1601,7 +1601,7 @@ repeat:
|
|
|
[params setValue:[modelIds objectForKey:@"product_ids"] forKey:@"product_ids"];
|
|
[params setValue:[modelIds objectForKey:@"product_ids"] forKey:@"product_ids"];
|
|
|
[params setValue:[modelIds objectForKey:@"item_ids"] forKey:@"item_ids"];
|
|
[params setValue:[modelIds objectForKey:@"item_ids"] forKey:@"item_ids"];
|
|
|
[params setValue:[modelIds objectForKey:@"remove_item"] forKey:@"remove_item"];
|
|
[params setValue:[modelIds objectForKey:@"remove_item"] forKey:@"remove_item"];
|
|
|
-
|
|
|
|
|
|
|
+ */
|
|
|
NSData* json = nil;
|
|
NSData* json = nil;
|
|
|
if(appDelegate.offline_mode)
|
|
if(appDelegate.offline_mode)
|
|
|
{
|
|
{
|