private void cbModelCode_SelectionChanged(object sender, SelectionChangedEventArgs e) { otherModel = false; string strMsgOpen = string.Empty; var system = cbSystemCode.SelectedItem as SMT.Workflow.Platform.Designer.PlatformService.FLOW_MODELDEFINE_T; var model = cbModelCode.SelectedItem as SMT.Workflow.Platform.Designer.PlatformService.FLOW_MODELDEFINE_T; if (system != null && model != null && system.SYSTEMCODE != "0" && model.MODELCODE != "0") { XmlClient.ListFuncTableColumnAsync(XmlUtils.GetSystemPath(system.SYSTEMCODE), model.MODELCODE, strMsgOpen); } }
public DoTaskRuleEdit(FLOW_MODELDEFINE_T system, FLOW_MODELDEFINE_T model, PlatformService.T_WF_DOTASKRULEDETAIL entity, string ruleID) { InitializeComponent(); XmlClient = new FlowXmlDefineClient(); string strMsgOpen = string.Empty; RuleID = ruleID; XmlClient.ListFuncTableColumnCompleted += new EventHandler<ListFuncTableColumnCompletedEventArgs>(XmlClient_ListFuncTableColumnCompleted); client.EditDoTaskRuleDetailCompleted += new EventHandler<EditDoTaskRuleDetailCompletedEventArgs>(client_EditDoTaskRuleDetailCompleted); client.AddDoTaskRuleDetailCompleted += new EventHandler<AddDoTaskRuleDetailCompletedEventArgs>(client_AddDoTaskRuleDetailCompleted); //加载子系统xml //XmlClient.ListModelCompleted += new EventHandler<ListModelCompletedEventArgs>(clientXml_ListModelCompleted); if (system != null && model != null) { XmlClient.ListFuncTableColumnAsync(XmlUtils.GetSystemPath(system.SYSTEMCODE), model.MODELCODE, strMsgOpen); } if (entity != null) { Entity = entity; InitDetail(); } else { txtAvailabilityProcessDates.Text = "3"; } if (chkIsMsg.IsChecked == true) { SetIsEnabled(false); } }
public DoTaskRuleEdit(FLOW_MODELDEFINE_T system, FLOW_MODELDEFINE_T model, PlatformService.T_WF_DOTASKRULEDETAIL entity, string ruleID) { InitializeComponent(); XmlClient = new FlowXmlDefineClient(); string strMsgOpen = string.Empty; RuleID = ruleID; XmlClient.ListFuncTableColumnCompleted += new EventHandler <ListFuncTableColumnCompletedEventArgs>(XmlClient_ListFuncTableColumnCompleted); client.EditDoTaskRuleDetailCompleted += new EventHandler <EditDoTaskRuleDetailCompletedEventArgs>(client_EditDoTaskRuleDetailCompleted); client.AddDoTaskRuleDetailCompleted += new EventHandler <AddDoTaskRuleDetailCompletedEventArgs>(client_AddDoTaskRuleDetailCompleted); //加载子系统xml //XmlClient.ListModelCompleted += new EventHandler<ListModelCompletedEventArgs>(clientXml_ListModelCompleted); if (system != null && model != null) { XmlClient.ListFuncTableColumnAsync(XmlUtils.GetSystemPath(system.SYSTEMCODE), model.MODELCODE, strMsgOpen); } if (entity != null) { Entity = entity; InitDetail(); } else { txtAvailabilityProcessDates.Text = "3"; } if (chkIsMsg.IsChecked == true) { SetIsEnabled(false); } }
private void cmbModelCode_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (cmbModelCode != null) { string strMsgOpen = string.Empty; var itemSystem = cmbSystemCode.SelectedItem as SMT.Workflow.Platform.Designer.PlatformService.FLOW_MODELDEFINE_T; var itemMode = cmbModelCode.SelectedItem as SMT.Workflow.Platform.Designer.PlatformService.FLOW_MODELDEFINE_T; if (itemSystem != null && itemMode != null) { XmlClient.ListFuncTableColumnAsync(XmlUtils.GetSystemPath(itemSystem.SYSTEMCODE), itemMode.MODELCODE, strMsgOpen); } } }