Merge branch 'master' of http://192.168.0.12:13000/sc/SunlightAggregationTerminal
This commit is contained in:
commit
07b73a7185
3 files changed
+41
-16
No files matched your search
@@ -74,10 +74,12 @@ public partial class LogPage : ContentPage
|
||||
TcpServer.Configuration(SERVERIP.Text, UsernameEntry.Text, PasswordEntry.Text,
|
||||
Models.AppModels.GetAppUniqueId());
|
||||
|
||||
TcpServer.TcpTransmit("Log");
|
||||
|
||||
LoadingIndicator.IsVisible = true;
|
||||
|
||||
//TcpServer.TcpTransmit("Log");
|
||||
|
||||
|
||||
if (await AppModels.LogIn())
|
||||
{
|
||||
var temp_name = AppModels.Select("SELECT * FROM Users WHERE User='" + UsernameEntry.Text + "' LIMIT 1;")!.Tables[0];
|
||||
@@ -86,7 +88,7 @@ public partial class LogPage : ContentPage
|
||||
//存在更新账号状态
|
||||
string sql = @"UPDATE Users SET ServerID = '" + SERVERIP.Text
|
||||
+ "', UserPassword = '" + PasswordEntry.Text +
|
||||
"', LogNo = true WHERE User='" + UsernameEntry.Text + "';";
|
||||
"', LogNo = 1 WHERE User='" + UsernameEntry.Text + "';";
|
||||
AppModels.Updata(sql);
|
||||
}
|
||||
else
|
||||
@@ -98,7 +100,7 @@ public partial class LogPage : ContentPage
|
||||
MessageNotificationMode ,GUID
|
||||
)VALUES('" + UsernameEntry.Text + "','SUNLIGHT','SUNLIGHT','" + PasswordEntry.Text +
|
||||
"','SUNLIGHT','ENGINEER','" + SERVERIP.Text + "','ENGINEER'," +
|
||||
" '',0,0,0,0,'" + Models.AppModels.GetAppUniqueId() + "');";
|
||||
" '',1,0,0,0,'" + Models.AppModels.GetAppUniqueId() + "');";
|
||||
AppModels.INSERT(sql);
|
||||
}
|
||||
|
||||
@@ -122,7 +124,7 @@ public partial class LogPage : ContentPage
|
||||
|
||||
|
||||
|
||||
await Navigation.PopModalAsync();
|
||||
//await Navigation.PopModalAsync();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user