Exemple #1
0
        private void grd이슈_DoubleClick(object sender, EventArgs e)
        {
            if (gv이슈.RowCount == 0)
            {
                return;
            }

            if (gv이슈.FocusedColumn.FieldName == "크레임번호")
            {
                if (gv이슈.GetFocusedRowCellValue("크레임번호").ToString() == "")
                {
                    return;
                }
                this.Cursor = Cursors.WaitCursor;
                VOC_DivideMng VW = new VOC_DivideMng(_strUserID, "", gv이슈.GetFocusedRowCellValue("접수일자").ToString().Replace("-", ""), gv이슈.GetFocusedRowCellValue("접수순번").ToString().Replace("-", ""), gv이슈.GetFocusedRowCellValue("접수사원").ToString().Replace("-", ""));
                VW.StartPosition = FormStartPosition.CenterParent;
                VW.ShowDialog();
                this.Cursor = Cursors.Default;
            }
            else
            {
                string path = "C:\\Program Files\\CESNET2.0\\CommonCtrl.dll";
                System.Reflection.Assembly assem = System.Reflection.Assembly.LoadFrom(path);
                Type[] t = assem.GetTypes();
                object result;
                string text = gv이슈.GetFocusedRowCellValue("ApprovalID").ToString();
                try
                {
                    this.Cursor = Cursors.WaitCursor;

                    result = assem.CreateInstance(
                        "CommonCtrl.UC_EApprovalReferencesViewer",
                        true,
                        BindingFlags.CreateInstance,
                        null,
                        new object[] { _strUserID, text },
                        null,
                        null);
                    Form uc = result as Form;
                    uc.Show();
                    this.Cursor = Cursors.Default;
                }
                catch (Exception ex)
                {
                    XtraMessageBox.Show(ex.Message, "에러", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }
        }
        private void gvStateList_DoubleClick(object sender, EventArgs e)
        {
            string strRegDate = gvStateList.GetFocusedRowCellValue("접수일자").ToString();
            string strRegNum  = gvStateList.GetFocusedRowCellValue("접수순번").ToString();
            string strRegUser = gvStateList.GetFocusedRowCellValue("접수사원").ToString();

            //VOC_DivideMng VW = new VOC_DivideMng(strUserID, strDeptCode, strCustCode, dt_Work, strRegNum);
            VOC_DivideMng VW = new VOC_DivideMng(strUserID, strDeptCode, strRegDate, strRegNum, strRegUser);

            VW.StartPosition = FormStartPosition.CenterParent;
            VW.ShowDialog();
            int iRow = gvStateList.FocusedRowHandle;

            btnSearch_ItemClick(null, null);
            gvStateList.FocusedRowHandle = iRow;
        }