개정판 e4ad75cb
dev issue #1226 : converter 화면 개발
Change-Id: I90705a73bc7aa3798dda48cde3da696301297410
DTI_PID/APIDConverter/Form/APIDConverter.cs | ||
---|---|---|
177 | 177 |
gridViewConverter.SelectRow(gridViewConverter.GetRowHandle(_ConverterDT.Rows.IndexOf(row))); |
178 | 178 |
} |
179 | 179 |
} |
180 |
|
|
181 |
private void btnID2DB_Click(object sender, EventArgs e) |
|
182 |
{ |
|
183 |
ProjectForm form = new ProjectForm(); |
|
184 |
if (form.ShowDialog() == DialogResult.OK) |
|
185 |
{ |
|
186 |
Project_Info _ProjectInfo = Project_Info.GetInstance(); |
|
187 |
_ProjectInfo.DefaultPath = Settings.Default.ProjectPath; |
|
188 |
_ProjectInfo.DBType = (ID2DB_Type)Settings.Default.ProjectDBType; |
|
189 |
_ProjectInfo.ServerIP = Settings.Default.ProjectServerIP; |
|
190 |
_ProjectInfo.Port = Settings.Default.ProjectPort; |
|
191 |
_ProjectInfo.DBUser = Settings.Default.ProjectDBUser; |
|
192 |
_ProjectInfo.DBPassword = Settings.Default.ProjectDBPassword; |
|
193 |
|
|
194 |
if (Project_DB.ConnTestAndCreateTable()) |
|
195 |
{ |
|
196 |
_ProjectInfo.Enable = true; |
|
197 |
MessageBox.Show("Success project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
198 |
} |
|
199 |
else |
|
200 |
{ |
|
201 |
_ProjectInfo.Enable = false; |
|
202 |
MessageBox.Show("Fail project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
203 |
} |
|
204 |
} |
|
205 |
} |
|
206 |
|
|
207 |
private void btnItemMapping_Click(object sender, EventArgs e) |
|
208 |
{ |
|
209 |
MappingForm form = new MappingForm(); |
|
210 |
if (form.ShowDialog() == DialogResult.OK) |
|
211 |
{ |
|
212 |
|
|
213 |
} |
|
214 |
} |
|
180 | 215 |
} |
181 | 216 |
} |
내보내기 Unified diff