//
//  TranDataProc.h
//  SmartVIGS
//
//  Created by itgen on 11. 3. 30..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MVTranDataProc.h"


@protocol ITranDataDelegate;
@interface TranDataProc : MVTranDataProc
{
    id <ITranDataDelegate> m_delegateTran;
}

- (void) addPacketHeaderApext:(char) szApext;
- (void)setTranDelegate:(id <ITranDataDelegate>)delegate;
- (int)requestData:(BOOL)isCheckLogin;
- (int)requestNextData:(BOOL)isCheckLogin;
- (void)setDataHeader:(NSString*)strKey value:(NSString*)strValue;
- (void)setFieldData:(NSString*)sBlockName fieldName:(NSString*)sFieldName index:(int)nIndex value:(NSString*)sValue;
- (NSString*)getFieldData:(NSString*)sBlockName fieldName:(NSString*)sFieldName index:(int)nIndex;
- (unsigned char)getFieldAttr:(NSString*)sBlockName fieldName:(NSString*)sFieldName index:(int)nIndex;
- (int) getDataCount:(NSString*)sBlockName;
- (void)initData;
- (NSArray*)getInputBlockNames;
- (NSArray*)getOutBlockNames;
- (BOOL)isAccountNoField:(NSString*)blockID fieldID:(NSString*)fieldID;
- (BOOL)isEncryptField:(NSString*)blockID fieldID:(NSString*)fieldID;
- (BOOL)isItemCodeField:(NSString*)blockID fieldID:(NSString*)fieldID;
- (NSString*)getFieldName:(NSString*)blockID fieldID:(NSString*)fieldID;
@end
