13 changed files with 927 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio Version 17 |
|||
VisualStudioVersion = 17.10.35027.167 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DailyWorkManagementSystem", "DailyWorkManagementSystem\DailyWorkManagementSystem.csproj", "{6C795C36-097A-45A8-A39D-4240CBBDB949}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{6C795C36-097A-45A8-A39D-4240CBBDB949}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{6C795C36-097A-45A8-A39D-4240CBBDB949}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{6C795C36-097A-45A8-A39D-4240CBBDB949}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{6C795C36-097A-45A8-A39D-4240CBBDB949}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {14B7FB4C-18D8-495F-BEB1-68B2840253AC} |
|||
EndGlobalSection |
|||
EndGlobal |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<configuration> |
|||
<startup> |
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> |
|||
</startup> |
|||
</configuration> |
@ -0,0 +1,128 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="15.0" 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>{6C795C36-097A-45A8-A39D-4240CBBDB949}</ProjectGuid> |
|||
<OutputType>WinExe</OutputType> |
|||
<RootNamespace>DailyWorkManagementSystem</RootNamespace> |
|||
<AssemblyName>DailyWorkManagementSystem</AssemblyName> |
|||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
|||
<Deterministic>true</Deterministic> |
|||
<IsWebBootstrapper>false</IsWebBootstrapper> |
|||
<PublishUrl>E:\DailyWorkRecord\</PublishUrl> |
|||
<Install>true</Install> |
|||
<InstallFrom>Disk</InstallFrom> |
|||
<UpdateEnabled>false</UpdateEnabled> |
|||
<UpdateMode>Foreground</UpdateMode> |
|||
<UpdateInterval>7</UpdateInterval> |
|||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> |
|||
<UpdatePeriodically>false</UpdatePeriodically> |
|||
<UpdateRequired>false</UpdateRequired> |
|||
<MapFileExtensions>true</MapFileExtensions> |
|||
<ApplicationRevision>4</ApplicationRevision> |
|||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
|||
<UseApplicationTrust>false</UseApplicationTrust> |
|||
<PublishWizardCompleted>true</PublishWizardCompleted> |
|||
<BootstrapperEnabled>true</BootstrapperEnabled> |
|||
</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> |
|||
<ManifestCertificateThumbprint>4FDBDFFED81596C6DFFA7F5A99F2F8C3CC159116</ManifestCertificateThumbprint> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<ManifestKeyFile>DailyWorkManagementSystem_TemporaryKey.pfx</ManifestKeyFile> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<GenerateManifests>true</GenerateManifests> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<SignManifests>true</SignManifests> |
|||
</PropertyGroup> |
|||
<PropertyGroup> |
|||
<ApplicationManifest>app.manifest</ApplicationManifest> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<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.Net.Http" /> |
|||
<Reference Include="System.Windows.Forms" /> |
|||
<Reference Include="System.Xml" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="Form1.cs"> |
|||
<SubType>Form</SubType> |
|||
</Compile> |
|||
<Compile Include="Form1.Designer.cs"> |
|||
<DependentUpon>Form1.cs</DependentUpon> |
|||
</Compile> |
|||
<Compile Include="Program.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
<EmbeddedResource Include="Form1.resx"> |
|||
<DependentUpon>Form1.cs</DependentUpon> |
|||
</EmbeddedResource> |
|||
<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="app.manifest" /> |
|||
<None Include="DailyWorkManagementSystem_TemporaryKey.pfx" /> |
|||
<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> |
|||
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2"> |
|||
<Visible>False</Visible> |
|||
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 和 x64%29</ProductName> |
|||
<Install>true</Install> |
|||
</BootstrapperPackage> |
|||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
|||
<Visible>False</Visible> |
|||
<ProductName>.NET Framework 3.5 SP1</ProductName> |
|||
<Install>false</Install> |
|||
</BootstrapperPackage> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
</Project> |
@ -0,0 +1,175 @@ |
|||
namespace DailyWorkManagementSystem |
|||
{ |
|||
partial class Form_DWR |
|||
{ |
|||
/// <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.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); |
|||
this.save_btn = new System.Windows.Forms.Button(); |
|||
this.rTB_morning = new System.Windows.Forms.RichTextBox(); |
|||
this.rTB_afternoon = new System.Windows.Forms.RichTextBox(); |
|||
this.label_morning = new System.Windows.Forms.Label(); |
|||
this.label_afternoon = new System.Windows.Forms.Label(); |
|||
this.before_btn = new System.Windows.Forms.Button(); |
|||
this.after_btn = new System.Windows.Forms.Button(); |
|||
this.clear_btn1 = new System.Windows.Forms.Button(); |
|||
this.clear_btn2 = new System.Windows.Forms.Button(); |
|||
this.SuspendLayout(); |
|||
//
|
|||
// dateTimePicker1
|
|||
//
|
|||
this.dateTimePicker1.Location = new System.Drawing.Point(133, 49); |
|||
this.dateTimePicker1.Name = "dateTimePicker1"; |
|||
this.dateTimePicker1.Size = new System.Drawing.Size(200, 25); |
|||
this.dateTimePicker1.TabIndex = 1; |
|||
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged); |
|||
//
|
|||
// save_btn
|
|||
//
|
|||
this.save_btn.Location = new System.Drawing.Point(675, 41); |
|||
this.save_btn.Name = "save_btn"; |
|||
this.save_btn.Size = new System.Drawing.Size(101, 33); |
|||
this.save_btn.TabIndex = 2; |
|||
this.save_btn.Text = "保存"; |
|||
this.save_btn.UseVisualStyleBackColor = true; |
|||
this.save_btn.Click += new System.EventHandler(this.save_btn_Click); |
|||
//
|
|||
// rTB_morning
|
|||
//
|
|||
this.rTB_morning.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.rTB_morning.Location = new System.Drawing.Point(57, 135); |
|||
this.rTB_morning.Name = "rTB_morning"; |
|||
this.rTB_morning.Size = new System.Drawing.Size(345, 300); |
|||
this.rTB_morning.TabIndex = 4; |
|||
this.rTB_morning.Text = ""; |
|||
//
|
|||
// rTB_afternoon
|
|||
//
|
|||
this.rTB_afternoon.Font = new System.Drawing.Font("宋体", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.rTB_afternoon.Location = new System.Drawing.Point(431, 135); |
|||
this.rTB_afternoon.Name = "rTB_afternoon"; |
|||
this.rTB_afternoon.Size = new System.Drawing.Size(345, 300); |
|||
this.rTB_afternoon.TabIndex = 4; |
|||
this.rTB_afternoon.Text = ""; |
|||
//
|
|||
// label_morning
|
|||
//
|
|||
this.label_morning.AutoSize = true; |
|||
this.label_morning.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label_morning.Location = new System.Drawing.Point(52, 98); |
|||
this.label_morning.Name = "label_morning"; |
|||
this.label_morning.Size = new System.Drawing.Size(62, 25); |
|||
this.label_morning.TabIndex = 6; |
|||
this.label_morning.Text = "上午"; |
|||
//
|
|||
// label_afternoon
|
|||
//
|
|||
this.label_afternoon.AutoSize = true; |
|||
this.label_afternoon.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|||
this.label_afternoon.Location = new System.Drawing.Point(426, 98); |
|||
this.label_afternoon.Name = "label_afternoon"; |
|||
this.label_afternoon.Size = new System.Drawing.Size(62, 25); |
|||
this.label_afternoon.TabIndex = 7; |
|||
this.label_afternoon.Text = "下午"; |
|||
//
|
|||
// before_btn
|
|||
//
|
|||
this.before_btn.Location = new System.Drawing.Point(55, 46); |
|||
this.before_btn.Name = "before_btn"; |
|||
this.before_btn.Size = new System.Drawing.Size(72, 31); |
|||
this.before_btn.TabIndex = 8; |
|||
this.before_btn.Text = "前一天"; |
|||
this.before_btn.UseVisualStyleBackColor = true; |
|||
this.before_btn.Click += new System.EventHandler(this.before_btn_Click); |
|||
//
|
|||
// after_btn
|
|||
//
|
|||
this.after_btn.Location = new System.Drawing.Point(339, 46); |
|||
this.after_btn.Name = "after_btn"; |
|||
this.after_btn.Size = new System.Drawing.Size(73, 31); |
|||
this.after_btn.TabIndex = 8; |
|||
this.after_btn.Text = "后一天"; |
|||
this.after_btn.UseVisualStyleBackColor = true; |
|||
this.after_btn.Click += new System.EventHandler(this.after_btn_Click); |
|||
//
|
|||
// clear_btn1
|
|||
//
|
|||
this.clear_btn1.Location = new System.Drawing.Point(301, 99); |
|||
this.clear_btn1.Name = "clear_btn1"; |
|||
this.clear_btn1.Size = new System.Drawing.Size(101, 30); |
|||
this.clear_btn1.TabIndex = 9; |
|||
this.clear_btn1.Text = "清空"; |
|||
this.clear_btn1.UseVisualStyleBackColor = true; |
|||
this.clear_btn1.Click += new System.EventHandler(this.clear_btn1_Click); |
|||
//
|
|||
// clear_btn2
|
|||
//
|
|||
this.clear_btn2.Location = new System.Drawing.Point(675, 99); |
|||
this.clear_btn2.Name = "clear_btn2"; |
|||
this.clear_btn2.Size = new System.Drawing.Size(101, 30); |
|||
this.clear_btn2.TabIndex = 9; |
|||
this.clear_btn2.Text = "清空"; |
|||
this.clear_btn2.UseVisualStyleBackColor = true; |
|||
this.clear_btn2.Click += new System.EventHandler(this.clear_btn2_Click); |
|||
//
|
|||
// Form_DWR
|
|||
//
|
|||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|||
this.ClientSize = new System.Drawing.Size(845, 482); |
|||
this.Controls.Add(this.clear_btn2); |
|||
this.Controls.Add(this.clear_btn1); |
|||
this.Controls.Add(this.after_btn); |
|||
this.Controls.Add(this.before_btn); |
|||
this.Controls.Add(this.label_afternoon); |
|||
this.Controls.Add(this.label_morning); |
|||
this.Controls.Add(this.rTB_afternoon); |
|||
this.Controls.Add(this.rTB_morning); |
|||
this.Controls.Add(this.save_btn); |
|||
this.Controls.Add(this.dateTimePicker1); |
|||
this.Name = "Form_DWR"; |
|||
this.Text = "每日工作记录"; |
|||
this.Load += new System.EventHandler(this.Form_DWR_Load); |
|||
this.ResumeLayout(false); |
|||
this.PerformLayout(); |
|||
|
|||
} |
|||
|
|||
#endregion
|
|||
private System.Windows.Forms.DateTimePicker dateTimePicker1; |
|||
private System.Windows.Forms.Button save_btn; |
|||
private System.Windows.Forms.RichTextBox rTB_morning; |
|||
private System.Windows.Forms.RichTextBox rTB_afternoon; |
|||
private System.Windows.Forms.Label label_morning; |
|||
private System.Windows.Forms.Label label_afternoon; |
|||
private System.Windows.Forms.Button before_btn; |
|||
private System.Windows.Forms.Button after_btn; |
|||
private System.Windows.Forms.Button clear_btn1; |
|||
private System.Windows.Forms.Button clear_btn2; |
|||
} |
|||
} |
|||
|
@ -0,0 +1,111 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel; |
|||
using System.Data; |
|||
using System.Data.SqlClient; |
|||
using System.Drawing; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace DailyWorkManagementSystem |
|||
{ |
|||
public partial class Form_DWR : Form |
|||
{ |
|||
private String connString = "Server=localhost;Database=DailyWorkRecordDB;Trusted_Connection=True;"; |
|||
public Form_DWR() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
|
|||
private void Form_DWR_Load(object sender, EventArgs e) |
|||
{ |
|||
dateTimePicker1_ValueChanged(sender, e); |
|||
} |
|||
|
|||
private void save_btn_Click(object sender, EventArgs e) |
|||
{ |
|||
//获取日期年月日
|
|||
string date = dateTimePicker1.Value.ToString("yyyy-MM-dd"); |
|||
//读取文本框内容
|
|||
string morning = rTB_morning.Text; |
|||
string afternoon = rTB_afternoon.Text; |
|||
//连接数据库
|
|||
SqlConnection conn = new SqlConnection(connString); |
|||
conn.Open(); |
|||
SqlCommand cmd = new SqlCommand(); |
|||
cmd.Connection = conn; |
|||
cmd.CommandText = $"Select count(*) from DWR where Date='{date}'"; |
|||
//判断是否存在该日期的记录
|
|||
int count = (int)cmd.ExecuteScalar(); |
|||
if (count == 0) |
|||
{ |
|||
cmd.CommandText = $"insert into DWR(Date,Morning,Afternoon) values('{date}','{morning}','{afternoon}')"; |
|||
int result_insert = cmd.ExecuteNonQuery(); |
|||
if (result_insert > 0) |
|||
{ |
|||
MessageBox.Show("保存成功!"); |
|||
} |
|||
conn.Close(); |
|||
} |
|||
else |
|||
{ |
|||
cmd.CommandText = $"update DWR set Morning='{morning}',Afternoon='{afternoon}' where Date='{date}'"; |
|||
int result_edit = cmd.ExecuteNonQuery(); |
|||
if (result_edit > 0) |
|||
{ |
|||
MessageBox.Show("保存成功!"); |
|||
} |
|||
conn.Close(); |
|||
} |
|||
} |
|||
|
|||
private void dateTimePicker1_ValueChanged(object sender, EventArgs e) |
|||
{ |
|||
//清空文本框
|
|||
rTB_morning.Text = ""; |
|||
rTB_afternoon.Text = ""; |
|||
//获取日期年月日
|
|||
string date = dateTimePicker1.Value.ToString("yyyy-MM-dd"); |
|||
//连接数据库
|
|||
SqlConnection conn = new SqlConnection(); |
|||
conn.ConnectionString = "Server=localhost;Database=DailyWorkRecordDB;Trusted_Connection=True;"; |
|||
conn.Open(); |
|||
SqlCommand cmd = new SqlCommand(); |
|||
cmd.Connection = conn; |
|||
cmd.CommandText = $"select * from DWR where Date='{date}'"; |
|||
SqlDataReader reader = cmd.ExecuteReader(); |
|||
//读取数据
|
|||
while (reader.Read()) |
|||
{ |
|||
rTB_morning.Text = reader["Morning"].ToString(); |
|||
rTB_afternoon.Text = reader["Afternoon"].ToString(); |
|||
} |
|||
|
|||
conn.Close(); |
|||
} |
|||
|
|||
private void before_btn_Click(object sender, EventArgs e) |
|||
{ |
|||
//更改日期到前一天
|
|||
dateTimePicker1.Value = dateTimePicker1.Value.AddDays(-1); |
|||
} |
|||
|
|||
private void after_btn_Click(object sender, EventArgs e) |
|||
{ |
|||
//更改日期到后一天
|
|||
dateTimePicker1.Value = dateTimePicker1.Value.AddDays(1); |
|||
} |
|||
//清空按键-上午
|
|||
private void clear_btn1_Click(object sender, EventArgs e) |
|||
{ |
|||
rTB_morning.Text = ""; |
|||
} |
|||
//清空按键-下午
|
|||
private void clear_btn2_Click(object sender, EventArgs e) |
|||
{ |
|||
rTB_afternoon.Text = ""; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
<?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> |
|||
</root> |
@ -0,0 +1,22 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Forms; |
|||
|
|||
namespace DailyWorkManagementSystem |
|||
{ |
|||
internal static class Program |
|||
{ |
|||
/// <summary>
|
|||
/// 应用程序的主入口点。
|
|||
/// </summary>
|
|||
[STAThread] |
|||
static void Main() |
|||
{ |
|||
Application.EnableVisualStyles(); |
|||
Application.SetCompatibleTextRenderingDefault(false); |
|||
Application.Run(new Form_DWR()); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,36 @@ |
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
// 有关程序集的一般信息由以下
|
|||
// 控制。更改这些特性值可修改
|
|||
// 与程序集关联的信息。
|
|||
[assembly: AssemblyTitle("DailyWorkManagementSystem")] |
|||
[assembly: AssemblyDescription("")] |
|||
[assembly: AssemblyConfiguration("")] |
|||
[assembly: AssemblyCompany("")] |
|||
[assembly: AssemblyProduct("DailyWorkManagementSystem")] |
|||
[assembly: AssemblyCopyright("Copyright © 2024")] |
|||
[assembly: AssemblyTrademark("")] |
|||
[assembly: AssemblyCulture("")] |
|||
|
|||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
|||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
|||
//请将此类型的 ComVisible 特性设置为 true。
|
|||
[assembly: ComVisible(false)] |
|||
|
|||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
|||
[assembly: Guid("6c795c36-097a-45a8-a39d-4240cbbdb949")] |
|||
|
|||
// 程序集的版本信息由下列四个值组成:
|
|||
//
|
|||
// 主版本
|
|||
// 次版本
|
|||
// 生成号
|
|||
// 修订号
|
|||
//
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
|||
//通过使用 "*",如下所示:
|
|||
// [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.42000
|
|||
//
|
|||
// 对此文件的更改可能导致不正确的行为,如果
|
|||
// 重新生成代码,则所做更改将丢失。
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace DailyWorkManagementSystem.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("DailyWorkManagementSystem.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.42000
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace DailyWorkManagementSystem.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,79 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> |
|||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> |
|||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> |
|||
<security> |
|||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> |
|||
<!-- UAC 清单选项 |
|||
如果想要更改 Windows 用户帐户控制级别,请使用 |
|||
以下节点之一替换 requestedExecutionLevel 节点。 |
|||
|
|||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> |
|||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> |
|||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> |
|||
|
|||
指定 requestedExecutionLevel 元素将禁用文件和注册表虚拟化。 |
|||
如果你的应用程序需要此虚拟化来实现向后兼容性,则移除此 |
|||
元素。 |
|||
--> |
|||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> |
|||
</requestedPrivileges> |
|||
</security> |
|||
</trustInfo> |
|||
|
|||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> |
|||
<application> |
|||
<!-- 设计此应用程序与其一起工作且已针对此应用程序进行测试的 |
|||
Windows 版本的列表。取消评论适当的元素, |
|||
Windows 将自动选择最兼容的环境。 --> |
|||
|
|||
<!-- Windows Vista --> |
|||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />--> |
|||
|
|||
<!-- Windows 7 --> |
|||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />--> |
|||
|
|||
<!-- Windows 8 --> |
|||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />--> |
|||
|
|||
<!-- Windows 8.1 --> |
|||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />--> |
|||
|
|||
<!-- Windows 10 --> |
|||
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />--> |
|||
|
|||
</application> |
|||
</compatibility> |
|||
|
|||
<!-- 指示该应用程序可感知 DPI 且 Windows 在 DPI 较高时将不会对其进行 |
|||
自动缩放。Windows Presentation Foundation (WPF)应用程序自动感知 DPI,无需 |
|||
选择加入。选择加入此设置的 Windows 窗体应用程序(面向 .NET Framework 4.6)还应 |
|||
在其 app.config 中将 "EnableWindowsFormsHighDpiAutoResizing" 设置设置为 "true"。 |
|||
|
|||
将应用程序设为感知长路径。请参阅 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation --> |
|||
|
|||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> |
|||
<windowsSettings> |
|||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> |
|||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware> |
|||
</windowsSettings> |
|||
</application> |
|||
|
|||
|
|||
<!-- 启用 Windows 公共控件和对话框的主题(Windows XP 和更高版本) --> |
|||
<!-- |
|||
<dependency> |
|||
<dependentAssembly> |
|||
<assemblyIdentity |
|||
type="win32" |
|||
name="Microsoft.Windows.Common-Controls" |
|||
version="6.0.0.0" |
|||
processorArchitecture="*" |
|||
publicKeyToken="6595b64144ccf1df" |
|||
language="*" |
|||
/> |
|||
</dependentAssembly> |
|||
</dependency> |
|||
--> |
|||
|
|||
</assembly> |
Loading…
Reference in new issue