|
@@ -1,6 +1,7 @@
|
1
|
1
|
using Common.system;
|
2
|
2
|
using System;
|
3
|
3
|
using System.Configuration;
|
|
4
|
+using System.Text;
|
4
|
5
|
using System.Windows;
|
5
|
6
|
using XHWK.WKTool.DAL;
|
6
|
7
|
|
|
@@ -73,6 +74,12 @@ namespace XHWK.WKTool
|
73
|
74
|
int code = @interface.Login(accountNumber, password);
|
74
|
75
|
if(code==0)
|
75
|
76
|
{
|
|
77
|
+ FileToolsCommon.CreateDirectory(APP.DataPath);
|
|
78
|
+ string applicationData = APP.DataPath + "accountNumber.txt";
|
|
79
|
+ string accountNumbers = DateTime.Now.ToLongDateString().ToString();//当前时间
|
|
80
|
+ System.IO.File.WriteAllText(applicationData, accountNumbers, Encoding.Default);//存放签名验证日期
|
|
81
|
+
|
|
82
|
+
|
76
|
83
|
UpdateSettingString("userName", txbAccountNumber.Text);
|
77
|
84
|
APP.IsLoginType = true;
|
78
|
85
|
txbAccountNumber.Text = string.Empty;
|