init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.Location", "Lskj.Location\Lskj.Location.csproj", "{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1ED3D9D0-ABA9-46D1-9EC1-DF94909C2562}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.Location</RootNamespace>
<AssemblyName>定位平台</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>dw.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="CommonLib">
<HintPath>E:\工作项目\朗速源代码(CS)\引用DLL\CommonLib.dll</HintPath>
</Reference>
<Reference Include="ControlLib">
<HintPath>E:\工作项目\朗速源代码(CS)\引用DLL\ControlLib.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Utils.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraEditors.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>E:\工作项目\朗速源代码(CS)\publish\DevExpress.XtraLayout.v13.1.dll</HintPath>
</Reference>
<Reference Include="Dxper.LocalizationCHS.Win.v13.1.5">
<HintPath>E:\工作项目\朗速源代码(CS)\引用DLL\Dxper.LocalizationCHS.Win.v13.1.5.dll</HintPath>
</Reference>
<Reference Include="Lskj.PubJPush">
<HintPath>E:\工作项目\朗速源代码(CS)\引用DLL\Lskj.PubJPush.dll</HintPath>
</Reference>
<Reference Include="Lskj.PubUtils, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>E:\工作项目\朗速源代码(CS)\引用DLL\Lskj.PubUtils.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmMain.Designer.cs">
<DependentUpon>frmMain.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmMain.resx">
<DependentUpon>frmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="dw.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lskj.Location
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.Location")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Lskj.Location")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("86f69a31-4626-40e8-9469-b390d019dd86")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.18444
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Location.Properties
{
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的、缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.Location.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 为所有资源查找重写当前线程的 CurrentUICulture 属性,
/// 方法是使用此强类型资源类。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
@@ -0,0 +1,117 @@
<?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.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: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" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.Location.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
@@ -0,0 +1,2 @@
DevExpress.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66
DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+429
View File
@@ -0,0 +1,429 @@
namespace Lskj.Location
{
partial class frmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
this.panel2 = new System.Windows.Forms.Panel();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.panel1 = new System.Windows.Forms.Panel();
this.gridMain = new DevExpress.XtraGrid.GridControl();
this.cmSelect = new System.Windows.Forms.ContextMenuStrip(this.components);
this.tsmiAllSelect = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiReSelect = new System.Windows.Forms.ToolStripMenuItem();
this.tsmiUnSelect = new System.Windows.Forms.ToolStripMenuItem();
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit();
this.EmployeeID = new DevExpress.XtraGrid.Columns.GridColumn();
this.plTop = new System.Windows.Forms.Panel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.dateTimePicker2 = new System.Windows.Forms.DateTimePicker();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.btnActivity = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.btnLocation = new System.Windows.Forms.Button();
this.plMain = new System.Windows.Forms.Panel();
this.wbLocation = new System.Windows.Forms.WebBrowser();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridMain)).BeginInit();
this.cmSelect.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit();
this.plTop.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.plMain.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.Controls.Add(this.splitContainer1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(988, 638);
this.panel2.TabIndex = 1;
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.panel1);
this.splitContainer1.Panel1.Controls.Add(this.plTop);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.plMain);
this.splitContainer1.Size = new System.Drawing.Size(988, 638);
this.splitContainer1.SplitterDistance = 283;
this.splitContainer1.TabIndex = 1;
//
// panel1
//
this.panel1.Controls.Add(this.gridMain);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 156);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(283, 482);
this.panel1.TabIndex = 7;
//
// gridMain
//
this.gridMain.ContextMenuStrip = this.cmSelect;
this.gridMain.Dock = System.Windows.Forms.DockStyle.Fill;
gridLevelNode1.RelationName = "Level1";
this.gridMain.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] {
gridLevelNode1});
this.gridMain.Location = new System.Drawing.Point(0, 0);
this.gridMain.MainView = this.gridView1;
this.gridMain.Name = "gridMain";
this.gridMain.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
this.repositoryItemCheckEdit1});
this.gridMain.Size = new System.Drawing.Size(283, 482);
this.gridMain.TabIndex = 5;
this.gridMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gridView1});
//
// cmSelect
//
this.cmSelect.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.tsmiAllSelect,
this.tsmiReSelect,
this.tsmiUnSelect});
this.cmSelect.Name = "cmSelect";
this.cmSelect.Size = new System.Drawing.Size(99, 70);
//
// tsmiAllSelect
//
this.tsmiAllSelect.Name = "tsmiAllSelect";
this.tsmiAllSelect.Size = new System.Drawing.Size(98, 22);
this.tsmiAllSelect.Text = "全选";
this.tsmiAllSelect.Click += new System.EventHandler(this.tsmiAllSelect_Click);
//
// tsmiReSelect
//
this.tsmiReSelect.Name = "tsmiReSelect";
this.tsmiReSelect.Size = new System.Drawing.Size(98, 22);
this.tsmiReSelect.Text = "反选";
this.tsmiReSelect.Click += new System.EventHandler(this.tsmiReSelect_Click);
//
// tsmiUnSelect
//
this.tsmiUnSelect.Name = "tsmiUnSelect";
this.tsmiUnSelect.Size = new System.Drawing.Size(98, 22);
this.tsmiUnSelect.Text = "取消";
this.tsmiUnSelect.Click += new System.EventHandler(this.tsmiUnSelect_Click);
//
// gridView1
//
this.gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat;
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gridColumn1,
this.gridColumn2,
this.gridColumn3,
this.gridColumn4,
this.EmployeeID});
this.gridView1.GridControl = this.gridMain;
this.gridView1.Name = "gridView1";
this.gridView1.OptionsSelection.MultiSelect = true;
this.gridView1.OptionsView.ColumnAutoWidth = false;
this.gridView1.OptionsView.ShowGroupPanel = false;
//
// gridColumn1
//
this.gridColumn1.Caption = "员工编号";
this.gridColumn1.FieldName = "LoginAccount";
this.gridColumn1.Name = "gridColumn1";
this.gridColumn1.OptionsColumn.AllowEdit = false;
this.gridColumn1.Visible = true;
this.gridColumn1.VisibleIndex = 1;
this.gridColumn1.Width = 60;
//
// gridColumn2
//
this.gridColumn2.Caption = "员工名称";
this.gridColumn2.FieldName = "EmployeeName";
this.gridColumn2.Name = "gridColumn2";
this.gridColumn2.OptionsColumn.AllowEdit = false;
this.gridColumn2.Visible = true;
this.gridColumn2.VisibleIndex = 2;
this.gridColumn2.Width = 80;
//
// gridColumn3
//
this.gridColumn3.Caption = "联系电话";
this.gridColumn3.FieldName = "PrivatePhone";
this.gridColumn3.Name = "gridColumn3";
this.gridColumn3.OptionsColumn.AllowEdit = false;
this.gridColumn3.Visible = true;
this.gridColumn3.VisibleIndex = 3;
this.gridColumn3.Width = 100;
//
// gridColumn4
//
this.gridColumn4.Caption = "选";
this.gridColumn4.ColumnEdit = this.repositoryItemCheckEdit1;
this.gridColumn4.FieldName = "isCheck";
this.gridColumn4.Name = "gridColumn4";
this.gridColumn4.Visible = true;
this.gridColumn4.VisibleIndex = 0;
this.gridColumn4.Width = 24;
//
// repositoryItemCheckEdit1
//
this.repositoryItemCheckEdit1.AutoHeight = false;
this.repositoryItemCheckEdit1.Caption = "Check";
this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1";
//
// EmployeeID
//
this.EmployeeID.Name = "EmployeeID";
//
// plTop
//
this.plTop.Controls.Add(this.groupBox2);
this.plTop.Controls.Add(this.groupBox1);
this.plTop.Dock = System.Windows.Forms.DockStyle.Top;
this.plTop.Location = new System.Drawing.Point(0, 0);
this.plTop.Name = "plTop";
this.plTop.Size = new System.Drawing.Size(283, 156);
this.plTop.TabIndex = 6;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.dateTimePicker2);
this.groupBox2.Controls.Add(this.dateTimePicker1);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Controls.Add(this.btnActivity);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(0, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(283, 104);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "轨迹时间段设置";
//
// dateTimePicker2
//
this.dateTimePicker2.Location = new System.Drawing.Point(68, 45);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(209, 21);
this.dateTimePicker2.TabIndex = 5;
//
// dateTimePicker1
//
this.dateTimePicker1.Location = new System.Drawing.Point(68, 20);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(209, 21);
this.dateTimePicker1.TabIndex = 4;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(9, 49);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 3;
this.label4.Text = "结束时间";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(9, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 2;
this.label3.Text = "开始时间";
//
// btnActivity
//
this.btnActivity.Location = new System.Drawing.Point(205, 68);
this.btnActivity.Name = "btnActivity";
this.btnActivity.Size = new System.Drawing.Size(75, 32);
this.btnActivity.TabIndex = 1;
this.btnActivity.Text = "活动轨迹";
this.btnActivity.UseVisualStyleBackColor = true;
this.btnActivity.Click += new System.EventHandler(this.btnActivity_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.btnLocation);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.groupBox1.Location = new System.Drawing.Point(0, 104);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(283, 52);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "位置设置";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(131, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(65, 12);
this.label2.TabIndex = 3;
this.label2.Text = "分钟的位置";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(42, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 2;
this.label1.Text = "最近";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(77, 21);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(48, 20);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "10";
//
// btnLocation
//
this.btnLocation.Location = new System.Drawing.Point(205, 14);
this.btnLocation.Name = "btnLocation";
this.btnLocation.Size = new System.Drawing.Size(75, 32);
this.btnLocation.TabIndex = 0;
this.btnLocation.Text = "开始获取";
this.btnLocation.UseVisualStyleBackColor = true;
this.btnLocation.Click += new System.EventHandler(this.btnLocation_Click);
//
// plMain
//
this.plMain.Controls.Add(this.wbLocation);
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.plMain.Location = new System.Drawing.Point(0, 0);
this.plMain.Name = "plMain";
this.plMain.Size = new System.Drawing.Size(701, 638);
this.plMain.TabIndex = 2;
//
// wbLocation
//
this.wbLocation.Dock = System.Windows.Forms.DockStyle.Fill;
this.wbLocation.Location = new System.Drawing.Point(0, 0);
this.wbLocation.MinimumSize = new System.Drawing.Size(20, 20);
this.wbLocation.Name = "wbLocation";
this.wbLocation.Size = new System.Drawing.Size(701, 638);
this.wbLocation.TabIndex = 0;
//
// frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(988, 638);
this.Controls.Add(this.panel2);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "frmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "活动位置记录平台";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.frmMain_Load);
this.Resize += new System.EventHandler(this.frmMain_Resize);
this.panel2.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridMain)).EndInit();
this.cmSelect.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit();
this.plTop.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.plMain.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.Panel plMain;
private System.Windows.Forms.WebBrowser wbLocation;
private System.Windows.Forms.Panel panel1;
private DevExpress.XtraGrid.GridControl gridMain;
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
private System.Windows.Forms.Panel plTop;
private System.Windows.Forms.Button btnActivity;
private System.Windows.Forms.Button btnLocation;
private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1;
private DevExpress.XtraGrid.Columns.GridColumn EmployeeID;
private System.Windows.Forms.ContextMenuStrip cmSelect;
private System.Windows.Forms.ToolStripMenuItem tsmiAllSelect;
private System.Windows.Forms.ToolStripMenuItem tsmiReSelect;
private System.Windows.Forms.ToolStripMenuItem tsmiUnSelect;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DateTimePicker dateTimePicker2;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
}
}
@@ -0,0 +1,221 @@
using CommonLib;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid.Columns;
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;
using System.Threading;
using Lskj.PubJPush;
using Lskj.PubUtils;
using Lskj.PubJPush.Push.Mode;
using Lskj.PubJPush.Push;
namespace Lskj.Location
{
public partial class frmMain : Form
{
private DataTable dtEmployees;
private static readonly string URL_ADDRESS = "http://" + DBConfig.Instance.LocationServer + "/Baidu/BaiduMapApi.aspx";
private static readonly string URL_ADDRESS_TRACK = "http://" + DBConfig.Instance.LocationServer + "/Baidu/BaiduMapTrack.aspx";
private static string appKey = string.Empty;
private static string master_secret = string.Empty;
private static string clict_code = string.Empty; // 公司唯一标识
public frmMain()
{
DevExpress.Skins.SkinManager.EnableFormSkins();
DevExpress.XtraGrid.Localization.GridResLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraGridCHS();
DevExpress.XtraEditors.Controls.Localizer.Active = new Dxper.LocalizationCHS.Win.XtraEditorsCHS();
DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraLayoutCHS();
DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraPrintingCHS();
InitializeComponent();
}
/// <summary>
/// 窗体加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void frmMain_Load(object sender, EventArgs e)
{
try
{
dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss";
dateTimePicker1.ShowUpDown = true;
dateTimePicker2.Format = DateTimePickerFormat.Custom;
dateTimePicker2.CustomFormat = "yyyy-MM-dd HH:mm:ss";
dateTimePicker2.ShowUpDown = true;
dateTimePicker1.Text = DateTime.Now.ToString("yyyy-MM-dd") + " 9:00:00";
dateTimePicker2.Text = DateTime.Now.ToString("yyyy-MM-dd") + " 18:00:00";
if (DBConfig.Instance.CreateConnection())
{
LoadEmployee();
}
else
{
throw new Exception("数据连接配置错误.");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
btnLocation.Enabled = false;
btnActivity.Enabled = false;
}
}
/// <summary>
/// 加载员工信息
/// </summary>
private void LoadEmployee()
{
string sqlValue = "SELECT CAST(0 AS BIT) isCheck,LoginAccount,EmployeeName,EmployeeID FROM P_EmployeeTab";
dtEmployees = SqlHelper.ExecuteDataSet(sqlValue).Tables[0];
gridMain.DataSource = dtEmployees;
}
/// <summary>
/// 加载位置
/// </summary>
private void LoadEmployeeLocation(string checkStr,int time)
{
try
{
wbLocation.Navigate(new Uri(URL_ADDRESS + "?EmployeeID=" + checkStr + "&time=" + time));
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void frmMain_Resize(object sender, EventArgs e)
{
splitContainer1.SplitterDistance = 283;
}
/// <summary>
/// 当前位置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnLocation_Click(object sender, EventArgs e)
{
try
{
string timeStr = textBox1.Text.Trim();
int time = 10;
try
{
time = Convert.ToInt32(timeStr);
}
catch (Exception)
{
MessageBox.Show("时间格式只能为数字");
return;
}
if (time < 1)
{
MessageBox.Show("时间格式必须大于0");
}
string checkStr = getCheckedEmployees();
if (!string.IsNullOrEmpty(checkStr))
{
LoadEmployeeLocation(checkStr, time);
}
else
{
MessageBox.Show("请先选择一条记录.");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
/// <summary>
/// 获取选中的员工
/// </summary>
private string getCheckedEmployees()
{
if (dtEmployees == null || dtEmployees.Rows.Count == 0) return "";
String checkStr = string.Empty;
DataRow[] rows = dtEmployees.Rows.Cast<DataRow>().Where(x => Convert.ToBoolean(x["isCheck"])).ToArray();
foreach (DataRow row in rows)
{
checkStr += row["EmployeeID"] + ",";
}
return checkStr.Trim(',');
}
/// <summary>
/// 全选
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tsmiAllSelect_Click(object sender, EventArgs e)
{
foreach (DataRow row in dtEmployees.Rows)
{
row["isCheck"] = true;
}
}
/// <summary>
/// 反选
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tsmiReSelect_Click(object sender, EventArgs e)
{
foreach (DataRow row in dtEmployees.Rows)
{
row["isCheck"] = !Convert.ToBoolean(row["isCheck"]);
}
}
/// <summary>
/// 取消选中
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tsmiUnSelect_Click(object sender, EventArgs e)
{
foreach (DataRow row in dtEmployees.Rows)
{
row["isCheck"] = false;
}
}
/// <summary>
/// 轨迹统计
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnActivity_Click(object sender, EventArgs e)
{
DateTime beginDate = dateTimePicker1.Value;
DateTime endDate = dateTimePicker2.Value;
string checkStr = getCheckedEmployees();
if (!string.IsNullOrEmpty(checkStr))
{
try
{
wbLocation.Navigate(new Uri(URL_ADDRESS_TRACK + "?EmployeeID=" + checkStr + "&beginDate=" + beginDate + "&endDate=" + endDate));
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
else
{
MessageBox.Show("请先选择一条记录.");
}
}
}
}
File diff suppressed because it is too large Load Diff