//加载所以系统 void clientXml_ListSystemCompleted(object sender, ListSystemCompletedEventArgs e) { try { if (e.Result != null) { ObservableCollection <string> xmlurl = new ObservableCollection <string>(); //子系统XML路径 FlowSystemModel.ListAppSystem = e.Result == null ? null : e.Result.ToList(); appSystem.Clear(); appSystem.Add(new AppSystem { Description = "请选择......", Name = "0", ObjectFolder = "0" }); foreach (var item in FlowSystemModel.ListAppSystem) { appSystem.Add(item); xmlurl.Add(item.ObjectFolder); } if (xmlurl.Count > 0) { clientXml.ListModelAsync(xmlurl); } this.cbSystemCode.ItemsSource = appSystem; this.cbSystemCode.SelectedIndex = 0; } } catch (Exception ex) { ComfirmWindow.ConfirmationBox("提示", ex.Message.ToString(), "确定"); } }
void clientXml_ListSystemCompleted(object sender, ListSystemCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { ObservableCollection <string> xmlurl = new ObservableCollection <string>(); //子系统XML路径 FlowSystemModel.ListAppSystem = e.Result == null ? null : e.Result.ToList(); //appSystem.Clear(); //foreach (var item in FlowXml.ListAppSystem) //{ // appSystem.Add(item); // xmlurl.Add(item.ObjectFolder); //} //if (xmlurl.Count > 0) //{ // //clientXml.ListModelAsync(xmlurl); //} //SystemCode = appSystem; //appSystem.Insert(0, new AppSystem() { Name = "0", Description = "请选择......" }); //MessageList.cbSystemCode.ItemsSource = appSystem; //RuleList.cbSystemCode.ItemsSource = appSystem; //triggerList.cbSystemCode.ItemsSource = appSystem; //MessageList.appSystem = appSystem;//龙康才新增 //RuleList.appSystem = appSystem;//龙康才新增 //triggerList.appSystem = appSystem;//龙康才新增 //MessageList.BindDefaultGridData();//首次进入时加载 //RuleList.BindRuleData();//首次进入时加载 //triggerList.BindTriggerData();//首次进入时加载 } } else { ComfirmWindow.ConfirmationBox("提示信息", "系统代码加载错误!", "确定"); } }
//加载所以系统 void clientXml_ListSystemCompleted(object sender, ListSystemCompletedEventArgs e) { try { if (e.Result != null) { ObservableCollection<string> xmlurl = new ObservableCollection<string>(); //子系统XML路径 FlowSystemModel.ListAppSystem = e.Result == null ? null : e.Result.ToList(); appSystem.Clear(); appSystem.Add(new AppSystem { Description = "请选择......", Name = "0", ObjectFolder = "0" }); foreach (var item in FlowSystemModel.ListAppSystem) { appSystem.Add(item); xmlurl.Add(item.ObjectFolder); } if (xmlurl.Count > 0) { clientXml.ListModelAsync(xmlurl); } this.cbSystemCode.ItemsSource = appSystem; this.cbSystemCode.SelectedIndex = 0; } } catch (Exception ex) { ComfirmWindow.ConfirmationBox("提示", ex.Message.ToString(), "确定"); } }
void clientXml_ListSystemCompleted(object sender, ListSystemCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { ObservableCollection<string> xmlurl = new ObservableCollection<string>(); //子系统XML路径 FlowSystemModel.ListAppSystem = e.Result == null ? null : e.Result.ToList(); //appSystem.Clear(); //foreach (var item in FlowXml.ListAppSystem) //{ // appSystem.Add(item); // xmlurl.Add(item.ObjectFolder); //} //if (xmlurl.Count > 0) //{ // //clientXml.ListModelAsync(xmlurl); //} //SystemCode = appSystem; //appSystem.Insert(0, new AppSystem() { Name = "0", Description = "请选择......" }); //MessageList.cbSystemCode.ItemsSource = appSystem; //RuleList.cbSystemCode.ItemsSource = appSystem; //triggerList.cbSystemCode.ItemsSource = appSystem; //MessageList.appSystem = appSystem;//龙康才新增 //RuleList.appSystem = appSystem;//龙康才新增 //triggerList.appSystem = appSystem;//龙康才新增 //MessageList.BindDefaultGridData();//首次进入时加载 //RuleList.BindRuleData();//首次进入时加载 //triggerList.BindTriggerData();//首次进入时加载 } } else { ComfirmWindow.ConfirmationBox("提示信息", "系统代码加载错误!", "确定"); } }
/// <summary> /// 加载业务系统 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void _xmlClient_ListSystemCompleted(object sender, ListSystemCompletedEventArgs e) { //try //{ if (e.Result != null) { FlowSystemModel.ListAppSystem = e.Result.ToList(); //_flowClient.RetrieveFlowDefinitionAsync(_uniqueID); } //} //catch (Exception ex) //{ // MessageBox.Show(ex.Message.ToString()); //} }