예제 #1
0
        /// <summary>
        /// 责任人双击-修改
        ///  Created:20170527(ChengMengjia)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridManager_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
        {
            string tmp = e.GridRow.ToString();

            tmp = tmp.Substring(tmp.LastIndexOf("{") + 1);
            tmp = tmp.Substring(0, tmp.LastIndexOf("}"));
            string[] cells = tmp.Trim().Split(',');
            ProjectManagement.Forms.WBS.NewManager fmNewManager = new Forms.WBS.NewManager(cells[0], int.Parse(cells[2]), int.Parse(cells[3]));
            if (fmNewManager.ShowDialog() == DialogResult.OK)
            {
                gridManager.PrimaryGrid.GetCell(e.GridRow.RowIndex, 0).Value = fmNewManager.ReturnValue.Manager;
                gridManager.PrimaryGrid.GetCell(e.GridRow.RowIndex, 1).Value = fmNewManager.ReturnValue.ManagerName;
                gridManager.PrimaryGrid.GetCell(e.GridRow.RowIndex, 2).Value = fmNewManager.ReturnValue.Workload;
                gridManager.PrimaryGrid.GetCell(e.GridRow.RowIndex, 3).Value = fmNewManager.ReturnValue.ActualWorkload;
                GetEditManager(false);
            }
        }
예제 #2
0
 private void sdgvManualChecks_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
 {
     if (!bWorkerExport.IsBusy)
     {
         if (((DevComponents.DotNetBar.SuperGrid.GridRow)e.GridRow).Cells["ID"].Value != null)
         {
             if (DialogResult.OK == saveFileDialogExportToExcel.ShowDialog())
             {
                 System.IO.FileInfo fileSavePath = new System.IO.FileInfo(saveFileDialogExportToExcel.FileName);
                 ExportDocFormat_OpenXML(" FROM c_email_hunter WHERE BatchID='" + ((DevComponents.DotNetBar.SuperGrid.GridRow)e.GridRow).Cells["ID"].Value + "';", "ID,FirstName, LastName,DomainName,Email,CompanyName,Score,Source,Status,LoadedDate,ProcessedDate,BatchID", fileSavePath.FullName);
                 ToastNotification.Show(this, "Export sucess", eToastPosition.TopRight);
             }
             else
             {
                 ToastNotification.Show(this, "Export aborted", eToastPosition.TopRight);
             }
         }
     }
     else
     {
         ToastNotification.Show(this, "Export in progress", eToastPosition.TopRight);
     }
 }
예제 #3
0
 private void sdgvManualChecks_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
 {
     if (!bWorkerExport.IsBusy)
     {
         if (((DevComponents.DotNetBar.SuperGrid.GridRow)e.GridRow).Cells["ID"].Value != null)
         {
             if (DialogResult.OK == saveFileDialogExportToExcel.ShowDialog())
             {
                 System.IO.FileInfo fileSavePath = new System.IO.FileInfo(saveFileDialogExportToExcel.FileName);
                 ExportDocFormat_OpenXML(" FROM c_email_checks WHERE EMAIL_SOURCE='" + ((DevComponents.DotNetBar.SuperGrid.GridRow)e.GridRow).Cells["ID"].Value + "';", "ID,EMAIL_SOURCE AS BATCHID, EMAIL,DESCRIPTION,DETAIL,PROCESSED_SERVER,CREATED_BY,CREATED_DATE", fileSavePath.FullName);
                 ToastNotification.Show(this, "Export sucess", eToastPosition.TopRight);
             }
             else
             {
                 ToastNotification.Show(this, "Export aborted", eToastPosition.TopRight);
             }
         }
     }
     else
     {
         ToastNotification.Show(this, "Export in progress", eToastPosition.TopRight);
     }
 }