예제 #1
0
        private void BtnSave_Onclick(object sender, RoutedEventArgs e)
        {
            if (TabStyle != null)
            {
                switch (TabStyle.SelectedIndex)
                {
                case 0:
                    DetailGrid.CommitEdit();
                    //   _viewModel.SaveDetailRow();
                    break;

                case 1:
                    if (!_viewModel.Loading)
                    {
                        _viewModel.SaveSalesOrderOperationsList();
                    }
                    //     _viewModel.SaveSalesOrderOperations();
                    break;

                case 2:
                    SubEventGrid.CommitEdit();
                    break;

                case 3:
                    _viewModel.SaveBom();
                    break;
                }
            }
        }
예제 #2
0
        private void ExportExcel_Click(object sender, RoutedEventArgs e)
        {
            if (TabStyle != null)
            {
                switch (TabStyle.SelectedIndex)
                {
                case 0:
                    //_viewModel.GetDetaildataFull(DetailGrid);
                    DetailGrid.ExportExcel("Po");
                    break;

                case 1:
                    SalesOrderOperationGrid.ExportExcel("Operations Colors");
                    break;

                case 2:
                    SubEventGrid.ExportExcel("Sample Event");
                    break;

                case 3:
                    BomGrid.ExportExcel("Bom");
                    break;
                }
            }
        }
예제 #3
0
 private void BtnSave_Onclick(object sender, RoutedEventArgs e)
 {
     if (_viewModel.DataGridName == "DetailGrid")
     {
         DetailGrid.CommitEdit();
     }
     else if (_viewModel.DataGridName == "SubDetailGrid")
     {
         SubDetailGrid.CommitEdit();
     }
     else if (_viewModel.DataGridName == "SubEventGrid")
     {
         SubEventGrid.CommitEdit();
     }
     else
     {
         MainGrid.CommitEdit();
     }
 }