コード例 #1
0
ファイル: FrmFigureSizeSet.cs プロジェクト: liyangTeam/WSXCut
 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;
     }
 }
コード例 #2
0
ファイル: VCVentaABC.cs プロジェクト: icpac/cap
        private void Control_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
        {
            Venta doc = View.CurrentObject as Venta;

            // Agrega item
            doc.AddItem();
        }
コード例 #3
0
 void ExtRepositoryItemLookUpEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
   if (!ownerEdit.Properties.DisplayMember.Equals(DisplayMember))
   {
     ownerEdit.Properties.DisplayMember = displayMember;
   }
 }
コード例 #4
0
        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);
                        }
                    }
                }
            }
        }
コード例 #5
0
        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;
            }
        }
コード例 #6
0
 private void popupContainerEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
     SelectedFixedAssetCategory   = "";
     SelectedFixedAssetCategory   = IterateNode(treeListFixedAssetCategory.Nodes, "FixedAssetCategoryId");
     popupContainerEdit.EditValue = SelectedFixedAssetCategory;
     DoAfterPopupClosed();
 }
コード例 #7
0
ファイル: Add_ishod_doc.cs プロジェクト: saltunia/delo
 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");
     }
 }
コード例 #8
0
ファイル: sud_delo.cs プロジェクト: saltunia/urist
 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");
     }
 }
コード例 #9
0
 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");
     }
 }
コード例 #10
0
        //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;
        }
コード例 #11
0
 private void repositoryItemImageEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
     if (e.CloseMode == DevExpress.XtraEditors.PopupCloseMode.Normal)
     {
         ofdInput.ShowDialog();
     }
 }
コード例 #12
0
 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";
         }
     }
 }
コード例 #13
0
 private void PopupContainerEdit1_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
     //进行查询
     //System.Console.WriteLine("start:"+startTime +"end:"+endTime);
     this.mainDataTable.Clear();
     GetSellRecordList();
 }
コード例 #14
0
ファイル: add_kom_udost.cs プロジェクト: saltunia/delo
 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");
     }
 }
コード例 #15
0
 /// <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);
     }
 }
コード例 #16
0
 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();
 }
コード例 #17
0
        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";
                }
            }
        }
コード例 #18
0
ファイル: Add_ishod_doc.cs プロジェクト: saltunia/delo
 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");
     }
 }
コード例 #19
0
ファイル: FrmUyeIslem.cs プロジェクト: tinas/NetBook
 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);
     }
 }
コード例 #20
0
 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();
 }
コード例 #21
0
ファイル: dop_sogl.cs プロジェクト: saltunia/delo
 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();
     }
 }
コード例 #22
0
        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();
        }
コード例 #23
0
ファイル: Add_doc.cs プロジェクト: saltunia/delo
 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();
     }
 }
コード例 #24
0
        //关闭选择菜单
        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();
        }
コード例 #25
0
ファイル: FormMain.cs プロジェクト: radtek/PartitionModel
        /// <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);
            }
        }
コード例 #26
0
ファイル: dop_sogl.cs プロジェクト: saltunia/delo
 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();
     }
 }
コード例 #27
0
 void popupcEdit_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
     if (popupcEdit != null)
     {
         popupcEdit.Text = GetText();
         popupcEdit.Tag  = GetEditValue();
     }
     dicValues = null;
 }
コード例 #28
0
        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";
                }
            }
        }
コード例 #29
0
ファイル: FormMain.cs プロジェクト: radtek/PartitionModel
        /// <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());
            }
        }
コード例 #30
0
 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"]);
     }
 }