개정판 2e35dd78
pemss 최종
Change-Id: Iaf8b86a518b3e3f99fe52e8ef4fe2cd2b7561a0a
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
96 | 96 |
|
97 | 97 |
private void DataBind() |
98 | 98 |
{ |
99 |
//lstSymbolPrivate.ItemsSource = null;
|
|
100 |
//lstSymbolPublic.ItemsSource = null;
|
|
99 |
try
|
|
100 |
{
|
|
101 | 101 |
|
102 |
Symbol_Custom Custom = new Symbol_Custom();
|
|
103 |
List<Symbol_Custom> Custom_List = new List<Symbol_Custom>();
|
|
102 |
//lstSymbolPrivate.ItemsSource = null;
|
|
103 |
//lstSymbolPublic.ItemsSource = null;
|
|
104 | 104 |
|
105 |
var mainwindow = (RadWindowManager.Current.GetWindows().Find(x => x is MainWindow) as MainWindow); |
|
105 |
Symbol_Custom Custom = new Symbol_Custom(); |
|
106 |
List<Symbol_Custom> Custom_List = new List<Symbol_Custom>(); |
|
106 | 107 |
|
107 |
if (mainwindow.dzMainMenu.BaseClient != null) |
|
108 |
{ |
|
109 |
var symbol_Private = mainwindow.dzMainMenu.BaseClient.GetSymbolList(App.ViewInfo.UserID); |
|
108 |
var mainwindow = (RadWindowManager.Current.GetWindows().Find(x => x is MainWindow) as MainWindow); |
|
110 | 109 |
|
111 |
foreach (var item in symbol_Private)
|
|
110 |
if (mainwindow.dzMainMenu.BaseClient != null)
|
|
112 | 111 |
{ |
113 |
Custom.Name = item.NAME; |
|
114 |
Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal); |
|
115 |
Custom.ID = item.ID; |
|
116 |
Custom_List.Add(Custom); |
|
117 |
Custom = new Symbol_Custom(); |
|
118 |
} |
|
119 |
lstSymbolPrivate.ItemsSource = Custom_List; |
|
112 |
var symbol_Private = mainwindow.dzMainMenu.BaseClient.GetSymbolList(App.ViewInfo.UserID); |
|
120 | 113 |
|
121 |
Custom = new Symbol_Custom(); |
|
122 |
Custom_List = new List<Symbol_Custom>(); |
|
114 |
foreach (var item in symbol_Private) |
|
115 |
{ |
|
116 |
Custom.Name = item.NAME; |
|
117 |
Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal); |
|
118 |
Custom.ID = item.ID; |
|
119 |
Custom_List.Add(Custom); |
|
120 |
Custom = new Symbol_Custom(); |
|
121 |
} |
|
122 |
lstSymbolPrivate.ItemsSource = Custom_List; |
|
123 | 123 |
|
124 |
deptlist.ItemsSource = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolDeptList(); |
|
124 |
Custom = new Symbol_Custom(); |
|
125 |
Custom_List = new List<Symbol_Custom>(); |
|
125 | 126 |
|
126 |
List<SYMBOL_PUBLIC> symbol_Public;
|
|
127 |
deptlist.ItemsSource = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolDeptList();
|
|
127 | 128 |
|
129 |
List<SYMBOL_PUBLIC> symbol_Public; |
|
128 | 130 |
|
129 |
if (deptlist.SelectedValue != null) |
|
130 |
{ |
|
131 |
symbol_Public = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolList(deptlist.SelectedValue.ToString()); |
|
132 |
} |
|
133 |
else |
|
134 |
{ |
|
135 |
symbol_Public = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolList(null); |
|
136 |
} |
|
137 |
foreach (var item in symbol_Public) |
|
138 |
{ |
|
139 |
Custom.Name = item.NAME; |
|
140 |
Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal); |
|
141 |
Custom.ID = item.ID; |
|
142 |
Custom_List.Add(Custom); |
|
143 |
Custom = new Symbol_Custom(); |
|
131 |
|
|
132 |
if (deptlist.SelectedValue != null) |
|
133 |
{ |
|
134 |
symbol_Public = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolList(deptlist.SelectedValue.ToString()); |
|
135 |
} |
|
136 |
else |
|
137 |
{ |
|
138 |
symbol_Public = ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPublicSymbolList(null); |
|
139 |
} |
|
140 |
foreach (var item in symbol_Public) |
|
141 |
{ |
|
142 |
Custom.Name = item.NAME; |
|
143 |
Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal); |
|
144 |
Custom.ID = item.ID; |
|
145 |
Custom_List.Add(Custom); |
|
146 |
Custom = new Symbol_Custom(); |
|
147 |
} |
|
148 |
lstSymbolPublic.ItemsSource = Custom_List; |
|
144 | 149 |
} |
145 |
lstSymbolPublic.ItemsSource = Custom_List; |
|
150 |
} |
|
151 |
catch (Exception) |
|
152 |
{ |
|
146 | 153 |
} |
147 | 154 |
} |
148 | 155 |
|
내보내기 Unified diff