| | |
| | | { |
| | | public partial class AssetsAutoMatchingMainDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public AssetsAutoMatchingMainDlg(AssetsAutoMatchingInputViewModel assetsAutoMatchingInputViewModel) |
| | | public AssetsAutoMatchingMainDlg() |
| | | { |
| | | _assetsAutoMatching = assetsAutoMatchingInputViewModel; |
| | | InitializeComponent(); |
| | | this.AssetsMainChoicePage.FormRowClickEvent += AssetsMainChoicePage_FormRowClickEvent; |
| | | } |
| | | |
| | | public event Func<AssetsAutoMatchingInputViewModel, bool> RelaodEvent = null; |
| | | private void AssetsMainChoicePage_FormRowClickEvent(string code) |
| | | { |
| | | AssetsMatchingClickEvent.Invoke(code); |
| | | } |
| | | |
| | | private AssetsAutoMatchingInputViewModel _assetsAutoMatching = null; |
| | | public event Func<AssetsAutoMatchingViewModel, bool> RelaodEvent = null; |
| | | |
| | | public event Action<string> AssetsMatchingClickEvent = null; |
| | | |
| | | private AssetsAutoMatchingViewModel _assetsAutoMatching = null; |
| | | |
| | | public void SetBindingData(AssetsAutoMatchingViewModel assetsAutoMatchingInputViewModel) |
| | | { |
| | | _assetsAutoMatching = assetsAutoMatchingInputViewModel; |
| | | this.AssetsMainChoicePage.SetBindingData(_assetsAutoMatching); |
| | | } |
| | | |
| | | //完成 |
| | | private void btnComplete_Click(object sender, EventArgs e) |
| | |
| | | } |
| | | |
| | | //自动匹配 |
| | | private void BtnAutoMatching_Click(object sender, EventArgs e) |
| | | private async void BtnAutoMatching_Click(object sender, EventArgs e) |
| | | { |
| | | WaitFormHelper.ShowWaitForm(this); |
| | | _assetsAutoMatching = this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching); |
| | | _assetsAutoMatching = await this.AssetsMainChoicePage.SetMatching(_assetsAutoMatching); |
| | | WaitFormHelper.HideWaitForm(this); |
| | | } |
| | | } |