//
//  ESignatureViewController.h
//
//
//  Created by Lakshmi Kothapalli 9262012.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h> 
#import "Login.h"
#import "LOVViewController.h"
#import "BaseModalViewController.h"

@protocol ESignatureViewControllerDelegate <NSObject>
@optional
- (void)dismissESignature;
@end


@interface ESignatureViewController : BaseModalViewController<LOVViewControllerDelegate>
{

    CGPoint inputViewCenter;
    BOOL inputViewMoved;
    BOOL keyboardShown;
	
}
	

@property (nonatomic, retain) IBOutlet UILabel *labelTitle;

@property (nonatomic, retain) IBOutlet UILabel *labelUserID;
@property (nonatomic, retain) IBOutlet UILabel *labelPwd;
@property (nonatomic, retain) IBOutlet UILabel *labelSigType;
@property (nonatomic, retain) IBOutlet UILabel *labelCertNum;
@property (nonatomic, retain) IBOutlet UILabel *labelCertType;

@property (nonatomic, retain) IBOutlet UITextField *txtUserID;
@property (nonatomic, retain) IBOutlet UITextField *txtPwd;
@property (nonatomic, retain) IBOutlet UITextField *txtSigType;
@property (nonatomic, retain) IBOutlet UITextField *txtCertNum;
@property (nonatomic, retain) IBOutlet UITextField *txtCertType;
@property (nonatomic, retain) IBOutlet UIImageView *imgCertNum;
@property (nonatomic, retain) IBOutlet UIImageView *imgCertType;


@property (nonatomic, retain) IBOutlet UIButton *btnOK;
@property (nonatomic, retain) IBOutlet UIButton *btnCancel;

@property (nonatomic,retain)  IBOutlet UIView *inputInnerView;
@property (nonatomic)         BOOL           isEnableCert;
@property (nonatomic)         BOOL           isFromJSIChecklists;
@property (nonatomic)         BOOL           isFromPermitToWork;
@property (nonatomic, strong)         NSString *signatureRType;
@property (nonatomic, strong)         NSString *titleText;
@property (assign) id<ESignatureViewControllerDelegate> delegate;

- (LOVData *)fetchLOVDefinition:(NSString *)lovName;
- (LOVData *)getLOVDataSource:(NSString *)lovName;
-(IBAction)btnSigTypePressed:(id)sender;
-(IBAction)btnCancelPressed:(id)sender;
-(IBAction)btnOKPressed:(id)sender;
- (void)selectedLOVValue:(NSString *)lovName andValues:(NSArray *)data;
- (BOOL)validateInput;
- (BOOL)validateUserIDPassword;
- (void) geDefaultSignatureType;
@end
