- 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
switch (pList)
{
#region Формы контейнера |
case TObjects.ContainerForm :
frmList = new TfrmContainerForm();
pnlMain = ((TfrmContainerForm)frmList).pnlMain;
Result = ((TfrmContainerForm)frmList).grList;
break;
#endregion
#region Тип контейнера |
case TObjects.ContainerType :
frmList = new TfrmContainerType();
pnlMain = ((TfrmContainerType)frmList).pnlMain;
Result = ((TfrmContainerType)frmList).grList;
break;
#endregion
#region Объект НВАЭС |
case TObjects.Object :
frmList = new TfrmObjects();
pnlMain = ((TfrmObjects)frmList).pnlMain;
Result = ((TfrmObjects)frmList).grList;
break;
#endregion
#region Исполнитель работ |
case TObjects.DepSource :
frmList = new TfrmDepSource();
pnlMain = ((TfrmDepSource)frmList).pnlMain;
Result = ((TfrmDepSource)frmList).grList;
break;
#endregion
#region Установка переработки |
case TObjects.TreatSet :
frmList = new TfrmTreatSet();
pnlMain = ((TfrmTreatSet)frmList).pnlMain;
Result = ((TfrmTreatSet)frmList).grList;
break;
#endregion
#region Контейнер |
case TObjects.Container :
frmList = new TfrmContainer();
pnlMain = ((TfrmContainer)frmList).pnlMain;
Result = ((TfrmContainer)frmList).grList;
break;
#endregion
#region Хранилище |
case TObjects.Storage :
frmList = new TfrmStorage();
pnlMain = ((TfrmStorage)frmList).pnlMain;
Result = ((TfrmStorage)frmList).grList;
break;
#endregion
...
kyzi007 08.02.2012 10:48 # 0
gcoder 08.02.2012 10:48 # 0
switch (pList)
{
case TObjects.OperationJournal :
if (
pSearch != null && pGrid != null
&& pGrid.Parent != null && pGrid.Parent is Panel
&& pGrid.Parent.Tag != null && pGrid.Parent.Tag is TfrmOperationJournal
)
{ pSearch.Controls.Clear(); pSearch.Controls.Add(((TfrmOperationJour nal)pGrid.Parent.Tag).pnlFilter); } break;
case TObjects.TRO :
if (
pSearch != null && pGrid != null
&& pGrid.Parent != null
&& pGrid.Parent.Parent != null && pGrid.Parent.Parent is Panel
&& pGrid.Parent.Parent.Tag != null && pGrid.Parent.Parent.Tag is TfrmTROList
)
{ pSearch.Controls.Clear(); pSearch.Controls.Add(((TfrmTROList)pGrid .Parent.Parent.Tag).pnlFilter); } break;
... ~200строк
gcoder 08.02.2012 10:50 # 0
// Обновление Журнала операций (//временно//)
if (pList == TObjects.OperationJournal && vGrid.Parent != null &&
vGrid.Parent.Tag != null && vGrid.Parent.Tag is TfrmOperationJournal)
((TfrmOperationJournal)vGrid.Parent.Tag) .InitialData();
// Обновление Журнала операций ЖРО (//временно//)
if (pList == TObjects.OperationJournalGRO && vGrid.Parent != null &&
vGrid.Parent.Tag != null && vGrid.Parent.Tag is frmOperationJurnalGRO)
((frmOperationJurnalGRO)vGrid.Parent.Tag ).InitialData();
// Обновление Журнала операций РВ (//временно//)
if (pList == TObjects.OperationJournalRV && vGrid.Parent != null &&
vGrid.Parent.Tag != null && vGrid.Parent.Tag is TfrmOperationJournalRV)
((TfrmOperationJournalRV)vGrid.Parent.Ta g).InitialData();
// Обновление списка протоколов
if (pList == TObjects.Protocol && vGrid.Parent != null &&
vGrid.Parent.Tag != null && vGrid.Parent.Tag is TfrmProtocol)
((TfrmProtocol)vGrid.Parent.Tag).Initial Data();
...
Em1ss1oN 08.02.2012 10:56 # 0
gcoder 08.02.2012 11:09 # 0
Em1ss1oN 08.02.2012 11:54 # +2
TarasB 08.02.2012 13:07 # 0
Steve_Brown 08.02.2012 13:36 # 0
TarasB 08.02.2012 15:08 # +2
Говногость 08.02.2012 15:04 # 0