//
//  CommentsDataController.h
//  EAMiPad
//
//  Created by Satish Kumar Jakkula on 1/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "RecordDataController.h"
#import "R5ADDETAILS.h"

@class EAMAppDelegate;
@class EAMComments;


@protocol CommontsDataControllerDelegate

- (void)CommontsDataControllerDelegateSuccessWithData:(NSDictionary *)data ;

@end

@interface CommentsDataController : RecordDataController
{
    R5ADDETAILS     *_recordValue;
}

@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               EAMComments             *comments;
@property (nonatomic, strong)               NSString                *commentsScreen;

@property (nonatomic, weak) id delegate;

-(void)loadRecordViewLayoutForComments;

- (void)getComments:(NSString *)code rentity:(NSString *)rEntity;
- (void)getComments:(NSString *)code rentity:(NSString *)rEntity type:(NSString *)type;
- (void)getCommentsConnectedModeOnly:(NSString *)code rentity:(NSString *)rEntity;

- (void)updateComment;
- (void)addComment;
- (void)deleteComment;
- (void)enableFields:(BOOL)setReadOnly;
- (void)addCommentForConnectedMode;
- (void)updateCommentForConnectedMode;

- (void)getComplexComments:(NSString *)code;
@end
