|
|
@@ -744,6 +744,8 @@ static const int delta = 25;
|
|
|
}
|
|
|
-(void)Export:(NSString*) url
|
|
|
{
|
|
|
+
|
|
|
+ NSAssert(true, ([NSString stringWithFormat:@"%s Export not impl",object_getClassName([self class])]));
|
|
|
// if(self.download_query )
|
|
|
// {
|
|
|
// self.documentPath = self.download_query;
|
|
|
@@ -770,7 +772,7 @@ static const int delta = 25;
|
|
|
// });
|
|
|
}
|
|
|
- (void)downloadItemClick:(UIBarButtonItem *)sender {
|
|
|
-
|
|
|
+ NSAssert(true, ([NSString stringWithFormat:@"%s downloadItemClick not impl",object_getClassName([self class])]));
|
|
|
//
|
|
|
//
|
|
|
// if(self.download_query )
|
|
|
@@ -811,8 +813,9 @@ static const int delta = 25;
|
|
|
* 2: load more
|
|
|
*/
|
|
|
- (void)loadContentWithOption:(int)option Complete:(void (^)(int result,int count))finish {
|
|
|
+ NSAssert(true, ([NSString stringWithFormat:@"%s loadContentWithOption not impl",object_getClassName([self class])]));
|
|
|
// if (self.params) {
|
|
|
-//
|
|
|
+//
|
|
|
// NSMutableDictionary *dic = self.params.mutableCopy;
|
|
|
// switch (option) {
|
|
|
// case 0:
|
|
|
@@ -829,13 +832,13 @@ static const int delta = 25;
|
|
|
// }
|
|
|
// break;
|
|
|
// }
|
|
|
-//
|
|
|
+//
|
|
|
//// dic[@"criteria"] = self.params;
|
|
|
-//
|
|
|
+//
|
|
|
// [dic setObject:@(self.offset) forKey:@"offset"];
|
|
|
// [dic setObject:@(delta) forKey:@"limit"];
|
|
|
//// dic[@"criteria"] = [NSArray arrayWithObjects:@"aaa",@"bbb", nil];
|
|
|
-//
|
|
|
+//
|
|
|
// __weak typeof(self) weakSelf = self;
|
|
|
// dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
|
|
// NSDictionary *contentDic = [RANetwork query:dic];
|
|
|
@@ -848,35 +851,35 @@ static const int delta = 25;
|
|
|
// strongSelf.content_action = [contentDic objectForKey:@"row_action"];
|
|
|
// strongSelf.content_menu = [[contentDic objectForKey:@"menu"] mutableCopy];
|
|
|
// [strongSelf setupNavigationBar];
|
|
|
-//
|
|
|
+//
|
|
|
// UILabel * headerview=(UILabel *)self.tableview.tableHeaderView;
|
|
|
// headerview.text = contentDic[@"table_title"];
|
|
|
// [self resize_tableHeader];
|
|
|
-//
|
|
|
+//
|
|
|
// if(strongSelf.content_data==nil)
|
|
|
// strongSelf.content_data = [NSMutableDictionary new];
|
|
|
// NSMutableDictionary* newdata = [[contentDic objectForKey:@"data"] mutableCopy];
|
|
|
// for(int dc = 0;dc<[newdata[@"count"] intValue];dc++)
|
|
|
// {
|
|
|
// NSMutableDictionary * newdata_item = newdata[[NSString stringWithFormat:@"item_%d",dc]];
|
|
|
-//
|
|
|
+//
|
|
|
// strongSelf.content_data[[NSString stringWithFormat:@"item_%d",[strongSelf.content_data[@"count"] intValue] ]] = newdata_item;
|
|
|
// strongSelf.content_data[@"count"] = @([strongSelf.content_data[@"count"] intValue]+1);
|
|
|
// }
|
|
|
-//
|
|
|
+//
|
|
|
//// strongSelf.content_data = [contentDic objectForKey:@"data"];
|
|
|
// [strongSelf updateTableFrame];
|
|
|
// [strongSelf.tableview reloadData];
|
|
|
// } else {
|
|
|
// [RAUtils message_alert:[contentDic objectForKey:@"err_msg"] title:@"Warning" controller:strongSelf];
|
|
|
// }
|
|
|
-//
|
|
|
+//
|
|
|
// if (finish) {
|
|
|
// finish((int)result,(int)[self resultItemCount]);
|
|
|
// }
|
|
|
-//
|
|
|
+//
|
|
|
// }
|
|
|
-//
|
|
|
+//
|
|
|
// });
|
|
|
// });
|
|
|
// }
|