BLL/HStation.BLL.Core/HStation.BLL.Core.csproj
@@ -7,7 +7,7 @@ </PropertyGroup> <ItemGroup> <PackageReference Include="Yw.BLL.Core" Version="3.1.0" /> <PackageReference Include="Yw.BLL.Core" Version="3.1.2" /> </ItemGroup> <ItemGroup> BLL/HStation.BLL.TransferFile.Core/00-core/ConfigHelper.cs
@@ -10,6 +10,14 @@ get { return Settings.TransferFileParasHelper.TransferFile.CAL.HttpClient.HttpUrl; } } /// <summary> /// /// </summary> public static string CALType { get { return Settings.TransferFileParasHelper.TransferFile.CAL.CALType; } } public static string DataFolder { get { return Settings.TransferFileParasHelper.TransferFile.DataFolder; } BLL/HStation.BLL.TransferFile.Core/01-interface/02-revit/ITransferRevitFile.cs
@@ -14,7 +14,15 @@ public Task<List<TransferRevitFileDto>> GetByIds(List<long> ids); public Task<List<TransferRevitFileDto>> GetFluzzyList(QueryTransferRevitFileFluzzyListInput input); public Task<List<TransferRevitFileDto>> GetFluzzyList ( string FileName, string FileCode, string FileSuffix, string UploadUserName, DateTime? StartTime, DateTime? EndTime ); public Task<PageListOutput<TransferRevitFileDto>> GetFluzzyPageList(QueryTransferRevitFileFluzzyPageListInput input); BLL/HStation.BLL.TransferFile.Core/02-httpclient/02-revit/TransferRevitFile.cs
@@ -45,11 +45,24 @@ return await GetUrl("GetByIds@V1.0").Get<List<TransferRevitFileDto>>(paras); } public async Task<List<TransferRevitFileDto>> GetFluzzyList(QueryTransferRevitFileFluzzyListInput input) public async Task<List<TransferRevitFileDto>> GetFluzzyList ( string FileName, string FileCode, string FileSuffix, string UploadUserName, DateTime? StartTime, DateTime? EndTime ) { var paras = new List<(string Name, object Value)>() { (nameof(input),input), (nameof(FileName),FileName), (nameof(FileCode),FileCode), (nameof(FileSuffix),FileSuffix), (nameof(UploadUserName),UploadUserName), (nameof(StartTime),StartTime), (nameof(EndTime),EndTime) }; return await GetUrl("GetFluzzyList@V1.0").Get<List<TransferRevitFileDto>>(paras); } BLL/HStation.BLL.TransferFile.Core/03-localclient/01-user/TransferFileUser.cs
@@ -7,6 +7,8 @@ { private readonly HStation.Service.TransferFileUser _service = new(); #region Query /// <summary> /// è·åææ /// </summary> @@ -48,14 +50,16 @@ /// <summary> /// éè¿ Name è·å /// </summary> public async Task<TransferFileUserDto> GetByName(string input) public async Task<TransferFileUserDto> GetByName(string Name) { return await Task.Factory.StartNew(() => { var model = _service.GetByName(input); var model = _service.GetByName(Name); return model == null ? null : new TransferFileUserDto(model); }); } #endregion #region Insert @@ -65,19 +69,29 @@ public async Task<long> Insert(AddTransferFileUserInput input) { return await Task.Factory.StartNew(() => { if (_service.IsExistName(input.Name)) { throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Name:{input.Name}", "åç§°å·²åå¨"); } var model = input.Adapt<AddTransferFileUserInput, Model.TransferFileUser>(); model.SortCode = _service.GetMaxSortCode() + 1; var id = _service.Insert(model); return id; }); if (_service.IsExistName(input.Name)) { throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Name:{input.Name}", "åç§°å·²åå¨"); } var model = input.Adapt<AddTransferFileUserInput, Model.TransferFileUser>(); model.SortCode = _service.GetMaxSortCode() + 1; var id = _service.Insert(model); return id; }); } #endregion Insert public Task<bool> Inserts(List<AddTransferFileUserInput> list) { throw new NotImplementedException(); } public Task<bool> BulkInserts(List<AddTransferFileUserInput> list) { throw new NotImplementedException(); } #endregion #region Update @@ -102,6 +116,16 @@ var bol = _service.Update(rhs); return bol; }); } public Task<bool> Updates(List<UpdateTransferFileUserInput> list) { throw new NotImplementedException(); } public Task<bool> BulkUpdates(List<UpdateTransferFileUserInput> list) { throw new NotImplementedException(); } /// <summary> @@ -171,7 +195,7 @@ }); } #endregion Update #endregion #region Exist @@ -199,7 +223,7 @@ }); } #endregion Exist #endregion #region Delete @@ -219,16 +243,6 @@ }); } public Task<bool> Updates(List<UpdateTransferFileUserInput> list) { throw new NotImplementedException(); } public Task<bool> BulkUpdates(List<UpdateTransferFileUserInput> list) { throw new NotImplementedException(); } public Task<bool> DeleteByIds(List<long> Ids) { throw new NotImplementedException(); @@ -239,16 +253,7 @@ throw new NotImplementedException(); } public Task<bool> Inserts(List<AddTransferFileUserInput> list) { throw new NotImplementedException(); } public Task<bool> BulkInserts(List<AddTransferFileUserInput> list) { throw new NotImplementedException(); } #endregion Delete #endregion } } BLL/HStation.BLL.TransferFile.Core/03-localclient/02-revit/TransferRevitFile.cs
@@ -60,11 +60,19 @@ /// <summary> /// è·å模ç³å表 /// </summary> public async Task<List<TransferRevitFileDto>> GetFluzzyList(QueryTransferRevitFileFluzzyListInput input) public async Task<List<TransferRevitFileDto>> GetFluzzyList ( string FileName, string FileCode, string FileSuffix, string UploadUserName, DateTime? StartTime, DateTime? EndTime ) { return await Task.Factory.StartNew(() => { var list = _service.GetFluzzyList(input.FileName, input.FileCode, input.FileSuffix, input.UploadUserName, input.StartTime, input.EndTime); var list = _service.GetFluzzyList(FileName, FileCode, FileSuffix, UploadUserName, StartTime, EndTime); var vmList = list?.Select(x => new TransferRevitFileDto(x)).ToList(); return vmList; }); BLL/HStation.BLL.TransferFile.Core/04-bll/01-user/TransferFileUser.cs
@@ -1,5 +1,4 @@ using Yw.BLL; using Yw.Dto; namespace HStation.BLL { @@ -13,7 +12,7 @@ /// <summary> /// è·åææ /// </summary> public async Task<List<Vmo.TransferFileUserVmo>> GetAll() public async Task<List<TransferFileUserVmo>> GetAll() { var dtoList = await _cal.GetAll(); return Dto2Vmos(dtoList); @@ -22,7 +21,7 @@ /// <summary> /// éè¿ ID è·å /// </summary> public async Task<Vmo.TransferFileUserVmo> GetByID(long ID) public async Task<TransferFileUserVmo> GetByID(long ID) { var dto = await _cal.GetByID(ID); return Dto2Vmo(dto); @@ -31,7 +30,7 @@ /// <summary> /// éè¿ Ids è·å /// </summary> public async Task<List<Vmo.TransferFileUserVmo>> GetByIds(List<long> Ids) public async Task<List<TransferFileUserVmo>> GetByIds(List<long> Ids) { var dto = await _cal.GetByIds(Ids); return Dto2Vmos(dto); @@ -40,9 +39,9 @@ /// <summary> /// éè¿ Name è·å /// </summary> public async Task<Vmo.TransferFileUserVmo> GetByName(string input) public async Task<TransferFileUserVmo> GetByName(string Name) { var dto = await _cal.GetByName(input); var dto = await _cal.GetByName(Name); return Dto2Vmo(dto); } @@ -51,21 +50,21 @@ /// <summary> /// æå ¥ä¸æ¡ /// </summary> public async Task<long> Insert(Vmo.TransferFileUserVmo input) public async Task<long> Insert(TransferFileUserVmo input) { var dto = Vmo2AddDto(input); var id = await _cal.Insert(dto); return id; } #endregion Insert #endregion #region Update /// <summary> /// æ´æ°ä¸æ¡ /// </summary> public async Task<bool> Update(Vmo.TransferFileUserVmo input) public async Task<bool> Update(TransferFileUserVmo input) { var dto = Vmo2UpdateDto(input); return await _cal.Update(dto); @@ -80,50 +79,55 @@ } /// <summary> /// æ´æ°æåº /// æ¹éæ´æ°æåºç /// </summary> public async Task<bool> UpdateSorter(List<UpdateSortCodeInput> inputList) public async virtual Task<bool> UpdateSorter(List<Yw.Vmo.Sorter> Sorters) { return await _cal.UpdateSorter(inputList); var dtoList = Sorters.ToDtoList(); var bol = await _cal.UpdateSorter(dtoList); return bol; } /// <summary> /// æ¿æ´» /// </summary> public async Task<bool> Active(ActiveTransferFileUserInput input) public async Task<bool> Active(string Name) { var input = new ActiveTransferFileUserInput() { Name = Name }; return await _cal.Active(input); } /// <summary> /// 失æ /// </summary> public async Task<bool> Invalid(InvalidTransferFileUserInput input) public async Task<bool> Invalid(string Name, DateTime InvalidTime) { var input = new InvalidTransferFileUserInput() { Name = Name, InvalidTime = InvalidTime }; return await _cal.Invalid(input); } #endregion Update #endregion #region Exist /// <summary> /// 夿 Name æ¯å¦åå¨ /// </summary> public async Task<bool> IsExistName(string input) public async Task<bool> IsExistName(string Name) { return await _cal.IsExistName(input); return await _cal.IsExistName(Name); } /// <summary> /// 夿 Name æ¯å¦åå¨ ExceptID /// </summary> public async Task<bool> IsExistNameExceptID(NameExceptInput input) public async Task<bool> IsExistNameExceptID(string Name, long ExceptID) { var input = new NameExceptInput() { Name = Name, ExceptID = ExceptID }; return await _cal.IsExistNameExceptID(input); } #endregion Exist #endregion #region Delete @@ -136,5 +140,5 @@ } } #endregion Delete #endregion } BLL/HStation.BLL.TransferFile.Core/04-bll/02-revit/TransferRevitFile.cs
@@ -1,5 +1,4 @@ using HStation.Dto.TransferFile; using Yw.BLL; namespace HStation.BLL { @@ -10,10 +9,12 @@ { private readonly HStation.CAL.ITransferRevitFile _cal = CALCreateHelper.CreateCAL<HStation.CAL.ITransferRevitFile>(); #region Query /// <summary> /// è·åææ /// </summary> public async Task<List<Vmo.TransferRevitFileVmo>> GetAll() public async Task<List<TransferRevitFileVmo>> GetAll() { var dtoList = await _cal.GetAll(); return Dto2Vmos(dtoList); @@ -22,7 +23,7 @@ /// <summary> /// éè¿ ID è·å /// </summary> public async Task<Vmo.TransferRevitFileVmo> GetByID(long ID) public async Task<TransferRevitFileVmo> GetByID(long ID) { var dto = await _cal.GetByID(ID); return Dto2Vmo(dto); @@ -31,7 +32,7 @@ /// <summary> /// éè¿ Ids è·å /// </summary> public async Task<List<Vmo.TransferRevitFileVmo>> GetByIds(List<long> ids) public async Task<List<TransferRevitFileVmo>> GetByIds(List<long> ids) { var dtoList = await _cal.GetByIds(ids); return Dto2Vmos(dtoList); @@ -40,61 +41,84 @@ /// <summary> /// è·å模ç³å表 /// </summary> public async Task<List<Vmo.TransferRevitFileVmo>> GetFluzzyList(QueryTransferRevitFileFluzzyListInput input) public async Task<List<TransferRevitFileVmo>> GetFluzzyList ( string FileName, string FileCode, string FileSuffix, string UploadUserName, DateTime? StartTime, DateTime? EndTime ) { var dtoList = await _cal.GetFluzzyList(input); var dtoList = await _cal.GetFluzzyList(FileName, FileCode, FileSuffix, UploadUserName, StartTime, EndTime); return Dto2Vmos(dtoList); } /* /// <summary> /// è·å模ç³å页å表 /// </summary> public async Task<PageListOutput<Vmo.TransferRevitFileVmo>> GetFluzzyPageList(QueryTransferRevitFileFluzzyPageListInput input) { var dtoList = await _cal.GetFluzzyPageList(input); return Dto2Vmos(dtoList); }*/ #region Insert /// <summary> /// æå ¥ä¸æ¡ (åæ¶ä¸ä¼ æä»¶) /// è·å模ç³å页å表 /// </summary> public async Task<long> Insert(Vmo.TransferRevitFileVmo input) public async Task<Yw.Vmo.PageListVmo<TransferRevitFileVmo>> GetFluzzyPageList ( string FileName, string FileCode, string FileSuffix, string UpoadUserName, DateTime? StartTime, DateTime? EndTime, int PageIndex, int PageSize ) { var dto = Vmo2AddDto(input); var id = await _cal.Insert(dto); return id; var input = new QueryTransferRevitFileFluzzyPageListInput() { FileName = FileName, FileCode = FileCode, FileSuffix = FileSuffix, UploadUserName = UpoadUserName, StartTime = StartTime, EndTime = EndTime, PageIndex = PageIndex, PageSize = PageSize, }; var dto = await _cal.GetFluzzyPageList(input); return new Yw.Vmo.PageListVmo<TransferRevitFileVmo>() { Total = dto.Total, List = Dto2Vmos(dto.List) }; } #endregion Insert #endregion #region Exist /// <summary> /// 夿 FileCode æ¯å¦åå¨ /// </summary> public async Task<bool> IsExistFileCode(string input) public async Task<bool> IsExistFileCode(string FileCode) { return await _cal.IsExistFileCode(input); return await _cal.IsExistFileCode(FileCode); } /// <summary> /// 夿 FileCode æ¯å¦åå¨ ExceptID /// </summary> public async Task<bool> IsExistFileCodeExceptID(FileCodeExceptIDInput input) public async Task<bool> IsExistFileCodeExceptID(string FileCode, long ExceptID) { var input = new FileCodeExceptIDInput() { FileCode = FileCode, ExceptID = ExceptID }; return await _cal.IsExistFileCodeExceptID(input); } #endregion Exist #endregion #region å é¤ /// <summary> /// éè¿ ID å é¤ /// </summary> public async Task<bool> DeleteByID(long input) public async Task<bool> DeleteByID(long ID) { return await _cal.DeleteByID(input); return await _cal.DeleteByID(ID); } #endregion } } BLL/HStation.BLL.TransferFile.Core/04-bll/02-revit/TransferRevitFile_File.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Yw.BLL; namespace HStation.BLL { public partial class TransferRevitFile { private string _downloadUrl = $"{ConfigHelper.HttpUrl}/Core/File/DownloadSubFile@V1.0"; /// <summary> /// /// </summary> public async Task<string> Download(string StorageHouse, string StorageCode) { return await new HttpFileHelper().Download(_downloadUrl, StorageHouse, StorageCode, ConfigHelper.CALType); } } } Service/HStation.Service.TransferFile.Core/paras_hstation_transferfile_settings.json
@@ -20,7 +20,7 @@ "CAL": { "CALType": "HttpClient", //HttpClient/LocalClient "HttpClient": { "HttpUrl": "" "HttpUrl": "http://47.101.141.88:9098" }, "LocalClient": { } WinFrmUI/HStation.WinFrmUI.Auth.Core/FakesAssemblies/Yw.Untity.Core.3.0.0.0.Fakes.dllBinary files differ
WinFrmUI/HStation.WinFrmUI.Auth.Core/FakesAssemblies/Yw.Untity.Core.3.0.0.0.Fakes.fakesconfigBinary files differ
WinFrmUI/HStation.WinFrmUI.Auth.Core/FakesAssemblies/Yw.Untity.Core.3.0.0.0.Fakes.messages
@@ -1,15 +1,15 @@ D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DataTableExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DateTimeExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumerableExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.ListExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.PointExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.PointFExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.StringExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.StringListExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumUtil çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.ReflectionUtil çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DateTimeHelper çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.TransExp<TIn, TOut> çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.UserRegisterContext çæåæ ¹: ç±»å对 exported or assembly(Yw.Untity.Core.3.0.0.0.Fakes) ä¸å¯è§ã D:\WorkData\HStation\XHS\XHS.V1.0\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.UserRegisterContext çæå¡«å ç : ç±»å对 exported or assembly(Yw.Untity.Core.3.0.0.0.Fakes) ä¸å¯è§ã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DataTableExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DateTimeExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumerableExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.ListExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.PointExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.PointFExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.StringExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.StringListExtension çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.EnumUtil çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.ReflectionUtil çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.DateTimeHelper çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.TransExp<TIn, TOut> çæåæ ¹: ç±»åæ²¡æå¯¹ç¨åºéå¯è§çæé 彿°ãæé 彿°æ¬èº«æåæ°å¯è½ä¸å¯è§ãã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.UserRegisterContext çæåæ ¹: ç±»å对 exported or assembly(Yw.Untity.Core.3.0.0.0.Fakes) ä¸å¯è§ã D:\WorkData\git\HStation\XHS\WinFrmUI\HStation.WinFrmUI.Auth.Core\Fakes\Yw.Untity.Core.fakes : warning : æ æ³ä¸º Yw.Untity.UserRegisterContext çæå¡«å ç : ç±»å对 exported or assembly(Yw.Untity.Core.3.0.0.0.Fakes) ä¸å¯è§ã WinFrmUI/HStation.WinFrmUI.Auth.Core/FakesAssemblies/Yw.Untity.Core.3.0.0.0.Fakes.xml
@@ -538,6 +538,48 @@ <member name="P:Yw.Untity.Fakes.ShimGuidCreater.CreateN"> <summary>设置 GuidCreater.CreateN() ç å¡«å ç </summary> </member> <member name="T:Yw.Untity.Fakes.ShimHttpFileHelper"> <summary>Yw.Untity.HttpFileHelper çå¡«å ç ç±»å</summary> </member> <member name="M:Yw.Untity.Fakes.ShimHttpFileHelper.#ctor"> <summary>åå§åæ°çå¡«å ç å®ä¾</summary> </member> <member name="M:Yw.Untity.Fakes.ShimHttpFileHelper.#ctor(Yw.Untity.HttpFileHelper)"> <summary>åå§åç»å®å®ä¾çæ°å¡«å ç </summary> </member> <member name="T:Yw.Untity.Fakes.ShimHttpFileHelper.AllInstances"> <summary>为ææå®ä¾æåå®ä¹å¡«å ç </summary> </member> <member name="M:Yw.Untity.Fakes.ShimHttpFileHelper.BehaveAsCurrent"> <summary>为已填å çç±»åçæææ¹æ³åé âCurrentâè¡ä¸º</summary> </member> <member name="M:Yw.Untity.Fakes.ShimHttpFileHelper.BehaveAsNotImplemented"> <summary>为已填å çç±»åçæææ¹æ³åé âNotImplementedâè¡ä¸º</summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.Behavior"> <summary>为已填å çç±»åçæææ¹æ³åé è¡ä¸º</summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.Constructor"> <summary>设置 HttpFileHelper.HttpFileHelper(HttpFileHelper this) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.DownloadString"> <summary>设置 HttpFileHelper.Download(String url) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.DownloadStringString"> <summary>设置 HttpFileHelper.Download(String url, String filePath) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.DownloadUriString"> <summary>设置 HttpFileHelper.DownloadUri(String uri) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.DownloadUriStringString"> <summary>设置 HttpFileHelper.DownloadUri(String uri, String filePath) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.UploadStringStreamStringDictionaryOfStringString"> <summary>设置 HttpFileHelper.Upload(String url, Stream stream, String fileName, Dictionary`2 paras) ç å¡«å ç </summary> </member> <member name="P:Yw.Untity.Fakes.ShimHttpFileHelper.UploadStringStringDictionaryOfStringString"> <summary>设置 HttpFileHelper.Upload(String url, String filePath, Dictionary`2 paras) ç å¡«å ç </summary> </member> <member name="T:Yw.Untity.Fakes.ShimHttpRequestHelper"> <summary>Yw.Untity.HttpRequestHelper çå¡«å ç ç±»å</summary> </member> @@ -1663,6 +1705,24 @@ <member name="P:Yw.Untity.Fakes.StubGuidCreater.InstanceObserver"> <summary>è·åæè®¾ç½®å®ä¾è§å¯è ã</summary> </member> <member name="T:Yw.Untity.Fakes.StubHttpFileHelper"> <summary>Yw.Untity.HttpFileHelper çåæ ¹ç±»å</summary> </member> <member name="M:Yw.Untity.Fakes.StubHttpFileHelper.#ctor"> <summary>åå§åæ°å®ä¾</summary> </member> <member name="P:Yw.Untity.Fakes.StubHttpFileHelper.CallBase"> <summary>è·åæè®¾ç½®ä¸ä¸ªå¼ï¼è¯¥å¼æç¤ºæ¯å¦åºè°ç¨åºæ¹æ³èä¸è°ç¨åéè¡ä¸º</summary> </member> <member name="M:Yw.Untity.Fakes.StubHttpFileHelper.InitializeStub"> <summary>åå§å type StubHttpFileHelper çæ°å®ä¾</summary> </member> <member name="P:Yw.Untity.Fakes.StubHttpFileHelper.InstanceBehavior"> <summary>è·åæè®¾ç½®å®ä¾è¡ä¸ºã</summary> </member> <member name="P:Yw.Untity.Fakes.StubHttpFileHelper.InstanceObserver"> <summary>è·åæè®¾ç½®å®ä¾è§å¯è ã</summary> </member> <member name="T:Yw.Untity.Fakes.StubHttpRequestHelper"> <summary>Yw.Untity.HttpRequestHelper çåæ ¹ç±»å</summary> </member> WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/InputXhsProjectInfoWizardPage.Designer.cs
@@ -29,19 +29,24 @@ private void InitializeComponent() { components = new Container(); DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); EditorButtonImageOptions editorButtonImageOptions1 = new EditorButtonImageOptions(); ComponentResourceManager resources = new ComponentResourceManager(typeof(InputXhsProjectInfoWizardPage)); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); EditorButtonImageOptions editorButtonImageOptions2 = new EditorButtonImageOptions(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); setFlagsEditCtrl1 = new SetFlagsEditCtrl(); txtDescription = new DevExpress.XtraEditors.MemoEdit(); txtTagNme = new DevExpress.XtraEditors.TextEdit(); txtCustomer = new DevExpress.XtraEditors.TextEdit(); txtName = new DevExpress.XtraEditors.TextEdit(); btnEditSelectModelFile = new DevExpress.XtraEditors.ButtonEdit(); txtDescription = new MemoEdit(); txtTagNme = new TextEdit(); txtCustomer = new TextEdit(); txtName = new TextEdit(); btnEditSelectModelFile = new ButtonEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -130,8 +135,10 @@ btnEditSelectModelFile.Name = "btnEditSelectModelFile"; editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); editorButtonImageOptions1.SvgImageSize = new Size(15, 15); btnEditSelectModelFile.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); btnEditSelectModelFile.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; editorButtonImageOptions2.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions2.SvgImage"); editorButtonImageOptions2.SvgImageSize = new Size(15, 15); btnEditSelectModelFile.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", "Local", null, DevExpress.Utils.ToolTipAnchor.Default), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", "Http", null, DevExpress.Utils.ToolTipAnchor.Default) }); btnEditSelectModelFile.Properties.TextEditStyle = TextEditStyles.DisableTextEditor; btnEditSelectModelFile.Size = new Size(734, 23); btnEditSelectModelFile.StyleController = layoutControl1; btnEditSelectModelFile.TabIndex = 6; WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/InputXhsProjectInfoWizardPage.cs
@@ -147,15 +147,30 @@ private void btnEditSelectModelFile_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var suffix = Settings.XhsParasHelper.Xhs.File.Suffix; var dlg = new OpenFileDialog(); dlg.Filter = $"模åæä»¶(*{suffix})|*{suffix}"; dlg.FilterIndex = 1; if (dlg.ShowDialog() == DialogResult.OK) if (e.Button.Tag.ToString() == "Local") { var fileName = dlg.FileName; this.btnEditSelectModelFile.EditValue = fileName; var suffix = Settings.XhsParasHelper.Xhs.File.Suffix; var dlg = new OpenFileDialog(); dlg.Filter = $"模åæä»¶(*{suffix})|*{suffix}"; dlg.FilterIndex = 1; if (dlg.ShowDialog() == DialogResult.OK) { var fileName = dlg.FileName; this.btnEditSelectModelFile.EditValue = fileName; } } else { var dlg = new SelectXhsProjectTransferFileDlg(); dlg.SetBindingData(); dlg.ReloadDataEvent += async (rhs) => { var fileName = await BLLFactory<HStation.BLL.TransferRevitFile>.Instance.Download(rhs.StorageHouse, rhs.StorageCode); this.btnEditSelectModelFile.EditValue = fileName; }; dlg.ShowDialog(); } } } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/InputXhsProjectInfoWizardPage.resx
@@ -122,20 +122,37 @@ <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAAMDAAAC77u/ dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAJQCAAAC77u/ PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh Y2U9InByZXNlcnZlIiBpZD0iT3BlbjIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMy IDMyIj4NCiAgPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5HcmVlbntmaWxsOiMwMzlDMjM7fQoJLlll bGxvd3tmaWxsOiNGRkIxMTU7fQoJLnN0MHtvcGFjaXR5OjAuNzU7fQo8L3N0eWxlPg0KICA8ZyBjbGFz cz0ic3QwIj4NCiAgICA8cGF0aCBkPSJNMTkuMiwxMEgxMlY3YzAtMC42LTAuNC0xLTEtMUgzQzIuNCw2 LDIsNi41LDIsN3YxOGMwLDAuMiwwLDAuMywwLjEsMC40YzAsMCwwLjEtMC4xLDAuMS0wLjJsNS41LTEw ICAgQzgsMTQuNSw4LjcsMTQsOS41LDE0aDEzLjdMMTkuMiwxMHoiIGNsYXNzPSJZZWxsb3ciIC8+DQog IDwvZz4NCiAgPHBhdGggZD0iTTI5LjMsMTZIOS42TDQsMjZoMTkuOGMwLjUsMCwxLjEtMC4yLDEuMy0w LjZsNC45LTguOUMzMC4xLDE2LjIsMjkuOCwxNiwyOS4zLDE2eiIgY2xhc3M9IlllbGxvdyIgLz4NCiAg PHBhdGggZD0iTTI4LDhjMC0zLjMtMi43LTYtNi02cy02LDIuNy02LDZjMC0yLjIsMS44LTQsNC00czQs MS44LDQsNGgtNGw2LDZsNi02SDI4eiIgY2xhc3M9IkdyZWVuIiAvPg0KPC9zdmc+Cw== Y2U9InByZXNlcnZlIiBpZD0iT3BlbiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzIg MzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLlllbGxvd3tmaWxsOiNGRkIxMTU7fQoJLnN0 MHtvcGFjaXR5OjAuNzU7fQo8L3N0eWxlPg0KICA8ZyBjbGFzcz0ic3QwIj4NCiAgICA8cGF0aCBkPSJN Mi4yLDI1LjJsNS41LTEyYzAuMy0wLjcsMS0xLjIsMS44LTEuMkgyNlY5YzAtMC42LTAuNC0xLTEtMUgx MlY1YzAtMC42LTAuNC0xLTEtMUgzQzIuNCw0LDIsNC40LDIsNXYyMCAgIGMwLDAuMiwwLDAuMywwLjEs MC40QzIuMSwyNS4zLDIuMiwyNS4zLDIuMiwyNS4yeiIgY2xhc3M9IlllbGxvdyIgLz4NCiAgPC9nPg0K ICA8cGF0aCBkPSJNMzEuMywxNEg5LjZMNCwyNmgyMS44YzAuNSwwLDEuMS0wLjMsMS4zLTAuN0wzMiwx NC43QzMyLjEsMTQuMywzMS44LDE0LDMxLjMsMTR6IiBjbGFzcz0iWWVsbG93IiAvPg0KPC9zdmc+Cw== </value> </data> <data name="editorButtonImageOptions2.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v23.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjIzLjIsIFZlcnNpb249MjMuMi40 LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAKsCAAAC77u/ PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWw6c3Bh Y2U9InByZXNlcnZlIiBpZD0iTGF5ZXJfMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAg MzIgMzIiPg0KICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLkJsdWV7ZmlsbDojMTE3N0Q3O30KCS5C bGFja3tmaWxsOiM3MjcyNzI7fQoJLlllbGxvd3tmaWxsOiNGRkIxMTU7fQoJLlJlZHtmaWxsOiNEMTFD MUM7fQo8L3N0eWxlPg0KICA8ZyBpZD0iQ2xvdWR5XzFfIj4NCiAgICA8cGF0aCBkPSJNMjcsMThjLTAu NCwwLTAuOCwwLjEtMS4yLDAuMmMwLjEtMC40LDAuMi0wLjgsMC4yLTEuMmMwLTIuOC0yLjItNS01LTVj LTAuNSwwLTEuMSwwLjEtMS42LDAuMyAgIEMxOC40LDkuOCwxNS45LDgsMTMsOGMtMy45LDAtNywzLjEt Nyw3YzAsMC4zLDAsMC43LDAuMSwxYzAsMC0wLjEsMC0wLjEsMGMtMi4yLDAtNCwxLjgtNCw0YzAsMi4y LDEuOCw0LDQsNGgyMWMxLjcsMCwzLTEuMywzLTMgICBTMjguNywxOCwyNywxOHoiIGNsYXNzPSJCbHVl IiAvPg0KICA8L2c+DQo8L3N2Zz4L </value> </data> <metadata name="dxErrorProvider1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/cloud/SelectXhsProjectTransferFileDlg.Designer.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,550 @@ namespace HStation.WinFrmUI { partial class SelectXhsProjectTransferFileDlg { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { components = new Container(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); txtSuffix = new TextEdit(); btnSearch = new SimpleButton(); btnOk = new SimpleButton(); btnCancel = new SimpleButton(); txtUploadUserName = new TextEdit(); txtFileCode = new TextEdit(); txtFileName = new TextEdit(); dtEnd = new DateEdit(); dtStart = new DateEdit(); gridControl1 = new DevExpress.XtraGrid.GridControl(); selectXhsProjectTransferFileViewModelBindingSource = new BindingSource(components); gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); colFileName = new DevExpress.XtraGrid.Columns.GridColumn(); colFileCode = new DevExpress.XtraGrid.Columns.GridColumn(); colFileSize = new DevExpress.XtraGrid.Columns.GridColumn(); colFileSuffix = new DevExpress.XtraGrid.Columns.GridColumn(); colUploadTime = new DevExpress.XtraGrid.Columns.GridColumn(); colUploadUserName = new DevExpress.XtraGrid.Columns.GridColumn(); colStorageHouse = new DevExpress.XtraGrid.Columns.GridColumn(); colStorageCode = new DevExpress.XtraGrid.Columns.GridColumn(); colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); ((ISupportInitialize)txtSuffix.Properties).BeginInit(); ((ISupportInitialize)txtUploadUserName.Properties).BeginInit(); ((ISupportInitialize)txtFileCode.Properties).BeginInit(); ((ISupportInitialize)txtFileName.Properties).BeginInit(); ((ISupportInitialize)dtEnd.Properties).BeginInit(); ((ISupportInitialize)dtEnd.Properties.CalendarTimeProperties).BeginInit(); ((ISupportInitialize)dtStart.Properties).BeginInit(); ((ISupportInitialize)dtStart.Properties.CalendarTimeProperties).BeginInit(); ((ISupportInitialize)gridControl1).BeginInit(); ((ISupportInitialize)selectXhsProjectTransferFileViewModelBindingSource).BeginInit(); ((ISupportInitialize)gridView1).BeginInit(); ((ISupportInitialize)Root).BeginInit(); ((ISupportInitialize)layoutControlItem1).BeginInit(); ((ISupportInitialize)layoutControlItem8).BeginInit(); ((ISupportInitialize)emptySpaceItem1).BeginInit(); ((ISupportInitialize)layoutControlItem9).BeginInit(); ((ISupportInitialize)layoutControlGroup1).BeginInit(); ((ISupportInitialize)layoutControlItem2).BeginInit(); ((ISupportInitialize)layoutControlItem3).BeginInit(); ((ISupportInitialize)layoutControlItem4).BeginInit(); ((ISupportInitialize)layoutControlItem5).BeginInit(); ((ISupportInitialize)layoutControlItem6).BeginInit(); ((ISupportInitialize)layoutControlItem10).BeginInit(); ((ISupportInitialize)emptySpaceItem2).BeginInit(); ((ISupportInitialize)layoutControlItem7).BeginInit(); SuspendLayout(); // // layoutControl1 // layoutControl1.Controls.Add(txtSuffix); layoutControl1.Controls.Add(btnSearch); layoutControl1.Controls.Add(btnOk); layoutControl1.Controls.Add(btnCancel); layoutControl1.Controls.Add(txtUploadUserName); layoutControl1.Controls.Add(txtFileCode); layoutControl1.Controls.Add(txtFileName); layoutControl1.Controls.Add(dtEnd); layoutControl1.Controls.Add(dtStart); layoutControl1.Controls.Add(gridControl1); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1270, 311, 650, 400); layoutControl1.Root = Root; layoutControl1.Size = new Size(1205, 665); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; // // txtSuffix // txtSuffix.Location = new Point(808, 24); txtSuffix.Name = "txtSuffix"; txtSuffix.Properties.AutoHeight = false; txtSuffix.Size = new Size(82, 22); txtSuffix.StyleController = layoutControl1; txtSuffix.TabIndex = 5; // // btnSearch // btnSearch.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Question; btnSearch.Appearance.Options.UseBackColor = true; btnSearch.Location = new Point(1074, 24); btnSearch.Name = "btnSearch"; btnSearch.Size = new Size(85, 22); btnSearch.StyleController = layoutControl1; btnSearch.TabIndex = 7; btnSearch.Text = "æ¥è¯¢"; btnSearch.Click += btnSearch_Click; // // btnOk // btnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; btnOk.Appearance.Options.UseBackColor = true; btnOk.Location = new Point(997, 631); btnOk.Name = "btnOk"; btnOk.Size = new Size(96, 22); btnOk.StyleController = layoutControl1; btnOk.TabIndex = 9; btnOk.Text = "ç¡®å®"; btnOk.Click += btnOk_Click; // // btnCancel // btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; btnCancel.Appearance.Options.UseBackColor = true; btnCancel.DialogResult = DialogResult.Cancel; btnCancel.Location = new Point(1097, 631); btnCancel.Name = "btnCancel"; btnCancel.Size = new Size(96, 22); btnCancel.StyleController = layoutControl1; btnCancel.TabIndex = 10; btnCancel.Text = "åæ¶"; // // txtUploadUserName // txtUploadUserName.Location = new Point(958, 24); txtUploadUserName.Name = "txtUploadUserName"; txtUploadUserName.Properties.AutoHeight = false; txtUploadUserName.Size = new Size(112, 22); txtUploadUserName.StyleController = layoutControl1; txtUploadUserName.TabIndex = 6; // // txtFileCode // txtFileCode.Location = new Point(628, 24); txtFileCode.Name = "txtFileCode"; txtFileCode.Properties.AutoHeight = false; txtFileCode.Size = new Size(112, 22); txtFileCode.StyleController = layoutControl1; txtFileCode.TabIndex = 4; // // txtFileName // txtFileName.Location = new Point(448, 24); txtFileName.Name = "txtFileName"; txtFileName.Properties.AutoHeight = false; txtFileName.Size = new Size(112, 22); txtFileName.StyleController = layoutControl1; txtFileName.TabIndex = 3; // // dtEnd // dtEnd.EditValue = null; dtEnd.Location = new Point(268, 24); dtEnd.Name = "dtEnd"; dtEnd.Properties.AutoHeight = false; dtEnd.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); dtEnd.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); dtEnd.Size = new Size(112, 22); dtEnd.StyleController = layoutControl1; dtEnd.TabIndex = 2; // // dtStart // dtStart.EditValue = null; dtStart.Location = new Point(88, 24); dtStart.Name = "dtStart"; dtStart.Properties.AutoHeight = false; dtStart.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); dtStart.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); dtStart.Size = new Size(112, 22); dtStart.StyleController = layoutControl1; dtStart.TabIndex = 0; // // gridControl1 // gridControl1.DataSource = selectXhsProjectTransferFileViewModelBindingSource; gridControl1.Location = new Point(12, 62); gridControl1.MainView = gridView1; gridControl1.Name = "gridControl1"; gridControl1.Size = new Size(1181, 565); gridControl1.TabIndex = 8; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); // // selectXhsProjectTransferFileViewModelBindingSource // selectXhsProjectTransferFileViewModelBindingSource.DataSource = typeof(SelectXhsProjectTransferFileViewModel); // // gridView1 // gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colFileName, colFileCode, colFileSize, colFileSuffix, colUploadTime, colUploadUserName, colStorageHouse, colStorageCode, colDescription }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; // // colFileName // colFileName.FieldName = "FileName"; colFileName.MinWidth = 120; colFileName.Name = "colFileName"; colFileName.Visible = true; colFileName.VisibleIndex = 0; colFileName.Width = 120; // // colFileCode // colFileCode.FieldName = "FileCode"; colFileCode.MinWidth = 100; colFileCode.Name = "colFileCode"; colFileCode.Visible = true; colFileCode.VisibleIndex = 1; colFileCode.Width = 100; // // colFileSize // colFileSize.FieldName = "FileSize"; colFileSize.MaxWidth = 80; colFileSize.MinWidth = 80; colFileSize.Name = "colFileSize"; colFileSize.Visible = true; colFileSize.VisibleIndex = 2; colFileSize.Width = 80; // // colFileSuffix // colFileSuffix.FieldName = "FileSuffix"; colFileSuffix.MaxWidth = 60; colFileSuffix.MinWidth = 60; colFileSuffix.Name = "colFileSuffix"; colFileSuffix.Visible = true; colFileSuffix.VisibleIndex = 3; colFileSuffix.Width = 60; // // colUploadTime // colUploadTime.FieldName = "UploadTime"; colUploadTime.MaxWidth = 150; colUploadTime.MinWidth = 120; colUploadTime.Name = "colUploadTime"; colUploadTime.Visible = true; colUploadTime.VisibleIndex = 4; colUploadTime.Width = 120; // // colUploadUserName // colUploadUserName.FieldName = "UploadUserName"; colUploadUserName.MaxWidth = 100; colUploadUserName.MinWidth = 100; colUploadUserName.Name = "colUploadUserName"; colUploadUserName.Visible = true; colUploadUserName.VisibleIndex = 5; colUploadUserName.Width = 100; // // colStorageHouse // colStorageHouse.FieldName = "StorageHouse"; colStorageHouse.MinWidth = 100; colStorageHouse.Name = "colStorageHouse"; colStorageHouse.Visible = true; colStorageHouse.VisibleIndex = 6; colStorageHouse.Width = 100; // // colStorageCode // colStorageCode.FieldName = "StorageCode"; colStorageCode.MinWidth = 100; colStorageCode.Name = "colStorageCode"; colStorageCode.Visible = true; colStorageCode.VisibleIndex = 7; colStorageCode.Width = 100; // // colDescription // colDescription.FieldName = "Description"; colDescription.MinWidth = 100; colDescription.Name = "colDescription"; colDescription.Visible = true; colDescription.VisibleIndex = 8; colDescription.Width = 100; // // Root // Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem8, emptySpaceItem1, layoutControlItem9, layoutControlGroup1 }); Root.Name = "Root"; Root.Size = new Size(1205, 665); Root.TextVisible = false; // // layoutControlItem1 // layoutControlItem1.Control = gridControl1; layoutControlItem1.Location = new Point(0, 50); layoutControlItem1.Name = "layoutControlItem1"; layoutControlItem1.Size = new Size(1185, 569); layoutControlItem1.TextSize = new Size(0, 0); layoutControlItem1.TextVisible = false; // // layoutControlItem8 // layoutControlItem8.Control = btnCancel; layoutControlItem8.Location = new Point(1085, 619); layoutControlItem8.MaxSize = new Size(100, 26); layoutControlItem8.MinSize = new Size(100, 26); layoutControlItem8.Name = "layoutControlItem8"; layoutControlItem8.Size = new Size(100, 26); layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem8.TextSize = new Size(0, 0); layoutControlItem8.TextVisible = false; // // emptySpaceItem1 // emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(0, 619); emptySpaceItem1.Name = "emptySpaceItem1"; emptySpaceItem1.Size = new Size(985, 26); emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem9 // layoutControlItem9.Control = btnOk; layoutControlItem9.Location = new Point(985, 619); layoutControlItem9.MaxSize = new Size(100, 26); layoutControlItem9.MinSize = new Size(100, 26); layoutControlItem9.Name = "layoutControlItem9"; layoutControlItem9.Size = new Size(100, 26); layoutControlItem9.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem9.TextSize = new Size(0, 0); layoutControlItem9.TextVisible = false; // // layoutControlGroup1 // layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem3, layoutControlItem4, layoutControlItem5, layoutControlItem6, layoutControlItem10, emptySpaceItem2, layoutControlItem7 }); layoutControlGroup1.Location = new Point(0, 0); layoutControlGroup1.Name = "layoutControlGroup1"; layoutControlGroup1.Size = new Size(1185, 50); layoutControlGroup1.Text = "æ¥è¯¢æ¡ä»¶"; layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // layoutControlItem2.Control = dtStart; layoutControlItem2.Location = new Point(0, 0); layoutControlItem2.MaxSize = new Size(180, 0); layoutControlItem2.MinSize = new Size(180, 24); layoutControlItem2.Name = "layoutControlItem2"; layoutControlItem2.Size = new Size(180, 26); layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem2.Text = "å¼å§æ¥æ:"; layoutControlItem2.TextSize = new Size(52, 14); // // layoutControlItem3 // layoutControlItem3.Control = dtEnd; layoutControlItem3.Location = new Point(180, 0); layoutControlItem3.MaxSize = new Size(180, 0); layoutControlItem3.MinSize = new Size(180, 24); layoutControlItem3.Name = "layoutControlItem3"; layoutControlItem3.Size = new Size(180, 26); layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem3.Text = "ç»ææ¥æ:"; layoutControlItem3.TextSize = new Size(52, 14); // // layoutControlItem4 // layoutControlItem4.Control = txtFileName; layoutControlItem4.Location = new Point(360, 0); layoutControlItem4.MaxSize = new Size(180, 0); layoutControlItem4.MinSize = new Size(180, 24); layoutControlItem4.Name = "layoutControlItem4"; layoutControlItem4.Size = new Size(180, 26); layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem4.Text = "æä»¶åç§°:"; layoutControlItem4.TextSize = new Size(52, 14); // // layoutControlItem5 // layoutControlItem5.Control = txtFileCode; layoutControlItem5.Location = new Point(540, 0); layoutControlItem5.MaxSize = new Size(180, 0); layoutControlItem5.MinSize = new Size(180, 24); layoutControlItem5.Name = "layoutControlItem5"; layoutControlItem5.Size = new Size(180, 26); layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem5.Text = "æä»¶ç¼ç :"; layoutControlItem5.TextSize = new Size(52, 14); // // layoutControlItem6 // layoutControlItem6.Control = txtUploadUserName; layoutControlItem6.Location = new Point(870, 0); layoutControlItem6.MaxSize = new Size(180, 0); layoutControlItem6.MinSize = new Size(180, 24); layoutControlItem6.Name = "layoutControlItem6"; layoutControlItem6.Size = new Size(180, 26); layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem6.Text = "ä¸ä¼ ç¨æ·:"; layoutControlItem6.TextSize = new Size(52, 14); // // layoutControlItem10 // layoutControlItem10.Control = btnSearch; layoutControlItem10.Location = new Point(1050, 0); layoutControlItem10.MaxSize = new Size(89, 26); layoutControlItem10.MinSize = new Size(89, 26); layoutControlItem10.Name = "layoutControlItem10"; layoutControlItem10.Size = new Size(89, 26); layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem10.TextSize = new Size(0, 0); layoutControlItem10.TextVisible = false; // // emptySpaceItem2 // emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(1139, 0); emptySpaceItem2.MinSize = new Size(1, 1); emptySpaceItem2.Name = "emptySpaceItem2"; emptySpaceItem2.Size = new Size(22, 26); emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; emptySpaceItem2.TextSize = new Size(0, 0); // // layoutControlItem7 // layoutControlItem7.Control = txtSuffix; layoutControlItem7.Location = new Point(720, 0); layoutControlItem7.MaxSize = new Size(150, 0); layoutControlItem7.MinSize = new Size(150, 24); layoutControlItem7.Name = "layoutControlItem7"; layoutControlItem7.Size = new Size(150, 26); layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; layoutControlItem7.Text = "æä»¶åç¼:"; layoutControlItem7.TextSize = new Size(52, 14); // // SelectXhsProjectTransferFileDlg // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1205, 665); Controls.Add(layoutControl1); Name = "SelectXhsProjectTransferFileDlg"; StartPosition = FormStartPosition.CenterParent; Text = "éæ©äºæä»¶"; ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); ((ISupportInitialize)txtSuffix.Properties).EndInit(); ((ISupportInitialize)txtUploadUserName.Properties).EndInit(); ((ISupportInitialize)txtFileCode.Properties).EndInit(); ((ISupportInitialize)txtFileName.Properties).EndInit(); ((ISupportInitialize)dtEnd.Properties.CalendarTimeProperties).EndInit(); ((ISupportInitialize)dtEnd.Properties).EndInit(); ((ISupportInitialize)dtStart.Properties.CalendarTimeProperties).EndInit(); ((ISupportInitialize)dtStart.Properties).EndInit(); ((ISupportInitialize)gridControl1).EndInit(); ((ISupportInitialize)selectXhsProjectTransferFileViewModelBindingSource).EndInit(); ((ISupportInitialize)gridView1).EndInit(); ((ISupportInitialize)Root).EndInit(); ((ISupportInitialize)layoutControlItem1).EndInit(); ((ISupportInitialize)layoutControlItem8).EndInit(); ((ISupportInitialize)emptySpaceItem1).EndInit(); ((ISupportInitialize)layoutControlItem9).EndInit(); ((ISupportInitialize)layoutControlGroup1).EndInit(); ((ISupportInitialize)layoutControlItem2).EndInit(); ((ISupportInitialize)layoutControlItem3).EndInit(); ((ISupportInitialize)layoutControlItem4).EndInit(); ((ISupportInitialize)layoutControlItem5).EndInit(); ((ISupportInitialize)layoutControlItem6).EndInit(); ((ISupportInitialize)layoutControlItem10).EndInit(); ((ISupportInitialize)emptySpaceItem2).EndInit(); ((ISupportInitialize)layoutControlItem7).EndInit(); ResumeLayout(false); } #endregion private DevExpress.XtraLayout.LayoutControl layoutControl1; private DateEdit dtEnd; private DateEdit dtStart; private DevExpress.XtraGrid.GridControl gridControl1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private SimpleButton btnSearch; private SimpleButton btnOk; private SimpleButton btnCancel; private TextEdit txtUploadUserName; private TextEdit txtFileCode; private TextEdit txtFileName; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; private BindingSource selectXhsProjectTransferFileViewModelBindingSource; private DevExpress.XtraGrid.Columns.GridColumn colFileName; private DevExpress.XtraGrid.Columns.GridColumn colFileCode; private DevExpress.XtraGrid.Columns.GridColumn colFileSize; private DevExpress.XtraGrid.Columns.GridColumn colFileSuffix; private DevExpress.XtraGrid.Columns.GridColumn colUploadTime; private DevExpress.XtraGrid.Columns.GridColumn colUploadUserName; private DevExpress.XtraGrid.Columns.GridColumn colStorageHouse; private DevExpress.XtraGrid.Columns.GridColumn colStorageCode; private DevExpress.XtraGrid.Columns.GridColumn colDescription; private TextEdit txtSuffix; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/cloud/SelectXhsProjectTransferFileDlg.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,70 @@ using DevExpress.XtraEditors; 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 HStation.WinFrmUI { public partial class SelectXhsProjectTransferFileDlg : DevExpress.XtraEditors.XtraForm { public SelectXhsProjectTransferFileDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); this.gridView1.SetNormalView(); this.dtStart.SetOnlyShowDate(); this.dtEnd.SetOnlyShowDate(); } public event Action<TransferRevitFileVmo> ReloadDataEvent; private List<SelectXhsProjectTransferFileViewModel> _allBindingList = null; public void SetBindingData() { this.dtStart.DateTime = DateTime.Now.AddDays(-10); this.dtEnd.DateTime = DateTime.Now; Search(); } //æ¥è¯¢ private async void Search() { var fileName = this.txtFileName.Text.Trim(); var fileCode = this.txtFileCode.Text.Trim(); var fileSuffix = this.txtSuffix.Text.Trim(); var uploadUserName = this.txtUploadUserName.Text.Trim(); var startTime = this.dtStart.DateTime.Date; var endTime = this.dtEnd.DateTime.Date.AddDays(1); var list = await BLLFactory<HStation.BLL.TransferRevitFile>.Instance.GetFluzzyList(fileName, fileCode, fileSuffix, uploadUserName, startTime, endTime); _allBindingList = new List<SelectXhsProjectTransferFileViewModel>(); list?.ForEach(x => _allBindingList.Add(new SelectXhsProjectTransferFileViewModel(x))); this.selectXhsProjectTransferFileViewModelBindingSource.DataSource = _allBindingList; this.selectXhsProjectTransferFileViewModelBindingSource.ResetBindings(false); } private void btnSearch_Click(object sender, EventArgs e) { Search(); } private void btnOk_Click(object sender, EventArgs e) { var row = this.gridView1.GetFocusedRow() as SelectXhsProjectTransferFileViewModel; if (row == null) { return; } this.ReloadDataEvent?.Invoke(row.Vmo); this.DialogResult = DialogResult.OK; this.Close(); } } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/cloud/SelectXhsProjectTransferFileDlg.resx
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,123 @@ <?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <metadata name="selectXhsProjectTransferFileViewModelBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> </root> WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/01-info/cloud/SelectXhsProjectTransferFileViewModel.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,102 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HStation.WinFrmUI { /// <summary> /// /// </summary> public class SelectXhsProjectTransferFileViewModel { /// <summary> /// /// </summary> public SelectXhsProjectTransferFileViewModel() { } /// <summary> /// /// </summary> public SelectXhsProjectTransferFileViewModel(HStation.Vmo.TransferRevitFileVmo rhs) { this.ID = rhs.ID; this.FileName = rhs.FileName; this.FileCode = rhs.FileCode; this.FileSize = Math.Round(rhs.FileSize / 1024f / 1024f, 1).ToString() + "Mb"; this.FileSuffix = rhs.FileSuffix; this.UploadTime = rhs.UploadTime.ToStandardString(); this.UploadUserName = rhs.UploadUserName; this.StorageHouse = rhs.StorageHouse; this.StorageCode = rhs.StorageCode; this.Description = rhs.Description; this.Vmo = rhs; } /// <summary> /// ID /// </summary> [DisplayName("ID")] public long ID { get; set; } /// <summary> /// æä»¶åç§° /// </summary> [DisplayName("æä»¶åç§°")] public string FileName { get; set; } /// <summary> /// æä»¶ç¼ç /// </summary> [DisplayName("æä»¶ç¼ç ")] public string FileCode { get; set; } /// <summary> /// æä»¶å¤§å° /// </summary> [DisplayName("æä»¶å¤§å°")] public string FileSize { get; set; } /// <summary> /// æä»¶åç¼ /// </summary> [DisplayName("æä»¶åç¼")] public string FileSuffix { get; set; } /// <summary> /// ä¸ä¼ æ¶é´ /// </summary> [DisplayName("ä¸ä¼ æ¶é´")] public string UploadTime { get; set; } /// <summary> /// ä¸ä¼ ç¨æ· /// </summary> [DisplayName("ä¸ä¼ ç¨æ·")] public string UploadUserName { get; set; } /// <summary> /// åå¨ä»åº /// </summary> [DisplayName("åå¨ä»åº")] public string StorageHouse { get; set; } /// <summary> /// åå¨ç¼ç /// </summary> [DisplayName("åå¨ç¼ç ")] public string StorageCode { get; set; } /// <summary> /// 说æ /// </summary> [DisplayName("说æ")] public string Description { get; set; } /// <summary> /// /// </summary> public HStation.Vmo.TransferRevitFileVmo Vmo { get; set; } } } WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj
@@ -90,6 +90,7 @@ </ItemGroup> <ItemGroup> <ProjectReference Include="..\..\BLL\HStation.BLL.TransferFile.Core\HStation.BLL.TransferFile.Core.csproj" /> <ProjectReference Include="..\..\BLL\HStation.BLL.Xhs.Core\HStation.BLL.Xhs.Core.csproj" /> <ProjectReference Include="..\..\Hydro\HStation.Hydro.Core\HStation.Hydro.Core.csproj" /> <ProjectReference Include="..\HStation.WinFrmUI.Assets.Core\HStation.WinFrmUI.Assets.Core.csproj" /> WinFrmUI/HStation.WinFrmUI.Xhs.Core/HStation.WinFrmUI.Xhs.Core.csproj.user
@@ -19,6 +19,9 @@ <Compile Update="02-project\01-import\01-info\InputXhsProjectInfoWizardPage.cs"> <SubType>UserControl</SubType> </Compile> <Compile Update="02-project\01-import\01-info\cloud\SelectXhsProjectTransferFileDlg.cs"> <SubType>Form</SubType> </Compile> <Compile Update="02-project\01-import\02-map\SetXhsProjectMapLocationWizardPage.cs"> <SubType>UserControl</SubType> </Compile> WinFrmUI/HStation.WinFrmUI.Xhs.Core/Properties/DataSources/HStation.WinFrmUI.SelectXhsProjectTransferFileViewModel.datasource
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <!-- This file is automatically generated by Visual Studio. It is used to store generic object data source configuration information. Renaming the file extension or editing the content of this file may cause the file to be unrecognizable by the program. --> <GenericObjectDataSource DisplayName="SelectXhsProjectTransferFileViewModel" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <TypeInfo>HStation.WinFrmUI.SelectXhsProjectTransferFileViewModel, HStation.WinFrmUI.Xhs.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo> </GenericObjectDataSource>