リビジョン 347
期・年数/部署/担当者選択コンボロジックバグ修正
branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs | ||
---|---|---|
14 | 14 |
/// <summary> |
15 | 15 |
/// 本体バージョン |
16 | 16 |
/// </summary> |
17 |
public static int s_SystemVersion = 197;
|
|
17 |
public static int s_SystemVersion = 198;
|
|
18 | 18 |
|
19 | 19 |
/// <summary> |
20 | 20 |
/// コピー・環境バージョン |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalList.cs | ||
---|---|---|
53 | 53 |
#endregion |
54 | 54 |
|
55 | 55 |
#region ??? |
56 |
/// <summary> |
|
57 |
/// ?????N?????t???O |
|
58 |
/// </summary> |
|
59 |
private bool m_bInitFlg = true; |
|
60 |
/// <summary> |
|
61 |
/// ??????????f?[?^?J?E???g |
|
62 |
/// </summary> |
|
63 |
private int m_initDataCount = 0; |
|
64 | 56 |
|
65 | 57 |
/// <summary> |
66 | 58 |
/// ???F?R?[?h |
... | ... | |
214 | 206 |
private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e) |
215 | 207 |
{ |
216 | 208 |
SetInitnumUDConstPro(); |
209 |
|
|
217 | 210 |
// ?R???{?{?b?N?X?Z?b?g |
218 | 211 |
SetcmbDepartment(); |
219 | 212 |
SetcmbPersons(); |
... | ... | |
221 | 214 |
// ?R???{?{?b?N?X?????\?? |
222 | 215 |
InitCombBox(); |
223 | 216 |
|
224 |
m_bInitFlg = true; |
|
225 |
|
|
226 | 217 |
// ???O?C?????Z?b?g |
227 | 218 |
InitDepPersonCode(); |
228 | 219 |
|
... | ... | |
232 | 223 |
// ?\???X?^?C?????? |
233 | 224 |
InitDisplayStyle(); |
234 | 225 |
|
235 |
m_bInitFlg = false; |
|
226 |
// ?C?x???g?Z?b?g |
|
227 |
SetControlEvent(); |
|
236 | 228 |
} |
237 | 229 |
#endregion |
238 | 230 |
|
... | ... | |
282 | 274 |
/// <param name="e"></param> |
283 | 275 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
284 | 276 |
{ |
285 |
if (m_bInitFlg) return; |
|
277 |
// ?C?x???g?N???A |
|
278 |
SubControlEvent(); |
|
286 | 279 |
|
287 | 280 |
// ?????R???{?{?b?N?X??X |
288 | 281 |
SetcmbDepartment(); |
... | ... | |
293 | 286 |
|
294 | 287 |
// ?f?[?^?\?? |
295 | 288 |
DataDisplay(); |
289 |
|
|
290 |
// ?C?x???g?Z?b?g |
|
291 |
SetControlEvent(); |
|
296 | 292 |
} |
297 | 293 |
#endregion |
298 | 294 |
|
... | ... | |
304 | 300 |
/// <param name="e"></param> |
305 | 301 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
306 | 302 |
{ |
307 |
if (m_bInitFlg) return; |
|
303 |
// ?C?x???g?N???A |
|
304 |
SubControlEvent(); |
|
308 | 305 |
|
309 | 306 |
// ?S????R???{?{?b?N?X??X |
310 | 307 |
SetcmbPersons(); |
311 | 308 |
|
312 | 309 |
// ?f?[?^?\?? |
313 | 310 |
DataDisplay(); |
311 |
|
|
312 |
// ?C?x???g?Z?b?g |
|
313 |
SetControlEvent(); |
|
314 | 314 |
} |
315 | 315 |
#endregion |
316 | 316 |
|
... | ... | |
322 | 322 |
/// <param name="e"></param> |
323 | 323 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
324 | 324 |
{ |
325 |
if (m_bInitFlg) return; |
|
325 |
// ?C?x???g?N???A |
|
326 |
SubControlEvent(); |
|
326 | 327 |
|
327 | 328 |
// ?S????R???{?{?b?N?X?Z?b?g?????????Z?b?g???? |
328 | 329 |
if (!SetPerosonToDepartment()) return; |
329 | 330 |
|
330 | 331 |
// ?f?[?^?\?? |
331 | 332 |
DataDisplay(); |
333 |
|
|
334 |
// ?C?x???g?Z?b?g |
|
335 |
SetControlEvent(); |
|
332 | 336 |
} |
333 | 337 |
#endregion |
334 | 338 |
|
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalList.designer.cs | ||
---|---|---|
178 | 178 |
this.numUDConstPro.Size = new System.Drawing.Size(80, 23); |
179 | 179 |
this.numUDConstPro.TabIndex = 43; |
180 | 180 |
this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
181 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
182 | 181 |
// |
183 | 182 |
// label5 |
184 | 183 |
// |
... | ... | |
212 | 211 |
this.cmbConstructionPerson.Name = "cmbConstructionPerson"; |
213 | 212 |
this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23); |
214 | 213 |
this.cmbConstructionPerson.TabIndex = 3; |
215 |
this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged); |
|
216 | 214 |
// |
217 | 215 |
// cmbDepartment |
218 | 216 |
// |
... | ... | |
224 | 222 |
this.cmbDepartment.Name = "cmbDepartment"; |
225 | 223 |
this.cmbDepartment.Size = new System.Drawing.Size(200, 23); |
226 | 224 |
this.cmbDepartment.TabIndex = 3; |
227 |
this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged); |
|
228 | 225 |
// |
229 | 226 |
// label3 |
230 | 227 |
// |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs | ||
---|---|---|
286 | 286 |
private void SetcmbDepartment() |
287 | 287 |
{ |
288 | 288 |
IOMDepartment depDB = new IOMDepartment(); |
289 |
bool bSave = m_bInitFlg; |
|
290 |
m_bInitFlg = true; |
|
291 | 289 |
try |
292 | 290 |
{ |
293 | 291 |
int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue); |
... | ... | |
312 | 310 |
ConstructionDataList.Add(keyval); |
313 | 311 |
} |
314 | 312 |
|
315 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(this.cmbDepartment_SelectedIndexChanged); |
|
316 |
|
|
317 | 313 |
cmbDepartment.DataSource = null; |
318 | 314 |
cmbDepartment.Items.Clear(); |
319 | 315 |
cmbDepartment.Text = ""; |
... | ... | |
330 | 326 |
finally |
331 | 327 |
{ |
332 | 328 |
depDB.close(); depDB = null; |
333 |
m_bInitFlg = bSave; |
|
334 |
cmbDepartment.SelectedIndexChanged += new EventHandler(this.cmbDepartment_SelectedIndexChanged); |
|
335 | 329 |
} |
336 | 330 |
} |
337 | 331 |
#endregion |
... | ... | |
392 | 386 |
private void SetcmbPersons() |
393 | 387 |
{ |
394 | 388 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
395 |
bool bSave = m_bInitFlg; |
|
396 |
m_bInitFlg = true; |
|
397 | 389 |
try |
398 | 390 |
{ |
399 | 391 |
int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue); |
... | ... | |
420 | 412 |
ConstructionDataList.Add(keyval); |
421 | 413 |
} |
422 | 414 |
|
423 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged); |
|
424 |
|
|
425 | 415 |
cmbConstructionPerson.DataSource = null; |
426 | 416 |
cmbConstructionPerson.Items.Clear(); |
427 | 417 |
cmbConstructionPerson.Text = ""; |
... | ... | |
438 | 428 |
finally |
439 | 429 |
{ |
440 | 430 |
picDB.close(); picDB = null; |
441 |
m_bInitFlg = bSave; |
|
442 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged); |
|
443 | 431 |
} |
444 | 432 |
} |
445 | 433 |
#endregion |
... | ... | |
502 | 490 |
else |
503 | 491 |
{ |
504 | 492 |
// ??????f?[?^?J?E???g?? |
505 |
m_initDataCount = arData.Count;
|
|
506 |
dgvMaster.RowCount += (CommonDefine.s_MaxInitLineCount - m_initDataCount);
|
|
493 |
int initDataCount = arData.Count;
|
|
494 |
dgvMaster.RowCount += (CommonDefine.s_MaxInitLineCount - initDataCount); |
|
507 | 495 |
} |
508 | 496 |
} |
509 | 497 |
catch (Exception ex) |
... | ... | |
1204 | 1192 |
} |
1205 | 1193 |
#endregion |
1206 | 1194 |
|
1195 |
#region ?R???g???[???C?x???g??????? |
|
1196 |
/// <summary> |
|
1197 |
/// ?R???g???[???C?x???g??????? |
|
1198 |
/// </summary> |
|
1199 |
/// <param name="EventCon"></param> |
|
1200 |
private void SetControlEvent() |
|
1201 |
{ |
|
1202 |
try |
|
1203 |
{ |
|
1204 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
1205 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1206 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1207 |
} |
|
1208 |
catch (Exception ex) |
|
1209 |
{ |
|
1210 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1211 |
} |
|
1212 |
} |
|
1213 |
#endregion |
|
1214 |
|
|
1215 |
#region ?R???g???[???C?x???g?????? |
|
1216 |
/// <summary> |
|
1217 |
/// ?R???g???[???C?x???g?????? |
|
1218 |
/// </summary> |
|
1219 |
/// <param name="EventCon"></param> |
|
1220 |
private void SubControlEvent() |
|
1221 |
{ |
|
1222 |
try |
|
1223 |
{ |
|
1224 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
1225 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1226 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1227 |
} |
|
1228 |
catch (Exception ex) |
|
1229 |
{ |
|
1230 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1231 |
} |
|
1232 |
} |
|
1233 |
#endregion |
|
1234 |
|
|
1207 | 1235 |
#region ???N?x?????Z?b?g |
1208 | 1236 |
/// <summary> |
1209 | 1237 |
/// ???N?x?????Z?b?g |
... | ... | |
1218 | 1246 |
int maxval = 0; |
1219 | 1247 |
CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval); |
1220 | 1248 |
|
1221 |
this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1222 | 1249 |
numUDConstPro.Minimum = minval; |
1223 | 1250 |
numUDConstPro.Maximum = maxval; |
1224 | 1251 |
numUDConstPro.Value = CommonMotions.GetPeriodYear(); |
1225 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1226 | 1252 |
} |
1227 | 1253 |
catch (Exception ex) |
1228 | 1254 |
{ |
... | ... | |
1304 | 1330 |
|
1305 | 1331 |
// ?????R???{?{?b?N?X??????R?[?h?Z?b?g |
1306 | 1332 |
SetcmbDepartment(); |
1307 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1308 | 1333 |
cmbDepartment.SelectedValue = PersonRec.DepartmentCode; |
1309 | 1334 |
|
1310 | 1335 |
SetcmbPersons(); // ?S????R???{?{?b?N?X??X |
1311 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1312 | 1336 |
cmbConstructionPerson.SelectedValue = PersonCode; |
1313 | 1337 |
|
1314 | 1338 |
return true; |
... | ... | |
1321 | 1345 |
finally |
1322 | 1346 |
{ |
1323 | 1347 |
PersonDB.close(); PersonDB = null; |
1324 |
|
|
1325 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1326 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1327 | 1348 |
} |
1328 | 1349 |
} |
1329 | 1350 |
#endregion |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionList.cs | ||
---|---|---|
53 | 53 |
} |
54 | 54 |
#endregion |
55 | 55 |
|
56 |
#region ?R???g???[???C?x???g??` |
|
57 |
/// <summary> |
|
58 |
/// ?R???g???[???C?x???g??` |
|
59 |
/// </summary> |
|
60 |
private enum EventDef |
|
61 |
{ |
|
62 |
ConstPro = 1, |
|
63 |
Department = 1 << 1, |
|
64 |
Person = 1 << 2, |
|
65 |
} |
|
66 | 56 |
#endregion |
67 | 57 |
|
68 |
#endregion |
|
69 |
|
|
70 | 58 |
#region ??? |
71 | 59 |
|
72 | 60 |
/// <summary> |
73 |
/// ???????t???O |
|
74 |
/// </summary> |
|
75 |
private bool m_initDataLoad = true; |
|
76 |
|
|
77 |
/// <summary> |
|
78 | 61 |
/// ?N???t???O |
79 | 62 |
/// </summary> |
80 | 63 |
private int m_ExecuteFlg = 0; |
... | ... | |
203 | 186 |
/// <param name="e"></param> |
204 | 187 |
private void btnDataUpDate_Click(object sender, EventArgs e) |
205 | 188 |
{ |
206 |
if (m_initDataLoad) return; |
|
207 | 189 |
// ?\???f?[?^?X?V |
208 | 190 |
DataDisplay(); |
209 | 191 |
} |
... | ... | |
217 | 199 |
/// <param name="e"></param> |
218 | 200 |
private void FrmConstructionList_Load(object sender, EventArgs e) |
219 | 201 |
{ |
220 |
// ?C?x???g?Z?b?g |
|
221 |
SetControlEvent((int)EventDef.ConstPro | (int)EventDef.Department | (int)EventDef.Person); |
|
202 |
SetInitnumUDConstPro(); |
|
222 | 203 |
|
223 |
SetInitnumUDConstPro(); |
|
224 | 204 |
// ?R???{?{?b?N?X?Z?b?g |
225 | 205 |
SetcmbDepartment(); |
226 | 206 |
SetcmbPersons(); |
... | ... | |
234 | 214 |
// ???O?C?????Z?b?g |
235 | 215 |
InitDepPersonCode(); |
236 | 216 |
|
237 |
|
|
238 | 217 |
// ?????\?? |
239 | 218 |
InitDataLoad(); |
240 | 219 |
|
241 |
m_initDataLoad = false; |
|
220 |
// ?C?x???g?Z?b?g |
|
221 |
SetControlEvent(); |
|
242 | 222 |
} |
243 | 223 |
#endregion |
244 | 224 |
|
... | ... | |
313 | 293 |
/// <param name="e"></param> |
314 | 294 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
315 | 295 |
{ |
316 |
if (m_initDataLoad) return; |
|
296 |
// ?C?x???g?N???A |
|
297 |
SubControlEvent(); |
|
317 | 298 |
|
318 | 299 |
// ?????R???{?{?b?N?X??X |
319 | 300 |
SetcmbDepartment(); |
320 | 301 |
// ?S????R???{?{?b?N?X??X |
321 | 302 |
SetcmbPersons(); |
322 |
// ?S????R???{?{?b?N?X?Z?b?g?????????Z?b?g???? |
|
323 |
if (!SetPerosonToDepartment()) return; |
|
324 | 303 |
|
325 | 304 |
// ?f?[?^?\?? |
326 | 305 |
DataDisplay(); |
306 |
|
|
307 |
// ?C?x???g?Z?b?g |
|
308 |
SetControlEvent(); |
|
327 | 309 |
} |
328 | 310 |
#endregion |
329 | 311 |
|
... | ... | |
335 | 317 |
/// <param name="e"></param> |
336 | 318 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
337 | 319 |
{ |
338 |
if (m_initDataLoad) return; |
|
320 |
// ?C?x???g?N???A |
|
321 |
SubControlEvent(); |
|
339 | 322 |
|
340 | 323 |
// ?S????R???{?{?b?N?X??X |
341 | 324 |
SetcmbPersons(); |
342 | 325 |
|
343 | 326 |
// ?f?[?^?\?? |
344 | 327 |
DataDisplay(); |
328 |
|
|
329 |
// ?C?x???g?Z?b?g |
|
330 |
SetControlEvent(); |
|
345 | 331 |
} |
346 | 332 |
|
347 | 333 |
#endregion |
... | ... | |
354 | 340 |
/// <param name="e"></param> |
355 | 341 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
356 | 342 |
{ |
357 |
if (m_initDataLoad) return; |
|
343 |
// ?C?x???g?N???A |
|
344 |
SubControlEvent(); |
|
358 | 345 |
|
359 | 346 |
// ?S????R???{?{?b?N?X?Z?b?g?????????Z?b?g???? |
360 | 347 |
if (!SetPerosonToDepartment()) return; |
361 | 348 |
|
362 | 349 |
// ?f?[?^?\?? |
363 | 350 |
DataDisplay(); |
351 |
|
|
352 |
// ?C?x???g?Z?b?g |
|
353 |
SetControlEvent(); |
|
364 | 354 |
} |
365 | 355 |
#endregion |
366 | 356 |
|
357 |
#region ?c??E?H???S???????? |
|
358 |
/// <summary> |
|
359 |
/// ?c??E?H???S???????? |
|
360 |
/// </summary> |
|
361 |
/// <param name="sender"></param> |
|
362 |
/// <param name="e"></param> |
|
363 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
364 |
{ |
|
365 |
// ?C?x???g?N???A |
|
366 |
SubControlEvent(); |
|
367 |
|
|
368 |
// ?f?[?^?\?? |
|
369 |
DataDisplay(); |
|
370 |
|
|
371 |
// ?C?x???g?Z?b?g |
|
372 |
SetControlEvent(); |
|
373 |
} |
|
374 |
#endregion |
|
375 |
|
|
367 | 376 |
#region ?t?H?[???T?C?Y??X |
368 | 377 |
/// <summary> |
369 | 378 |
/// ?t?H?[???T?C?Y??X |
... | ... | |
389 | 398 |
} |
390 | 399 |
#endregion |
391 | 400 |
|
392 |
#region ?c??E?H???S???????? |
|
393 |
/// <summary> |
|
394 |
/// ?c??E?H???S???????? |
|
395 |
/// </summary> |
|
396 |
/// <param name="sender"></param> |
|
397 |
/// <param name="e"></param> |
|
398 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
399 |
{ |
|
400 |
if (m_initDataLoad) return; |
|
401 |
|
|
402 |
// ?f?[?^?\?? |
|
403 |
DataDisplay(); |
|
404 |
} |
|
405 |
#endregion |
|
406 |
|
|
407 | 401 |
#region ?w?b?_?[?N???b?N |
408 | 402 |
/// <summary> |
409 | 403 |
/// ?w?b?_?[?N???b?N |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs | ||
---|---|---|
1454 | 1454 |
int maxval = 0; |
1455 | 1455 |
CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval); |
1456 | 1456 |
|
1457 |
this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1458 | 1457 |
numUDConstPro.Minimum = minval; |
1459 | 1458 |
numUDConstPro.Maximum = maxval; |
1460 | 1459 |
numUDConstPro.Value = CommonMotions.GetPeriodYear(); |
1461 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1462 | 1460 |
} |
1463 | 1461 |
catch (Exception ex) |
1464 | 1462 |
{ |
... | ... | |
1514 | 1512 |
/// ?R???g???[???C?x???g??????? |
1515 | 1513 |
/// </summary> |
1516 | 1514 |
/// <param name="EventCon"></param> |
1517 |
private void SetControlEvent(int EventCon)
|
|
1515 |
private void SetControlEvent() |
|
1518 | 1516 |
{ |
1519 | 1517 |
try |
1520 | 1518 |
{ |
1521 |
if ((EventCon | (int)EventDef.ConstPro) != 0) |
|
1522 |
{ |
|
1523 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
1524 |
} |
|
1525 |
if ((EventCon | (int)EventDef.Department) != 0) |
|
1526 |
{ |
|
1527 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1528 |
} |
|
1529 |
if ((EventCon | (int)EventDef.Person) != 0) |
|
1530 |
{ |
|
1531 |
this.radioButton1.CheckedChanged += new EventHandler(this.radioButton_CheckedChanged); |
|
1532 |
this.radioButton2.CheckedChanged += new EventHandler(this.radioButton_CheckedChanged); |
|
1533 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1534 |
} |
|
1519 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
1520 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1521 |
radioButton1.CheckedChanged += new EventHandler(radioButton_CheckedChanged); |
|
1522 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1535 | 1523 |
} |
1536 | 1524 |
catch (Exception ex) |
1537 | 1525 |
{ |
... | ... | |
1545 | 1533 |
/// ?R???g???[???C?x???g?????? |
1546 | 1534 |
/// </summary> |
1547 | 1535 |
/// <param name="EventCon"></param> |
1548 |
private void SubControlEvent(int EventCon)
|
|
1536 |
private void SubControlEvent() |
|
1549 | 1537 |
{ |
1550 | 1538 |
try |
1551 | 1539 |
{ |
1552 |
|
|
1553 |
if ((EventCon | (int)EventDef.ConstPro) != 0) |
|
1554 |
{ |
|
1555 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
1556 |
} |
|
1557 |
if ((EventCon | (int)EventDef.Department) != 0) |
|
1558 |
{ |
|
1559 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1560 |
} |
|
1561 |
if ((EventCon | (int)EventDef.Person) != 0) |
|
1562 |
{ |
|
1563 |
this.radioButton1.CheckedChanged -= new EventHandler(this.radioButton_CheckedChanged); |
|
1564 |
this.radioButton2.CheckedChanged -= new EventHandler(this.radioButton_CheckedChanged); |
|
1565 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1566 |
} |
|
1540 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
1541 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1542 |
radioButton1.CheckedChanged -= new EventHandler(radioButton_CheckedChanged); |
|
1543 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1567 | 1544 |
} |
1568 | 1545 |
catch (Exception ex) |
1569 | 1546 |
{ |
... | ... | |
2082 | 2059 |
private void SetcmbDepartment() |
2083 | 2060 |
{ |
2084 | 2061 |
IOMDepartment depDB = new IOMDepartment(); |
2085 |
bool bSave = m_initDataLoad; |
|
2086 |
m_initDataLoad = true; |
|
2087 | 2062 |
try |
2088 | 2063 |
{ |
2089 | 2064 |
int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue); |
... | ... | |
2108 | 2083 |
ConstructionDataList.Add(keyval); |
2109 | 2084 |
} |
2110 | 2085 |
|
2111 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
2112 |
|
|
2113 | 2086 |
cmbDepartment.DataSource = null; |
2114 | 2087 |
cmbDepartment.Items.Clear(); |
2115 | 2088 |
cmbDepartment.Text = ""; |
... | ... | |
2126 | 2099 |
finally |
2127 | 2100 |
{ |
2128 | 2101 |
depDB.close(); depDB = null; |
2129 |
m_initDataLoad = bSave; |
|
2130 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
2131 | 2102 |
} |
2132 | 2103 |
} |
2133 | 2104 |
#endregion |
... | ... | |
2139 | 2110 |
private void SetcmbPersons() |
2140 | 2111 |
{ |
2141 | 2112 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
2142 |
bool bSave = m_initDataLoad; |
|
2143 |
m_initDataLoad = true; |
|
2144 | 2113 |
try |
2145 | 2114 |
{ |
2146 | 2115 |
int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue); |
... | ... | |
2167 | 2136 |
ConstructionDataList.Add(keyval); |
2168 | 2137 |
} |
2169 | 2138 |
|
2170 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
2171 |
|
|
2172 | 2139 |
cmbConstructionPerson.DataSource = null; |
2173 | 2140 |
cmbConstructionPerson.Items.Clear(); |
2174 | 2141 |
cmbConstructionPerson.Text = ""; |
... | ... | |
2185 | 2152 |
finally |
2186 | 2153 |
{ |
2187 | 2154 |
picDB.close(); picDB = null; |
2188 |
m_initDataLoad = bSave; |
|
2189 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
2190 | 2155 |
} |
2191 | 2156 |
} |
2192 | 2157 |
#endregion |
... | ... | |
2226 | 2191 |
|
2227 | 2192 |
// ?????R???{?{?b?N?X??????R?[?h?Z?b?g |
2228 | 2193 |
SetcmbDepartment(); |
2229 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
2230 | 2194 |
cmbDepartment.SelectedValue = PersonRec.DepartmentCode; |
2231 | 2195 |
|
2232 | 2196 |
SetcmbPersons(); // ?S????R???{?{?b?N?X??X |
2233 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
2234 | 2197 |
cmbConstructionPerson.SelectedValue = PersonCode; |
2235 | 2198 |
|
2236 | 2199 |
return true; |
... | ... | |
2243 | 2206 |
finally |
2244 | 2207 |
{ |
2245 | 2208 |
PersonDB.close(); PersonDB = null; |
2246 |
|
|
2247 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
2248 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
2249 | 2209 |
} |
2250 | 2210 |
} |
2251 | 2211 |
#endregion |
... | ... | |
2273 | 2233 |
} |
2274 | 2234 |
} |
2275 | 2235 |
#endregion |
2236 |
|
|
2276 | 2237 |
} |
2277 | 2238 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoin.Designer.cs | ||
---|---|---|
335 | 335 |
this.cmbConstructionPerson.Name = "cmbConstructionPerson"; |
336 | 336 |
this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 24); |
337 | 337 |
this.cmbConstructionPerson.TabIndex = 46; |
338 |
this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged); |
|
339 | 338 |
// |
340 | 339 |
// cmbDepartment |
341 | 340 |
// |
... | ... | |
347 | 346 |
this.cmbDepartment.Name = "cmbDepartment"; |
348 | 347 |
this.cmbDepartment.Size = new System.Drawing.Size(200, 24); |
349 | 348 |
this.cmbDepartment.TabIndex = 45; |
350 |
this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged); |
|
351 | 349 |
// |
352 | 350 |
// label12 |
353 | 351 |
// |
... | ... | |
386 | 384 |
this.numUDConstPro.Size = new System.Drawing.Size(80, 23); |
387 | 385 |
this.numUDConstPro.TabIndex = 0; |
388 | 386 |
this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
389 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
390 | 387 |
// |
391 | 388 |
// label5 |
392 | 389 |
// |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoin.cs | ||
---|---|---|
58 | 58 |
|
59 | 59 |
#region 変数 |
60 | 60 |
/// <summary> |
61 |
/// 初期時フラグ |
|
62 |
/// </summary> |
|
63 |
private bool m_bInitFlag = true; |
|
64 |
|
|
65 |
/// <summary> |
|
66 | 61 |
/// 処理区分 |
67 | 62 |
/// </summary> |
68 | 63 |
private int m_ProcessType = 0; |
... | ... | |
121 | 116 |
// 初期表示 |
122 | 117 |
InitDataLoad(); |
123 | 118 |
|
124 |
m_bInitFlag = false; |
|
119 |
// イベントセット |
|
120 |
SetControlEvent(); |
|
125 | 121 |
} |
126 | 122 |
#endregion |
127 | 123 |
|
... | ... | |
243 | 239 |
/// <param name="e"></param> |
244 | 240 |
private void dgvMaster_CellValueChanged(object sender, DataGridViewCellEventArgs e) |
245 | 241 |
{ |
246 |
if (m_bInitFlag) return; |
|
247 | 242 |
try |
248 | 243 |
{ |
249 | 244 |
DataGridView dgv = dgvMaster; |
... | ... | |
312 | 307 |
/// <param name="e"></param> |
313 | 308 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
314 | 309 |
{ |
315 |
if (m_bInitFlag) return; |
|
310 |
// イベントクリア |
|
311 |
SubControlEvent(); |
|
316 | 312 |
|
317 | 313 |
// 部署コンボボックス変更 |
318 | 314 |
SetcmbDepartment(); |
... | ... | |
323 | 319 |
|
324 | 320 |
// データ表示 |
325 | 321 |
InitDataLoad(); |
322 |
|
|
323 |
// イベントセット |
|
324 |
SetControlEvent(); |
|
326 | 325 |
} |
327 | 326 |
#endregion |
328 | 327 |
|
... | ... | |
334 | 333 |
/// <param name="e"></param> |
335 | 334 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
336 | 335 |
{ |
337 |
if (m_bInitFlag) return; |
|
336 |
// イベントクリア |
|
337 |
SubControlEvent(); |
|
338 | 338 |
|
339 | 339 |
// 担当者コンボボックス変更 |
340 | 340 |
SetcmbPersons(); |
341 | 341 |
|
342 | 342 |
// データ表示 |
343 | 343 |
InitDataLoad(); |
344 |
|
|
345 |
// イベントセット |
|
346 |
SetControlEvent(); |
|
344 | 347 |
} |
345 | 348 |
#endregion |
346 | 349 |
|
... | ... | |
352 | 355 |
/// <param name="e"></param> |
353 | 356 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
354 | 357 |
{ |
355 |
if (m_bInitFlag) return; |
|
358 |
// イベントクリア |
|
359 |
SubControlEvent(); |
|
356 | 360 |
|
357 | 361 |
// 担当者コンボボックスセット時部署をセットする |
358 | 362 |
if (!SetPerosonToDepartment()) return; |
359 | 363 |
|
360 | 364 |
// データ表示 |
361 | 365 |
InitDataLoad(); |
362 |
} |
|
363 |
#endregion |
|
364 | 366 |
|
365 |
#region 営業・工事担当者切り替え |
|
366 |
/// <summary> |
|
367 |
/// 営業・工事担当者切り替え |
|
368 |
/// </summary> |
|
369 |
/// <param name="sender"></param> |
|
370 |
/// <param name="e"></param> |
|
371 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
372 |
{ |
|
373 |
if (m_bInitFlag) return; |
|
374 |
|
|
375 |
// データ表示 |
|
376 |
InitDataLoad(); |
|
367 |
// イベントセット |
|
368 |
SetControlEvent(); |
|
377 | 369 |
} |
378 | 370 |
#endregion |
379 | 371 |
|
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs | ||
---|---|---|
72 | 72 |
{ |
73 | 73 |
try |
74 | 74 |
{ |
75 |
// 新セキュリティデータ対応済みかを確認する |
|
76 |
if (CommonMotions.LoginUserData.SecCode == 0) |
|
77 |
{ |
|
78 |
InitCombBox_OLD(); |
|
79 |
} |
|
80 |
else |
|
81 |
{ |
|
82 |
InitCombBox_NEW(); |
|
83 |
} |
|
84 |
} |
|
85 |
catch (Exception ex) |
|
86 |
{ |
|
87 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
88 |
} |
|
89 |
} |
|
90 |
#endregion |
|
91 |
|
|
92 |
#region コンボボックス初期表示(旧) |
|
93 |
/// <summary> |
|
94 |
/// コンボボックス初期表示(旧) |
|
95 |
/// </summary> |
|
96 |
private void InitCombBox_OLD() |
|
97 |
{ |
|
98 |
try |
|
99 |
{ |
|
100 |
// システム権限によってデータアクセスに制限がある |
|
101 |
if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement |
|
102 |
|| CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key |
|
103 |
|| CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key |
|
104 |
|| CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
105 |
{ |
|
106 |
// システム管理者 |
|
107 |
// 最高機密管理者 |
|
108 |
// 統括機密管理者 |
|
109 |
// 総務部所属者は全て見える |
|
110 |
|
|
111 |
// 部署・担当者コンボ表示 |
|
112 |
DispAllCombBoxControl(true); |
|
113 |
} |
|
114 |
else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key) |
|
115 |
{ |
|
116 |
// 所属長 |
|
117 |
// 部署コンボ非表示 |
|
118 |
NonDispDepCombBox(); |
|
119 |
} |
|
120 |
else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key) |
|
121 |
{ |
|
122 |
// 一般使用者(自分のみアクセス可能) |
|
123 |
// 部署・担当者コンボ非表示 |
|
124 |
DispAllCombBoxControl(false); |
|
125 |
} |
|
126 |
} |
|
127 |
catch (Exception ex) |
|
128 |
{ |
|
129 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
130 |
} |
|
131 |
} |
|
132 |
#endregion |
|
133 |
|
|
134 |
#region コンボボックス初期表示(新) |
|
135 |
/// <summary> |
|
136 |
/// コンボボックス初期表示(新) |
|
137 |
/// </summary> |
|
138 |
private void InitCombBox_NEW() |
|
139 |
{ |
|
140 |
try |
|
141 |
{ |
|
142 | 75 |
int AllPath = (int)CommonDefine.SecurityRangePos.AllPath; // 全部署 |
143 | 76 |
int Multiple = (int)CommonDefine.SecurityRangePos.Multiple; // 複数部署 |
144 | 77 |
int Only = (int)CommonDefine.SecurityRangePos.Only; // 自部署のみ |
... | ... | |
198 | 131 |
} |
199 | 132 |
#endregion |
200 | 133 |
|
134 |
#region コントロールイベント追加処理 |
|
135 |
/// <summary> |
|
136 |
/// コントロールイベント追加処理 |
|
137 |
/// </summary> |
|
138 |
/// <param name="EventCon"></param> |
|
139 |
private void SetControlEvent() |
|
140 |
{ |
|
141 |
try |
|
142 |
{ |
|
143 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
144 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
145 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
146 |
} |
|
147 |
catch (Exception ex) |
|
148 |
{ |
|
149 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
150 |
} |
|
151 |
} |
|
152 |
#endregion |
|
153 |
|
|
154 |
#region コントロールイベント削除処理 |
|
155 |
/// <summary> |
|
156 |
/// コントロールイベント削除処理 |
|
157 |
/// </summary> |
|
158 |
/// <param name="EventCon"></param> |
|
159 |
private void SubControlEvent() |
|
160 |
{ |
|
161 |
try |
|
162 |
{ |
|
163 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
164 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
165 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
166 |
} |
|
167 |
catch (Exception ex) |
|
168 |
{ |
|
169 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
170 |
} |
|
171 |
} |
|
172 |
#endregion |
|
173 |
|
|
201 | 174 |
#region 部署コンボボックスの非表示処理 |
202 | 175 |
/// <summary> |
203 | 176 |
/// 部署コンボボックスの非表示処理 |
... | ... | |
254 | 227 |
private void SetcmbDepartment() |
255 | 228 |
{ |
256 | 229 |
IOMDepartment depDB = new IOMDepartment(); |
257 |
bool bSave = m_bInitFlag; |
|
258 |
m_bInitFlag = true; |
|
259 | 230 |
try |
260 | 231 |
{ |
261 | 232 |
int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue); |
... | ... | |
280 | 251 |
ConstructionDataList.Add(keyval); |
281 | 252 |
} |
282 | 253 |
|
283 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
284 |
|
|
285 | 254 |
cmbDepartment.DataSource = null; |
286 | 255 |
cmbDepartment.Items.Clear(); |
287 | 256 |
cmbDepartment.Text = ""; |
... | ... | |
298 | 267 |
finally |
299 | 268 |
{ |
300 | 269 |
depDB.close(); depDB = null; |
301 |
m_bInitFlag = bSave; |
|
302 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
303 | 270 |
} |
304 | 271 |
} |
305 | 272 |
#endregion |
... | ... | |
311 | 278 |
private void SetcmbPersons() |
312 | 279 |
{ |
313 | 280 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
314 |
bool bSave = m_bInitFlag; |
|
315 |
m_bInitFlag = true; |
|
316 | 281 |
try |
317 | 282 |
{ |
318 | 283 |
int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue); |
... | ... | |
339 | 304 |
ConstructionDataList.Add(keyval); |
340 | 305 |
} |
341 | 306 |
|
342 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
343 |
|
|
344 | 307 |
cmbConstructionPerson.DataSource = null; |
345 | 308 |
cmbConstructionPerson.Items.Clear(); |
346 | 309 |
cmbConstructionPerson.Text = ""; |
... | ... | |
357 | 320 |
finally |
358 | 321 |
{ |
359 | 322 |
picDB.close(); picDB = null; |
360 |
m_bInitFlag = bSave; |
|
361 |
|
|
362 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
363 | 323 |
} |
364 | 324 |
} |
365 | 325 |
#endregion |
... | ... | |
399 | 359 |
|
400 | 360 |
// 部署コンボボックスへ部署コードセット |
401 | 361 |
SetcmbDepartment(); |
402 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
403 | 362 |
cmbDepartment.SelectedValue = PersonRec.DepartmentCode; |
404 | 363 |
|
405 | 364 |
SetcmbPersons(); // 担当者コンボボックス変更 |
406 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
407 | 365 |
cmbConstructionPerson.SelectedValue = PersonCode; |
408 | 366 |
|
409 | 367 |
return true; |
... | ... | |
416 | 374 |
finally |
417 | 375 |
{ |
418 | 376 |
PersonDB.close(); PersonDB = null; |
419 |
|
|
420 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
421 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
422 | 377 |
} |
423 | 378 |
} |
424 | 379 |
#endregion |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs | ||
---|---|---|
238 | 238 |
"?S??????^???z"}; |
239 | 239 |
#endregion |
240 | 240 |
|
241 |
#region ?R???g???[???C?x???g??` |
|
242 |
/// <summary> |
|
243 |
/// ?R???g???[???C?x???g??` |
|
244 |
/// </summary> |
|
245 |
private enum EventDef |
|
246 |
{ |
|
247 |
ConstPro = 1, |
|
248 |
Department = 1 << 1, |
|
249 |
Person = 1 << 2, |
|
250 |
} |
|
251 | 241 |
#endregion |
252 | 242 |
|
253 |
#endregion |
|
254 |
|
|
255 | 243 |
#region ??? |
256 | 244 |
/// <summary> |
257 | 245 |
/// ???????t???O |
... | ... | |
575 | 563 |
/// <param name="e"></param> |
576 | 564 |
private void FrmLedgerStatus_Load(object sender, EventArgs e) |
577 | 565 |
{ |
578 |
// ?R???{?{?b?N?X???C?x???g?Z?b?g |
|
579 |
SetControlEvent((int)EventDef.ConstPro | (int)EventDef.Person | (int)EventDef.Person); |
|
580 | 566 |
|
581 | 567 |
// ?O???b?h??????? |
582 | 568 |
SetDisplayObject(); |
... | ... | |
595 | 581 |
// ?????\?? |
596 | 582 |
InitDataLoad(); |
597 | 583 |
|
584 |
// ?C?x???g?Z?b?g |
|
585 |
SetControlEvent(); |
|
586 |
|
|
598 | 587 |
m_initDataLoad = false; |
599 | 588 |
} |
600 | 589 |
#endregion |
... | ... | |
681 | 670 |
/// <param name="e"></param> |
682 | 671 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
683 | 672 |
{ |
684 |
if (m_initDataLoad) return; |
|
673 |
// ?C?x???g?N???A |
|
674 |
SubControlEvent(); |
|
685 | 675 |
|
686 | 676 |
// ???N???A |
687 | 677 |
ClearDisplay(); |
... | ... | |
691 | 681 |
|
692 | 682 |
// ?f?[?^?\?? |
693 | 683 |
DataDisplay(); |
684 |
|
|
685 |
// ?C?x???g?Z?b?g |
|
686 |
SetControlEvent(); |
|
694 | 687 |
} |
695 | 688 |
#endregion |
696 | 689 |
|
... | ... | |
702 | 695 |
/// <param name="e"></param> |
703 | 696 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
704 | 697 |
{ |
705 |
if (m_initDataLoad) return; |
|
698 |
// ?C?x???g?N???A |
|
699 |
SubControlEvent(); |
|
706 | 700 |
|
707 | 701 |
// ???N???A |
708 | 702 |
ClearDisplay(); |
... | ... | |
712 | 706 |
|
713 | 707 |
// ?f?[?^?\?? |
714 | 708 |
DataDisplay(); |
709 |
|
|
710 |
// ?C?x???g?Z?b?g |
|
711 |
SetControlEvent(); |
|
715 | 712 |
} |
716 | 713 |
#endregion |
717 | 714 |
|
... | ... | |
723 | 720 |
/// <param name="e"></param> |
724 | 721 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
725 | 722 |
{ |
726 |
if (m_initDataLoad) return; |
|
723 |
// ?C?x???g?N???A |
|
724 |
SubControlEvent(); |
|
727 | 725 |
|
728 | 726 |
// ???N???A |
729 | 727 |
ClearDisplay(); |
... | ... | |
739 | 737 |
|
740 | 738 |
// ?f?[?^?\?? |
741 | 739 |
DataDisplay(); |
740 |
|
|
741 |
// ?C?x???g?Z?b?g |
|
742 |
SetControlEvent(); |
|
742 | 743 |
} |
743 | 744 |
#endregion |
744 | 745 |
|
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs | ||
---|---|---|
109 | 109 |
/// ?R???g???[???C?x???g??????? |
110 | 110 |
/// </summary> |
111 | 111 |
/// <param name="EventCon"></param> |
112 |
private void SetControlEvent(int EventCon)
|
|
112 |
private void SetControlEvent() |
|
113 | 113 |
{ |
114 | 114 |
try |
115 | 115 |
{ |
116 |
if ((EventCon | (int)EventDef.ConstPro) != 0) |
|
117 |
{ |
|
118 |
numUDConstPro.ValueChanged += new System.EventHandler(numUDConstPro_ValueChanged); |
|
119 |
} |
|
120 |
if ((EventCon | (int)EventDef.Department) != 0) |
|
121 |
{ |
|
122 |
cmbDepartment.SelectedIndexChanged += new System.EventHandler(cmbDepartment_SelectedIndexChanged); |
|
123 |
} |
|
124 |
if ((EventCon | (int)EventDef.Person) != 0) |
|
125 |
{ |
|
126 |
cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
127 |
} |
|
116 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
117 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
118 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
128 | 119 |
} |
129 | 120 |
catch (Exception ex) |
130 | 121 |
{ |
... | ... | |
138 | 129 |
/// ?R???g???[???C?x???g?????? |
139 | 130 |
/// </summary> |
140 | 131 |
/// <param name="EventCon"></param> |
141 |
private void SubControlEvent(int EventCon)
|
|
132 |
private void SubControlEvent() |
|
142 | 133 |
{ |
143 | 134 |
try |
144 | 135 |
{ |
145 |
|
|
146 |
if ((EventCon | (int)EventDef.ConstPro) != 0) |
|
147 |
{ |
|
148 |
numUDConstPro.ValueChanged -= new System.EventHandler(numUDConstPro_ValueChanged); |
|
149 |
} |
|
150 |
if ((EventCon | (int)EventDef.Department) != 0) |
|
151 |
{ |
|
152 |
cmbDepartment.SelectedIndexChanged -= new System.EventHandler(cmbDepartment_SelectedIndexChanged); |
|
153 |
} |
|
154 |
if ((EventCon | (int)EventDef.Person) != 0) |
|
155 |
{ |
|
156 |
cmbConstructionPerson.SelectedIndexChanged -= new System.EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
157 |
} |
|
136 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
137 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
138 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
158 | 139 |
} |
159 | 140 |
catch (Exception ex) |
160 | 141 |
{ |
... | ... | |
1625 | 1606 |
int maxval = 0; |
1626 | 1607 |
CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval); |
1627 | 1608 |
|
1628 |
this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1629 | 1609 |
numUDConstPro.Minimum = minval; |
1630 | 1610 |
numUDConstPro.Maximum = maxval; |
1631 | 1611 |
numUDConstPro.Value = CommonMotions.GetPeriodYear(); |
... | ... | |
1634 | 1614 |
{ |
1635 | 1615 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
1636 | 1616 |
} |
1637 |
finally |
|
1638 |
{ |
|
1639 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
1640 |
} |
|
1641 | 1617 |
} |
1642 | 1618 |
#endregion |
1643 | 1619 |
|
... | ... | |
1648 | 1624 |
private void SetcmbDepartment() |
1649 | 1625 |
{ |
1650 | 1626 |
IOMDepartment depDB = new IOMDepartment(); |
1651 |
bool bSave = m_initDataLoad; |
|
1652 |
m_initDataLoad = true; |
|
1653 | 1627 |
try |
1654 | 1628 |
{ |
1655 | 1629 |
int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue); |
... | ... | |
1674 | 1648 |
ConstructionDataList.Add(keyval); |
1675 | 1649 |
} |
1676 | 1650 |
|
1677 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1678 |
|
|
1679 | 1651 |
cmbDepartment.DataSource = null; |
1680 | 1652 |
cmbDepartment.Items.Clear(); |
1681 | 1653 |
cmbDepartment.Text = ""; |
... | ... | |
1692 | 1664 |
finally |
1693 | 1665 |
{ |
1694 | 1666 |
depDB.close(); depDB = null; |
1695 |
m_initDataLoad = bSave; |
|
1696 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1697 | 1667 |
} |
1698 | 1668 |
} |
1699 | 1669 |
#endregion |
... | ... | |
1705 | 1675 |
private void SetcmbPersons() |
1706 | 1676 |
{ |
1707 | 1677 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
1708 |
bool bSave = m_initDataLoad; |
|
1709 |
m_initDataLoad = true; |
|
1710 | 1678 |
try |
1711 | 1679 |
{ |
1712 | 1680 |
int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue); |
... | ... | |
1733 | 1701 |
ConstructionDataList.Add(keyval); |
1734 | 1702 |
} |
1735 | 1703 |
|
1736 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1737 |
|
|
1738 | 1704 |
cmbConstructionPerson.DataSource = null; |
1739 | 1705 |
cmbConstructionPerson.Items.Clear(); |
1740 | 1706 |
cmbConstructionPerson.Text = ""; |
... | ... | |
1751 | 1717 |
finally |
1752 | 1718 |
{ |
1753 | 1719 |
picDB.close(); picDB = null; |
1754 |
m_initDataLoad = bSave; |
|
1755 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1756 | 1720 |
} |
1757 | 1721 |
} |
1758 | 1722 |
#endregion |
... | ... | |
1792 | 1756 |
|
1793 | 1757 |
// ?????R???{?{?b?N?X??????R?[?h?Z?b?g |
1794 | 1758 |
SetcmbDepartment(); |
1795 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1796 | 1759 |
cmbDepartment.SelectedValue = PersonRec.DepartmentCode; |
1797 | 1760 |
|
1798 | 1761 |
SetcmbPersons(); // ?S????R???{?{?b?N?X??X |
1799 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1800 | 1762 |
cmbConstructionPerson.SelectedValue = PersonCode; |
1801 | 1763 |
|
1802 | 1764 |
return true; |
... | ... | |
1809 | 1771 |
finally |
1810 | 1772 |
{ |
1811 | 1773 |
PersonDB.close(); PersonDB = null; |
1812 |
|
|
1813 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
1814 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
1815 | 1774 |
} |
1816 | 1775 |
} |
1817 | 1776 |
#endregion |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSerarch/FrmConstrSerarch.cs | ||
---|---|---|
252 | 252 |
SetInitPoint(); |
253 | 253 |
SetInitnumUDConstPro(); // データ期取得 |
254 | 254 |
SetcmbEstiDate(); // 見積もり年月取得 |
255 |
numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
|
|
255 |
numUDConstPro.ValueChanged += new System.EventHandler(numUDConstPro_ValueChanged); |
|
256 | 256 |
} |
257 | 257 |
catch (System.Exception ex) |
258 | 258 |
{ |
... | ... | |
370 | 370 |
/// <param name="e"></param> |
371 | 371 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
372 | 372 |
{ |
373 |
numUDConstPro.ValueChanged -= new System.EventHandler(numUDConstPro_ValueChanged); |
|
373 | 374 |
SetcmbEstiDate(); // 見積もり年月取得 |
375 |
numUDConstPro.ValueChanged += new System.EventHandler(numUDConstPro_ValueChanged); |
|
374 | 376 |
} |
375 | 377 |
#endregion |
376 | 378 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplit.Designer.cs | ||
---|---|---|
260 | 260 |
this.cmbConstructionPerson.Name = "cmbConstructionPerson"; |
261 | 261 |
this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 24); |
262 | 262 |
this.cmbConstructionPerson.TabIndex = 46; |
263 |
this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged); |
|
264 | 263 |
// |
265 | 264 |
// cmbDepartment |
266 | 265 |
// |
... | ... | |
272 | 271 |
this.cmbDepartment.Name = "cmbDepartment"; |
273 | 272 |
this.cmbDepartment.Size = new System.Drawing.Size(200, 24); |
274 | 273 |
this.cmbDepartment.TabIndex = 45; |
275 |
this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged); |
|
276 | 274 |
// |
277 | 275 |
// label12 |
278 | 276 |
// |
... | ... | |
311 | 309 |
this.numUDConstPro.Size = new System.Drawing.Size(80, 23); |
312 | 310 |
this.numUDConstPro.TabIndex = 0; |
313 | 311 |
this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
314 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
315 | 312 |
// |
316 | 313 |
// label5 |
317 | 314 |
// |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplit.cs | ||
---|---|---|
55 | 55 |
#endregion |
56 | 56 |
|
57 | 57 |
#region 変数 |
58 |
/// <summary> |
|
59 |
/// 初期時フラグ |
|
60 |
/// </summary> |
|
61 |
private bool m_bInitFlag = true; |
|
62 | 58 |
|
63 | 59 |
/// <summary> |
64 | 60 |
/// 新規工事番号 |
... | ... | |
122 | 118 |
|
123 | 119 |
InitDataLoad(); |
124 | 120 |
|
125 |
m_bInitFlag = false; |
|
121 |
// イベントセット |
|
122 |
SetControlEvent(); |
|
126 | 123 |
} |
127 | 124 |
#endregion |
128 | 125 |
|
... | ... | |
201 | 198 |
/// <param name="e"></param> |
202 | 199 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
203 | 200 |
{ |
204 |
if (m_bInitFlag) return; |
|
201 |
// イベントクリア |
|
202 |
SubControlEvent(); |
|
205 | 203 |
|
206 | 204 |
// 部署コンボボックス変更 |
207 | 205 |
SetcmbDepartment(); |
... | ... | |
212 | 210 |
|
213 | 211 |
// データ表示 |
214 | 212 |
InitDataLoad(); |
213 |
|
|
214 |
// イベントセット |
|
215 |
SetControlEvent(); |
|
215 | 216 |
} |
216 | 217 |
#endregion |
217 | 218 |
|
... | ... | |
223 | 224 |
/// <param name="e"></param> |
224 | 225 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
225 | 226 |
{ |
226 |
if (m_bInitFlag) return; |
|
227 |
// イベントクリア |
|
228 |
SubControlEvent(); |
|
227 | 229 |
|
228 | 230 |
// 担当者コンボボックス変更 |
229 | 231 |
SetcmbPersons(); |
230 | 232 |
|
231 | 233 |
// データ表示 |
232 | 234 |
InitDataLoad(); |
235 |
|
|
236 |
// イベントセット |
|
237 |
SetControlEvent(); |
|
233 | 238 |
} |
234 | 239 |
#endregion |
235 | 240 |
|
... | ... | |
241 | 246 |
/// <param name="e"></param> |
242 | 247 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
243 | 248 |
{ |
244 |
if (m_bInitFlag) return; |
|
249 |
// イベントクリア |
|
250 |
SubControlEvent(); |
|
245 | 251 |
|
246 | 252 |
// 担当者コンボボックスセット時部署をセットする |
247 | 253 |
if (!SetPerosonToDepartment()) return; |
248 | 254 |
|
249 | 255 |
// データ表示 |
250 | 256 |
InitDataLoad(); |
251 |
} |
|
252 |
#endregion |
|
253 | 257 |
|
254 |
#region 営業・工事担当者切り替え |
|
255 |
/// <summary> |
|
256 |
/// 営業・工事担当者切り替え |
|
257 |
/// </summary> |
|
258 |
/// <param name="sender"></param> |
|
259 |
/// <param name="e"></param> |
|
260 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
261 |
{ |
|
262 |
if (m_bInitFlag) return; |
|
263 |
|
|
264 |
// データ表示 |
|
265 |
InitDataLoad(); |
|
258 |
// イベントセット |
|
259 |
SetControlEvent(); |
|
266 | 260 |
} |
267 | 261 |
#endregion |
268 | 262 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplitAuxiliary.cs | ||
---|---|---|
129 | 129 |
} |
130 | 130 |
#endregion |
131 | 131 |
|
132 |
#region コントロールイベント追加処理 |
|
133 |
/// <summary> |
|
134 |
/// コントロールイベント追加処理 |
|
135 |
/// </summary> |
|
136 |
/// <param name="EventCon"></param> |
|
137 |
private void SetControlEvent() |
|
138 |
{ |
|
139 |
try |
|
140 |
{ |
|
141 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
142 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
143 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
144 |
} |
|
145 |
catch (Exception ex) |
|
146 |
{ |
|
147 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
148 |
} |
|
149 |
} |
|
150 |
#endregion |
|
151 |
|
|
152 |
#region コントロールイベント削除処理 |
|
153 |
/// <summary> |
|
154 |
/// コントロールイベント削除処理 |
|
155 |
/// </summary> |
|
156 |
/// <param name="EventCon"></param> |
|
157 |
private void SubControlEvent() |
|
158 |
{ |
|
159 |
try |
|
160 |
{ |
|
161 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
162 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
163 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
164 |
} |
|
165 |
catch (Exception ex) |
|
166 |
{ |
|
167 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
168 |
} |
|
169 |
} |
|
170 |
#endregion |
|
171 |
|
|
132 | 172 |
#region 部署コンボボックスの非表示処理 |
133 | 173 |
/// <summary> |
134 | 174 |
/// 部署コンボボックスの非表示処理 |
... | ... | |
185 | 225 |
private void SetcmbDepartment() |
186 | 226 |
{ |
187 | 227 |
IOMDepartment depDB = new IOMDepartment(); |
188 |
bool bSave = m_bInitFlag; |
|
189 |
m_bInitFlag = true; |
|
190 | 228 |
try |
191 | 229 |
{ |
192 | 230 |
int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue); |
... | ... | |
211 | 249 |
ConstructionDataList.Add(keyval); |
212 | 250 |
} |
213 | 251 |
|
214 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
215 |
|
|
216 | 252 |
cmbDepartment.DataSource = null; |
217 | 253 |
cmbDepartment.Items.Clear(); |
218 | 254 |
cmbDepartment.Text = ""; |
... | ... | |
229 | 265 |
finally |
230 | 266 |
{ |
231 | 267 |
depDB.close(); depDB = null; |
232 |
m_bInitFlag = bSave; |
|
233 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
234 | 268 |
} |
235 | 269 |
} |
236 | 270 |
#endregion |
... | ... | |
242 | 276 |
private void SetcmbPersons() |
243 | 277 |
{ |
244 | 278 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
245 |
bool bSave = m_bInitFlag; |
|
246 |
m_bInitFlag = true; |
|
247 | 279 |
try |
248 | 280 |
{ |
249 | 281 |
int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue); |
... | ... | |
270 | 302 |
ConstructionDataList.Add(keyval); |
271 | 303 |
} |
272 | 304 |
|
273 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
274 |
|
|
275 | 305 |
cmbConstructionPerson.DataSource = null; |
276 | 306 |
cmbConstructionPerson.Items.Clear(); |
277 | 307 |
cmbConstructionPerson.Text = ""; |
... | ... | |
288 | 318 |
finally |
289 | 319 |
{ |
290 | 320 |
picDB.close(); picDB = null; |
291 |
m_bInitFlag = bSave; |
|
292 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
293 | 321 |
} |
294 | 322 |
} |
295 | 323 |
#endregion |
... | ... | |
329 | 357 |
|
330 | 358 |
// 部署コンボボックスへ部署コードセット |
331 | 359 |
SetcmbDepartment(); |
332 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
333 | 360 |
cmbDepartment.SelectedValue = PersonRec.DepartmentCode; |
334 | 361 |
|
335 | 362 |
SetcmbPersons(); // 担当者コンボボックス変更 |
336 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
337 | 363 |
cmbConstructionPerson.SelectedValue = PersonCode; |
338 | 364 |
|
339 | 365 |
return true; |
... | ... | |
346 | 372 |
finally |
347 | 373 |
{ |
348 | 374 |
PersonDB.close(); PersonDB = null; |
349 |
|
|
350 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
他の形式にエクスポート: Unified diff