Exemplo n.º 1
0
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;

                if ((_gdSUB02_VIEW.GridControl != null && CoFAS_ConvertManager.DataTable_FindCount(_gdSUB02_VIEW.GridControl.DataSource as DataTable, "CRUD IN ('C','U','D')", "")))
                {
                    if (CoFAS_DevExpressManager.ShowQuestionMessage("작업중인 자료가 있습니다.\n다른품목을 선택하시겠습니까?") == DialogResult.No)
                    {
                        return;
                    }
                }

                _pPART_TYPE = gv.GetFocusedRowCellValue("PART_TYPE").ToString();
                _pPART_CODE = gv.GetFocusedRowCellValue("PART_CODE").ToString();
                _pPART_NAME = gv.GetFocusedRowCellValue("PART_NAME").ToString();

                _pInspectPartMappingRegisterEntity.CRUD      = "R";
                _pInspectPartMappingRegisterEntity.PART_TYPE = _pPART_TYPE;
                _pInspectPartMappingRegisterEntity.PART_CODE = _pPART_CODE;

                Sub02Find_DisplayData();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
        private void gridView请购计划列表_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.RowHandle > -1)
            {
                this.Cursor = Cursors.WaitCursor;
                string fid = gridView请购计划列表.GetRowCellValue(e.RowHandle, "FID").ToString();

                string fbrandname = gridView请购计划列表.GetRowCellValue(e.RowHandle, "FPREMISEBRANDNAME").ToString();

                string fbiller = gridView请购计划列表.GetRowCellValue(e.RowHandle, "FBILLERNAME").ToString();

                string fsalearea = gridView请购计划列表.GetRowCellValue(e.RowHandle, "FCLASSAREA2NAME").ToString();


                var list = _service.GetPurchasePlanEntryList(fid, null, true).ToList();
                list.RemoveAll(x => listEntryID.Contains(x.FID));

                foreach (var sub in list)
                {
                    sub.fbrandname = fbrandname;
                    sub.fbiller    = fbiller;
                    sub.fsalearea  = fsalearea;
                }


                gridControl请购计划明细.DataSource = list;

                V_ICPRBILLENTRYMODEL v = new V_ICPRBILLENTRYMODEL();


                this.Cursor = Cursors.Default;
            }

            //gridControl请购计划明细.DataSource = _service.GetPurchasePlanEntryList(fid);
        }
 private void gridViewDSHocSinhMoi_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     gridViewDSHocSinhMoi.SetRowCellValue(e.RowHandle, "Check",
                                          !Convert.ToBoolean(gridViewDSHocSinhMoi.GetRowCellValue(e.RowHandle,
                                                                                                  "Check"))
                                          );
 }
Exemplo n.º 4
0
        private void gridViewMedicals_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var mod = gridViewMedicals.GetRow(e.RowHandle) as DriverMedicalCatalogModel;

            if (mod == null)
            {
                return;
            }

            if (e.Clicks == 2 || e.Column.Name == col_Edit.Name)
            {
                if (XF_DriverMedicalNewEdit.F_ShowEdit(mod.DriverMedicalID) == System.Windows.Forms.DialogResult.Yes)
                {
                    RefreshMedicals();
                }
            }
            else if (e.Column.Name == col_Renew.Name)
            {
                var manager = DriverMedicalManager.CreateNewFromOld(mod.DriverMedicalID);
                if (XF_DriverMedicalNewEdit.F_Show(manager) == System.Windows.Forms.DialogResult.Yes)
                {
                    RefreshMedicals();
                }
            }
        }
Exemplo n.º 5
0
        private void gvBOM_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            //if (e.RowHandle > -1)
            //{
            //    txeCustomer.Text = "";
            //    txeItemNo.Text = "";
            //    txePatternNo.Text = "";
            //    txeModelNo.Text = "";
            //    txeModelName.Text = "";

            //    StringBuilder sbSQL = new StringBuilder();
            //    sbSQL.Append("SELECT TOP (1) B.OIDCUST, CUS.Name AS Customer, B.OIDITEM, IT.Code AS ItemNo, SR.SMPLPatternNo, B.BOMNo, SR.ModelName ");
            //    sbSQL.Append("FROM   BOM AS B LEFT OUTER JOIN ");
            //    sbSQL.Append("       SMPLRequest AS SR ON B.OIDSMPL = SR.OIDSMPL LEFT OUTER JOIN ");
            //    sbSQL.Append("       Customer AS CUS ON B.OIDCUST = CUS.OIDCUST LEFT OUTER JOIN ");
            //    sbSQL.Append("       Items AS IT ON B.OIDITEM = IT.OIDITEM ");
            //    sbSQL.Append("WHERE (B.OIDBOM = '" + gvBOM.GetRowCellValue(e.RowHandle, "ID").ToString() + "') ");
            //    string[] arrBOM = DB.DBQuery(sbSQL).getMultipleValue();
            //    if (arrBOM.Length > 0)
            //    {
            //        txeCustomer.Text = arrBOM[1];
            //        txeItemNo.Text = arrBOM[3];
            //        txePatternNo.Text = arrBOM[4];
            //        txeModelNo.Text = arrBOM[5];
            //        txeModelName.Text = arrBOM[6];
            //    }
            //}
        }
Exemplo n.º 6
0
        private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                row1 = gridView1.GetDataRow(gridView1.GetRowHandle(e.RowHandle));

                if (e.Column.ToString() == "الصورة")
                {
                    if (tipImage == null)
                    {
                        tipImage = new PermissionImage(Convert.ToInt32(row1["التسلسل"].ToString()), Convert.ToInt32(row1["رقم الاذن"].ToString()), row1["النوع"].ToString());

                        tipImage.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
                        tipImage.Show();
                    }
                    else
                    {
                        tipImage.Close();

                        tipImage = new PermissionImage(Convert.ToInt32(row1["التسلسل"].ToString()), Convert.ToInt32(row1["رقم الاذن"].ToString()), row1["النوع"].ToString());

                        tipImage.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
                        tipImage.Show();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 7
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.RowHandle >= 0 && e.Clicks == 2)
     {
         EditContact(CurrentContact);
     }
 }
Exemplo n.º 8
0
 private void gvFunction_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (gvFunction.IsFilterRow(e.RowHandle))
     {
         return;
     }
 }
        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()));
            }
        }
        // 추가 이벤트 생성
        #region ○ 메인 그리드 로우 선택 이벤트 생성 - _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;

                CoFAS_ControlManager.Controls_Binding(gv, false, this); //

                //string strWINDOW_NAME = gv.GetFocusedRowCellValue("WINDOW_NAME").ToString();
                //string strGRID_NAME = gv.GetFocusedRowCellValue("GRID_NAME").ToString();
                //
                //_pProductInRegisterEntity.CRUD = "R";
                // SubFind_DisplayData(strWINDOW_NAME, strGRID_NAME);
                _luTPART_NAME.Text = gv.GetFocusedRowCellValue("PART_NAME").ToString();
                //_luTPART_CODE.Text = gv.GetFocusedRowCellValue("PART_CODE").ToString();
                _luTPART_CODE.Text           = gv.GetFocusedRowCellValue("VEND_PART_CODE").ToString();
                _luTINSPECT_STATUS.Text      = gv.GetFocusedRowCellDisplayText("INSPECT_STATUS").ToString();
                _luTAPPROVAL_YN.Text         = _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() == "" ? _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() : _gdMAIN_VIEW.GetFocusedRowCellDisplayText("INSPECT_APPROVAL").ToString();;// gv.GetFocusedRowCellDisplayText("APPROVAL").ToString();
                _luTPRODUCTION_ORDER_ID.Text = gv.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
Exemplo n.º 11
0
        // 추가 이벤트 생성
        #region ○ 메인 그리드 로우 선택 이벤트 생성 - _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;
                CoFAS_ControlManager.Controls_Binding(gv, false, this); //그리드 정보 디테일 표기

                _pNoticeEntity.CRUD      = "R";
                _pNoticeEntity.NOTICE_ID = gv.GetFocusedRowCellValue("NOTICE_ID").ToString();

                string title    = gv.GetFocusedRowCellValue("TITLE").ToString();
                string contents = gv.GetFocusedRowCellValue("CONTENTS").ToString();
                string user     = gv.GetFocusedRowCellValue("REG_USER").ToString();
                string date     = gv.GetFocusedRowCellValue("NOTICE_DATE").ToString();

                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY_CODE = new object[4] {
                    title, contents, user, date
                };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("NoticeDetail"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
Exemplo n.º 12
0
        /// <summary>
        ///   This event resets value to the original value by right mouse button click.
        /// </summary>
        private static void OnRowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                return;
            }
            var view = sender as GridView;

            if (view != null)
            {
                DataRow row = view.GetDataRow(e.RowHandle);
                if (row != null)
                {
                    if (row.RowState != DataRowState.Unchanged)
                    {
                        if (e.Column.UnboundType == UnboundColumnType.Bound && row.HasVersion(DataRowVersion.Original))
                        {
                            if (!Equals(row[e.Column.FieldName, DataRowVersion.Current], row[e.Column.FieldName, DataRowVersion.Original]))
                            {
                                row[e.Column.FieldName] = row[e.Column.FieldName, DataRowVersion.Original];
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 13
0
        private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var rowHandle = gridView1.FocusedRowHandle;
            int id        = (int)gridView1.GetRowCellValue(rowHandle, "id_otvet");

            this.otv_prikrep_fileTableAdapter.FillByID(this.deloDataSet.otv_prikrep_file, id);
        }
Exemplo n.º 14
0
        // 추가 이벤트 생성
        #region ○ 메인 그리드 로우 선택 이벤트 생성 - _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                if (e.Clicks > 1)
                {
                    GridView gv = sender as GridView;

                    CoFAS_ControlManager.Controls_Binding(gv, false, this); //

                    //string strWINDOW_NAME = gv.GetFocusedRowCellValue("WINDOW_NAME").ToString();
                    //string strGRID_NAME = gv.GetFocusedRowCellValue("GRID_NAME").ToString();

                    _pScheduling_T50Entity.EQUIPMENT_MST_CODE = gv.GetFocusedRowCellValue("EQUIPMENT_GROUP").ToString();

                    _pScheduling_T50Entity.CRUD = "R";

                    SetEqui();
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager));
            }
        }
Exemplo n.º 15
0
        private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var i = gridView1.FocusedRowHandle;

            if (e.Column == col_restore)
            {
                string filePath = Path.GetFullPath(Application.StartupPath + "\\backup\\" + gridView1.GetRowCellValue(i, "FileName"));

                var    dt                   = ExecuteQuery($@"RESTORE HEADERONLY FROM DISK = '{filePath}'");
                string backupSize           = FormatSize(long.Parse(dt.Rows[0]["BackupSize"].ToString()));
                string compressedBackupSize = FormatSize(long.Parse(dt.Rows[0]["CompressedBackupSize"].ToString()));

                string databaseCreationDate = dt.Rows[0]["DatabaseCreationDate"].ToString();
                string backupDescription    = dt.Rows[0]["BackupDescription"].ToString();
                string backupStartDate      = dt.Rows[0]["BackupStartDate"].ToString();
                string backupFinishDate     = dt.Rows[0]["BackupFinishDate"].ToString();


                string databaseName  = dt.Rows[0]["DatabaseName"].ToString();
                string serverName    = dt.Rows[0]["ServerName"].ToString();
                string recoveryModel = dt.Rows[0]["RecoveryModel"].ToString();
                string collation     = dt.Rows[0]["Collation"].ToString();

                string message = $@"Server Name: {serverName + Environment.NewLine} <b><color=255,0,0>Database Name: {databaseName + Environment.NewLine}</color></b> BackupDescription: {backupDescription + Environment.NewLine} <b><color=blue>Backup Size: {backupSize + Environment.NewLine}</color></b> Compress Backup Size: {compressedBackupSize + Environment.NewLine} Recovery Model: {recoveryModel + Environment.NewLine} Collation: {collation + Environment.NewLine} Backup Start Date: {backupStartDate + Environment.NewLine} Backup Finish Date: {backupFinishDate}";

                var xtraMess = XtraMessageBox.Show(message, "Bạn có chắc chắn muốn Restore Database không?", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information, DefaultBoolean.True);
                if (xtraMess == DialogResult.Yes)
                {
                    RestoreDataBase(filePath);
                }
            }
        }
Exemplo n.º 16
0
        private void OnGridViewRowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Column != bandedGridColumnLogo)
            {
                return;
            }
            if (e.Clicks < 2)
            {
                return;
            }
            var digitalProduct = advBandedGridView.GetFocusedRow() as MediaDigitalInfoRecord;

            if (digitalProduct == null)
            {
                return;
            }
            using (var form = new FormImageGallery(ListManager.Instance.Images))
            {
                if (form.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                if (form.SelectedImageSource == null)
                {
                    return;
                }
                digitalProduct.Logo = form.SelectedImageSource.Clone <ImageSource, ImageSource>();
                advBandedGridView.UpdateCurrentRow();
                RaiseDataChanged();
            }
        }
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;

                if ((_gdSUB02_VIEW.GridControl != null && CoFAS_ConvertManager.DataTable_FindCount(_gdSUB02_VIEW.GridControl.DataSource as DataTable, "CRUD IN ('C','U','D')", "")))
                {
                    if (CoFAS_DevExpressManager.ShowQuestionMessage("作業中の資料があります。\n作業をキャンセルなさいますか ?") == DialogResult.No)
                    {
                        return;
                    }
                }

                _pPROCESS_MST_CODE = gv.GetFocusedRowCellValue("PROCESS_MST_CODE").ToString();

                _pEQUIPMENT_CODE = gv.GetFocusedRowCellValue("EQUIPMENT_CODE").ToString();

                _pInspectProcessMappingRegisterEntity.CRUD             = "R";
                _pInspectProcessMappingRegisterEntity.PROCESS_MST_CODE = _pPROCESS_MST_CODE;
                _pInspectProcessMappingRegisterEntity.EQUIPMENT_CODE   = _pEQUIPMENT_CODE;

                Sub02Find_DisplayData();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
Exemplo n.º 18
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     /*try
      * {
      *  if (e.Column.ToString() == "صورة الطلب")
      *  {
      *      //row1 = gridView1.GetDataRow(gridView1.GetRowHandle(e.RowHandle));
      *      //MessageBox.Show(gridView1.GetFocusedRowCellValue(gridView1.Columns[0]).ToString());
      *      if (tipImage == null)
      *      {
      *          tipImage = new RequestImage(gridView1.GetFocusedRowCellValue(gridView1.Columns[0]).ToString());
      *          tipImage.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
      *          tipImage.Show();
      *      }
      *      else
      *      {
      *          tipImage.Close();
      *          tipImage = new RequestImage(gridView1.GetFocusedRowCellValue(gridView1.Columns[0]).ToString());
      *          tipImage.Location = new Point(Cursor.Position.X, Cursor.Position.Y);
      *          tipImage.Show();
      *      }
      *  }
      * }
      * catch (Exception ex)
      * {
      *  MessageBox.Show(ex.Message);
      * }*/
 }
Exemplo n.º 19
0
        private void gvProgramProductionDetail_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Column.Caption == "Style")
            {
                try
                {
                    Cursor = Cursors.WaitCursor;
                    frmBusStyle frm = new frmBusStyle();
                    frm.IdClient           = Convert.ToInt32(cboClient.EditValue);
                    frm.IdClientDepartment = Convert.ToInt32(cboDivision.EditValue);
                    frm.ShowDialog();
                    if (frm._Be != null)
                    {
                        int index = gvProgramProductionDetail.FocusedRowHandle;

                        IdStyle     = frm._Be.IdStyle;
                        NameStyle   = frm._Be.NameStyle;
                        Description = frm._Be.Description;

                        gvProgramProductionDetail.SetRowCellValue(index, "IdStyle", IdStyle);
                        gvProgramProductionDetail.SetRowCellValue(index, "NameStyle", NameStyle);
                        gvProgramProductionDetail.SetRowCellValue(index, "Description", Description);

                        gvProgramProductionDetail.FocusedColumn = gvProgramProductionDetail.Columns["Item"];
                    }

                    Cursor = Cursors.Default;
                }
                catch (Exception ex)
                {
                    Cursor = Cursors.Default;
                    XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (loaded)
     {
         row1 = gridView1.GetDataRow(gridView1.GetRowHandle(e.RowHandle));
     }
 }
Exemplo n.º 21
0
        private static void Gridview_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Column.FieldName == "RoomID")
            {
                GridView _view = sender as GridView;

                var _cod1 = _view.GetRowCellValue(e.RowHandle, "Cod1").ToString().Replace(',', '.');

                List <T_Local> _rooms = new List <T_Local>();

                var _grupoLocal = _grupoLocales.Where(x => x.Cod1.Contains(_cod1));
                foreach (var grupo in _grupoLocal)
                {
                    _rooms.AddRange(_keyRooms.Where(x => x.Grupo_Local == grupo.Id));

                    //var _tipoLocal = _localesTipo.Where(x => x.Grupo_Locales == grupo.Id);
                    //foreach (var tipo in _tipoLocal)
                    //{
                    //    _rooms.AddRange(_keyRooms.Where(x => x.Local_Tipo == tipo.Id));
                    //}
                }



                RepositoryItemComboBox _repo = new RepositoryItemComboBox();
                foreach (var item in _rooms)
                {
                    _repo.Items.Add(item.Key_Name);
                }

                _view.Columns["RoomID"].ColumnEdit = _repo;
            }
        }
Exemplo n.º 22
0
Arquivo: F01.cs Projeto: TPF-TUW/MDS
 private void gvCompany_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (gvCompany.IsFilterRow(e.RowHandle))
     {
         return;
     }
 }
Exemplo n.º 23
0
        private void gvFlow_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var url = "";
            var baseUrl = BP.SystemConfig.AppSettings["BaseUrl"];
            var flow_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["No"]);
            if (e.Column.FieldName.Equals("Map"))
            {
                //this.Hide();
                url = baseUrl + "/WF/Chart.aspx?FK_Flow=" + flow_id + "&DoType=Chart";
            }
            else
            {

                if (e.Button == MouseButtons.Left)
                {
                    if (!gvFlow.IsGroupRow(e.RowHandle))
                    {
                        long workid = BP.WF.Dev2Interface.Node_CreateStartNodeWork(flow_id.ToString(), null, null, WebUser.No, null, 0, null);
                        Work currWork = BP.WF.Dev2Interface.Flow_GetCurrentWork(workid);
                        url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + currWork.NodeID + "&userNo=" + BP.Web.WebUser.No + "";
                    }
                }
            }
            FlowBrowserForm f = new FlowBrowserForm(url);
            f.StartPosition = FormStartPosition.CenterScreen;
            f.Tag = "start";
            f.ShowDialog();
        }
Exemplo n.º 24
0
        private void gridView请购计划列表_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.RowHandle > -1)
            {
                this.Cursor = Cursors.WaitCursor;
                //222222222222222222
                string fid = gridView采购订单列表.GetRowCellValue(e.RowHandle, "FID").ToString();

                V_ICPOBILLENTRYMODEL[] list = _service.GetOrderEntryList(fid, null);

                foreach (var sub in list)
                {
                    ProductViewModel pro = _service.getProductView(sub.FITEMID);
                    if (pro == null)
                    {
                        continue;
                    }
                    sub.Funit      = pro.FUNITNAME;
                    sub.FSRCMODEL  = pro.FSRCMODEL;
                    sub.FORDERUNIT = pro.FSRCUNIT;
                    sub.FMODEL     = pro.FMODEL;
                    sub.FSRCMODEL  = pro.FSRCMODEL;
                    sub.FSRCCODE   = pro.FSRCCODE;
                    sub.FORDERUNIT = pro.FGROUPUNIT;
                }
                gridControl采购订单明细.DataSource = list;
                this.Cursor = Cursors.Default;
            }

            //gridControl请购计划明细.DataSource = _service.GetPurchasePlanEntryList(fid);
        }
Exemplo n.º 25
0
 protected virtual void OnRowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Clicks > 1)
     {
         EditClick();
     }
 }
Exemplo n.º 26
0
 private void gbList_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     CHBK2014_N9.Common.Class.RowClickEventArgs rowClickEventArg = new CHBK2014_N9.Common.Class.RowClickEventArgs(e.RowHandle, e.Column.ColumnHandle);
     this.ItemSelectd(rowClickEventArg);
     this.SetMenu(rowClickEventArg);
     this.SetSearch(rowClickEventArg);
 }
Exemplo n.º 27
0
        private void gridViewTaiKhoan_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            ColumnView view = sender as ColumnView;

            if (view.ActiveFilter.IsEmpty)
            {
                if (view.FocusedColumn.FieldName == "Xem")
                {
                    TaiKhoan obj = gridViewTaiKhoan.GetFocusedRow() as TaiKhoan;
                    if (obj != null)
                    {
                        using (frmXemNguoiDung frm = new frmXemNguoiDung(obj.MaTaiKhoan))
                        {
                            frm.ShowDialog();
                        }
                    }
                }

                if (view.FocusedColumn.FieldName == "PhanQuyen")
                {
                    TaiKhoan obj = gridViewTaiKhoan.GetFocusedRow() as TaiKhoan;
                    if (obj != null)
                    {
                        using (frmPhanQuyenTaiKhoan frm = new frmPhanQuyenTaiKhoan(obj.MaTaiKhoan))
                        {
                            frm.ShowDialog();
                        }
                    }
                }
            }
        }
Exemplo n.º 28
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "R13")
     {
         string text;
         if (this.radDJ.Checked)
         {
             text = "E2 not like '%、%'";
         }
         else
         {
             if (this.radHJ.Checked)
             {
                 text = "E2 like '%、%'";
             }
             else
             {
                 text = "E2 like '%%'";
             }
         }
         frmNYList frmNYList = new frmNYList("YXCF2JX", string.Concat(new string[]
         {
             this.gridView1.GetRowCellValue(e.RowHandle, "E2").ToString(),
             "|",
             this.gridView1.GetRowCellValue(e.RowHandle, "E3").ToString(),
             "|",
             e.CellValue.ToString(),
             "|",
             text
         }));
         frmNYList.ShowDialog();
     }
 }
Exemplo n.º 29
0
        private void gbList_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            DateTime dateTime;

            CHBK2014_N9.Common.Class.RowClickEventArgs rowClickEventArg = new CHBK2014_N9.Common.Class.RowClickEventArgs(e.RowHandle, e.Column.ColumnHandle);
            this.SetMenu(rowClickEventArg);
            try
            {
                this.toolTip1.HideHint();
                int num = Convert.ToInt32(this.gbList.GetFocusedRowCellValue(this.colStatus).ToString());
                if (num == 0)
                {
                    ToolTipController toolTipController = this.toolTip1;
                    string[]          newLine           = new string[] { "Đang thử việc!", Environment.NewLine, "Từ ngày: ", null, null, null, null };
                    dateTime   = Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colTestFromDate).ToString());
                    newLine[3] = dateTime.ToShortDateString();
                    newLine[4] = Environment.NewLine;
                    newLine[5] = "Đến ngày: ";
                    dateTime   = Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colTestToDate).ToString());
                    newLine[6] = dateTime.ToShortDateString();
                    toolTipController.ShowHint(string.Concat(newLine));
                }
                if (num == 3)
                {
                    ToolTipController toolTipController1 = this.toolTip1;
                    string            str = Environment.NewLine;
                    dateTime = Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colEndDate).ToString());
                    toolTipController1.ShowHint(string.Concat("Đã nghỉ việc!", str, "Từ ngày: ", dateTime.ToShortDateString()));
                }
            }
            catch
            {
            }
        }
Exemplo n.º 30
0
        private void OnGridViewRowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Column != bandedGridColumnLogo)
            {
                return;
            }
            if (e.Clicks < 2)
            {
                return;
            }
            var selectedProgram = advBandedGridView.GetFocusedRow() as OptionSet;

            if (selectedProgram == null)
            {
                return;
            }
            using (var form = new FormImageGallery(MediaMetaData.Instance.ListManager.Images))
            {
                if (form.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                if (form.SelectedImageSource == null)
                {
                    return;
                }
                selectedProgram.Logo = form.SelectedImageSource.Clone <ImageSource, ImageSource>();
                advBandedGridView.UpdateCurrentRow();
                DataChanged?.Invoke(this, EventArgs.Empty);
            }
        }
        private void Main_BandedGridView_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            GridView view = sender as GridView;

            if (e.Column.FieldName == "NoteStatusColor")
            {
                var selected = view.GetFocusedRow().CastTo <GetCanDoiSoPhatSinhTaiKhoan>();

                NoteInput frm = new NoteInput
                {
                    NoteInfoData = new NoteInfo
                    {
                        NoteID        = selected.NoteID,
                        NumAttribute  = FromDate.Year,
                        CharAttribute = selected.AccountID
                    }
                };

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    selected.NoteID     = frm.NoteInfoData.NoteID;
                    selected.NoteStatus = frm.NoteInfoData.NoteStatus;
                }
            }
        }
Exemplo n.º 32
0
 private void GridViewRowCellClick(object sender, RowCellClickEventArgs e)
 {
     var gridView = sender as GridView;
     switch (e.Column.FieldName)
     {
         case "CheckStatus":
             var status = Convert.ToBoolean(gridView.GetRowCellValue(e.RowHandle, "CheckStatus"));
             flag = !status;
             gridView.SetRowCellValue(e.RowHandle, "CheckStatus", !status);
             break;
         case "Is_Show":
             var is_show = Convert.ToBoolean(gridView.GetRowCellValue(e.RowHandle, "Is_Show"));
             gridView.SetRowCellValue(e.RowHandle, "Is_Show", !is_show);
             break;
     }
 }
Exemplo n.º 33
0
        private void GridView1_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (e.Clicks == 2)
            {
                var document = dir + "Files\\" + SelectedModel.ID;

                if (File.Exists(document))
                {
                    var view = new KZPDFViewer();
                    view.Document = document;
                    view.ShowDialog();
                }
                else
                {
                    kZFlyoutDialog.AlertMessage(this, "ឯកសារ PDF មិនទានបញ្ចូលក្នុងកម្មវិធី។");
                }
            }
        }
Exemplo n.º 34
0
        private void gridViewMedicals_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var mod = gridViewMedicals.GetRow(e.RowHandle) as DriverMedicalCatalogModel;
            if (mod == null)
                return;

            if (e.Clicks == 2 || e.Column.Name == col_Edit.Name)
            {
                if (XF_DriverMedicalNewEdit.F_ShowEdit(mod.DriverMedicalID) == System.Windows.Forms.DialogResult.Yes)
                    RefreshMedicals();
            }
            else if (e.Column.Name == col_Renew.Name)
            {
                var manager = DriverMedicalManager.CreateNewFromOld(mod.DriverMedicalID);
                if (XF_DriverMedicalNewEdit.F_Show(manager) == System.Windows.Forms.DialogResult.Yes)
                    RefreshMedicals();
            }
        }
Exemplo n.º 35
0
        private void gridViewLicenses_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var mod = gridViewLicenses.GetRow(e.RowHandle) as DriverLicenseModel;
            if (mod == null)
                return;

            if (e.Clicks == 2 || e.Column.Name == col_Edit.Name)
            {
                HandleEdit(mod, e);
            }
            else if (e.Column.Name == col_Renew.Name)
            {
                HandleRenew(mod, e);
            }
            else if (e.Column.Name == col_Delete.Name)
            {
                HandleDelete(mod, e);
            }
        }
Exemplo n.º 36
0
		private void gridViewFiles_RowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (SelectedFile != null)
				LinkManager.OpenLink(SelectedFile.SourceFileLink);
		}
Exemplo n.º 37
0
 private void GridViewRowCellClick(object sender, RowCellClickEventArgs e)
 {
     var gridView = sender as GridView;
     switch (e.Column.FieldName)
     {
         case "checkStatus":
             var status = Convert.ToBoolean(gridView.GetRowCellValue(e.RowHandle, "checkStatus"));
             flag = !status;
             gridView.SetRowCellValue(e.RowHandle, "checkStatus", !status);
             break;
         case "is_show":
             var is_show = Convert.ToBoolean(gridView.GetRowCellValue(e.RowHandle, "is_show"));
             gridView.SetRowCellValue(e.RowHandle, "is_show", !is_show);
             //propertyService.UpdateProperty("material_base_property", !is_show, propertyId);
             break;
     }
 }
Exemplo n.º 38
0
 void EFDevGrid_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     try
     {
         if (e.Column.FieldName == selectedColumnFieldName || e.Column == SelectionColumn)
         {
             if (e.Y != MouseDownYtemp)
             {
                 return; //先点击的grid的话,返回
             }
             if (e.Button != MouseButtons.Left)
             {
                 return;//右键的话直接返回
             }
             if (!e.Column.OptionsColumn.AllowEdit)
             {
                 return;//不可编辑返回
             }
             if (e.Column.OptionsColumn.ReadOnly)
             {
                 return;//只读返回
             }
             if (e.CellValue != null)
             {
                 int t =e.Clicks;
                 if (isDraging)
                 {
                     return;
                 }
                 //GridView gridView1 = this.MainView as GridView;
                 if (gridView1 != null)
                 {
                     if (!EFMultiSelect)
                     {
                         return;
                     }
                     bool tmp = false;
                     bool.TryParse(e.CellValue.ToString(), out tmp);
                     if (e.Clicks > 1)
                         return;
                     int[] selRows = gridView1.GetSelectedRows();
                     for (int i = 0; i < selRows.Length; i++)
                     {
                        //当使用SetRowEdit时,选择列仍可编辑的问题 bug
                         if (rowEditableHelp.IsRowEditable(selRows[i]))
                         {
                             this.SetSelectedColumnChecked(selRows[i], !tmp);
                         }
                     }
                     this.RefreshDataSource();
                 }
             }
         }
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("EFDevGrid_RowCellClick" + ex.Message);
     }
 }
		private void OnGridViewRowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (e.Column != bandedGridColumnLogo) return;
			if (e.Clicks < 2) return;
			var digitalProduct = advBandedGridView.GetFocusedRow() as MediaDigitalInfoRecord;
			if (digitalProduct == null) return;
			using (var form = new FormImageGallery(ListManager.Instance.Images))
			{
				if (form.ShowDialog() != DialogResult.OK) return;
				if (form.SelectedImageSource == null) return;
				digitalProduct.Logo = form.SelectedImageSource.Clone<ImageSource, ImageSource>();
				advBandedGridView.UpdateCurrentRow();
				RaiseDataChanged();
			}
		}
Exemplo n.º 40
0
		private void OnGridViewScheduleRowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (e.Column != bandedGridColumnLogoImage) return;
			if (e.Clicks < 2) return;
			if (advBandedGridViewSchedule.FocusedRowHandle == GridControl.InvalidRowHandle) return;
			using (var form = new FormImageGallery(MediaMetaData.Instance.ListManager.Images))
			{
				if (form.ShowDialog(Controller.Instance.FormMain) != DialogResult.OK) return;
				if (form.SelectedImageSource == null) return;
				advBandedGridViewSchedule.SetRowCellValue(advBandedGridViewSchedule.FocusedRowHandle, bandedGridColumnLogoSource, form.SelectedImageSource.Serialize());
				advBandedGridViewSchedule.SetRowCellValue(advBandedGridViewSchedule.FocusedRowHandle, bandedGridColumnLogoImage, form.SelectedImageSource.SmallImage);
			}
		}
		private void gridViewPrintProducts_RowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (e.Column != gridColumnLogo) return;
			using (var form = new FormImageGallery(Core.AdSchedule.ListManager.Instance.Images))
			{
				if (form.ShowDialog() != DialogResult.OK) return;
				if (form.SelectedImageSource == null) return;
				_localSchedule.PrintProducts[gridViewPrintProducts.GetFocusedDataSourceRowIndex()].BigLogo = new Bitmap(form.SelectedImageSource.BigImage);
				_localSchedule.PrintProducts[gridViewPrintProducts.GetFocusedDataSourceRowIndex()].SmallLogo = new Bitmap(form.SelectedImageSource.SmallImage);
				_localSchedule.PrintProducts[gridViewPrintProducts.GetFocusedDataSourceRowIndex()].TinyLogo = new Bitmap(form.SelectedImageSource.TinyImage);
				gridViewPrintProducts.RefreshData();
				SettingsNotSaved = true;
			}
		}
Exemplo n.º 42
0
 private void viewLevers_RowCellClick(object sender, RowCellClickEventArgs e)
 {
 }
Exemplo n.º 43
0
        private void HandleDelete(DriverLicenseModel mod, RowCellClickEventArgs e)
        {
            if (Mess.Question("Are you sure you wish to delete this license?", "Caution") != DialogResult.Yes)
                return;

            var manager = DriverLicenseManager.CreateEdit(mod.DriverLicenseID);
            var res = manager.Delete();
            if (res.Failed)
            {
                Mess.Error(res.Message);
            }
            else
            {
                RefreshLicenses();
            }
        }
Exemplo n.º 44
0
        void gridViewDetail_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            if (_isAdd == null)
            {
                gridViewDetail.OptionsBehavior.Editable = false;
                return;
            }
            if (e.Clicks == 2 && e.Button == MouseButtons.Left)
            {
                DataRow r = gridViewDetail.GetDataRow(e.RowHandle);
                if (r == null) return;
                if (r[QL_LICH_PHAT_SONG_CT.STATE].ToString() == "DEL") return;
                //if (LockControls &&
                //    (e.Column.FieldName == ColMaBang.FieldName
                //    || e.Column.FieldName == ColTapSo.FieldName
                //    || e.Column.FieldName == ColThoiLuong.FieldName))
                //{
                //    HelpMsgBox.ShowNotificationMessage("Chương trình được link từ thư viện nên không thể sửa thông tin này trên lịch phát sóng!\n(Bạn phải chuyển sang nhập ảo để có thể sửa)");
                //    return;
                //}

                if (e.Column.FieldName == ColNgayPhat.FieldName && _doLichPhatSong.IsInsert && (e.RowHandle == 0
                    || gridViewDetail.GetParentRowHandle(e.RowHandle) == 0))
                {
                    HelpMsgBox.ShowNotificationMessage("Đây là lịch chèn nên bạn khôn thể sửa lại ngày phát đầu.");
                    return;
                }
                if (e.Column.FieldName == ColTenTap.FieldName)
                {
                    if (HelpNumber.ParseInt64(r[QL_LICH_PHAT_SONG_CT.BM_ID]) > 0)
                    {
                        HelpMsgBox.ShowNotificationMessage("Dữ liệu chọn từ thư viện nên không thể sửa tên tập!");
                        return;
                    }
                }
                if (e.Column.FieldName == ColThuTrongTuan.FieldName
                    || e.Column.FieldName == ColSoTap.FieldName || e.Column.FieldName == ColGioPhat.FieldName)
                {
                    HelpMsgBox.ShowNotificationMessage("Bạn không thể sửa trực tiếp \"" + e.Column.Caption.Replace("\n", "") + "\" trên lưới.\nThông tin này sẽ thay đổi khi bạn " + (_isAdd == true ? "tạo" : "cập nhật") + "  chi tiết LPS");
                    return;
                }
                gridViewDetail.OptionsBehavior.Editable = true;
                gridViewDetail.ShowEditor();

                if (e.Column.FieldName == ColStart.FieldName)
                {
                    if (e.CellValue == null
                       || e.CellValue.ToString() == "" || e.CellValue.ToString() == _itemCheck.ValueUnchecked.ToString())
                    {
                        var dtSource = gridControlDetail.DataSource as DataTable;
                        DataRow focusRow = gridViewDetail.GetDataRow(e.RowHandle);
                        focusRow[ColStart.FieldName] = _itemCheck.ValueUnchecked;
                        DataRow[] rowsCheck = dtSource.Select(string.Format("{0}={1}", ColStart.FieldName, (_itemCheck.ValueChecked is string ? "'" + _itemCheck.ValueChecked + "'" : _itemCheck.ValueChecked)));
                        foreach (DataRow rC in rowsCheck)
                        {
                            if (rC.Equals(focusRow)) continue;
                            rC[ColStart.FieldName] = _itemCheck.ValueUnchecked;
                        }
                        focusRow[ColStart.FieldName] = _itemCheck.ValueChecked;

                    }
                }

            }
        }
Exemplo n.º 45
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "E2")
     {
         frmNYList frmNYList = new frmNYList("YXCF", e.CellValue.ToString().Trim() + "|" + this.gridView1.GetRowCellValue(e.RowHandle, "E3").ToString().Trim());
         frmNYList.ShowDialog();
     }
 }
		private void OnBundleItemsRowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (e.Column != gridColumnBundleItemsImage) return;
			if (e.Clicks < 2) return;
			using (var form = new FormImageGallery(MainController.Instance.Lists.LinkBundleImages.Items))
			{
				if (form.ShowDialog() != DialogResult.OK) return;
				if (form.SelectedImageSource == null) return;
				SelectedBundleItem.Image = Image.FromFile(form.SelectedImageSource.FilePath);
				gridViewBundleItems.UpdateCurrentRow();
				RaiseDataChanged();
			}
		}
 private void gridViewNguoiDung_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Clicks == 2 && e.Column == CotUserApDung)
     {
         DataRow r = gridViewNguoiDung.GetDataRow(e.RowHandle);
         if (r != null)
         {
             if (r[CotUserApDung.FieldName].ToString() == "N")
                 r[CotUserApDung.FieldName] = "Y";
             else
                 r[CotUserApDung.FieldName] = "N";
             ApDungPhanQuyen = r[CotUserApDung.FieldName].ToString() == "Y";
             foreach (DataRow rDT in dtPhanQuyenTaiNguyen.Select("USERID=" + r["USERID"]))
             {
                 rDT[tainguyen.FieldUserAllow] = r[CotUserApDung.FieldName];
             }
             foreach (DataRow rNDT in dtPhanQuyenNhomTaiNguyen.Select("USERID=" + r["USERID"]))
             {
                 rNDT[tainguyen.FieldUserAllow] = r[CotUserApDung.FieldName];
             }
         }
     }
 }
Exemplo n.º 48
0
 void gridViewDetail_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Clicks == 2)
         ShowViewForm(-1);
 }
Exemplo n.º 49
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "R13")
     {
         string text;
         if (this.radDJ.Checked)
         {
             text = "E2 not like '%、%'";
         }
         else
         {
             if (this.radHJ.Checked)
             {
                 text = "E2 like '%、%'";
             }
             else
             {
                 text = "E2 like '%%'";
             }
         }
         frmNYList frmNYList = new frmNYList("YXCF2JX", string.Concat(new string[]
         {
             this.gridView1.GetRowCellValue(e.RowHandle, "E2").ToString(),
             "|",
             this.gridView1.GetRowCellValue(e.RowHandle, "E3").ToString(),
             "|",
             e.CellValue.ToString(),
             "|",
             text
         }));
         frmNYList.ShowDialog();
     }
 }
Exemplo n.º 50
0
 private void HandleRenew(DriverLicenseModel mod, RowCellClickEventArgs e)
 {
     var manager = DriverLicenseManager.CreateRenew(mod.DriverLicenseID);
     if (XF_DriverLicenseNewEdit.ShowWindow(manager) == DialogResult.Yes)
         RefreshLicenses();
 }
Exemplo n.º 51
0
 private void RequestView_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if(e.Column.FieldName == "Link")
         Process.Start(e.CellValue.ToString());
     else if(e.Column.FieldName == "Website")
         Process.Start(e.CellValue.ToString());
 }
Exemplo n.º 52
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e) {
     if (e.Button == MouseButtons.Left && e.RowHandle >= 0 && e.Clicks == 2)
     {
         if (EditUser(CurrentContact) == DialogResult.OK)
         {
             UpdateUserInfo(CurrentContact);
         }
     }
         
 }
Exemplo n.º 53
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "R1")
     {
         frmNYDetail frmNYDetail = new frmNYDetail(e.CellValue.ToString(), "", "");
         frmNYDetail.ShowDialog();
     }
     if (e.Column.FieldName.ToUpper() == "F2")
     {
         frmQYDetail frmQYDetail = new frmQYDetail(e.CellValue.ToString(), "", "");
         frmQYDetail.ShowDialog();
     }
 }
Exemplo n.º 54
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "R1")
     {
         try
         {
             this.printPreviewDialog1.ShowDialog();
         }
         catch (Exception ex)
         {
             MessageBox.Show(this, ex.Message + "\r\n可能是没安装打印机!", "错误提示");
         }
     }
 }
Exemplo n.º 55
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "ZLBH")
     {
         frmTJSYSPXX frmTJSYSPXX = new frmTJSYSPXX(e.CellValue.ToString());
         frmTJSYSPXX.ShowDialog();
     }
 }
Exemplo n.º 56
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     col_cbbSoLuongNguoi.Items.Clear();
     for (int i = 1; i <= LoaiPhongBUS.SoNguoiMax(gridView1.GetFocusedRowCellDisplayText(colMaPhong)); i++)
     {
         col_cbbSoLuongNguoi.Items.Add(i);
     }
 }
		private void OnGridViewRowCellClick(object sender, RowCellClickEventArgs e)
		{
			if (e.Column != bandedGridColumnLogo) return;
			if (e.Clicks < 2) return;
			var selectedProgram = advBandedGridView.GetFocusedRow() as Snapshot;
			if (selectedProgram == null) return;
			using (var form = new FormImageGallery(MediaMetaData.Instance.ListManager.Images))
			{
				if (form.ShowDialog() != DialogResult.OK) return;
				if (form.SelectedImageSource == null) return;
				selectedProgram.Logo = form.SelectedImageSource.Clone<ImageSource, ImageSource>();
				advBandedGridView.UpdateCurrentRow();
				DataChanged?.Invoke(this, EventArgs.Empty);
			}
		}
        private void viewSelectCustomers_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            int aCurrent_IDCustomer;
            try
            {
                this.ClearControl();

                aCurrent_IDCustomer = Convert.ToInt32(viewSelectCustomers.GetFocusedRowCellValue("ID"));
                List<CustomerInfoEN> aList = this.aCurrentRoomInfo.GetAllCustomers().Where(p => p.ID == aCurrent_IDCustomer).ToList();

                if (aList.Count == 1)
                {
                    CustomerInfoEN aCurrentCustomer = aList[0];

                    this.aCurrentCustomerClick = aCurrentCustomer;
                    lblSelectedCustomer.Text = aCurrentCustomer.Name;
                    txtPurposeComeVietnam.EditValue = aCurrentCustomer.PurposeComeVietnam;
                    dtpDateEnterCountry.EditValue = aCurrentCustomer.DateEnterCountry;
                    txtEnterGate.EditValue = aCurrentCustomer.EnterGate;
                    dtpTemporaryResidenceDate.EditValue = aCurrentCustomer.TemporaryResidenceDate;
                    dtpLeaveDate.EditValue = aCurrentCustomer.LeaveDate;
                    txtOrganization.EditValue = aCurrentCustomer.Organization;
                    dtpLimitDateEnterCountry.EditValue = aCurrentCustomer.LimitDateEnterCountry;
                }

            }
            catch (Exception ex)
            {
                MessageBox.Show("frmTsk_CheckInForRoomBooking.viewSelectedCustomer_RowCellClick\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 59
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e)
 {
     if (e.Column.FieldName.ToUpper() == "E2")
     {
         frmYXCFDetail frmYXCFDetail = new frmYXCFDetail(e.CellValue.ToString(), this.gridView1.GetRowCellValue(e.RowHandle, "E3").ToString());
         frmYXCFDetail.ShowDialog();
     }
 }
Exemplo n.º 60
0
 private void gridView1_RowCellClick(object sender, RowCellClickEventArgs e) {
     if(e.Button == MouseButtons.Left && e.RowHandle >= 0 && e.Clicks == 2)
         EditUser(CurrentContact);
 }