Пример #1
0
        //选择单据
        private void barBtnSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ListForm form = new ListForm();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                Model.PCPGOnlineCheck currentModel = form.SelectItem as Model.PCPGOnlineCheck;
                if (currentModel != null)
                {
                    this._pcpgoc = currentModel;
                    this._pcpgoc = this._pcpgocManager.GetDetail(this._pcpgoc.PCPGOnlineCheckId);
                    this.Refresh();
                }
            }
            form.Dispose();
            GC.Collect();
        }
Пример #2
0
        //查询
        private void barBtnSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ListForm form = new ListForm();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                //Model.PCPGOnlineCheck currentModel = form.SelectItem as Model.PCPGOnlineCheck;
                DataRowView dv = form.SelectItem as DataRowView;
                if (dv != null)
                {
                    //this._pcpgoc = currentModel;
                    this._pcpgoc = this._pcpgocManager.GetDetail(dv.Row[0].ToString());
                    this.Refresh();
                }
            }
            form.Dispose();
            GC.Collect();
        }