Răsfoiți Sursa

更新了时间格式,可以发布了。

shenjian Office PC 7 ani în urmă
părinte
comite
42b801b832

+ 1 - 1
source/DBcon.cs

@@ -156,7 +156,7 @@ namespace BooksManageSystem
             {
                 comm.Parameters.AddWithValue("@id", (uint)id);
                 comm.Parameters.AddWithValue("@op", (int)EnumOP.领);
-                comm.Parameters.AddWithValue("@op_date", time.ToString());
+                comm.Parameters.AddWithValue("@op_date", time.ToString(dateTimeFormat));
                 comm.Parameters.AddWithValue("@op_count", count);
                 comm.Parameters.AddWithValue("@opertor", opertor);
                 comm.Parameters.AddWithValue("@after_op_count", c - count);

+ 2 - 1
source/Form1.Designer.cs

@@ -501,6 +501,7 @@
             this.button1.TabIndex = 15;
             this.button1.Text = "button1";
             this.button1.UseVisualStyleBackColor = true;
+            this.button1.Visible = false;
             this.button1.Click += new System.EventHandler(this.button1_Click);
             // 
             // Form1
@@ -524,7 +525,7 @@
             this.MinimumSize = new System.Drawing.Size(800, 600);
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "Grace的图书管理";
+            this.Text = "Grace的图书管理2018";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
             this.menuStrip1.ResumeLayout(false);

+ 15 - 15
source/FrmAbout.Designer.cs

@@ -64,7 +64,7 @@
             this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F));
             this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
             this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
-            this.tableLayoutPanel.Size = new System.Drawing.Size(438, 291);
+            this.tableLayoutPanel.Size = new System.Drawing.Size(773, 274);
             this.tableLayoutPanel.TabIndex = 0;
             // 
             // logoPictureBox
@@ -74,7 +74,7 @@
             this.logoPictureBox.Location = new System.Drawing.Point(3, 3);
             this.logoPictureBox.Name = "logoPictureBox";
             this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
-            this.logoPictureBox.Size = new System.Drawing.Size(138, 285);
+            this.logoPictureBox.Size = new System.Drawing.Size(249, 268);
             this.logoPictureBox.TabIndex = 12;
             this.logoPictureBox.TabStop = false;
             // 
@@ -82,11 +82,11 @@
             // 
             this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill;
             this.labelProductName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.labelProductName.Location = new System.Drawing.Point(150, 0);
+            this.labelProductName.Location = new System.Drawing.Point(261, 0);
             this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
             this.labelProductName.MaximumSize = new System.Drawing.Size(0, 16);
             this.labelProductName.Name = "labelProductName";
-            this.labelProductName.Size = new System.Drawing.Size(285, 16);
+            this.labelProductName.Size = new System.Drawing.Size(509, 16);
             this.labelProductName.TabIndex = 19;
             this.labelProductName.Text = "产品名称";
             this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -95,11 +95,11 @@
             // 
             this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
             this.labelVersion.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.labelVersion.Location = new System.Drawing.Point(150, 29);
+            this.labelVersion.Location = new System.Drawing.Point(261, 27);
             this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
             this.labelVersion.MaximumSize = new System.Drawing.Size(0, 16);
             this.labelVersion.Name = "labelVersion";
-            this.labelVersion.Size = new System.Drawing.Size(285, 16);
+            this.labelVersion.Size = new System.Drawing.Size(509, 16);
             this.labelVersion.TabIndex = 0;
             this.labelVersion.Text = "版本";
             this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -108,11 +108,11 @@
             // 
             this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill;
             this.labelCopyright.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.labelCopyright.Location = new System.Drawing.Point(150, 58);
+            this.labelCopyright.Location = new System.Drawing.Point(261, 54);
             this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
             this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 16);
             this.labelCopyright.Name = "labelCopyright";
-            this.labelCopyright.Size = new System.Drawing.Size(285, 16);
+            this.labelCopyright.Size = new System.Drawing.Size(509, 16);
             this.labelCopyright.TabIndex = 21;
             this.labelCopyright.Text = "版权";
             this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -121,11 +121,11 @@
             // 
             this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill;
             this.labelCompanyName.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.labelCompanyName.Location = new System.Drawing.Point(150, 87);
+            this.labelCompanyName.Location = new System.Drawing.Point(261, 81);
             this.labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0);
             this.labelCompanyName.MaximumSize = new System.Drawing.Size(0, 16);
             this.labelCompanyName.Name = "labelCompanyName";
-            this.labelCompanyName.Size = new System.Drawing.Size(285, 16);
+            this.labelCompanyName.Size = new System.Drawing.Size(509, 16);
             this.labelCompanyName.TabIndex = 22;
             this.labelCompanyName.Text = "公司名称";
             this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -134,13 +134,13 @@
             // 
             this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill;
             this.textBoxDescription.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.textBoxDescription.Location = new System.Drawing.Point(150, 119);
+            this.textBoxDescription.Location = new System.Drawing.Point(261, 111);
             this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3);
             this.textBoxDescription.Multiline = true;
             this.textBoxDescription.Name = "textBoxDescription";
             this.textBoxDescription.ReadOnly = true;
             this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both;
-            this.textBoxDescription.Size = new System.Drawing.Size(285, 139);
+            this.textBoxDescription.Size = new System.Drawing.Size(509, 131);
             this.textBoxDescription.TabIndex = 23;
             this.textBoxDescription.TabStop = false;
             this.textBoxDescription.Text = "说明";
@@ -150,9 +150,9 @@
             this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
             this.okButton.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.okButton.Location = new System.Drawing.Point(320, 264);
+            this.okButton.Location = new System.Drawing.Point(655, 248);
             this.okButton.Name = "okButton";
-            this.okButton.Size = new System.Drawing.Size(115, 24);
+            this.okButton.Size = new System.Drawing.Size(115, 23);
             this.okButton.TabIndex = 24;
             this.okButton.Text = "确定(&O)";
             // 
@@ -161,7 +161,7 @@
             this.AcceptButton = this.okButton;
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(456, 307);
+            this.ClientSize = new System.Drawing.Size(791, 290);
             this.Controls.Add(this.tableLayoutPanel);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
             this.MaximizeBox = false;

+ 1 - 1
source/FrmAbout.resx

@@ -121,7 +121,7 @@
   <data name="logoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
         iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
-        wwAADsMBx2+oZAAAOLtJREFUeF7tnQV4FFf3xge3AsXdIViACAkEDUkIkuAuwd3d3R1CcIcW2lJaKlSg
+        wgAADsIBFShKgAAAOLtJREFUeF7tnQV4FFf3xge3AsXdIViACAkEDUkIkuAuwd3d3R1CcIcW2lJaKlSg
         LeWjfLSFIgX6FS/u7pa8//fMzmxmdycbxf70Ps8bmU12Zu77m3vPOSOrAPhX77BMF/6rd0emC//VuyPT
         hf/q3ZHpwn/17sh04b96d2S68F+9OzJd+C6rraKUbKco3dorSii/b6U+o6by97b8nt3sf95mmS5819RG
         UfLS3KHUnxSiEuEI5/efqM4dFSWj2Xu9bTJd+C6Ipmeikd2onVQE5WD4kJw50SVlSoflIsLwvLWi/NBK

+ 13 - 8
source/Properties/AssemblyInfo.cs

@@ -7,15 +7,20 @@ using System.Runtime.InteropServices;
 // 与程序集关联的信息。
 [assembly: AssemblyTitle("Grace的书籍管理")]
 [assembly: AssemblyDescription(@"用四种书籍数量变更的方式(购入,归还,销售,领用)对书籍进行简单的管理,其中销售的书籍可以单独导出列表。
-2014.6.11更改了控件的排列,修复在过小的屏幕上不显示按钮的问题。 
-2014.7.11增加了批量领取书籍,以及书单的操作。
-2015.1.20增加的批量售书的功能,修正书单在XP系统下显示不全的问题。添加操作记录列表下的右键菜单。方便删除操作记录。
-程序编码:@麦田呱呱
-日期:2015年1月21日")]
+2014.06.11更改了控件的排列,修复在过小的屏幕上不显示按钮的问题。 
+2014.07.11增加了批量领取书籍,以及书单的操作。
+2015.01.20增加的批量售书的功能,修正书单在XP系统下显示不全的问题。添加操作记录列表下的右键菜单。方便删除操作记录。
+
+2018.02.07修改了读写数据库的时间处理方式,由于Windows10系统时间格式改变导致无法操作。
+
+公众号:Hansi-zt 寒思爱折腾
+网址:http://ztiii.net
+程序设计:@麦田呱呱
+日期:2018年02月07日")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("Grace软件")]
 [assembly: AssemblyProduct("BooksManageSystem")]
-[assembly: AssemblyCopyright("Copyright ©  2014")]
+[assembly: AssemblyCopyright("Copyright © 2014-2018")]
 [assembly: AssemblyTrademark("AssemblyTrademark")]
 [assembly: AssemblyCulture("")]
 
@@ -37,5 +42,5 @@ using System.Runtime.InteropServices;
 // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
 // 方法是按如下所示使用“*”:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.4.0.0")]
-[assembly: AssemblyFileVersion("1.4.0.0")]
+[assembly: AssemblyVersion("1.5.0.0")]
+[assembly: AssemblyFileVersion("1.5.0.0")]