-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddNewCompany.h
executable file
·110 lines (81 loc) · 3.17 KB
/
AddNewCompany.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//
// AddNewCompany.h
// TradeShowInfo
//
// Created by Elon on 3/14/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "/usr/include/sqlite3.h"
#import "SectionHeaderView.h"
#define databaseFileName @"data.sqlite3"
@interface AddNewCompany : UIViewController <UITextFieldDelegate,
UITextViewDelegate,
UIPickerViewDelegate,
UIPickerViewDataSource,
UIAlertViewDelegate,
UITableViewDelegate,
UITableViewDataSource,SectionHeaderViewDelegate>
{
UITextField *inputTextFieldCompanyName;
UITextField *inputTextFieldBoothNumber;
UITextView *inputTextFieldNote;
UITextField *inputTextFieldURL;
UIButton *buttonCompany;
//UIButton *buttonImportance;
UIButton *buttonNote;
UIButton *buttonPhoto;
UIButton *buttonHomePage;
UILabel *labelNote;
UILabel *labelHomePage;
UILabel *labelPhoto;
UILabel *lineCompanyH;
UILabel *lineCompanyV;
UILabel *lineImportance;
UILabel *labelImportance;
NSMutableArray *arrayImportance;
UIPickerView *pickerImportance;
UIToolbar *pickerToolbar;
sqlite3 *database;
UITableView *notePhotoURL;
UITableView *contactsAndToDos;
UIActionSheet *actionSheet;
}
@property(nonatomic,retain) IBOutlet UITextField *inputTextFieldCompanyName;
@property(nonatomic,retain) IBOutlet UITextField *inputTextFieldBoothNumber;
@property(nonatomic,retain) IBOutlet UITextView *inputTextFieldNote;
@property(nonatomic,retain) IBOutlet UITextField *inputTextFieldURL;
@property(nonatomic,retain) IBOutlet UIButton *buttonCompany;
@property(nonatomic,retain) IBOutlet UIButton *buttonNote;
@property(nonatomic,retain) IBOutlet UIButton *buttonPhoto;
@property(nonatomic,retain) IBOutlet UIButton *buttonHomePage;
@property(nonatomic,retain) IBOutlet UILabel *labelNote;
@property(nonatomic,retain) IBOutlet UILabel *labelHomePage;
@property(nonatomic,retain) IBOutlet UILabel *labelPhoto;
@property(nonatomic,retain) IBOutlet UILabel *lineCompanyH;
@property(nonatomic,retain) IBOutlet UILabel *lineCompanyV;
@property(nonatomic,retain) IBOutlet UILabel *lineImportance;
@property(nonatomic,retain) IBOutlet UILabel *labelImportance;
@property(nonatomic,retain) IBOutlet UIPickerView *pickerImportance;
@property(nonatomic,retain) IBOutlet UIToolbar *pickerToolbar;
@property(nonatomic,retain) IBOutlet UITableView *notePhotoURL;
@property(nonatomic,retain) IBOutlet UITableView *contactsAndToDos;
@property(nonatomic,retain) UIActionSheet *actionSheet;
@property(nonatomic,assign) BOOL openFlag;
@property (nonatomic, retain) NSMutableArray *sectionInfoArray;// include all sectionHeaderView
-(void)hiddenPickerImportance:(BOOL)hidden;
-(IBAction)labelImportanceClicked:(id)sender;
-(IBAction)labelImportanceDone:(id)sender;
-(IBAction)pickerToolbarDoneClicked:(id)sender;
- (NSString *)dataFilePath;
-(void)databaseInit;
-(IBAction)editButtonClicked:(id)sender;
-(IBAction)doneButtonClicked:(id)sender;
-(IBAction)cancelButtonClicked:(id)sender;
-(void)showDoneAndCancelButton;
-(void)showBackAndEdit;
-(void)hiddenLineAndButtons:(BOOL)hidden;
-(void)textFieldDone;
-(void)saveDataToDB;
-(void)viewToUp:(CGFloat)VIEW_UP;
@end