| | |
| | | 锘縰sing System; |
| | | 锘縰sing DataLoader.Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Collections.ObjectModel; |
| | | using System.Linq; |
| | |
| | | { |
| | | public class Importor |
| | | { |
| | | private static readonly string insertMeta = "insert into lf.sys_meta(name, dirid, depid, verid, type, sizes, cs, scale, resolution, gather, batch, descr, create_user) values @name, @dirid, @depid, @verid, @type, @sizes, @cs, @scale, @resolution, @gather, @batch, @descr, @create_user)"; |
| | | |
| | | private static readonly string insertMetaFile = "insert into lf.sys_meta_file(name, metaid, fileid, guid, path, sizes, create_user) values (@name, @metaid, @fileid, @guid, @path, @sizes, @create_user)"; |
| | | |
| | | public static void Import(ObservableCollection<ViewData> viewDatas, string source, string target) |
| | | { |
| | | |
| | |
| | | <SubType>Code</SubType> |
| | | </Compile> |
| | | <Compile Include="CS\Importor.cs" /> |
| | | <Compile Include="CS\Main.cs" /> |
| | | <Compile Include="Model\Main.cs" /> |
| | | <Compile Include="CS\ModelHandler.cs" /> |
| | | <Compile Include="CS\NtstWeb.cs" /> |
| | | <Compile Include="Model\NtstWeb.cs" /> |
| | | <Compile Include="CS\PostgreHelper.cs" /> |
| | | <Compile Include="CS\ViewData.cs" /> |
| | | <Compile Include="Model\SysMetaFile.cs" /> |
| | | <Compile Include="Model\ViewData.cs" /> |
| | | <Compile Include="LoginWin.xaml.cs"> |
| | | <DependentUpon>LoginWin.xaml</DependentUpon> |
| | | </Compile> |
| | |
| | | </Compile> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Compile Include="Model\SysMeta.cs" /> |
| | | <Compile Include="Properties\AssemblyInfo.cs"> |
| | | <SubType>Code</SubType> |
| | | </Compile> |
| | |
| | | 锘縰sing CefSharp; |
| | | using DataLoader.CS; |
| | | using DataLoader.Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | 锘縰sing DataLoader.CS; |
| | | using DataLoader.Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Collections.ObjectModel; |
文件名从 DataLoader/CS/Main.cs 修改 |
| | |
| | | using System.Threading.Tasks; |
| | | using System.Windows; |
| | | |
| | | namespace DataLoader.CS |
| | | namespace DataLoader.Model |
| | | { |
| | | public class Main |
| | | { |
文件名从 DataLoader/CS/NtstWeb.cs 修改 |
| | |
| | | using System.Threading.Tasks; |
| | | using System.Windows; |
| | | |
| | | namespace DataLoader.CS |
| | | namespace DataLoader.Model |
| | | { |
| | | public class NtstWeb |
| | | { |
对比新文件 |
| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Runtime.InteropServices.ComTypes; |
| | | using System.Security.Cryptography; |
| | | using System.Security.Policy; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Mono.Security.X509.X520; |
| | | using System.Windows.Controls; |
| | | |
| | | namespace DataLoader.Model |
| | | { |
| | | public class SysMeta |
| | | { |
| | | public int id { set; get; } |
| | | |
| | | public string name { set; get; } |
| | | |
| | | public int dirid { set; get; } |
| | | |
| | | public int depid { set; get; } |
| | | |
| | | public int verid { set; get; } |
| | | |
| | | public string type { set; get; } |
| | | |
| | | public double sizes { set; get; } |
| | | |
| | | public string cs { set; get; } |
| | | |
| | | public string scale { set; get; } |
| | | |
| | | public string resolution { set; get; } |
| | | |
| | | public DateTime gather { set; get; } |
| | | |
| | | public string batch { set; get; } |
| | | |
| | | public string descr { set; get; } |
| | | |
| | | public int create_user { set; get; } |
| | | |
| | | public DateTime create_time { set; get; } |
| | | |
| | | public int update_user { set; get; } |
| | | |
| | | public DateTime update_time { set; get; } |
| | | |
| | | public string geom { set; get; } |
| | | |
| | | public string tab { set; get; } |
| | | |
| | | public int rows { set; get; } |
| | | |
| | | public SysMeta() { } |
| | | } |
| | | } |
对比新文件 |
| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Runtime.InteropServices.ComTypes; |
| | | using System.Security.Policy; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using static Mono.Security.X509.X520; |
| | | using System.Windows.Controls; |
| | | |
| | | namespace DataLoader.Model |
| | | { |
| | | public class SysMetaFile |
| | | { |
| | | public int id { get; set; } |
| | | |
| | | public string name { get; set; } |
| | | |
| | | public int metaid { get; set; } |
| | | |
| | | public int fileid { get; set; } |
| | | |
| | | public string guid { get; set; } |
| | | |
| | | public string path { get; set; } |
| | | |
| | | public double sizes { get; set; } |
| | | |
| | | public int create_user { get; set; } |
| | | |
| | | public DateTime create_time { get; set; } |
| | | |
| | | public int update_user { get; set; } |
| | | |
| | | public DateTime update_time { get; set; } |
| | | |
| | | public SysMetaFile() { } |
| | | } |
| | | } |
文件名从 DataLoader/CS/ViewData.cs 修改 |
| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace DataLoader.CS |
| | | namespace DataLoader.Model |
| | | { |
| | | public class ViewData : INotifyPropertyChanged |
| | | { |