Ejemplo n.º 1
0
        /// <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;
            }
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 //关闭日期选择菜单
 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();
 }
Ejemplo n.º 5
0
 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;
     }
 }
Ejemplo n.º 6
0
        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);
            }
        }
Ejemplo n.º 7
0
        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;
            }
        }
Ejemplo n.º 8
0
 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);
     }
 }
Ejemplo n.º 10
0
 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();
 }
Ejemplo n.º 11
0
 private void frequencyDetail_Closed(object sender, DevExpress.XtraEditors.Controls.ClosedEventArgs e)
 {
     frequencyDetail.Text = CheckFrequencyDetail();
 }
Ejemplo n.º 12
0
 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);
 }