- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
switch (Step)
{
case 6:
{
goto case 5;
}
case 5:
{
Step = 2;
goto case 2;
}
case 4:
{
if (ReadOnly)
{
Step = 2;
goto case 2;
}
pollingMatrix.Fill(Id, pollingRow.RiskObjectTypeId, languageId, connection);
Scenario.Fill(Id, pollingRow.RiskObjectTypeId, languageId, connection);
tbMain.SetCurrentTab(tcEnding);
break;
}
case 3:
{
if (ReadOnly)
{
btnPrevPg4.Visible = false;
btnNextPg4.Visible = false;
}
CleanScenarios();
Scenario.Fill(Id, pollingRow.RiskObjectTypeId, languageId, connection);
tbMain.SetCurrentTab(tcScenarios);
break;
}
case 2:
{
if (ReadOnly)
{
btnPrevPg3.Visible = false;
btnNextPg3.Visible = false;
}
pollingMatrix.Fill(Id, pollingRow.RiskObjectTypeId, languageId, connection);
tbMain.SetCurrentTab(tcPollingMatrix);
break;
}
case 1:
{
if (ReadOnly)
{
btnPrevPg2.Visible = false;
btnNextPg2.Visible = false;
//tvRiskFactors.Enabled = false;
//tvRiskObjects.Enabled = false;
//Раскрывает ноду если есть отмеченные дочерние элементы
tvRiskObjects.ExpandAllNodes();
}
pollingMatrix.Fill(Id, pollingRow.RiskObjectTypeId, languageId, connection);
doRiskFactorTree();
doRiskObjectTree();
hcpRiskObjects.PanelName = pollingRow.QSARiskObjectTypeNameDictionaryName;
tbMain.SetCurrentTab(tcRiskFactors);
break; //goto case 0;
}
case 0:
{
if (ReadOnly)
{
Name.ReadOnly = true;
Comment.ReadOnly = true;
Hypothesis.ReadOnly = true;
calDateTo.Enabled = true;
RiskObjectTypeId.ReadOnly = true;
btnNextPg1.Visible = false;
Instructions.ReadOnly = true;
}
tbMain.SetCurrentTab(tcPolling);
break;
}
default:
{
#if (DEBUG)
exc_viewer.ViewException(@"Неверный Step, провалились в default");
#endif
Step = 0;
goto case 0;
}
}
Часть метода из 200 строк в кодбехайнде ASP.NET странички...
Красота!!! =)