//
//  IssueReturnDataControllerx.h
//  EAMiPad
//
//  Created by Lakshmi Kothapalli on 1/20/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//


#import "RecordDataController.h"
#import "R5ISSUERETURNTRANSACTIONS.h"
#import "R5PARTS.h"
#import "LOVData.h"

@class EAMAppDelegate;
@class R5ISSUERETURNTRANSACTIONS;
@class EAMIssueReturn;
@class EAMIRParts;

@interface IssueReturnDataController : RecordDataController
{
    
    R5ISSUERETURNTRANSACTIONS     *_recordValue;
}
@property (nonatomic, unsafe_unretained)    EAMAppDelegate      *appDelegate;
@property (nonatomic, strong)               NSString                *workOrderNumber;
@property (nonatomic, strong)               NSString                *workOrderDepartment;
@property (nonatomic, strong)               EAMIssueReturn          *issueReturn;
@property (nonatomic, strong)               EAMIRParts              *eamIRParts;
@property (nonatomic, strong)               R5IRPARTS              *parts;
@property (nonatomic )                      BOOL                    quickIR;
@property (nonatomic)                       BOOL                    departmentSecurityReadOnly;
@property (nonatomic)                       BOOL                    jTAuthReadOnly;
@property (nonatomic)                       BOOL                    isWorkRequest;
@property (nonatomic)                       BOOL                    isWorkOrderCompleted;
//delete permission
@property (nonatomic)                       BOOL                    jTAuthIsDelete;
@property (nonatomic, strong)               NSString                *costCode;
@property (nonatomic, weak) id delegate;
@property (nonatomic, strong)               NSString                *act_code;

- (void)loadRecordViewLayoutForIssueReturn;
- (PickerData *)getPickerDataSource:(NSString *)fieldName;
- (LOVData *)getLOVDataSource:(NSString *)lovName;

- (void)getIssueReturns;
- (void)getWorkOrderPartDefault;
- (void)getDefaultStore;
- (void)getIssueReturnPartInfo;
- (void)addIssueReturnTransaction;
- (void)resetRecord;
- (BOOL)validateInput;
- (void)enableFields:(BOOL)setReadOnly;
- (void)enableFields:(BOOL)setReadOnly fromTransaction:(BOOL)isTransactionScreen;
- (void)clearFields;
- (void)deleteIssueReturnTransaction;
- (void)updateIssueReturnTransaction;

- (void)checkCompletedChildWO;
- (void)saveSplitData;

@end
