public override void CopyCheck(object entity)
        {
            if (entity != null)
            {
                EntityCopying _entity = (EntityCopying)entity;

                if (_entity._message != "" || _entity._is_lock_success == false)
                {
                    return;
                }
                else
                {
                    this.DialogResult = true;
                    this.ExistsData   = _entity._is_exists_data;
                    Dlg_Copying win = (Dlg_Copying)ExVisualTreeHelper.FindPerentChildWindow(this);
                    win.Close();
                    return;
                }
            }
            // 失敗
            else
            {
                ExMessageBox.Show("複写情報の取得で予期せぬエラーが発生しました。");
                return;
            }
        }
Exemple #2
0
        // 入力チェック(削除時)
        private void InputCheckDelete()
        {
            try
            {
                if (this.utlID.txtID.Text.Trim() == "")
                {
                    ExMessageBox.Show("データが選択されていません。");
                    return;
                }

                if (this._entity == null)
                {
                    ExMessageBox.Show("データが選択されていません。");
                    return;
                }

                if (this._entity._id == "")
                {
                    ExMessageBox.Show("データが選択されていません。");
                    return;
                }

                UpdateData(Common.geUpdateType.Delete);
            }
            finally
            {
                Common.gblnBtnProcLock          = false;
                Common.gblnBtnDesynchronizeLock = false;
            }
        }
Exemple #3
0
        private void btnDelete_Click(object sender, System.EventArgs e)
        {
            if (table == null)
            {
                ExMessageBox.Show(this, "请选择一个数据表再进行操作!");
                return;
            }
            if (data_profile == null)
            {
                return;
            }
            if (dgvData.SelectedCells.Count == 0)
            {
                return;
            }
            int row = dgvData.SelectedCells[0].RowIndex;

            if (row < 0)
            {
                return;
            }
            if (ExMessageBox.Show(this, "删除当前所选数据项, 确认继续吗?", "删除数据项", ExMessageBoxIcon.Question, ExMessageBoxButton.YesNo) == DialogResult.No)
            {
                return;
            }
            data_profile.data_list.RemoveAt(row);
            dgvData.Rows.RemoveAt(row);
            data_profile.toXmlFile(root_path);
        }
Exemple #4
0
        // F4ボタン(行削除) クリック
        public override void btnF4_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // 選択有りか、データ有りか確認
                if (this.dg.SelectedIndex < 0)
                {
                    return;
                }
                if (this.dg.ItemsSource == null)
                {
                    return;
                }
                if (_entity == null)
                {
                    return;
                }
                if (_entity.Count == 0)
                {
                    return;
                }
                if (_entity.Count == 1 && this.dg.SelectedIndex == _entity.Count - 1)
                {
                    return;
                }

                int            _selectedIndex = dg.SelectedIndex;
                DataGridColumn dgCol          = this.dg.CurrentColumn;

                // 行削除
                _entity.RemoveAt(this.dg.SelectedIndex);
                SetDetailRecNo();

                // 行削除後の選択
                if (this.dg.SelectedIndex != 0)
                {
                    if (_selectedIndex <= _entity.Count - 1)
                    {
                        this.dg.SelectedIndex = this.dg.SelectedIndex;
                        this.dg.CurrentColumn = dgCol;
                    }
                    else
                    {
                        this.dg.SelectedIndex = this.dg.SelectedIndex - 1;
                        this.dg.CurrentColumn = dgCol;
                    }
                }

                // データ1件もない場合、デフォルト行の追加
                if (_entity.Count == 0)
                {
                    btnF3_Click(null, null);
                }
            }
            catch (Exception ex)
            {
                ExMessageBox.Show(CLASS_NM + ".btnF4_Click : 予期せぬエラーが発生しました。" + Environment.NewLine + ex.Message);
            }
        }
        // F1ボタン(出力) クリック
        public override void btnF1_Click(object sender, RoutedEventArgs e)
        {
            // OK
            if (Common.gWinGroupType == Common.geWinGroupType.InpList)
            {
                if (entityList == null)
                {
                    ExMessageBox.Show("データが検索されていません。");
                    return;
                }
                if (entityList.Count == 0)
                {
                    ExMessageBox.Show("データが検索されていません。");
                    return;
                }

                int intIndex = this.dgPrint.SelectedIndex;
                if (intIndex < 0)
                {
                    ExMessageBox.Show("行が選択されていません。");
                    return;
                }

                this.no           = ExCast.zCLng(this.lst[this.dgPrint.SelectedIndex].no);
                this.DialogResult = true;

                Dlg_InpSearch win = (Dlg_InpSearch)ExVisualTreeHelper.FindPerentChildWindow(this);
                win.Close();

                // 直接設定すると何故か画面がフリーズする為、コメントアウト
                //win.no = this.lst[this.dg.SelectedIndex].no;
                //win.DialogResult = true;
            }
            // 出力
            else
            {
                if (Common.gWinGroupType == Common.geWinGroupType.InpListReport)
                {
                    this.ProcKbn = eProcKbn.Report;
                }
                else
                {
                    this.ProcKbn = eProcKbn.ReportDetail;
                }

                this.utlReport.rptKbn = DataReport.geReportKbn.OutPut;
                this.ProcKbn          = eProcKbn.Report;

                // ボタン押下時非同期入力チェックON
                Common.gblnBtnDesynchronizeLock = true;

                ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk();
                bk.utl                  = this;
                bk.waitTime             = 500;
                this.txtDummy.IsTabStop = true;
                bk.focusCtl             = this.txtDummy;
                bk.bw.RunWorkerAsync();
            }
        }
Exemple #6
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     if (ExMessageBox.Show(root, "清空当前sql语句内容吗?", "清空Sql", ExMessageBoxIcon.Question, ExMessageBoxButton.YesNo) == DialogResult.No)
     {
         return;
     }
     txtQuery.Text = "";
 }
        private void InitDataSet()
        {
            try
            {
                if (this.ProcKbn == eProcKbn.Update)
                {
                    if (this.IsGetCompanyGroupList == true && this.IsGetPersonList == true)
                    {
                        this.txtTitle.Text = this._entity._title;

                        if (this._entity._gropu_id == 0)
                        {
                            cmbGroup.SelectedIndex = 0;
                        }
                        else
                        {
                            for (int i = 0; i <= cmbGroup.Items.Count - 1; i++)
                            {
                                if (ExCast.zCStr(this.cmbGroup.Items[i].ToString()) == this._entity._gropu_nm)
                                {
                                    cmbGroup.SelectedIndex = i;
                                }
                            }
                        }
                        for (int i = 0; i <= cmbPerson.Items.Count - 1; i++)
                        {
                            if (ExCast.zCStr(this.cmbPerson.Items[i].ToString()) == this._entity._person_nm)
                            {
                                cmbPerson.SelectedIndex = i;
                            }
                        }
                        for (int i = 0; i <= cmbLevel.Items.Count - 1; i++)
                        {
                            if (ExCast.zCStr(this.cmbLevel.Items[i].ToString()) == this._entity._duties_level_nm)
                            {
                                cmbLevel.SelectedIndex = i;
                            }
                        }
                        for (int i = 0; i <= cmbState.Items.Count - 1; i++)
                        {
                            if (ExCast.zCStr(this.cmbState.Items[i].ToString()) == this._entity._duties_state_nm)
                            {
                                cmbState.SelectedIndex = i;
                            }
                        }
                        this.txtPath.Text    = this._entity._upload_file_name1;
                        this.txtContent.Text = this._entity._content;

                        ExBackgroundWorker.DoWork_Focus(this.txtTitle, 100);
                    }
                }
            }
            catch (Exception ex)
            {
                ExMessageBox.Show(CLASS_NM + ".InitDataSet 初期データの設定に失敗しました。" + Environment.NewLine + ex.ToString(), "エラー確認");
                this.DialogResult = false;
            }
        }
        // F3ボタン(行挿入) クリック
        public override void btnF3_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // 明細初期設定
                EntityClass entity = new EntityClass();
                InitDetail(ref entity);

                int _selectedIndex = 0;
                int _displayIndex  = 0;

                if (_entity == null)
                {
                    _entity = new ObservableCollection <EntityClass>();
                    _entity.Add(entity);
                    SetDetailRecNo();
                }
                else
                {
                    if (this.dg.ConfirmEditEnd() == false)
                    {
                        return;
                    }

                    _selectedIndex = dg.SelectedIndex;
                    _displayIndex  = this.dg.CurrentColumn.DisplayIndex;

                    _entity.Insert(_selectedIndex + 1, entity);
                    SetDetailRecNo();

                    dg.SelectedIndex      = _selectedIndex;
                    this.dg.CurrentColumn = this.dg.Columns[_displayIndex];

                    //// 一旦行挿入を入れてコピー
                    //ObservableCollection<EntityClass> _copy_entity = new ObservableCollection<EntityClass>();
                    //for (int i = 0; i <= _entity.Count - 1; i++)
                    //{
                    //    if (dg.SelectedIndex == i)
                    //    {
                    //        _copy_entity.Add(entity);
                    //    }
                    //    _copy_entity.Add(_entity[i]);
                    //}
                    //// コピーを戻す
                    //_entity = null;
                    //_entity = _copy_entity;
                    //this.dg.ItemsSource = _entity;
                    //ExDataGridUtilty.zCommitEdit(this.dg);
                    //ExBackgroundWorker.DoWork_SelectDgCell(this.dg, _selectedIndex, _displayIndex);
                }
            }
            catch (Exception ex)
            {
                ExMessageBox.Show(CLASS_NM + ".btnF3_Click : 予期せぬエラーが発生しました。" + Environment.NewLine + ex.Message);
            }
        }
        private void btnInstall_Click(object sender, RoutedEventArgs e)
        {
            if (chkYes.IsChecked == false)
            {
                ExMessageBox.Show("ソフトウェア使用許諾に同意頂けていない場合、デモアプリケーションのインストールを行う事はできません。");
                return;
            }

            Application.Current.Install();
        }
Exemple #10
0
        private void btnExcute_Click(object sender, EventArgs e)
        {
            DataTable data = DBQuery.query(txtQuery.Text, root.connection, null, out string msg);

            dgvResult.DataSource = data;
            if (msg != "")
            {
                ExMessageBox.Show(root, msg, "错误信息", ExMessageBoxIcon.Error);
            }
        }
 private void DataForm_DeletingItem(object sender, CancelEventArgs e)
 {
     if (_entityListD[DataForm.CurrentIndex]._order_id != 0)
     {
         ExMessageBox.Show("受注データからの転記分の為、削除できません。" + Environment.NewLine + "対象行データを取消する場合、納品区分を取消に変更して下さい。");
         e.Cancel = true;
         return;
     }
     GetUserControlFKey().gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Upd;
 }
Exemple #12
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            var msg = parent.setNewProject(txtProjectName.Text.Trim());

            if (!msg.isNull())
            {
                ExMessageBox.Show(root, msg);
                return;
            }
            this.Close();
        }
Exemple #13
0
 public override void DataUpdate(int intKbn, string errMessage)
 {
     if ((ExWebService.geWebServiceCallKbn)intKbn == ExWebService.geWebServiceCallKbn.UpdateSalesCreditBalance)
     {
         if (string.IsNullOrEmpty(errMessage))
         {
             ExMessageBox.Show("登録しました。");
             //btnF2_Click(null, null);
         }
     }
 }
 public override void DataUpdate(int intKbn, string errMessage)
 {
     if ((ExWebService.geWebServiceCallKbn)intKbn == ExWebService.geWebServiceCallKbn.UpdateStockInventory)
     {
         if (string.IsNullOrEmpty(errMessage))
         {
             ExMessageBox.Show("登録しました。");
             GetListData();
             //btnF2_Click(null, null);
         }
     }
 }
        private void ConfirmGridView_OnOk(object sender, RoutedEventArgs e)
        {
            if (Encrypt(txtpassword.Password) != StartUp.SysObj.UserInfo.Rows[0]["password"].ToString())
            {
                ExMessageBox.Show(385, StartUp.SysObj, "Mật khẩu không chính xác, vui lòng nhập lại mật khẩu!", "", MessageBoxButton.OK, MessageBoxImage.Information);
                txtpassword.SelectAll();
                txtpassword.Focus();
                return;
            }

            IsLogined = true;
            this.Close();
        }
Exemple #16
0
        static void Main()
        {
            CreateRes();

            //读入主题包
            byte[] theme = File.ReadAllBytes(".\\Default.ext");

            theApp = new ExApp(theme);
            skin   = new ExSkin(null, null, "你好世界", 0, 0, 600, 400,
                                EWS_BUTTON_CLOSE | EWS_BUTTON_MIN | EWS_CENTERWINDOW | EWS_HASICON |
                                EWS_TITLE | EWS_MOVEABLE | EWS_MAINWINDOW, 0, 0, 0, WndProc
                                );

            if (skin.Validate)
            {
                TestCustomCtrl.RegisterControl();
                //设置背景色
                skin.SetLong(EWL_CRBKG, Color.Blue.ToArgb());

                //ExBaseCtrl ctrl1 = new ExBaseCtrl(skin, "Button", "你好", 50, 50, 200, 35);
                ExButton btn1 = new ExButton(skin, "你好", 50, 50, 150, 40);

                byte[]   img  = File.ReadAllBytes(".\\Res\\bkg.png");
                ExStatic img1 = new ExStatic(skin, img, 50, 110, 300, 200);
                img1.SetBackgroundPlayState(true, false, false);

                ExEdit edit1 = new ExEdit(img1, "测试", 25, 25, 100, 30);

                TestCustomCtrl custom = new TestCustomCtrl(skin, "abc", 360, 110, 50, 50);


                //挂接事件
                btn1.HandleEvent(NM_CLICK,
                                 //lambda delegate
                                 (IntPtr hObj, int nID, int nCode, int wParam, int lParam) =>
                {
                    ExMessageBox.Show(new ExControl(hObj), "单击按钮" + skin.Text, btn1.ClassName, MB_ICONINFORMATION, 0);

                    btn1.Text = "测试";

                    return(false);
                }
                                 );

                //显示
                skin.Visible = true;

                //运行程序
                theApp.Run();
            }
        }
        private void btnExportSpec_Click(object sender, EventArgs e)
        {
            string path = rootFolder() + "\\db_spec.pdf";
            string msg  = DBSpecUtil.exportPDF(path, txtRootFolder.Text);

            if (msg == "")
            {
                ExMessageBox.Show(root, "导出成功!");
            }
            else
            {
                ExMessageBox.Show(root, "导出文档时出现错误, 错误信息:" + msg);
            }
        }
        private void btnTestConnection_Click(object sender, System.EventArgs e)
        {
            DBConnection connection = ucConnection.Connection;
            bool         status     = DBUtil.testConnection(connection, out string msg);

            if (status)
            {
                ExMessageBox.Show(this, "测试成功!", "测试结果", ExMessageBoxIcon.Successed);
            }
            else
            {
                ExMessageBox.Show(this, msg, "测试结果", ExMessageBoxIcon.Error);
            }
        }
 private void utlID_LostFocus(object sender, RoutedEventArgs e)
 {
     if (this.utlID.txtID.Text.Trim() != "")
     {
         if (ExCast.zCInt(this.utlID.txtID.Text.Trim()) == 0)
         {
             ExMessageBox.Show("グループIDには0以外を指定して下さい。");
             this.utlID.txtID.Text = "";
             this.utlID.txtID.Focus();
             return;
         }
         GetMstData(ExCast.zCInt(this.utlID.txtID.Text.Trim()));
     }
 }
Exemple #20
0
 private bool InputCheck()
 {
     if (this.txtLoginID.Text.Trim() == "")
     {
         ExMessageBox.Show(this, this.txtLoginID, "ログインIDを入力して下さい。");
         return(false);
     }
     if (this.txtPass.Password.Trim() == "")
     {
         ExMessageBox.Show(this, this.txtPass, "ログインパスワードを入力して下さい。");
         return(false);
     }
     return(true);
 }
        private void btnDeleteColumn_Click(object sender, EventArgs e)
        {
            if (dgvColumns.SelectedCells.Count <= 0)
            {
                return;
            }
            int index = dgvColumns.SelectedCells[0].RowIndex;

            if (ExMessageBox.Show(root, "将要删除当前所选列'" + dgvColumns.Rows[index].Cells[COL_NAME].Value + "', 确认继续吗?\r\n注意:在未点击保存列设置时, 该操作将不会最终生效.", "删除列", ExMessageBoxIcon.Question, ExMessageBoxButton.YesNo) == DialogResult.No)
            {
                return;
            }
            dgvColumns.Rows.RemoveAt(index);
            tables[lbTables.SelectedIndex].columns.RemoveAt(index);
            saveCurrentColumns();
        }
        // F1ボタン(OK) クリック
        public override void btnF1_Click(object sender, RoutedEventArgs e)
        {
            if (this.btnF1.IsEnabled == false)
            {
                return;
            }

            if (this.rdoAri.IsChecked == true && this_txtID.Text.Trim() == "")
            {
                ExMessageBox.Show("IDが指定されていません。");
                return;
            }

            if (ExCast.IsNumeric(this_txtID.Text.Trim()))
            {
                if (ExCast.zCDbl(this.before_id) == ExCast.zCDbl(this_txtID.Text.Trim()))
                {
                    ExMessageBox.Show("複写元と複写先IDが同じです。");
                    return;
                }
            }
            else
            {
                if (this.before_id == this_txtID.Text.Trim())
                {
                    ExMessageBox.Show("複写元と複写先IDが同じです。");
                    return;
                }
            }

            if (this.rdoAri.IsChecked == true)
            {
                this.copy_id = this_txtID.Text.Trim();
                if (ExCast.IsNumeric(this.copy_id))
                {
                    this.copy_id = ExCast.zCDbl(this.copy_id).ToString();
                }
                OnCopyCheck();
            }
            else
            {
                this.copy_id      = "";
                this.DialogResult = true;
                Dlg_Copying win = (Dlg_Copying)ExVisualTreeHelper.FindPerentChildWindow(this);
                win.Close();
            }
        }
Exemple #23
0
        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            // ネットワーク接続確認
            if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == false)
            {
                ExMessageBox.Show("ネットワークに接続されていない為、ログイン認証が実行できません。" + Environment.NewLine);
                return;
            }

            if (InputCheck() == false)
            {
                return;
            }

            // ログイン処理
            Login();
        }
Exemple #24
0
        private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
        {
            string errorMessage = String.Empty;

            if (e.ExceptionObject.InnerException != null && e.ExceptionObject.InnerException is System.ServiceModel.FaultException)
            {
                //wcf exception.
                FaultException exc = e.ExceptionObject.InnerException as FaultException;
                errorMessage = exc.Reason.ToString();
                ExMessageBox.Show(errorMessage);

                // WCFエラーの場合はアプリケーションを終了する
                if (Application.Current.IsRunningOutOfBrowser)
                {
                    Application.Current.MainWindow.Close();
                }
            }
            else
            {
                //silverlight exception.
                errorMessage = e.ExceptionObject.Message;
                ExMessageBox.Show(errorMessage);

                // 処理を続行する
                e.Handled = true;
                Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); //redirect to error page.
            }


            //handle exception so app doesn't crash.

            // アプリケーションがデバッガーの外側で実行されている場合、ブラウザーの
            // 例外メカニズムによって例外が報告されます。これにより、IE ではステータス バーに
            // 黄色の通知アイコンが表示され、Firefox にはスクリプト エラーが表示されます。
            //if (!System.Diagnostics.Debugger.IsAttached)
            //{

            //    // メモ : これにより、アプリケーションは例外がスローされた後も実行され続け、例外は
            //    // ハンドルされません。
            //    // 実稼動アプリケーションでは、このエラー処理は、Web サイトにエラーを報告し、
            //    // アプリケーションを停止させるものに置換される必要があります。
            //    e.Handled = true;
            //    Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
            //}
        }
        private void ConfirmGridView_OnOk(object sender, RoutedEventArgs e)
        {
            FormTrans _formparent = this.Owner as FormTrans;

            if (string.IsNullOrEmpty(txtMa_qs_pt.Text.Trim()) || !txtMa_qs_pt.CheckLostFocus())
            {
                ExMessageBox.Show(697, StartUp.SysObj, "Chưa vào mã quyển sổ phiếu thu", "", MessageBoxButton.OK, MessageBoxImage.Information);
                txtMa_qs_pt.IsFocus = true;
                return;
            }
            if (string.IsNullOrEmpty(txtso_ct_pt.Text.Trim()))
            {
                ExMessageBox.Show(698, StartUp.SysObj, "Chưa vào số chứng từ!", "Xac nhan nhap lieu", MessageBoxButton.OK, MessageBoxImage.Information);
                txtso_ct_pt.Focus();
                return;
            }

            string stt_rec_pt = "";

            if (tbInfoPT != null && tbInfoPT.Rows.Count == 1)
            {
                stt_rec_pt = tbInfoPT.Rows[0]["stt_rec"].ToString();
            }
            if (_formparent.CheckValidSoct(StartUp.SysObj, txtMa_qs_pt.Text, txtso_ct_pt.Text.PadLeft(txtso_ct_pt.MaxLength, ' '), stt_rec_pt))
            {
                if (txtMa_qs_pt.RowResult["chkso_ct"].ToString().Equals("1"))
                {
                    if (ExMessageBox.Show(699, StartUp.SysObj, "Số chứng từ đã tồn tại. Số cuối cùng là: " + "[" + _formparent.GetLastSoct(StartUp.SysObj, txtMa_qs_pt.Text).Trim() + "]" + ". Có lưu chứng từ này không?", "Xac nhan nhap lieu", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No) == MessageBoxResult.No)
                    {
                        txtso_ct_pt.SelectAll();
                        txtso_ct_pt.Focus();
                        return;
                    }
                }
                else if (txtMa_qs_pt.RowResult["chkso_ct"].ToString().Equals("2"))
                {
                    ExMessageBox.Show(694, StartUp.SysObj, "Số chứng từ đã tồn tại. Số cuối cùng là: " + "[" + _formparent.GetLastSoct(StartUp.SysObj, txtMa_qs_pt.Text).Trim() + "]", "Xac nhan nhap lieu", MessageBoxButton.OK, MessageBoxImage.Information);
                    txtso_ct_pt.SelectAll();
                    txtso_ct_pt.Focus();
                    return;
                }
            }
            isOk = true;
            this.Close();
        }
        private void btnInventory_Click(object sender, RoutedEventArgs e)
        {
            if (ExCast.zCStr(utlID.txtID.Text.Trim()) != "")
            {
            }
            else
            {
                ExMessageBox.Show("商品を選択して下さい。");
                return;
            }

            Dlg_MstSearch searchDlg = new Dlg_MstSearch(MstData.geMDataKbn.Inventory);

            searchDlg.MstKbn       = Class.Data.MstData.geMDataKbn.Inventory;
            searchDlg.MstGroupKbn  = Class.Data.MstData.geMGroupKbn.None;
            searchDlg.txtCode.Text = ExCast.zNumZeroNothingFormat(ExCast.zCStr(utlID.txtID.Text.Trim()));
            searchDlg.Show();
        }
Exemple #27
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            List <DBTable> selected = new List <DBTable>();

            for (int i = 0; i < chlPreset.Items.Count; i++)
            {
                if (chlPreset.GetItemChecked(i))
                {
                    selected.Add(DBPresetUtil.preset_tables[i]);
                }
            }
            if (selected.Count <= 0)
            {
                ExMessageBox.Show(this, "您当前没有选择任何表");
                return;
            }
            parent.addPresetTables(selected);
            this.Close();
        }
        // F3ボタン(削除) クリック
        public override void btnF3_Click(object sender, RoutedEventArgs e)
        {
            if (GetUserControlFKey().btnF3.IsEnabled == false)
            {
                return;
            }

            if (_entityListD[DataForm.CurrentIndex]._order_id != 0)
            {
                ExMessageBox.Show("受注データからの転記分の為、削除できません。" + Environment.NewLine + "対象行データを取消する場合、納品区分を取消に変更して下さい。");
                return;
            }

            // 一旦保存
            this.DataForm.CommitEdit();

            // 削除
            this.DataForm.DeleteItem();
        }
Exemple #29
0
 private void _evtDataSelect(int intKbn, object objList)
 {
     this.cmbLoginId.Items.Clear();
     if (objList != null)
     {
         _entityUserList = (ObservableCollection <EntityMstList>)objList;
         for (int i = 0; i <= _entityUserList.Count - 1; i++)
         {
             this.cmbLoginId.Items.Add(_entityUserList[i].id);
         }
         this.cmbLoginId.SelectedIndex = -1;
     }
     else
     {
         ExMessageBox.Show("ログインユーザーリストの取得に失敗しました。");
         this.btnF12_Click(null, null);
     }
     ExBackgroundWorker.DoWork_FocusForLoad(this.cmbLoginId);
 }
        private void btnExport_Click(object sender, System.EventArgs e)
        {
            if (chbRemoveAll.Checked)
            {
                if (ExMessageBox.Show(this, "您选择了清空原目录下所有文件, 确认继续吗?", "清空文件确认", ExMessageBoxIcon.Question, ExMessageBoxButton.YesNo) == System.Windows.Forms.DialogResult.No)
                {
                    return;
                }
            }
            this.showNotification("正在导出请稍候...", 0);
            List <DBTable> tables = new List <DBTable>();

            for (int i = 0; i < clbTableList.CheckedIndices.Count; i++)
            {
                tables.Add(parent.tables[clbTableList.CheckedIndices[i]]);
            }
            DBTableManager.generateDBTableAdapters(tables, txtRootFolder.Text, txtNamespace.Text, chbRemoveAll.Checked);
            this.hideNotification();
        }