lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/HomeXhsProjectPage_Bak.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI
using HStation.Vmo;
namespace HStation.WinFrmUI
{
    public partial class HomeXhsProjectPage_Bak : DocumentPage
    {
@@ -12,15 +14,14 @@
            this.PageTitle.AllowClose = false;
        }
        private Lazy<BLL.XhsProjectStd> _bllProjectStd = new(() => new BLL.XhsProjectStd());
        private List<XhsProjectStdDto> _allProjectList = null;
        private List<XhsProjectVmo> _allProjectList = null;
        /// <summary>
        /// 初始化数据源
        /// </summary>
        public override async void InitialDataSource()
        {
            _allProjectList = await _bllProjectStd.Value.GetAll();
            _allProjectList = await BLLFactory<HStation.BLL.XhsProject>.Instance.GetAll();
            this.tileItemForProject.Text = (_allProjectList == null ? 0 : _allProjectList.Count).ToString();
            this.mapViewProjectListContainer1.LoadCompletedEvent += MapViewProjectListContainer1_LoadCompletedEvent;
            await this.mapViewProjectListContainer1.InitialContainer();
@@ -32,7 +33,7 @@
        public override async void RefreshData()
        {
            base.RefreshData();
            _allProjectList = await _bllProjectStd.Value.GetAll();
            _allProjectList = await BLLFactory<HStation.BLL.XhsProject>.Instance.GetAll();
            this.tileItemForProject.Text = (_allProjectList == null ? 0 : _allProjectList.Count).ToString();
            await this.mapViewProjectListContainer1.SetProjectList(_allProjectList);
            this.homeXhsProjectTreeListCtrl1.SetBindingData(_allProjectList);
@@ -46,7 +47,7 @@
        }
        //选择项目事件
        private async void homeXhsProjectTreeListCtrl1_SelectProjectEvent(XhsProjectStdDto obj)
        private async void homeXhsProjectTreeListCtrl1_SelectProjectEvent(XhsProjectVmo obj)
        {
            await this.mapViewProjectListContainer1.SelectProject(obj.ID);
            var vm = new HomeXhsProjectPropertyViewModel(obj);
@@ -60,7 +61,7 @@
        }
        //跳转事件
        private async void homeXhsProjectPropertyCtrl1_JumpDirectEvent(XhsProjectStdDto obj)
        private async void homeXhsProjectPropertyCtrl1_JumpDirectEvent(XhsProjectVmo obj)
        {
            var guid = new PageGuid()
            {