搬运代码

main
孙建超 1 month ago
parent c1ff81e341
commit c3e33274b9

13
.gitattributes vendored

@ -1,4 +1,15 @@
*.dll filter=lfs diff=lfs merge=lfs -text
*.lib filter=lfs diff=lfs merge=lfs -text
*.exe filter=lfs diff=lfs merge=lfs -text
*.pdb filter=lfs diff=lfs merge=lfs -text
*.ipdb filter=lfs diff=lfs merge=lfs -text
*.nupkg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.kev filter=lfs diff=lfs merge=lfs -text
*.dfd filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.7z filter=lfs diff=lfs merge=lfs -text
*.dfg filter=lfs diff=lfs merge=lfs -text
*.xyz filter=lfs diff=lfs merge=lfs -text
*.grd filter=lfs diff=lfs merge=lfs -text
*.7z filter=lfs diff=lfs merge=lfs -text

7
.gitignore vendored

@ -5,6 +5,8 @@
# --- 1. 核心构建中间目录 (完全忽略) ---
**/[Oo]bj/
**/[Oo]bj-*/
[Bb]in/**/*.xml
[Oo]bj/**/*.xml
# --- 2. Visual Studio 用户特定文件 ---
.vs/
@ -14,6 +16,8 @@
*.userosscache
*.sln.docstates
*.DotSettings.user
MSBUILD_Logs/
**/MSBUILD_Logs/
# --- 3. 精准忽略Bin 目录下的“建筑废料” ---
# 这些是编译/链接时的临时产物,不应提交
@ -33,6 +37,9 @@
*.CopyComplete
*.log
*.cache
*.recipe
*.zip
*.7z
# --- 4. 调试符号说明 ---
# 如果你们需要保留调试符号(用于崩溃分析),请注释掉下面这一行

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "dir3rd"]
path = dir3rd
url = http://119.45.191.24:3000/sunjianchao/dir3rd.git

@ -0,0 +1,140 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using AI.Models.Form;
namespace AI.Models.SpecialMessages
{
/// <summary>
/// 井点导入卡片的阶段
/// </summary>
public enum WellPointLoadPhase
{
SelectFile = 0,
FileLoaded = 1,
Completed = 2,
}
/// <summary>
/// 井点数据导入综合卡片:选择文件 → 数据预览 → 列头匹配(井号/X/Y/Z
/// </summary>
public class WellPointLoadCardMessage : ISpecialMessage, INotifyPropertyChanged
{
private WellPointLoadPhase _phase = WellPointLoadPhase.SelectFile;
private string _filePath = string.Empty;
private bool _isLoading;
private string _statusMessage = string.Empty;
private TableDataMessage? _tablePreview;
private string _matchButtonLabel = "确认匹配";
public string Id { get; set; } = Guid.NewGuid().ToString();
public string TypeName => "WellPointLoadCard";
public bool IsLive => false;
public WellPointLoadPhase Phase
{
get => _phase;
set
{
if (SetProperty(ref _phase, value))
{
OnPropertyChanged(nameof(IsFileInputEnabled));
OnPropertyChanged(nameof(ShowLoadButtons));
OnPropertyChanged(nameof(HasSubmittedFile));
OnPropertyChanged(nameof(ShowPreviewSection));
OnPropertyChanged(nameof(ShowMatchSection));
OnPropertyChanged(nameof(ShowMatchButton));
}
}
}
public bool IsLoading
{
get => _isLoading;
set
{
if (SetProperty(ref _isLoading, value))
{
OnPropertyChanged(nameof(ShowLoadButtons));
OnPropertyChanged(nameof(IsFileInputEnabled));
}
}
}
public string StatusMessage
{
get => _statusMessage;
set
{
SetProperty(ref _statusMessage, value ?? string.Empty);
OnPropertyChanged(nameof(HasStatusMessage));
}
}
public bool HasStatusMessage => !string.IsNullOrEmpty(_statusMessage);
public string FilePath
{
get => _filePath;
set => SetProperty(ref _filePath, value ?? string.Empty);
}
public bool IsFileInputEnabled => Phase == WellPointLoadPhase.SelectFile && !IsLoading;
public bool ShowLoadButtons => Phase == WellPointLoadPhase.SelectFile && !IsLoading;
public bool ShowLoadingHint => IsLoading;
public bool HasSubmittedFile => Phase != WellPointLoadPhase.SelectFile;
public TableDataMessage? TablePreview
{
get => _tablePreview;
set
{
if (SetProperty(ref _tablePreview, value))
{
OnPropertyChanged(nameof(ShowPreviewSection));
}
}
}
public bool ShowPreviewSection => _tablePreview != null && Phase != WellPointLoadPhase.SelectFile;
public ObservableCollection<FormFieldEntry> ColumnMatchFields { get; } = new();
public string MatchButtonLabel
{
get => _matchButtonLabel;
set => SetProperty(ref _matchButtonLabel, value);
}
public bool ShowMatchSection => Phase == WellPointLoadPhase.FileLoaded;
public bool ShowMatchButton => Phase == WellPointLoadPhase.FileLoaded;
public event PropertyChangedEventHandler? PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
protected bool SetProperty<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
{
if (EqualityComparer<T>.Default.Equals(field, value))
{
return false;
}
field = value;
OnPropertyChanged(propertyName);
return true;
}
}
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

@ -0,0 +1,5 @@
{
"ModelId": "deepseek-v3.2",
"ApiKey": "your-api-key-here",
"Endpoint": "https://dashscope.aliyuncs.com/compatible-mode/v1"
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

@ -0,0 +1,5 @@
{
"ModelId": "deepseek-v3.2",
"ApiKey": "your-api-key-here",
"Endpoint": "https://dashscope.aliyuncs.com/compatible-mode/v1"
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save