private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            string result = "";

            try
            {
                GridView gv = sender as GridView;

                CoFAS_ControlManager.Controls_Binding(gv, false, this);

                int    qRowIndex = gv.FocusedRowHandle;
                string a         = gv.FocusedColumn.Name;
                //int a = gv.FocusedColumn.GroupIndex;
                //string qColumnHeader = e.Column.Caption;

                frmPopupKeypad_T01 frmResult = new frmPopupKeypad_T01();

                if (a.Equals(_dtList.Columns["remark"].ToString()))
                {
                    string PopupValue = string.Empty;
                    if (frmResult.ShowDialog() == DialogResult.OK)
                    {
                        result = frmResult.ReturnValue1;

                        _dtList.Rows[qRowIndex]["remark"] = result;
                    }
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;

                //gv.GetFocusedRowCellValue(strName).ToString()가

                if (gv.GetFocusedRowCellValue("CODE4").ToString() == "POPUP/OX")
                {
                    frmPOPOX frm = new frmPOPOX();
                    frm.titleName = gv.GetFocusedRowCellValue("CODE1").ToString() + " - " + gv.GetFocusedRowCellValue("CODE2").ToString() + " - " + gv.GetFocusedRowCellValue("CHECK_STANDARD").ToString();

                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        //gv.SetFocusedRowCellValue("CODE5", frm.ReturnValue1);
                        gv.SetRowCellValue(gv.FocusedRowHandle, "CODE5", frm.ReturnValue1);
                        gv.SetRowCellValue(gv.FocusedRowHandle, "CODE8", frm.ReturnValue2);
                    }
                }
                else if (gv.GetFocusedRowCellValue("CODE4").ToString() == "POPUP/DP")
                {
                    frmPOPDP frm = new frmPOPDP();
                    frm.titleName = gv.GetFocusedRowCellValue("CODE1").ToString() + " - " + gv.GetFocusedRowCellValue("CODE2").ToString() + " - " + gv.GetFocusedRowCellValue("CHECK_STANDARD").ToString();

                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        //gv.SetFocusedRowCellValue("CODE5", frm.ReturnValue1);
                        gv.SetRowCellValue(gv.FocusedRowHandle, "CODE5", frm.ReturnValue1);
                    }
                }
                else if (gv.GetFocusedRowCellValue("CODE4").ToString() == "POPUP/KP")
                {
                    //frmPOPDP frm = new frmPOPDP();
                    //frm.titleName = gv.GetFocusedRowCellValue("CODE1").ToString() + " - " + gv.GetFocusedRowCellValue("CODE2").ToString() + " - " + gv.GetFocusedRowCellValue("CHECK_STANDARD").ToString();

                    //if (frm.ShowDialog() == DialogResult.OK)
                    //{
                    //    //gv.SetFocusedRowCellValue("CODE5", frm.ReturnValue1);
                    //    gv.SetRowCellValue(gv.FocusedRowHandle, "CODE5", frm.ReturnValue1);
                    //}


                    frmPopupKeypad_T01 frmResult = new frmPopupKeypad_T01();
                    frmResult.titleName = "";

                    if (frmResult.ShowDialog() == DialogResult.OK)
                    {
                        gv.SetRowCellValue(gv.FocusedRowHandle, "CODE5", frmResult.ReturnValue1 + "%");
                    }
                }


                //CoFAS_ControlManager.Controls_Binding(gv, false, this);
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
Exemple #3
0
        private void _luTSEQ_Click(object sender, EventArgs e)
        {
            frmPopupKeypad_T01 key        = new frmPopupKeypad_T01();
            string             PopupValue = string.Empty;

            if (key.ShowDialog() == DialogResult.OK)
            {
                _luTSEQ.Text = key.ReturnValue1;
            }
        }
        private void Good_Click(object sender, EventArgs e)
        {
            frmPopupKeypad_T01 frmResult = new frmPopupKeypad_T01();

            frmResult.titleName = orderid;

            string PopupValue = string.Empty;

            if (frmResult.ShowDialog() == DialogResult.OK)
            {
                Good.Text = frmResult.ReturnValue1;
            }
        }