示例#1
0
        private void btnTxtDLS_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                Frm参照 frm = new Frm参照(3);
                frm.txtSEL.Text = btnTxtDLS.Text.Trim();
                frm.ShowDialog();

                btnTxtDLS.Text           = frm.iID;
                lookUpEdit代理商2.EditValue = frm.iID;
            }
            catch (Exception ee)
            {
                MessageBox.Show("操作失败:" + ee.Message);
            }
        }
示例#2
0
        private void ItemButtonEdit保证金客户_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                Frm参照 frm = new Frm参照(5);
                frm.txtSEL.Text = gridView保证金客户.GetRowCellDisplayText(gridView保证金客户.FocusedRowHandle, gridCol保证金客户编码).ToString().Trim();
                frm.ShowDialog();

                if (frm.DialogResult == DialogResult.OK)
                {
                    gridView保证金客户.SetRowCellValue(gridView保证金客户.FocusedRowHandle, gridCol保证金客户编码, frm.iID);
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show("操作失败:" + ee.Message);
            }
        }