| | |
| | | using DevExpress.XtraEditors; |
| | | using Gs.DevApp.DevFrm.Work; |
| | | using Gs.DevApp.DevFrm.Work; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 总记录数 |
| | | /// 按钮文字 |
| | | /// </summary> |
| | | public string BtnTxt |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 总记录数 |
| | | /// 文本框文字 |
| | | /// </summary> |
| | | public string TextTxt |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询条件 |
| | | /// </summary> |
| | | public string WhereTxt |
| | | { |
| | | get; |
| | | set; |
| | | } |
| | | public bool IsReadly |
| | | { |
| | | set |
| | | { |
| | | this.memoEdit1.ReadOnly = value; |
| | | this.simpleButton1.Enabled = !value; |
| | | } |
| | | } |
| | | |
| | | private void simpleButton1_Click(object sender, EventArgs e) |
| | | { |
| | | UcDictionarySelect frm = new UcDictionarySelect(this.BtnTxt, ""); |
| | | UcDictionarySelect frm = new UcDictionarySelect(this.BtnTxt, this.WhereTxt); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); |