Example #1
0
        private void btnDetailAdd_Click(object sender, RoutedEventArgs e)
        {
            if (this.cbSystemName.SelectedItem != null && this.cbModelName.SelectedItem != null)
            {
                DoTaskRuleEdit edit = new DoTaskRuleEdit(this.cbSystemName.SelectedItem as FLOW_MODELDEFINE_T, this.cbModelName.SelectedItem as FLOW_MODELDEFINE_T, null, Rule.DOTASKRULEID);
                edit.SaveClick += (obj, ev) =>
                {
                    client.GetDoTaskRuleDetailAsync(Rule.DOTASKRULEID);
                };
                edit.chkIsMsg.IsChecked = true;//默认选 中

                edit.cbSystemCode.ItemsSource         = this.cbSystemName.ItemsSource;
                edit.cbModelCode.ItemsSource          = this.cbModelName.ItemsSource;
                edit.cbotherModelCode1.ItemsSource    = this.cbModelName.ItemsSource;
                edit.cbotherModelCode1.SelectedIndex  = 0;
                edit.cbOtherSystemCode1.ItemsSource   = this.cbSystemName.ItemsSource;
                edit.cbOtherSystemCode1.SelectedIndex = 0;
                edit.cbModelCode.SelectedItem         = this.cbModelName.SelectedItem;
                edit.cbSystemCode.SelectedItem        = this.cbSystemName.SelectedItem;

                edit.appSystem = appSystem;
                edit.appModel  = appModel;
                edit.Show();
            }
            else
            {
                ComfirmWindow.ConfirmationBox("提示信息", "系统或者模块未选择!", "确定");
            }
        }
Example #2
0
        private void btnDetailEdit_Click(object sender, RoutedEventArgs e)
        {
            PlatformService.T_WF_DOTASKRULEDETAIL Detail = DoTaskRuleDetailDataGrid.SelectedItem as PlatformService.T_WF_DOTASKRULEDETAIL;
            if (Detail == null)
            {
                ComfirmWindow.ConfirmationBox("提示信息", "请选择一条需要修改的记录!", "确定");
                return;
            }
            if (this.cbSystemName.SelectedItem != null && this.cbModelName.SelectedItem != null)
            {
                DoTaskRuleEdit edit = new DoTaskRuleEdit(this.cbSystemName.SelectedItem as FLOW_MODELDEFINE_T, this.cbModelName.SelectedItem as FLOW_MODELDEFINE_T, Detail, Rule.DOTASKRULEID);
                edit.SaveClick += (obj, ev) =>
                {
                    client.GetDoTaskRuleDetailAsync(Rule.DOTASKRULEID);
                };
                edit.cbSystemCode.ItemsSource       = this.cbSystemName.ItemsSource;
                edit.cbModelCode.ItemsSource        = this.cbModelName.ItemsSource;
                edit.cbOtherSystemCode1.ItemsSource = this.cbSystemName.ItemsSource;
                edit.appSystem = appSystem;
                edit.appModel  = appModel;

                if (Detail != null)
                {
                    if (!string.IsNullOrEmpty(Detail.OTHERSYSTEMCODE))
                    {
                        for (int i = 0; i < this.cbSystemName.Items.Count; i++)
                        {
                            if (((this.cbSystemName.Items[i]) as AppSystem).Name == Detail.OTHERSYSTEMCODE)
                            {
                                edit.cbOtherSystemCode1.SelectedIndex = i;
                            }
                        }
                    }
                    else
                    {
                        edit.cbOtherSystemCode1.SelectedIndex = 0;
                    }
                }
                edit.cbModelCode.SelectedItem  = this.cbModelName.SelectedItem;
                edit.cbSystemCode.SelectedItem = this.cbSystemName.SelectedItem;
                edit.Show();
            }
            else
            {
                ComfirmWindow.ConfirmationBox("提示信息", "系统或者模块未选择!", "确定");
            }
        }
Example #3
0
        private void btnDetailEdit_Click(object sender, RoutedEventArgs e)
        {
            PlatformService.T_WF_DOTASKRULEDETAIL Detail = DoTaskRuleDetailDataGrid.SelectedItem as PlatformService.T_WF_DOTASKRULEDETAIL;
            if (Detail == null)
            {
                ComfirmWindow.ConfirmationBox("提示信息", "请选择一条需要修改的记录!", "确定");
                return;
            }
            if (this.cbSystemName.SelectedItem != null && this.cbModelName.SelectedItem != null)
            {
                DoTaskRuleEdit edit = new DoTaskRuleEdit(this.cbSystemName.SelectedItem as FLOW_MODELDEFINE_T, this.cbModelName.SelectedItem as FLOW_MODELDEFINE_T, Detail, Rule.DOTASKRULEID);
                edit.SaveClick += (obj, ev) =>
                {
                    client.GetDoTaskRuleDetailAsync(Rule.DOTASKRULEID);

                };
                edit.cbSystemCode.ItemsSource = this.cbSystemName.ItemsSource;
                edit.cbModelCode.ItemsSource = this.cbModelName.ItemsSource;
                edit.cbOtherSystemCode1.ItemsSource = this.cbSystemName.ItemsSource;
                edit.appSystem = appSystem;
                edit.appModel = appModel;

                if (Detail != null)
                {
                    if (!string.IsNullOrEmpty(Detail.OTHERSYSTEMCODE))
                    {
                        for (int i = 0; i < this.cbSystemName.Items.Count; i++)
                        {
                            if (((this.cbSystemName.Items[i]) as AppSystem).Name == Detail.OTHERSYSTEMCODE)
                            {
                                edit.cbOtherSystemCode1.SelectedIndex = i;
                            }
                        }
                    }
                    else
                    {
                        edit.cbOtherSystemCode1.SelectedIndex = 0;
                    }
                }
                edit.cbModelCode.SelectedItem = this.cbModelName.SelectedItem;
                edit.cbSystemCode.SelectedItem = this.cbSystemName.SelectedItem;
                edit.Show();
            }
            else
            {
                ComfirmWindow.ConfirmationBox("提示信息", "系统或者模块未选择!", "确定");
            }
        }
Example #4
0
        private void btnDetailAdd_Click(object sender, RoutedEventArgs e)
        {
            if (this.cbSystemName.SelectedItem != null && this.cbModelName.SelectedItem != null)
            {
                DoTaskRuleEdit edit = new DoTaskRuleEdit(this.cbSystemName.SelectedItem as FLOW_MODELDEFINE_T, this.cbModelName.SelectedItem as FLOW_MODELDEFINE_T, null, Rule.DOTASKRULEID);
                edit.SaveClick += (obj, ev) =>
                {
                    client.GetDoTaskRuleDetailAsync(Rule.DOTASKRULEID);

                };
                edit.chkIsMsg.IsChecked = true;//默认选 中

                edit.cbSystemCode.ItemsSource = this.cbSystemName.ItemsSource;
                edit.cbModelCode.ItemsSource = this.cbModelName.ItemsSource;
                edit.cbotherModelCode1.ItemsSource = this.cbModelName.ItemsSource;
                edit.cbotherModelCode1.SelectedIndex = 0;
                edit.cbOtherSystemCode1.ItemsSource = this.cbSystemName.ItemsSource;
                edit.cbOtherSystemCode1.SelectedIndex = 0;
                edit.cbModelCode.SelectedItem = this.cbModelName.SelectedItem;
                edit.cbSystemCode.SelectedItem = this.cbSystemName.SelectedItem;

                edit.appSystem = appSystem;
                edit.appModel = appModel;
                edit.Show();
            }
            else
            {
                ComfirmWindow.ConfirmationBox("提示信息", "系统或者模块未选择!", "确定");
            }
        }