Exemplo n.º 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            DefaultMessgeEdit edit = new DefaultMessgeEdit("0", "");

            edit.SaveCompleted += (obj, ev) =>
            {//保存成功,重新绑定
                BindDefaultGridData();
            };
            edit.appSystem = appSystem;
            edit.appModel  = appModel;
            edit.cobMODELCODE.ItemsSource    = this.cbModelCode.ItemsSource;
            edit.cobMODELCODE.SelectedIndex  = 0;
            edit.cobSYSTEMCODE.ItemsSource   = this.cbSystemCode.ItemsSource;
            edit.cobSYSTEMCODE.SelectedIndex = 0;
            edit.Show();
        }
Exemplo n.º 2
0
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     PlatformService.T_WF_MESSAGEBODYDEFINE entity = DataGridDefaultMessage.SelectedItem as PlatformService.T_WF_MESSAGEBODYDEFINE;
     if (entity != null)
     {
         DefaultMessgeEdit edit = new DefaultMessgeEdit("1", entity.DEFINEID);
         edit.SaveCompleted += (obj, ev) =>
         {//保存成功,重新绑定
             BindDefaultGridData();
         };
         edit.appSystem = appSystem;
         edit.appModel  = appModel;
         edit.cobMODELCODE.ItemsSource    = this.cbModelCode.ItemsSource;
         edit.cobMODELCODE.SelectedIndex  = 0;
         edit.cobSYSTEMCODE.ItemsSource   = this.cbSystemCode.ItemsSource;
         edit.cobSYSTEMCODE.SelectedIndex = 0;
         edit.Show();
     }
     else
     {
         ComfirmWindow.ConfirmationBox("提示信息", "请选择一条记录进行修改!", "确定");
     }
 }
Exemplo n.º 3
0
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
    
     PlatformService.T_WF_MESSAGEBODYDEFINE entity = DataGridDefaultMessage.SelectedItem as PlatformService.T_WF_MESSAGEBODYDEFINE;
     if (entity != null)
     {
         DefaultMessgeEdit edit = new DefaultMessgeEdit("1", entity.DEFINEID);
         edit.SaveCompleted += (obj, ev) =>
         {//保存成功,重新绑定
             BindDefaultGridData();
         };
         edit.appSystem = appSystem;
         edit.appModel = appModel;
         edit.cobMODELCODE.ItemsSource = this.cbModelCode.ItemsSource;
         edit.cobMODELCODE.SelectedIndex = 0;
         edit.cobSYSTEMCODE.ItemsSource = this.cbSystemCode.ItemsSource;
         edit.cobSYSTEMCODE.SelectedIndex = 0;
         edit.Show();
     }
     else
     {
         ComfirmWindow.ConfirmationBox("提示信息", "请选择一条记录进行修改!", "确定");  
     }
 }
Exemplo n.º 4
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
    
     DefaultMessgeEdit edit = new DefaultMessgeEdit("0", "");
     edit.SaveCompleted += (obj, ev) =>
     {//保存成功,重新绑定
         BindDefaultGridData();
     };
     edit.appSystem = appSystem;
     edit.appModel = appModel;
     edit.cobMODELCODE.ItemsSource = this.cbModelCode.ItemsSource;
     edit.cobMODELCODE.SelectedIndex = 0;
     edit.cobSYSTEMCODE.ItemsSource = this.cbSystemCode.ItemsSource;
     edit.cobSYSTEMCODE.SelectedIndex = 0;
     edit.Show();
 }