/// <summary> /// searchLookUpEdit_Closed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void searchLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { SearchLookUpEdit searchLookUpEdit = (SearchLookUpEdit)sender; String valueMember = searchLookUpEdit.Properties.ValueMember; var view = searchLookUpEdit.Properties.View; int[] selectedRows = view.GetSelectedRows(); if (selectedRows.Length > 0) { string sValues = ""; for (int iRow = 0; iRow < selectedRows.Length; iRow++) { if (iRow == 0) { sValues = view.GetRowCellValue(selectedRows[iRow], valueMember).ToString(); } else { sValues += "," + view.GetRowCellValue(selectedRows[iRow], valueMember).ToString(); } } searchLookUpEdit.EditValue = sValues; } else { searchLookUpEdit.EditValue = null; } }
private void DeveloverRepositoryItemGridLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { edt = ((GridLookUpEdit)sender); edt.Properties.View.DoubleClick -= View_DoubleClick; edt.Properties.View.Click -= View_DoubleClick; edt = null; }
//关闭日期选择菜单 private void PopupContainerEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (!this.startTime.Equals("") && !this.endTime.Equals("")) { this.popupContainerEdit1.Text = string.Format("{0}-{1}", this.startTime, this.endTime); } GetUserConsumeRecord(true); }
private void ComboBoxEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (!this.startTime.Equals("") && !this.endTime.Equals("")) { this.popupContainerEdit1.Text = string.Format("{0}-{1}", this.startTime, this.endTime); } GetStaffShiftsRecord(); }
void PRTrepositoryItemSearchLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (ophGridControl.IsFocused && e.CloseMode == PopupCloseMode.Normal) { var a = sender as SearchLookUpEdit; string ozlDrm = opsQueriesTableAdapter.OZEL_DURUM("PRT", a.EditValue.ToString()).ToString(); ophLayoutView.SetFocusedRowCellValue(colOzlDrm, ozlDrm); OzlDrm[ophLayoutView.FocusedColumn.FieldName] = ozlDrm; } }
void AHTrepositoryItemLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { var a = sender as LookUpEdit; if (a.OldEditValue != a.EditValue && afdoGridControl.IsFocused) { object kdy = a.GetColumnValue("KDY"); afdoGridView.SetFocusedRowCellValue(colKDYf, kdy); } }
void locRepositoryItemPopupContainerEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (ophGridControl.IsFocused) { var a = sender as PopupContainerEdit; string ozlDrm = opsQueriesTableAdapter.OZEL_DURUM("LOC", a.EditValue.ToString()).ToString(); ophLayoutView.SetFocusedRowCellValue(colOzlDrm, ozlDrm); OzlDrm[ophLayoutView.FocusedColumn.FieldName] = ozlDrm; } }
void FRTrepositoryItemLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (ophGridControl.IsFocused) { var a = sender as LookUpEdit; if (a.EditValue != DBNull.Value) { string ozlDrm = opsQueriesTableAdapter.OZEL_DURUM("FRT", a.EditValue.ToString()).ToString(); ophLayoutView.SetFocusedRowCellValue(colOzlDrm, ozlDrm); OzlDrm[ophLayoutView.FocusedColumn.FieldName] = ozlDrm; } } }
private void UiListaBodega_Properties_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { try { if (!Bodegas.ToList().Exists(b => b.IS_SELECTED)) { Materiales = new List <Material>(); return; } UsuarioDeseaObtenerMateriales?.Invoke(null, null); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void PopupContainerEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { //进行查询 if (sender.Equals(this.popupContainerEdit2)) { if (!this.addStart.Equals("") && !this.addEnd.Equals("")) { this.popupContainerEdit2.Text = string.Format("{0}-{1}", this.addStart, this.addEnd); } } if (sender.Equals(this.popupContainerEdit3)) { if (!this.handleStart.Equals("") && !this.handleEnd.Equals("")) { this.popupContainerEdit3.Text = string.Format("{0}-{1}", this.handleStart, this.handleEnd); } } this.mainDataTable.Clear(); GetProductIndentList(); }
private void frequencyDetail_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { frequencyDetail.Text = CheckFrequencyDetail(); }
private void UserClosed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { base.RaiseEvent(sender, "Closed", e); }
//关闭日期选择菜单 private void PopupContainerEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { GetMemberConsumeRecord(true); }