private void cmbCommonSize_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { var item = cmbCommonSize.EditValue + ""; switch (item) { case "20mm": case "50mm": case "100mm": case "200mm": { double width = double.Parse(item.Replace("mm", "")); this.AdjustHeightWidth(width); } break; case "0.5倍": case "2倍": case "4倍": case "8倍": case "10倍": case "20倍": { double width = double.Parse(item.Replace("倍", "")) * this.Model.Width; this.AdjustHeightWidth(width); } break; } }
private void Control_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { Venta doc = View.CurrentObject as Venta; // Agrega item doc.AddItem(); }
void ExtRepositoryItemLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (!ownerEdit.Properties.DisplayMember.Equals(DisplayMember)) { ownerEdit.Properties.DisplayMember = displayMember; } }
void frtRepositoryItemSearchLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { var edit = sender as SearchLookUpEdit; if (e.CloseMode == PopupCloseMode.Normal && edit.OldEditValue != edit.EditValue) { var frtRow = Program.MF.mainDataSet.FRT.FindByFRTID((int)edit.EditValue); if (frtRow != null) { if (ophLayoutView.FocusedColumn == colSHPID) { ophLayoutView.SetFocusedRowCellValue(colORG, frtRow.LOCID); } else if (ophLayoutView.FocusedColumn == colCNEID) { ophLayoutView.SetFocusedRowCellValue(colDST, frtRow.LOCID); } else if (ophLayoutView.FocusedColumn == colACCID) { if (!frtRow.IsOFCNONull()) { int se = Math.Min(4, frtRow.OFCNO.Length); string ofn = frtRow.OFCNO.Substring(0, se); ophLayoutView.SetFocusedRowCellValue(colB_OFCNO, ofn); } } } } }
private void searchLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { SearchLookUpEdit searchLookUpEdit = sender as SearchLookUpEdit; 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], "ROWINDEX").ToString(); } else { sValues += "," + view.GetRowCellValue(selectedRows[iRow], "ROWINDEX").ToString(); } } searchLookUpEdit.EditValue = sValues; } else { searchLookUpEdit.EditValue = null; } }
private void popupContainerEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { SelectedFixedAssetCategory = ""; SelectedFixedAssetCategory = IterateNode(treeListFixedAssetCategory.Nodes, "FixedAssetCategoryId"); popupContainerEdit.EditValue = SelectedFixedAssetCategory; DoAfterPopupClosed(); }
private void lookUpEdit4_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { id_rukovod = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("user_id"); } }
private void lookUpEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { Globals.status_sud = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id"); } }
private void repositoryItemLookUpEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { Globals.id_slujbi1 = (int)(sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id_slujbi"); } }
//close the ItemTooltip as well void Editor_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { ComboBoxEdit cboEditor = sender as ComboBoxEdit; EM_UI_MainForm mainForm = cboEditor.Parent.Parent as EM_UI_MainForm; mainForm.lblComboboxEditorToolTip.Visible = false; }
private void repositoryItemImageEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { ofdInput.ShowDialog(); } }
private void lookUpEdit_Properties_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (sender is DevExpress.XtraEditors.LookUpEdit) { DevExpress.XtraEditors.LookUpEdit dpl = sender as DevExpress.XtraEditors.LookUpEdit; if (!dpl.Properties.DisplayMember.Equals("Name")) { dpl.Properties.DisplayMember = "Name"; } DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, dpl.Name, dpl.Parent.Name); StaticFunctions.UpdateDataRowSynLookUpEdit(drSet, dpl, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); } else if (sender is ExtendControl.ExtPopupTree) { ExtendControl.ExtPopupTree ept = sender as ExtendControl.ExtPopupTree; DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, ept.Name, ept.Parent.Name); StaticFunctions.UpdateDataRowSynExtPopupTree(drSet, ept, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); } else if (sender is DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit) { DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit dpl = sender as DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit; if (!dpl.DisplayMember.Equals("Name")) { dpl.DisplayMember = "Name"; } } }
private void PopupContainerEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { //进行查询 //System.Console.WriteLine("start:"+startTime +"end:"+endTime); this.mainDataTable.Clear(); GetSellRecordList(); }
private void lookUpEdit2_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { id_slujbi = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id_slujbi"); } }
/// <summary> /// 地点选择器改变时 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddressNameEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == PopupCloseMode.Normal) { if (string.IsNullOrEmpty(AddressNameEdit.Text)) { RefXMBProjectInfo.AddressName = ""; RefXMBProjectInfo.Country = ""; RefXMBProjectInfo.Province = ""; RefXMBProjectInfo.City = "";; RefXMBProjectInfo.Region = ""; RefXMBProjectInfo.DomOvsea = ""; } else { RefXMBProjectInfo.AddressName = AddressNameEdit.Text; RefXMBProjectInfo.Country = AddressNameEdit.Country; RefXMBProjectInfo.Province = AddressNameEdit.Province; RefXMBProjectInfo.City = AddressNameEdit.City; RefXMBProjectInfo.Region = AddressNameEdit.RegionName; RefXMBProjectInfo.DomOvsea = AddressNameEdit.InOver; if (AddressNameEdit.InOver == "境外") { RefXMBProjectInfo.Country = AddressNameEdit.OverCountry; } if (AddressNameEdit.Province == "台湾省" || AddressNameEdit.Province == "澳门特别行政区" || AddressNameEdit.Province == "香港特别行政区") { RefXMBProjectInfo.DomOvsea = "境外"; } } bindingSource1.ResetBindings(true); } }
private void cbART_Type_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { CheckedComboBoxEdit edit = sender as CheckedComboBoxEdit; //if (e.CloseMode == PopupCloseMode.ButtonClick) // MessageBox.Show(edit.EditValue.ToString()); //memoEdit1.Text = cbART_Type.EditValue.ToString(); }
private void lookUpEdit_Properties_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (sender is DevExpress.XtraEditors.LookUpEdit) { DevExpress.XtraEditors.LookUpEdit dpl = sender as DevExpress.XtraEditors.LookUpEdit; if (!dpl.Properties.DisplayMember.Equals("Name")) { dpl.Properties.DisplayMember = "Name"; } if (strEnterGc == string.Empty) { return; } DataRow drInfo = GridViewEdit.GetFocusedDataRow(); if (drInfo == null) { return; } drInfo[dpl.Tag.ToString()] = Convert.ToString(dpl.EditValue) == string.Empty ? DBNull.Value : dpl.EditValue; DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, dpl.Name, dpl.Parent.Name); StaticFunctions.UpdateDataRowSynLookUpEdit(drInfo, dpl, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); SetContrEditFromDpl(dpl.Parent, dpl.Name); if (!blPrevFindControl) { SetContrMoveNext(dpl.Name, false); } DoControlEvent(dpl, Convert.ToString(dpl.EditValue)); } else if (sender is ExtendControl.ExtPopupTree) { if (strEnterGc == string.Empty) { return; } DataRow drInfo = GridViewEdit.GetFocusedDataRow(); if (drInfo == null) { return; } ExtendControl.ExtPopupTree ept = sender as ExtendControl.ExtPopupTree; DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, ept.Name, ept.Parent.Name); StaticFunctions.UpdateDataRowSynExtPopupTree(drInfo, ept, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); SetContrEditFromDpl(ept.Parent, ept.Name); DoControlEvent(ept, Convert.ToString(ept.EditValue)); } else if (sender is DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit) { DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit dpl = sender as DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit; if (!dpl.DisplayMember.Equals("Name")) { dpl.DisplayMember = "Name"; } } }
private void lookUpEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { id_tip_doc = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("int"); id_type_doc = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id_tip_doc"); } }
private void searchSinif_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (searchSinif.Properties.View.SelectedRowsCount != 0) { var id = (int)searchSinif.Properties.View.GetFocusedRowCellValue(colSinifId); SinifYukle(id); } }
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); } GetOpenMemberRecord(); }
private void lookUpEdit2_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { dolj = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("Expr1"); textEdit2.Text = dolj.ToString(); } }
private void ComboBoxEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { DateTime date = this.dateNavigator1.SelectionStart; start = date.ToString("yyyy-MM-dd"); this.popupContainerEdit1.Text = start; GetAttendanceSearch(); }
private void lookUpEdit4_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { vhod_numb = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("number"); textEdit3.Text = vhod_numb.ToString(); } }
//关闭选择菜单 private void ComboBoxEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { DateTime date = this.dateNavigator1.SelectionStart; start = date.ToString("yyyy-MM-dd") + " 00:00:00"; end = date.ToString("yyyy-MM-dd") + " 23:59:59"; this.popupContainerEdit1.Text = date.ToString("yyyy/MM/dd"); GetDayIncomeDetail(); }
/// <summary> /// 选择分区源表下拉列表的关闭事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbOriginTable_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { this._comboBox = (ComboBoxEdit)sender; if (this._comboBox.SelectedIndex != -1) { CommonUtil.BindcmbColumnIdentity(ref this._columnInfoSet, this.cmbColumnIdentity, this._comboBox.SelectedItem.ToString(), this._dbHelper); } }
private void lookUpEdit4_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { id_slujba = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id_slujbi"); kod_slujba = (sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("kode_severelectro"); textEdit1.Text = kod_slujba.ToString(); } }
void popupcEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (popupcEdit != null) { popupcEdit.Text = GetText(); popupcEdit.Tag = GetEditValue(); } dicValues = null; }
private void lookUpEdit_Properties_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (sender is DevExpress.XtraEditors.LookUpEdit) { DevExpress.XtraEditors.LookUpEdit dpl = sender as DevExpress.XtraEditors.LookUpEdit; if (!dpl.Properties.DisplayMember.Equals("Name")) { dpl.Properties.DisplayMember = "Name"; } if (!blPrevFindControl) { SetContrMoveNext(dpl.Name, false); } if (this.frmEditorMode == "VIEW") { return; } TreeListNode nodeSel = treeList1.FocusedNode; if (nodeSel == null) { return; } DataRow drInfo = (treeList1.GetDataRecordByNode(treeList1.FocusedNode) as DataRowView).Row; DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, dpl.Name, dpl.Parent.Name); StaticFunctions.UpdateDataRowSynLookUpEdit(drInfo, dpl, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); } else if (sender is ExtendControl.ExtPopupTree) { if (this.frmEditorMode == "VIEW") { return; } TreeListNode nodeSel = treeList1.FocusedNode; if (nodeSel == null) { return; } DataRow drInfo = (treeList1.GetDataRecordByNode(treeList1.FocusedNode) as DataRowView).Row; ExtendControl.ExtPopupTree ept = sender as ExtendControl.ExtPopupTree; DataRow drContrl = StaticFunctions.GetContrRowValueById(dtShow, ept.Name, ept.Parent.Name); StaticFunctions.UpdateDataRowSynExtPopupTree(drInfo, ept, drContrl["SetSynFields"].ToString(), drContrl["SetSynSrcFields"].ToString()); } else if (sender is DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit) { DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit dpl = sender as DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit; if (!dpl.DisplayMember.Equals("Name")) { dpl.DisplayMember = "Name"; } } }
/// <summary> /// dbtune管理流程中选择配置关键字下拉列表的关闭事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbDbtuneKeyWord_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { this._comboBox = (ComboBoxEdit)sender; if (this._comboBox.SelectedIndex != -1) { this.txbDbtuneParamValue.Text = this._dbtuneManageHelper.ListParamValueEX(this._comboBox.SelectedItem.ToString()); } }
private void lookUpEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e) { if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal) { Globals.id_res3 = (int)(sender as DevExpress.XtraEditors.LookUpEdit).GetColumnValue("id_slujbi"); this.spr_zavisTableAdapter.Fill(this.oplataDataSet.spr_zavis, Globals.id_res3); Globals.id_res3_zavis = Convert.ToInt32(((DataRowView)spr_zavisBindingSource.Current).Row["id_zavis"]); } }