/// <summary> /// 列表Grid_DoubleClickCell /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Column.Key == SystemTableColumnEnums.EWM_WalletTrans.Code.WalT_BillNo) { string billNo = e.Cell.Text; if (billNo.Length < 7) { return; } string no = billNo.Substring(4, 2); if (no == "RB") { Dictionary <string, object> paramViewParameters = new Dictionary <string, object> { //收款单 { ComViewParamKey.BillNo.ToString(), billNo }, }; //跳转到[收款单] SystemFunction.ShowViewFromView(MsgParam.RECEIPTBILL_MANAGER, ViewClassFullNameConst.FM_FrmReceiptBillManager, true, PageDisplayMode.TabPage, paramViewParameters, null); } else if (no == "PB") { Dictionary <string, object> parambillNoViewParameters = new Dictionary <string, object> { //付款单 { ComViewParamKey.BillNo.ToString(), billNo }, }; //跳转到[付款单] SystemFunction.ShowViewFromView(MsgParam.PAYBILL_MANGER, ViewClassFullNameConst.FM_FrmPayBillManager, true, PageDisplayMode.TabPage, parambillNoViewParameters, null); } } }
/// <summary> /// 双击单元格 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { //是否允许获取Grid数据 if (!IsAllowSetGridDataToCard()) { return; } string tempRowID = e.Cell.Row.Cells[SysConst.RowID].Value != null ? e.Cell.Row.Cells[SysConst.RowID].Value.ToString() : string.Empty; foreach (var loopSourceItem in ListGridDS) { if (loopSourceItem.RowID == tempRowID) { if (!loopSourceItem.IsChecked) { loopSourceItem.IsChecked = true; this.gdGrid.Refresh(); } } else { //双击当前行,且为单选模式时,取消选中其他行 if (ListSelectionMode == CustomEnums.CustomeSelectionMode.Single) { if (loopSourceItem.IsChecked) { loopSourceItem.IsChecked = false; } } } } GenerateSelectedValueAndText(); this.DialogResult = DialogResult.OK; }
private void grdResults_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { var hit = e.Cell.Row.ListObject as SearchHit; //string colHeader = e.Cell.Column.Header.Caption; // MainPresenter.Instance.SelectNode(hit); }
/// <summary> /// Handles the DoubleClickCell event of the DepreciationControlDataGrid control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs"/> instance containing the event data.</param> private void DepreciationControlDataGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { if ((e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low1Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low2Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low3Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low4Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low5Column.ColumnName].Index) || (e.Cell.Column.Index == this.DepreciationControlDataGrid.DisplayLayout.Bands[0].Columns[this.listDeprControlItemsDataTable.Low6Column.ColumnName].Index)) { ////on double click the drop down will not come ////F36060 form slice is called e.Cell.DroppedDown = false; int deprtableId = 0; if (e.Cell.Value != null) { int.TryParse(e.Cell.Value.ToString(), out deprtableId); } if (deprtableId > 0) { FormInfo formInfo; formInfo = TerraScanCommon.GetFormInfo(31060); formInfo.optionalParameters = new object[1]; formInfo.optionalParameters[0] = deprtableId; this.ShowForm(this, new DataEventArgs <FormInfo>(formInfo)); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
private void dgvCoordenadasCliente_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { txtIDCoordenada.Text = Convert.IsDBNull(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["idClienteReparto"].Value) ? "-1" : Convert.ToString(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["idClienteReparto"].Value); string CodCli = Convert.IsDBNull(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["CodigoCliente"].Value) ? "-1" : Convert.ToString(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["CodigoCliente"].Value); if (CodCli != "") { cboClienteCoordenadas.Value = CodCli; } else { cboClienteCoordenadas.ActiveRow = null; } txtLatitud.Text = Convert.IsDBNull(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["Latitud"].Value) ? "-1" : Convert.ToString(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["Latitud"].Value); txtLongitud.Text = Convert.IsDBNull(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["Longitud"].Value) ? "-1" : Convert.ToString(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["Longitud"].Value); txtUbicacionEntrega.Text = Convert.IsDBNull(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["sDescripcion"].Value) ? "-1" : Convert.ToString(dgvCoordenadasCliente.Rows[e.Cell.Row.Index].Cells["sDescripcion"].Value); btnActualizarGeneral.Visible = true; btnAgregarGeneral.Visible = false; } catch (Exception ex) { throw; } }
private void ultraGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Column.Key == "WarrantID") { GlobalUtility.MenuItemClick <FrmReIssuable>(); } }
private void dgvCodigosRuta_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { txtIdCodigoRuta.Text = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["ID"].Value) ? "-1" : Convert.ToString(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["ID"].Value); txtCodigoRuta.Text = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Codigo"].Value) ? "" : Convert.ToString(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Codigo"].Value); txtDefinicionRuta.Text = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Nombre"].Value) ? "" : Convert.ToString(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Nombre"].Value); txtAbreviatura.Text = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Abreviatura"].Value) ? "" : Convert.ToString(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["Abreviatura"].Value); txtFrecuencia.Text = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["nFrecuencia"].Value) ? "" : Convert.ToString(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["nFrecuencia"].Value); bool bDiario = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bDiario"].Value) ? false : Convert.ToBoolean(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bDiario"].Value); bool bSemanal = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bSemanal"].Value) ? false : Convert.ToBoolean(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bSemanal"].Value); bool bQuincenal = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bQuincenal"].Value) ? false : Convert.ToBoolean(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bQuincenal"].Value); bool bMensual = Convert.IsDBNull(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bMensual"].Value) ? false : Convert.ToBoolean(dgvCodigosRuta.Rows[e.Cell.Row.Index].Cells["bMensual"].Value); rbtDiario.Checked = false; rbtSemanal.Checked = false; rbtQuincenal.Checked = false; rbtSemanal.Checked = true; if (bDiario) { rbtDiario.Checked = true; } else if (bSemanal) { rbtSemanal.Checked = true; } else if (bQuincenal) { rbtQuincenal.Checked = true; } else if (bMensual) { rbtMensual.Checked = true; } btnActualizarGeneral.Visible = true; btnAgregarGeneral.Visible = false; }
private void ultraGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Column.Key == "UnderlyingID") { GlobalUtility.MenuItemClick <FrmIssueCheck>().SelectUnderlying((string)e.Cell.Value); } }
/// <summary> /// 双击单元格 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { //是否允许获取Grid数据 if (!IsAllowSetGridDataToCard()) { return; } if (e.Cell.Column.Key == "IsChecked") { return; } string tempRowID = e.Cell.Row.Cells[SysConst.RowID].Value != null ? e.Cell.Row.Cells[SysConst.RowID].Value.ToString() : string.Empty; foreach (var loopSourceItem in ListGridDS) { if (loopSourceItem.RowID == tempRowID) { if (!loopSourceItem.IsChecked) { loopSourceItem.IsChecked = true; this.gdGrid.Refresh(); } } else { //双击当前行,且为单选模式时,取消选中其他行 if (ListSelectionMode == CustomEnums.CustomeSelectionMode.Single) { if (loopSourceItem.IsChecked) { loopSourceItem.IsChecked = false; } } } } GenerateSelectedValueAndText(); if (_pickPartsDetailFunc != null) { var pickPartsResult = _pickPartsDetailFunc(SelectedGridList); if (!pickPartsResult) { //领取配件失败 MessageBoxs.Show(Trans.COM, this.ToString(), MsgHelp.GetMsg(MsgCode.E_0010, new object[] { MsgParam.PICK + MsgParam.AUTOPARTS }), MessageBoxButtons.OK, MessageBoxIcon.Error); return; } //领料成功,取消选中 var tempSelectedList = ListGridDS.Where(x => x.IsChecked).ToList(); foreach (var loopSelected in tempSelectedList) { loopSelected.IsChecked = false; } } this.DialogResult = DialogResult.OK; MessageBoxs.Show(Trans.COM, this.ToString(), MsgHelp.GetMsg(MsgCode.I_0001, new object[] { MsgParam.PICK + MsgParam.AUTOPARTS }), MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void uGridRawMaterial_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row == null || e.Cell.Row.Index <= -1) { return; } URow = e.Cell.Row; DialogResult = DialogResult.Yes; }
private void UgGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { VisualizeData(e.Cell.Column.DataType, e.Cell.GetText(MaskMode.IncludeLiterals)); } catch (Exception ex) { _log.Error("Error visualizing data"); _log.Error(ex.Message, ex); Dialog.ShowErrorDialog(Application.ProductName, "Error visualizing data,", ex.Message, ex.StackTrace); } }
private void uGridData_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { uGridData.ActiveRow.Selected = true; if (uGridData.ActiveRow.Index == -1) { return; } lblScr.Text = ""; lblOpt.Text = "当前操作:"; strOptNo = uGridData.ActiveRow.Cells["FS_STOVENO"].Value.ToString(); lblOpt.Text += strOptNo; lblScr.Text = "上传日志:" + sapClass.showSapLog(strOptNo); }
private void uGridSemi_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row.Index < 0) { return; } if (biSave.Enabled) { MessageBox.Show(@"在编辑状态下,不允许选择!"); return; } SetPanelVlaue(e.Cell.Row.Cells["AutoID"].Value.ToString()); }
/// <summary> /// Handles the DoubleClickCell event of the MiscTemplatesGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs"/> instance containing the event data.</param> private void MiscTemplatesGridView_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { if (e.Cell.Row.Index >= 0 && e.Cell.Row.Index < this.MiscTemplatesGridView.Rows.Count) { this.GetTemplateId(true); } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this); } }
private void dgv_DanhSach_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { switch (e.Cell.Column.Key) { case "MaSV": SuaMaSinhVien(); break; case "KetQua": case "MaDe": SuaDiem(); break; } }
private void uGirdKisInventory_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row == null || e.Cell.Row.Index <= -1) { return; } FitemId = e.Cell.Row.Cells["FItemID"].Value.ToString(); InvCode = e.Cell.Row.Cells["FNumber"].Value.ToString(); InvName = e.Cell.Row.Cells["FName"].Value.ToString(); FullName = e.Cell.Row.Cells["FFullName"].Value.ToString(); DefaultLoc = e.Cell.Row.Cells["FDefaultLoc"].Value.ToString(); DefalutSP = e.Cell.Row.Cells["FSPID"].Value.ToString(); FUnitID = e.Cell.Row.Cells["FUnitID"].Value.ToString(); FUnitName = e.Cell.Row.Cells["FUnitName"].Value.ToString(); DialogResult = DialogResult.Yes; }
private void dgvAsociacionClientes_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { txtIDAsociacion.Text = dgvAsociacionClientes.Rows[e.Cell.Row.Index].Cells["nID"].Value.ToString(); cboClienteAsociacion.Value = dgvAsociacionClientes.Rows[e.Cell.Row.Index].Cells["CardCode"].Value.ToString(); cboCodigoRutaAsociacion.Value = dgvAsociacionClientes.Rows[e.Cell.Row.Index].Cells["CodRuta"].Value.ToString(); txtFrecuencia.Text = dgvAsociacionClientes.Rows[e.Cell.Row.Index].Cells["nFrecuencia"].Value.ToString(); btnAgregarGeneral.Visible = false; btnActualizarGeneral.Visible = true; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
private void uG_DanhSach_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { var frm = new FrmSuaLop { update = false, Idlop = int.Parse(dgv_DanhSach.ActiveRow.Cells["ID"].Text), txtlop = { Text = dgv_DanhSach.ActiveRow.Cells["MaLop"].Text } }; frm.ShowDialog(); if (frm.update) { dgv_DanhSach.ActiveRow.Cells["MaLop"].Value = frm.txtlop.Text; dgv_DanhSach.ActiveRow.Cells["TenKhoa"].Value = frm.cbokhoa.Text; MessageBox.Show(@"Sửa dữ liệu thành công", @"Thông báo"); } }
private void DBNoiDung_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (DBNoiDung.ActiveRow != null) { AddNewSinhVien Frm1 = new AddNewSinhVien(); Frm1.TxtMaSinhVien.Text = DBNoiDung.ActiveRow.Cells["MASINHVIEN"].Value.ToString(); Frm1.TxtTenSinhVien.Text = DBNoiDung.ActiveRow.Cells["TENSINHVIEN"].Value.ToString(); Frm1.CobGioiTinh.Text = DBNoiDung.ActiveRow.Cells["GIOITINH"].Value.ToString(); Frm1.TxtQueQuan.Text = DBNoiDung.ActiveRow.Cells["QUEQUAN"].Value.ToString(); Frm1.flag = false; Frm1.ShowDialog(); LoadData(); } else { MessageBox.Show("Bạn phải chọn một mẩu tin cần sửa"); } }
/// <summary> /// Handles the DoubleClickCell event of the SearchResultGrid control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:Infragistics.Win.UltraWinGrid.DoubleClickCellEventArgs"/> instance containing the event data.</param> private void SearchResultGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { if (this.SearchResultGrid.Rows.Count > 0) { // Check for the Cell with the Merge property if (e.Cell.IsMergedWith(this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.GroupColumn.ColumnName])) { object[] optionalParameter = null; if (this.searchData.Count > 0) { optionalParameter = new object[] { this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.FormColumn.Ordinal].Value, this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.GroupColumn.Ordinal].Value }; } Form snapShot = new Form(); snapShot = this.form9600Controller.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9601, optionalParameter, this.form9600Controller.WorkItem); if (snapShot != null) { snapShot.ShowDialog(); } } else if (e.Cell.IsMergedWith(this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.SearchColumn.ColumnName]) || e.Cell.IsMergedWith(this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.SupplementColumn.ColumnName])) { if (this.searchData.Count > 0) { FormInfo getForm = TerraScan.Common.TerraScanCommon.GetFormInfo(Convert.ToInt32(this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.FormColumn.Ordinal].Value)); getForm.optionalParameters = new object[1]; getForm.optionalParameters[0] = Convert.ToInt64(this.SearchResultGrid.Rows[e.Cell.Row.Index].Cells[this.searchData.MyKeyIDColumn.Ordinal].Value); this.ShowForm(this, new DataEventArgs <FormInfo>(getForm)); } } } } catch (SoapException ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
private void ugServicios_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { ModificarServicio(); }
private void ugEntity_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { base.m_ResultProcess = EnumResult.SUCESS; mAceptar = true; Close(); }
/// <summary> /// fpSpread의 DblClick이벤트는 UltraGrid의 DoubleClickCell이벤트로 변경 하실 수 있습니다. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void uniGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { }
private void Grd_Buscados_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { this.Aceptar(); }
/// <summary> /// 【列表】Grid的Cell的双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { //将Grid中选中的数据赋值给【详情】Tab内的对应控件 SetGridDataToCardCtrls(); }
private void grdQuery_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Column.Key == "pairqty") { frmDSAdjust frm = new frmDSAdjust(); frm.ShowDialog(this); } }
/// <summary> /// 【汇总】Grid的Cell的双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OrgAndOrgAmountTransReportGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { //将Grid中选中的数据赋值给【详情】Tab内的对应控件 SetGridDataToCardCtrls(); }
/// <summary> /// 双击单元格 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { //是否允许获取Grid数据 if (!IsAllowSetGridDataToCard()) { return; } object relatedSourItem = null; string tempRowID = e.Cell.Row.Cells[SysConst.RowID].Value != null ? e.Cell.Row.Cells[SysConst.RowID].Value.ToString() : string.Empty; foreach (var loopSourceItem in ListGridDS) { if (loopSourceItem.RowID == tempRowID) { relatedSourItem = loopSourceItem; if (!loopSourceItem.IsChecked) { loopSourceItem.IsChecked = true; this.gdGrid.Refresh(); } } else { //双击当前行,且为单选模式时,取消选中其他行 if (ListSelectionMode == CustomEnums.CustomeSelectionMode.Single) { if (loopSourceItem.IsChecked) { loopSourceItem.IsChecked = false; } } } } #region 验证数据源是否存在选中项相关属性 if (!_dataSourceHasSelectedValueProperty || !_dataSourceHasSelectedTextProperty) { if (relatedSourItem != null) { Type tp = relatedSourItem.GetType(); foreach (PropertyInfo pi in tp.GetProperties()) { //过滤索引器 if (SysConst.EN_ITEM.Equals(pi.Name)) { continue; } if (pi.Name == SelectedValuePropertyName) { _dataSourceHasSelectedValueProperty = true; } if (pi.Name == SelectedTextPropertyName) { _dataSourceHasSelectedTextProperty = true; } if (_dataSourceHasSelectedValueProperty && _dataSourceHasSelectedTextProperty) { break; } } if (!_dataSourceHasSelectedValueProperty) { MessageBoxs.Show(Trans.COM, this.ToString(), MsgHelp.GetMsg(MsgCode.W_0022, new object[] { SelectedValuePropertyName }), MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (!_dataSourceHasSelectedTextProperty) { MessageBoxs.Show(Trans.COM, this.ToString(), MsgHelp.GetMsg(MsgCode.W_0022, new object[] { SelectedTextPropertyName }), MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } } #endregion GenerateSelectedValueAndText(); this.DialogResult = DialogResult.OK; }
private void uGridData_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { uGridData.ActiveRow.Selected = true; if (uGridData.ActiveRow.Index == -1) return; lblScr.Text = ""; lblOpt.Text = "当前操作:"; strOptNo = uGridData.ActiveRow.Cells["FS_BATCHNO"].Value.ToString(); lblOpt.Text += strOptNo; showSapLog(strOptNo); showMxsj(strOptNo); }
private void ug_userlist_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { this.Cursor = Cursors.WaitCursor; _presenter.ShowUpdateUserView(e.Cell.Row.Cells["User ID"].Value.ToString()); } catch (Exception ex) { if (ExceptionManager.Handle(ex)) throw; } finally { this.Cursor = Cursors.Default; } }
private void ultraGrid1_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { ultraGrid1_DoubleClick(ultraGrid1, null); }
private void uGridRawMaterial_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row == null || e.Cell.Row.Index <= -1) return; URow = e.Cell.Row; DialogResult = DialogResult.Yes; }
private void ugvDatos_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { try { Cursor = Cursors.WaitCursor; string Estatus = ugvDatos.Rows[e.Cell.Row.Index].Cells["Estatus"].Value.ToString(); if (Estatus == "AUTORIZADO" || Estatus == "CANCELADA") { string Ruta = ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value.ToString(); string Folio = ugvDatos.Rows[e.Cell.Row.Index].Cells["Folio"].Value.ToString(); Ruta = ""; Ruta = Path.GetTempPath(); //"\\\\192.168.2.98\\Digitalización\\Solicitud_Logistica\\"; string NomArchivo = ""; NomArchivo = "Solicitud_" + Folio + ".PDF"; H_Compras.Logistica.csLogistica.ImprimirSolicitud(Folio, Ruta, NomArchivo); string RutaCompleta = Ruta + NomArchivo; H_Compras.Logistica.csLogistica.UpdateRutaSolicitud(12, Convert.ToInt32(Folio), RutaCompleta); ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value = RutaCompleta; } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message.ToString()); } //string Estatus = ugvDatos.Rows[e.Cell.Row.Index].Cells["Estatus"].Value.ToString(); //if (Estatus == "AUTORIZADO" || Estatus == "CANCELADA") //{ // string Ruta = ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value.ToString(); // string Folio = ugvDatos.Rows[e.Cell.Row.Index].Cells["Folio"].Value.ToString(); // Ruta = ""; Ruta = "\\\\192.168.2.98\\Digitalización\\Solicitud_Logistica\\"; // string NomArchivo = ""; NomArchivo = "Solicitud_" + Folio + ".PDF"; // csLogistica.ImprimirSolicitud(Folio, Ruta, NomArchivo); // string RutaCompleta = Ruta + NomArchivo; // csLogistica.UpdateRutaSolicitud(12, Convert.ToInt32(Folio), RutaCompleta); // ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value = RutaCompleta; // //if (Ruta != string.Empty) // //{ // //if (File.Exists(Ruta)) // //{ // // Process prc = new Process(); // // prc.StartInfo.FileName = Ruta; // // prc.Start(); // //} // //else // //{ // // string Folio = ugvDatos.Rows[e.Cell.Row.Index].Cells["Folio"].Value.ToString(); // // Ruta = ""; Ruta = "\\\\192.168.2.98\\Digitalización\\Solicitud_Logistica\\"; // // string NomArchivo = ""; NomArchivo = "Solicitud_" + Folio + ".PDF"; // // csLogistica.ImprimirSolicitud(Folio, Ruta, NomArchivo); // // csLogistica.UpdateRutaSolicitud(12, Convert.ToInt32(Folio), RutaCompleta); // // ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value = RutaCompleta; // //} // //} // //else // //{ // // string Folio = ugvDatos.Rows[e.Cell.Row.Index].Cells["Folio"].Value.ToString(); // // Ruta = ""; Ruta = "\\\\192.168.2.98\\Digitalización\\Solicitud_Logistica\\"; // // string NomArchivo = ""; NomArchivo = "Solicitud_" + Folio + ".PDF"; // // csLogistica.ImprimirSolicitud(Folio, Ruta, NomArchivo); // // string RutaCompleta = Ruta + NomArchivo; // // csLogistica.UpdateRutaSolicitud(12, Convert.ToInt32(Folio), RutaCompleta); // // ugvDatos.Rows[e.Cell.Row.Index].Cells["sRutaPDF"].Value = RutaCompleta; // //} //} }
private void uGridRawMaterial_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { }
private void uG_DanhSach_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { Sua(); }
private void ImmasGrid1_CellDoubleClick(object sender, DoubleClickCellEventArgs e) { this.CloseWithOk(); }
private void uGirdKisInventory_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row == null || e.Cell.Row.Index <= -1) return; FitemId = e.Cell.Row.Cells["FItemID"].Value.ToString(); InvCode = e.Cell.Row.Cells["FNumber"].Value.ToString(); InvName = e.Cell.Row.Cells["FName"].Value.ToString(); FullName = e.Cell.Row.Cells["FFullName"].Value.ToString(); DefaultLoc = e.Cell.Row.Cells["FDefaultLoc"].Value.ToString(); DefalutSP = e.Cell.Row.Cells["FSPID"].Value.ToString(); FUnitID = e.Cell.Row.Cells["FUnitID"].Value.ToString(); FUnitName= e.Cell.Row.Cells["FUnitName"].Value.ToString(); DialogResult = DialogResult.Yes; }
private void uGridCurrentStock_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row.Index < 0) return;int StockID,ItemID,StockPlaceID; var FItemID = e.Cell.Row.Cells["FItemID"].Value.ToString(); var FBatchNo=e.Cell.Row.Cells["FBatchNo"].Value.ToString(); var FStockID=e.Cell.Row.Cells["FStockID"].Value.ToString(); var FStockPlaceID=e.Cell.Row.Cells["FStockPlaceID"].Value.ToString(); if(!int.TryParse(FItemID,out ItemID)||!int.TryParse(FStockID,out StockID)||!int.TryParse(FStockPlaceID,out StockPlaceID)) { return; } //foreach (DataRow dRow in ShiftDetail.Rows) //{ // if (dRow.RowState == DataRowState.Deleted) // continue; // if ( // dRow["cFItemID"].ToString().Equals(FItemID) && // dRow["FBatchNo"].ToString().Equals(FBatchNo) && // dRow["FStockID"].ToString().Equals(FStockID) && // dRow["FStockPlaceID"].ToString().Equals(FStockPlaceID) // ) // {return; // } //} if (ShiftDetail.Rows.Cast<DataRow>().Where(dRow => dRow.RowState != DataRowState.Deleted).Any(dRow => dRow["cFItemID"].ToString().Equals(FItemID) && dRow["FBatchNo"].ToString().Equals(FBatchNo) && dRow["FStockID"].ToString().Equals(FStockID) && dRow["FStockPlaceID"].ToString().Equals(FStockPlaceID))) { return; } var cInvCode = e.Cell.Row.Cells["FNumber"].Value.ToString(); var cInvName = e.Cell.Row.Cells["FName"].Value.ToString(); var cInvStd = e.Cell.Row.Cells["FModel"].Value.ToString(); var cFullName = e.Cell.Row.Cells["FFullName"].Value.ToString(); var FStockNumber = e.Cell.Row.Cells["FStockNumber"].Value.ToString(); var FStockName = e.Cell.Row.Cells["FStockName"].Value.ToString(); var FStockPlaceNumber = e.Cell.Row.Cells["FStockPlaceNumber"].Value.ToString(); var FStockPlaceName = e.Cell.Row.Cells["FStockPlaceName"].Value.ToString(); var nRow = ShiftDetail.NewShiftDetailRow(); nRow.FBatchNo = FBatchNo; nRow.FStockID = StockID; nRow.FStockName = FStockName; nRow.FStockNumber = FStockNumber; nRow.FStockPlaceID = StockPlaceID; nRow.FStockPlaceName = FStockPlaceName; nRow.FStockPlaceNumber = FStockPlaceNumber; nRow.cFitemID = ItemID; nRow.cFullName = cFullName; nRow.cInvCode = cInvCode; nRow.cInvName = cInvName; nRow.cInvStd = cInvStd; ShiftDetail.Rows.Add(nRow); }
private void uG_DanhSach_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { var frm = new FrmSuaLop { update = false, Idlop = int.Parse(dgv_DanhSach.ActiveRow.Cells["ID"].Text), txtlop = {Text = dgv_DanhSach.ActiveRow.Cells["MaLop"].Text} }; frm.ShowDialog(); if (frm.update) { dgv_DanhSach.ActiveRow.Cells["MaLop"].Value = frm.txtlop.Text; dgv_DanhSach.ActiveRow.Cells["TenKhoa"].Value = frm.cbokhoa.Text; MessageBox.Show(@"Sửa dữ liệu thành công", @"Thông báo"); } }
private void uGridCurrentStock_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { if (e.Cell.Row.Index < 0) { return; } int StockID, ItemID, StockPlaceID; var FItemID = e.Cell.Row.Cells["FItemID"].Value.ToString(); var FBatchNo = e.Cell.Row.Cells["FBatchNo"].Value.ToString(); var FStockID = e.Cell.Row.Cells["FStockID"].Value.ToString(); var FStockPlaceID = e.Cell.Row.Cells["FStockPlaceID"].Value.ToString(); if (!int.TryParse(FItemID, out ItemID) || !int.TryParse(FStockID, out StockID) || !int.TryParse(FStockPlaceID, out StockPlaceID)) { return; } //foreach (DataRow dRow in ShiftDetail.Rows) //{ // if (dRow.RowState == DataRowState.Deleted) // continue; // if ( // dRow["cFItemID"].ToString().Equals(FItemID) && // dRow["FBatchNo"].ToString().Equals(FBatchNo) && // dRow["FStockID"].ToString().Equals(FStockID) && // dRow["FStockPlaceID"].ToString().Equals(FStockPlaceID) // ) // {return; // } //} if (ShiftDetail.Rows.Cast <DataRow>().Where(dRow => dRow.RowState != DataRowState.Deleted).Any(dRow => dRow["cFItemID"].ToString().Equals(FItemID) && dRow["FBatchNo"].ToString().Equals(FBatchNo) && dRow["FStockID"].ToString().Equals(FStockID) && dRow["FStockPlaceID"].ToString().Equals(FStockPlaceID))) { return; } var cInvCode = e.Cell.Row.Cells["FNumber"].Value.ToString(); var cInvName = e.Cell.Row.Cells["FName"].Value.ToString(); var cInvStd = e.Cell.Row.Cells["FModel"].Value.ToString(); var cFullName = e.Cell.Row.Cells["FFullName"].Value.ToString(); var FStockNumber = e.Cell.Row.Cells["FStockNumber"].Value.ToString(); var FStockName = e.Cell.Row.Cells["FStockName"].Value.ToString(); var FStockPlaceNumber = e.Cell.Row.Cells["FStockPlaceNumber"].Value.ToString(); var FStockPlaceName = e.Cell.Row.Cells["FStockPlaceName"].Value.ToString(); var nRow = ShiftDetail.NewShiftDetailRow(); nRow.FBatchNo = FBatchNo; nRow.FStockID = StockID; nRow.FStockName = FStockName; nRow.FStockNumber = FStockNumber; nRow.FStockPlaceID = StockPlaceID; nRow.FStockPlaceName = FStockPlaceName; nRow.FStockPlaceNumber = FStockPlaceNumber; nRow.cFitemID = ItemID; nRow.cFullName = cFullName; nRow.cInvCode = cInvCode; nRow.cInvName = cInvName; nRow.cInvStd = cInvStd; ShiftDetail.Rows.Add(nRow); }
private void GrillaDirecciones_DoubleClickCell(object sender, DoubleClickCellEventArgs e) { ModificarDireccion(e.Cell.Row); }