|
@@ -148,27 +148,9 @@ namespace XHWK.WKTool
|
148
|
148
|
if (code == 0)
|
149
|
149
|
{
|
150
|
150
|
pageData.zhangjieList.Clear();
|
151
|
|
- pageData.zhangjieList.Add
|
152
|
|
- (
|
153
|
|
- new ComboBoxBean()
|
154
|
|
- {
|
155
|
|
- Key = "0",
|
156
|
|
- Value = "全部",
|
157
|
|
- leaf = 1
|
158
|
|
- }
|
159
|
|
- );
|
160
|
|
- for (int i = 0; i < App.DirectorList.Count; i++)
|
|
151
|
+ foreach (var item in App.DirectorList)
|
161
|
152
|
{
|
162
|
|
- ModelDirectorList item = App.DirectorList[i];
|
163
|
|
- pageData.zhangjieList.Add
|
164
|
|
- (
|
165
|
|
- new ComboBoxBean()
|
166
|
|
- {
|
167
|
|
- Key = item.directorid,
|
168
|
|
- Value = item.directorname,
|
169
|
|
- leaf = item.leaf
|
170
|
|
- }
|
171
|
|
- );
|
|
153
|
+ pageData.zhangjieList.Add(new ComboBoxBean() { Key = item.directorid, Value = item.directorname, leaf = item.leaf });
|
172
|
154
|
AddChild(item);
|
173
|
155
|
}
|
174
|
156
|
cmbTeachingMaterial.SelectedIndex = 0;
|