コード例 #1
0
 internal static Frm_ExportEFile GetExportEFile(object trpId)
 {
     if (exportEFile == null || exportEFile.IsDisposed)
     {
         exportEFile = new Frm_ExportEFile(trpId);
     }
     return(exportEFile);
 }
コード例 #2
0
        private void ExportEFile_Click(object sender, EventArgs e)
        {
            int count = dgv_DataShow.SelectedRows.Count;

            if (count == 1)
            {
                SplashScreenManager.ShowDefaultWaitForm(this, false, false);
                object          trpId       = dgv_DataShow.SelectedRows[0].Cells["id"].Value;
                Frm_ExportEFile exportEFile = GetFormHelper.GetExportEFile(trpId);
                exportEFile.Show();
                exportEFile.Activate();
                SplashScreenManager.CloseDefaultSplashScreen();
            }
            else
            {
                DevExpress.XtraEditors.XtraMessageBox.Show("请选择一个批次进行导出。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }