mirror of
https://github.com/mrfluffy-dev/Delphi-Projects.git
synced 2026-01-16 21:30:33 +00:00
V-0.6
This commit is contained in:
158
V-0.6/AdminAdd_u.dfm
Normal file
158
V-0.6/AdminAdd_u.dfm
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
object FrmAdminAdd: TFrmAdminAdd
|
||||||
|
Left = 0
|
||||||
|
Top = 0
|
||||||
|
Caption = 'FrmAdminAdd'
|
||||||
|
ClientHeight = 420
|
||||||
|
ClientWidth = 770
|
||||||
|
Color = clDefault
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -11
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
Menu = MainMenu1
|
||||||
|
OldCreateOrder = False
|
||||||
|
Position = poDesktopCenter
|
||||||
|
OnClose = FormClose
|
||||||
|
OnCreate = FormCreate
|
||||||
|
PixelsPerInch = 96
|
||||||
|
TextHeight = 13
|
||||||
|
object edtUsername: TEdit
|
||||||
|
Left = 8
|
||||||
|
Top = 8
|
||||||
|
Width = 161
|
||||||
|
Height = 29
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -17
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 0
|
||||||
|
Text = 'Full Name/Username'
|
||||||
|
OnDblClick = edtUsernameDblClick
|
||||||
|
OnEnter = edtUsernameEnter
|
||||||
|
end
|
||||||
|
object edtPassword: TEdit
|
||||||
|
Left = 8
|
||||||
|
Top = 56
|
||||||
|
Width = 161
|
||||||
|
Height = 29
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -17
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
ReadOnly = True
|
||||||
|
TabOrder = 1
|
||||||
|
Text = 'Password'
|
||||||
|
end
|
||||||
|
object edtTital: TEdit
|
||||||
|
Left = 8
|
||||||
|
Top = 104
|
||||||
|
Width = 161
|
||||||
|
Height = 29
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -17
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 2
|
||||||
|
Text = 'Tital'
|
||||||
|
OnDblClick = edtTitalDblClick
|
||||||
|
OnEnter = edtTitalEnter
|
||||||
|
end
|
||||||
|
object Panel1: TPanel
|
||||||
|
Left = 8
|
||||||
|
Top = 152
|
||||||
|
Width = 161
|
||||||
|
Height = 29
|
||||||
|
Color = clWhite
|
||||||
|
ParentBackground = False
|
||||||
|
TabOrder = 3
|
||||||
|
object chkAdmin: TCheckBox
|
||||||
|
Left = 0
|
||||||
|
Top = 8
|
||||||
|
Width = 97
|
||||||
|
Height = 17
|
||||||
|
Caption = 'Is User Admin'
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object btnGeneratePass: TButton
|
||||||
|
Left = 175
|
||||||
|
Top = 56
|
||||||
|
Width = 106
|
||||||
|
Height = 29
|
||||||
|
Caption = 'Generate Password'
|
||||||
|
TabOrder = 4
|
||||||
|
OnClick = btnGeneratePassClick
|
||||||
|
end
|
||||||
|
object btnAddUser: TButton
|
||||||
|
Left = 8
|
||||||
|
Top = 195
|
||||||
|
Width = 83
|
||||||
|
Height = 33
|
||||||
|
Caption = 'Add User'
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -13
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 5
|
||||||
|
OnClick = btnAddUserClick
|
||||||
|
end
|
||||||
|
object redtGoles: TRichEdit
|
||||||
|
Left = 448
|
||||||
|
Top = 8
|
||||||
|
Width = 314
|
||||||
|
Height = 177
|
||||||
|
Font.Charset = ANSI_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -11
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 6
|
||||||
|
Zoom = 100
|
||||||
|
end
|
||||||
|
object caleAdmin: TCalendar
|
||||||
|
Left = 537
|
||||||
|
Top = 191
|
||||||
|
Width = 225
|
||||||
|
Height = 201
|
||||||
|
StartOfWeek = 0
|
||||||
|
TabOrder = 7
|
||||||
|
OnChange = caleAdminChange
|
||||||
|
end
|
||||||
|
object btnGole: TButton
|
||||||
|
Left = 448
|
||||||
|
Top = 191
|
||||||
|
Width = 75
|
||||||
|
Height = 25
|
||||||
|
Caption = 'Add Gole'
|
||||||
|
TabOrder = 8
|
||||||
|
OnClick = btnGoleClick
|
||||||
|
end
|
||||||
|
object cbxUsers: TComboBox
|
||||||
|
Left = 297
|
||||||
|
Top = 8
|
||||||
|
Width = 145
|
||||||
|
Height = 21
|
||||||
|
TabOrder = 9
|
||||||
|
Text = 'Usernames'
|
||||||
|
OnChange = cbxUsersChange
|
||||||
|
OnEnter = cbxUsersEnter
|
||||||
|
end
|
||||||
|
object MainMenu1: TMainMenu
|
||||||
|
Left = 8
|
||||||
|
Top = 240
|
||||||
|
object Logout1: TMenuItem
|
||||||
|
Caption = 'Logout'
|
||||||
|
OnClick = Logout1Click
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
264
V-0.6/AdminAdd_u.pas
Normal file
264
V-0.6/AdminAdd_u.pas
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
unit AdminAdd_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
||||||
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Login_u, System.math,
|
||||||
|
Vcl.Tabs, Vcl.Grids, Vcl.Samples.Calendar, Vcl.ComCtrls, Vcl.DBCtrls, Data.DB,
|
||||||
|
Vcl.DBGrids, Vcl.Menus;
|
||||||
|
|
||||||
|
type
|
||||||
|
TFrmAdminAdd = class(TForm)
|
||||||
|
edtUsername: TEdit;
|
||||||
|
edtPassword: TEdit;
|
||||||
|
edtTital: TEdit;
|
||||||
|
Panel1: TPanel;
|
||||||
|
chkAdmin: TCheckBox;
|
||||||
|
btnGeneratePass: TButton;
|
||||||
|
btnAddUser: TButton;
|
||||||
|
redtGoles: TRichEdit;
|
||||||
|
caleAdmin: TCalendar;
|
||||||
|
btnGole: TButton;
|
||||||
|
cbxUsers: TComboBox;
|
||||||
|
MainMenu1: TMainMenu;
|
||||||
|
Logout1: TMenuItem;
|
||||||
|
procedure btnGeneratePassClick(Sender: TObject);
|
||||||
|
procedure edtUsernameDblClick(Sender: TObject);
|
||||||
|
procedure edtTitalDblClick(Sender: TObject);
|
||||||
|
procedure edtTitalEnter(Sender: TObject);
|
||||||
|
procedure edtUsernameEnter(Sender: TObject);
|
||||||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
procedure btnAddUserClick(Sender: TObject);
|
||||||
|
procedure cbxUsersEnter(Sender: TObject);
|
||||||
|
procedure cbxUsersChange(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
|
procedure caleAdminChange(Sender: TObject);
|
||||||
|
procedure btnGoleClick(Sender: TObject);
|
||||||
|
procedure Logout1Click(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
var
|
||||||
|
Goletext : TextFile;
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
var
|
||||||
|
sRandomPass, sAdmin, sUserName : string;
|
||||||
|
iCount, iRandomNum, iRandomChar, iRandomUp, iRandomLow, iDay : Integer;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
FrmAdminAdd: TFrmAdminAdd;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
uses Business_u;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.btnAddUserClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
sUser, sPass, sTital : string;
|
||||||
|
iConfirm : Integer;
|
||||||
|
begin
|
||||||
|
iConfirm:=0;
|
||||||
|
sUser:='';
|
||||||
|
sPass:='';
|
||||||
|
sTital:='';
|
||||||
|
sAdmin:= BoolToStr(chkAdmin.Checked);
|
||||||
|
|
||||||
|
if Length(edtUsername.Text) >= 7 then
|
||||||
|
sUser:= edtUsername.Text
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('User Name must be 7 or more caractars');
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
if Length(edtPassword.Text) = 12 then
|
||||||
|
sPass:=edtPassword.Text
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('Press Random pass generator');
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
if Length(edtTital.Text) > 0 then
|
||||||
|
sTital:=edtTital.Text
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('Pleas full valad tital');
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
DataUser.adoUser.Close;
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('INSERT INTO Login(Username,Tital,pass,Admin) VALUES(:par0,:par1,:par2,:par3)');
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par0').Value:=sUser;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par1').Value:=sTital;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par2').Value:=sPass;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par3').Value:= sAdmin;
|
||||||
|
iConfirm:= MessageDlg('Confirm Adding Acount', mtConfirmation, mbYesNo, 7);
|
||||||
|
if iConfirm = 7 then exit;
|
||||||
|
if iConfirm = 6 then DataUser.adoUser.ExecSQL;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.btnGeneratePassClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
arrRandomChar : array[1..3] of Integer;
|
||||||
|
i : Integer;
|
||||||
|
begin
|
||||||
|
sRandomPass := '';
|
||||||
|
iCount := 0;
|
||||||
|
iRandomNum:= 0;
|
||||||
|
iRandomUP:= 0;
|
||||||
|
iRandomLow:= 0;
|
||||||
|
edtPassword.ReadOnly:=False;
|
||||||
|
while iCount < 12 do
|
||||||
|
begin
|
||||||
|
Randomize;
|
||||||
|
iRandomNum := RandomRange(48, 58);
|
||||||
|
iRandomUp := RandomRange(65, 91);
|
||||||
|
iRandomLow := RandomRange(97, 123);
|
||||||
|
arrRandomChar[1]:= iRandomNum;
|
||||||
|
arrRandomChar[2]:= iRandomUp;
|
||||||
|
arrRandomChar[3]:= iRandomLow;
|
||||||
|
i := random(3)+1;
|
||||||
|
iRandomChar:= arrRandomChar[i];
|
||||||
|
sRandomPass:= sRandomPass + Chr(iRandomChar);
|
||||||
|
iCount:= iCount + 1;
|
||||||
|
end;
|
||||||
|
edtPassword.ReadOnly:=True;
|
||||||
|
edtPassword.Text:=sRandomPass;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.btnGoleClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
i, iconfirm : Integer;
|
||||||
|
begin
|
||||||
|
iConfirm:= MessageDlg('Confirm Adding Acount', mtConfirmation, mbYesNo, 7);
|
||||||
|
if iConfirm = 7 then exit;
|
||||||
|
if iConfirm = 6 then
|
||||||
|
begin
|
||||||
|
AssignFile(Goletext, sUserName+IntToStr(iDay)+'.txt');
|
||||||
|
Rewrite(Goletext);
|
||||||
|
for i := 0 to redtGoles.Lines.Count do
|
||||||
|
begin
|
||||||
|
Writeln(goletext, redtGoles.Lines[i]);
|
||||||
|
end;
|
||||||
|
|
||||||
|
CloseFile(Goletext);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.caleAdminChange(Sender: TObject);
|
||||||
|
var
|
||||||
|
sLines : string;
|
||||||
|
begin
|
||||||
|
redtGoles.Text:='';
|
||||||
|
iDay:= caleAdmin.Day;
|
||||||
|
//ShowMessage(sUserName+IntToStr(iDay)+'.txt');
|
||||||
|
AssignFile(Goletext, sUserName+IntToStr(iDay)+'.txt');
|
||||||
|
if sUserName > '' then
|
||||||
|
begin
|
||||||
|
if FileExists(sUserName+IntToStr(iDay)+'.txt') then
|
||||||
|
begin
|
||||||
|
redtGoles.Text:='';
|
||||||
|
reset(Goletext);
|
||||||
|
while not Eof(Goletext) do
|
||||||
|
begin
|
||||||
|
Readln(Goletext, sLines);
|
||||||
|
redtGoles.Lines.Add(sLines);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
Rewrite(Goletext);
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
exit;
|
||||||
|
CloseFile(Goletext);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.cbxUsersChange(Sender: TObject);
|
||||||
|
var
|
||||||
|
iUser : Integer;
|
||||||
|
begin
|
||||||
|
iUser := cbxUsers.ItemIndex;
|
||||||
|
sUserName := cbxUsers.Items[iUser];
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.cbxUsersEnter(Sender: TObject);
|
||||||
|
begin
|
||||||
|
DataUser.adoUser.Close;
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('SELECT * FROM Login');
|
||||||
|
DataUser.adoUser.Open;
|
||||||
|
DataUser.adoUser.First;
|
||||||
|
cbxUsers.Items.Clear;
|
||||||
|
while not DataUser.adoUser.Eof do
|
||||||
|
begin
|
||||||
|
cbxUsers.Items.Add(DataUser.adoUser.FieldByName('Username').AsString);
|
||||||
|
DataUser.adoUser.Next;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.edtTitalDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtTital.Text:= '';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.edtTitalEnter(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtTital.Hint:= 'Dubbel tapp to clear';
|
||||||
|
edtTital.ShowHint := True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.edtUsernameDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtUsername.Text:= '';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.edtUsernameEnter(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtUsername.Hint:= 'Dubbel tap to clear';
|
||||||
|
edtUsername.ShowHint:= True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
begin
|
||||||
|
Application.Terminate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
redtGoles.Text:='';
|
||||||
|
sUserName:='';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TFrmAdminAdd.Logout1Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtUsername.Text:= 'Full Name/Username';
|
||||||
|
edtPassword.ReadOnly:=False;
|
||||||
|
edtPassword.Text:='Password';
|
||||||
|
edtPassword.ReadOnly:=True;
|
||||||
|
edtTital.Text:='Tital';
|
||||||
|
sRandomPass:='';
|
||||||
|
sUserName:='';
|
||||||
|
iDay:=0;
|
||||||
|
FrmAdminAdd.Hide;
|
||||||
|
frmBusiness.show;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
1667
V-0.6/AdminLogin_u.dfm
Normal file
1667
V-0.6/AdminLogin_u.dfm
Normal file
File diff suppressed because it is too large
Load Diff
106
V-0.6/AdminLogin_u.pas
Normal file
106
V-0.6/AdminLogin_u.pas
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
unit AdminLogin_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
||||||
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.pngimage,
|
||||||
|
Vcl.ExtCtrls, Login_u, AdminAdd_u, Vcl.Menus;
|
||||||
|
|
||||||
|
type
|
||||||
|
TfrmAdminLogin = class(TForm)
|
||||||
|
logo: TImage;
|
||||||
|
Label1: TLabel;
|
||||||
|
edtUsername: TEdit;
|
||||||
|
edtPassword: TEdit;
|
||||||
|
btnLogin: TButton;
|
||||||
|
MainMenu1: TMainMenu;
|
||||||
|
Cancel1: TMenuItem;
|
||||||
|
procedure btnLoginClick(Sender: TObject);
|
||||||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
procedure Cancel1Click(Sender: TObject);
|
||||||
|
procedure edtPasswordDblClick(Sender: TObject);
|
||||||
|
procedure edtUsernameDblClick(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
frmAdminLogin: TfrmAdminLogin;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
uses UserPage_u, UserLogin_u, Business_u;
|
||||||
|
|
||||||
|
procedure TfrmAdminLogin.btnLoginClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
sUsername, sPassword : string;
|
||||||
|
iUser : Integer;
|
||||||
|
bolAdmin : Boolean;
|
||||||
|
begin
|
||||||
|
sUsername:= edtUsername.Text;
|
||||||
|
sPassword:= edtPassword.Text;
|
||||||
|
DataUser.adoUser.Close;
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('SELECT ID, Admin, Username FROM Login WHERE Username = :reg0 AND pass = :reg1');
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('reg0').Value:= sUsername;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('reg1').Value:= sPassword;
|
||||||
|
DataUser.adoUser.Open;
|
||||||
|
DataUser.adoUser.Open;
|
||||||
|
iUser:= DataUser.adoUser.FieldByName('ID').AsInteger;
|
||||||
|
bolAdmin := DataUser.adoUser.FieldByName('Admin').AsBoolean;
|
||||||
|
//ShowMessage(IntToStr(iUser));
|
||||||
|
|
||||||
|
if iUser > 0 then
|
||||||
|
begin
|
||||||
|
if bolAdmin = True then
|
||||||
|
begin
|
||||||
|
frmAdminLogin.Hide;
|
||||||
|
FrmAdminAdd.show;
|
||||||
|
frmAdminLogin.edtUsername.Text:='Username';
|
||||||
|
frmAdminLogin.edtPassword.Text:='Password';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('User is Admin pleas use Admin login page');
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('Username or Password incorect');
|
||||||
|
DataUser.adoUser.Close;
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmAdminLogin.Cancel1Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
frmBusiness.Show;
|
||||||
|
edtUsername.Text:='Username';
|
||||||
|
edtPassword.Text:='Password';
|
||||||
|
frmAdminLogin.Hide;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmAdminLogin.edtPasswordDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtPassword.Text := '';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmAdminLogin.edtUsernameDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtUsername.Text:= '';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmAdminLogin.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
begin
|
||||||
|
Application.Terminate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
1628
V-0.6/Business_u.dfm
Normal file
1628
V-0.6/Business_u.dfm
Normal file
File diff suppressed because it is too large
Load Diff
59
V-0.6/Business_u.pas
Normal file
59
V-0.6/Business_u.pas
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
unit Business_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
||||||
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Imaging.pngimage,
|
||||||
|
Vcl.ExtCtrls,UserLogin_u,AdminAdd_u,AdminLogin_u;
|
||||||
|
|
||||||
|
type
|
||||||
|
TfrmBusiness = class(TForm)
|
||||||
|
Image1: TImage;
|
||||||
|
btnAdmin: TButton;
|
||||||
|
btnLogin: TButton;
|
||||||
|
procedure btnLoginClick(Sender: TObject);
|
||||||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
procedure close();
|
||||||
|
procedure btnAdminClick(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
frmBusiness: TfrmBusiness;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
procedure TfrmBusiness.btnAdminClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
frmAdminLogin.Show;
|
||||||
|
frmBusiness.Hide;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmBusiness.btnLoginClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
frmUserLogin.show;
|
||||||
|
frmBusiness.hide;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmBusiness.close;
|
||||||
|
begin
|
||||||
|
frmUserLogin.free;
|
||||||
|
frmBusiness.show;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmBusiness.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
begin
|
||||||
|
Application.Terminate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
end.
|
||||||
24
V-0.6/Businss_p.dpr
Normal file
24
V-0.6/Businss_p.dpr
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
program Businss_p;
|
||||||
|
|
||||||
|
uses
|
||||||
|
Vcl.Forms,
|
||||||
|
Business_u in 'Business_u.pas' {frmBusiness},
|
||||||
|
UserLogin_u in 'UserLogin_u.pas' {frmUserLogin},
|
||||||
|
UserPage_u in 'UserPage_u.pas' {frmUserPage},
|
||||||
|
AdminAdd_u in 'AdminAdd_u.pas' {FrmAdminAdd},
|
||||||
|
Login_u in 'Login_u.pas' {DataUser: TDataModule},
|
||||||
|
AdminLogin_u in 'AdminLogin_u.pas' {frmAdminLogin};
|
||||||
|
|
||||||
|
{$R *.res}
|
||||||
|
|
||||||
|
begin
|
||||||
|
Application.Initialize;
|
||||||
|
Application.MainFormOnTaskbar := True;
|
||||||
|
Application.CreateForm(TfrmBusiness, frmBusiness);
|
||||||
|
Application.CreateForm(TfrmUserLogin, frmUserLogin);
|
||||||
|
Application.CreateForm(TfrmUserPage, frmUserPage);
|
||||||
|
Application.CreateForm(TFrmAdminAdd, FrmAdminAdd);
|
||||||
|
Application.CreateForm(TDataUser, DataUser);
|
||||||
|
Application.CreateForm(TfrmAdminLogin, frmAdminLogin);
|
||||||
|
Application.Run;
|
||||||
|
end.
|
||||||
869
V-0.6/Businss_p.dproj
Normal file
869
V-0.6/Businss_p.dproj
Normal file
@@ -0,0 +1,869 @@
|
|||||||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ProjectGuid>{CE582A19-AC64-4E10-B1D3-B56473C6E7E9}</ProjectGuid>
|
||||||
|
<ProjectVersion>18.7</ProjectVersion>
|
||||||
|
<FrameworkType>VCL</FrameworkType>
|
||||||
|
<MainSource>Businss_p.dpr</MainSource>
|
||||||
|
<Base>True</Base>
|
||||||
|
<Config Condition="'$(Config)'==''">Debug</Config>
|
||||||
|
<Platform Condition="'$(Platform)'==''">Win32</Platform>
|
||||||
|
<TargetedPlatforms>1</TargetedPlatforms>
|
||||||
|
<AppType>Application</AppType>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''">
|
||||||
|
<Base_Win32>true</Base_Win32>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
|
||||||
|
<Base_Win64>true</Base_Win64>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Debug' or '$(Cfg_1)'!=''">
|
||||||
|
<Cfg_1>true</Cfg_1>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''">
|
||||||
|
<Cfg_1_Win32>true</Cfg_1_Win32>
|
||||||
|
<CfgParent>Cfg_1</CfgParent>
|
||||||
|
<Cfg_1>true</Cfg_1>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''">
|
||||||
|
<Cfg_2>true</Cfg_2>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win32)'!=''">
|
||||||
|
<Cfg_2_Win32>true</Cfg_2_Win32>
|
||||||
|
<CfgParent>Cfg_2</CfgParent>
|
||||||
|
<Cfg_2>true</Cfg_2>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base)'!=''">
|
||||||
|
<DCC_DcuOutput>.\$(Platform)\$(Config)</DCC_DcuOutput>
|
||||||
|
<DCC_ExeOutput>.\$(Platform)\$(Config)</DCC_ExeOutput>
|
||||||
|
<DCC_E>false</DCC_E>
|
||||||
|
<DCC_N>false</DCC_N>
|
||||||
|
<DCC_S>false</DCC_S>
|
||||||
|
<DCC_F>false</DCC_F>
|
||||||
|
<DCC_K>false</DCC_K>
|
||||||
|
<DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
|
||||||
|
<Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
|
||||||
|
<UWP_DelphiLogo44>$(BDS)\bin\Artwork\Windows\UWP\delphi_UwpDefault_44.png</UWP_DelphiLogo44>
|
||||||
|
<UWP_DelphiLogo150>$(BDS)\bin\Artwork\Windows\UWP\delphi_UwpDefault_150.png</UWP_DelphiLogo150>
|
||||||
|
<SanitizedProjectName>Businss_p</SanitizedProjectName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_Win32)'!=''">
|
||||||
|
<DCC_UsePackage>DBXSqliteDriver;bindcompdbx;IndyIPCommon;RESTComponents;DBXInterBaseDriver;vcl;IndyIPServer;vclactnband;vclFireDAC;IndySystem;tethering;svnui;dsnapcon;FireDACADSDriver;FireDACMSAccDriver;fmxFireDAC;vclimg;TeeDB;FireDAC;vcltouch;vcldb;bindcompfmx;svn;FireDACSqliteDriver;FireDACPgDriver;ibmonitor;inetdb;FMXTee;soaprtl;DbxCommonDriver;FmxTeeUI;ibxpress;FireDACIBDriver;fmx;fmxdae;xmlrtl;soapmidas;ibxbindings;fmxobj;vclwinx;vclib;rtl;Tee;DbxClientDriver;CustomIPTransport;vcldsnap;dbexpress;IndyCore;vclx;bindcomp;appanalytics;dsnap;FireDACCommon;IndyIPClient;bindcompvcl;RESTBackendComponents;TeeUI;VCLRESTComponents;soapserver;dbxcds;VclSmp;adortl;vclie;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;inetdbxpress;IndyProtocols;FireDACCommonODBC;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage>
|
||||||
|
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
|
||||||
|
<BT_BuildType>Debug</BT_BuildType>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
||||||
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
|
<Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_Win64)'!=''">
|
||||||
|
<DCC_UsePackage>DBXSqliteDriver;bindcompdbx;IndyIPCommon;RESTComponents;DBXInterBaseDriver;vcl;IndyIPServer;vclactnband;vclFireDAC;IndySystem;tethering;dsnapcon;FireDACADSDriver;FireDACMSAccDriver;fmxFireDAC;vclimg;TeeDB;FireDAC;vcltouch;vcldb;bindcompfmx;FireDACSqliteDriver;FireDACPgDriver;ibmonitor;inetdb;FMXTee;soaprtl;DbxCommonDriver;FmxTeeUI;ibxpress;FireDACIBDriver;fmx;fmxdae;xmlrtl;soapmidas;ibxbindings;fmxobj;vclwinx;vclib;rtl;Tee;DbxClientDriver;CustomIPTransport;vcldsnap;dbexpress;IndyCore;vclx;bindcomp;appanalytics;dsnap;FireDACCommon;IndyIPClient;bindcompvcl;RESTBackendComponents;TeeUI;VCLRESTComponents;soapserver;dbxcds;VclSmp;adortl;vclie;bindengine;DBXMySQLDriver;CloudService;dsnapxml;FireDACMySQLDriver;dbrtl;inetdbxpress;IndyProtocols;FireDACCommonODBC;FireDACCommonDriver;inet;fmxase;$(DCC_UsePackage)</DCC_UsePackage>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_1)'!=''">
|
||||||
|
<DCC_Define>DEBUG;$(DCC_Define)</DCC_Define>
|
||||||
|
<DCC_DebugDCUs>true</DCC_DebugDCUs>
|
||||||
|
<DCC_Optimize>false</DCC_Optimize>
|
||||||
|
<DCC_GenerateStackFrames>true</DCC_GenerateStackFrames>
|
||||||
|
<DCC_DebugInfoInExe>true</DCC_DebugInfoInExe>
|
||||||
|
<DCC_RemoteDebug>true</DCC_RemoteDebug>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
|
||||||
|
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
|
||||||
|
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
|
<DCC_RemoteDebug>false</DCC_RemoteDebug>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_2)'!=''">
|
||||||
|
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
|
||||||
|
<DCC_Define>RELEASE;$(DCC_Define)</DCC_Define>
|
||||||
|
<DCC_SymbolReferenceInfo>0</DCC_SymbolReferenceInfo>
|
||||||
|
<DCC_DebugInformation>0</DCC_DebugInformation>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
|
||||||
|
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>
|
||||||
|
<AppDPIAwarenessMode>PerMonitorV2</AppDPIAwarenessMode>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<DelphiCompile Include="$(MainSource)">
|
||||||
|
<MainSource>MainSource</MainSource>
|
||||||
|
</DelphiCompile>
|
||||||
|
<DCCReference Include="Business_u.pas">
|
||||||
|
<Form>frmBusiness</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="UserLogin_u.pas">
|
||||||
|
<Form>frmUserLogin</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="UserPage_u.pas">
|
||||||
|
<Form>frmUserPage</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="AdminAdd_u.pas">
|
||||||
|
<Form>FrmAdminAdd</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="Login_u.pas">
|
||||||
|
<Form>DataUser</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
<DesignClass>TDataModule</DesignClass>
|
||||||
|
</DCCReference>
|
||||||
|
<DCCReference Include="AdminLogin_u.pas">
|
||||||
|
<Form>frmAdminLogin</Form>
|
||||||
|
<FormType>dfm</FormType>
|
||||||
|
</DCCReference>
|
||||||
|
<BuildConfiguration Include="Release">
|
||||||
|
<Key>Cfg_2</Key>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
</BuildConfiguration>
|
||||||
|
<BuildConfiguration Include="Base">
|
||||||
|
<Key>Base</Key>
|
||||||
|
</BuildConfiguration>
|
||||||
|
<BuildConfiguration Include="Debug">
|
||||||
|
<Key>Cfg_1</Key>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
</BuildConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<ProjectExtensions>
|
||||||
|
<Borland.Personality>Delphi.Personality.12</Borland.Personality>
|
||||||
|
<Borland.ProjectType>Application</Borland.ProjectType>
|
||||||
|
<BorlandProject>
|
||||||
|
<Delphi.Personality>
|
||||||
|
<Source>
|
||||||
|
<Source Name="MainSource">Businss_p.dpr</Source>
|
||||||
|
</Source>
|
||||||
|
<Excluded_Packages>
|
||||||
|
<Excluded_Packages Name="$(BDSBIN)\dcloffice2k260.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
|
||||||
|
<Excluded_Packages Name="$(BDSBIN)\dclofficexp260.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
|
||||||
|
</Excluded_Packages>
|
||||||
|
</Delphi.Personality>
|
||||||
|
<Deployment Version="3">
|
||||||
|
<DeployFile LocalName="Win32\Debug\Businss_p.exe" Configuration="Debug" Class="ProjectOutput">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<RemoteName>Businss_p.exe</RemoteName>
|
||||||
|
<Overwrite>true</Overwrite>
|
||||||
|
</Platform>
|
||||||
|
</DeployFile>
|
||||||
|
<DeployClass Name="AdditionalDebugSymbols">
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidClassesDexFile">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>classes</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidFileProvider">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\xml</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidGDBServer">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidLibnativeArmeabiFile">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\armeabi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidLibnativeMipsFile">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\mips</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidServiceOutput">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidSplashImageDef">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidSplashStyles">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\values</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="AndroidSplashStylesV21">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\values-v21</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_Colors">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\values</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_DefaultAppIcon">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon144">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon36">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-ldpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon48">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-mdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon72">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-hdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon96">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_NotificationIcon24">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-mdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_NotificationIcon36">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-hdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_NotificationIcon48">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_NotificationIcon72">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_NotificationIcon96">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xxxhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage426">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-small</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage470">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-normal</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage640">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-large</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage960">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xlarge</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_Strings">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\values</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DebugSymbols">
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DependencyFramework">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.framework</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.framework</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DependencyModule">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
<Extensions>.dll;.bpl</Extensions>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Required="true" Name="DependencyPackage">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
<Extensions>.bpl</Extensions>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="File">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\Resources\StartUp\</RemoteDir>
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\Resources\StartUp\</RemoteDir>
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1024x768">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1536x2048">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1668">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1668x2388">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2048x1536">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2048x2732">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2224">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2388x1668">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2732x2048">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch768x1024">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1125">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1136x640">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1242">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1242x2688">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1334">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch1792">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch2208">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch2436">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch2688x1242">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch320">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch640">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch640x1136">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch750">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch828">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectAndroidManifest">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSDeviceDebug">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSDeviceResourceRules">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSEntitlements">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<RemoteDir>..\</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<RemoteDir>..\</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSInfoPList">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSResource">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectOSXDebug">
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectOSXEntitlements">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>..\</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>..\</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectOSXInfoPList">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectOSXResource">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\Resources</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\Resources</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Required="true" Name="ProjectOutput">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Linux64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX64">
|
||||||
|
<RemoteDir>Contents\MacOS</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectUWPManifest">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="UWP_DelphiLogo150">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="UWP_DelphiLogo44">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/>
|
||||||
|
<ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
|
||||||
|
<ProjectRoot Platform="Linux64" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME).app"/>
|
||||||
|
<ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="OSX64" Name="$(PROJECTNAME).app"/>
|
||||||
|
<ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/>
|
||||||
|
</Deployment>
|
||||||
|
<Platforms>
|
||||||
|
<Platform value="Win32">True</Platform>
|
||||||
|
<Platform value="Win64">False</Platform>
|
||||||
|
</Platforms>
|
||||||
|
<ModelSupport>False</ModelSupport>
|
||||||
|
</BorlandProject>
|
||||||
|
<ProjectFileVersion>12</ProjectFileVersion>
|
||||||
|
</ProjectExtensions>
|
||||||
|
<Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
|
||||||
|
<Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
|
||||||
|
<Import Project="$(MSBuildProjectName).deployproj" Condition="Exists('$(MSBuildProjectName).deployproj')"/>
|
||||||
|
</Project>
|
||||||
30
V-0.6/Businss_p.dproj.local
Normal file
30
V-0.6/Businss_p.dproj.local
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<BorlandProject>
|
||||||
|
<Transactions>
|
||||||
|
<Transaction>2019/07/30 09:45:13.000.616,=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 09:49:07.000.709,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Busniss_u.pas=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 09:49:07.000.709,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Busniss_u.dfm=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\Unit1.dfm</Transaction>
|
||||||
|
<Transaction>2019/07/30 09:49:35.000.497,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Businss_p.dproj=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\Project1.dproj</Transaction>
|
||||||
|
<Transaction>2019/07/30 11:49:46.000.376,=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit2.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 11:52:04.000.125,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit2.pas=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\UserLogin_u.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 11:52:04.000.125,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit2.dfm=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\UserLogin_u.dfm</Transaction>
|
||||||
|
<Transaction>2019/07/30 13:49:23.000.797,=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit3.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 13:51:05.000.314,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\UserPage_u.dfm=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit3.dfm</Transaction>
|
||||||
|
<Transaction>2019/07/30 13:51:05.000.314,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\UserPage_u.pas=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit3.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 20:32:29.000.824,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Busniss_u.dfm=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Business_u.dfm</Transaction>
|
||||||
|
<Transaction>2019/07/30 20:32:29.000.824,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Busniss_u.pas=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Business_u.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 22:36:58.000.768,=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/30 22:40:29.000.616,C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas=C:\Users\mrfluffy\Documents\Embarcadero\Studio\Projects\pat\UnitFormSwap_u.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 09:54:36.000.890,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\UnitFormSwap_u.pas=</Transaction>
|
||||||
|
<Transaction>2019/07/31 10:10:05.000.012,=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 10:15:59.000.465,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\AdminAdd_u.dfm=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.dfm</Transaction>
|
||||||
|
<Transaction>2019/07/31 10:15:59.000.465,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\AdminAdd_u.pas=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 11:23:49.000.093,=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 12:23:57.000.939,=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 12:30:00.000.906,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Login_u.pas=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/07/31 12:30:00.000.906,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Login_u.dfm=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.dfm</Transaction>
|
||||||
|
<Transaction>2019/08/01 12:21:23.000.502,=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas</Transaction>
|
||||||
|
<Transaction>2019/08/01 12:54:49.000.018,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.pas=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\AdminLogin_u.pas</Transaction>
|
||||||
|
<Transaction>2019/08/01 12:54:49.000.018,C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\Unit1.dfm=C:\Users\mrfluffy\OneDrive\Documents\Embarcadero\Studio\Projects\pat\AdminLogin_u.dfm</Transaction>
|
||||||
|
</Transactions>
|
||||||
|
</BorlandProject>
|
||||||
BIN
V-0.6/Businss_p.identcache
Normal file
BIN
V-0.6/Businss_p.identcache
Normal file
Binary file not shown.
BIN
V-0.6/Businss_p.res
Normal file
BIN
V-0.6/Businss_p.res
Normal file
Binary file not shown.
BIN
V-0.6/Huawei-Logo.png
Normal file
BIN
V-0.6/Huawei-Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
22
V-0.6/Login_u.dfm
Normal file
22
V-0.6/Login_u.dfm
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
object DataUser: TDataUser
|
||||||
|
OldCreateOrder = False
|
||||||
|
Height = 396
|
||||||
|
Width = 655
|
||||||
|
object dtaUsers: TDataSource
|
||||||
|
Left = 176
|
||||||
|
Top = 128
|
||||||
|
end
|
||||||
|
object adoUser: TADOQuery
|
||||||
|
ConnectionString =
|
||||||
|
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\mrfluffy\O' +
|
||||||
|
'neDrive\Documents\Embarcadero\Studio\Projects\pat\Uses.mdb;Persi' +
|
||||||
|
'st Security Info=False'
|
||||||
|
CursorType = ctStatic
|
||||||
|
DataSource = dtaUsers
|
||||||
|
Parameters = <>
|
||||||
|
SQL.Strings = (
|
||||||
|
'SELECT * FROM Login')
|
||||||
|
Left = 80
|
||||||
|
Top = 128
|
||||||
|
end
|
||||||
|
end
|
||||||
28
V-0.6/Login_u.pas
Normal file
28
V-0.6/Login_u.pas
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
unit Login_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB, Data.FMTBcd,
|
||||||
|
Data.DBXMySQL, Data.SqlExpr;
|
||||||
|
|
||||||
|
type
|
||||||
|
TDataUser = class(TDataModule)
|
||||||
|
dtaUsers: TDataSource;
|
||||||
|
adoUser: TADOQuery;
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
DataUser: TDataUser;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{%CLASSGROUP 'Vcl.Controls.TControl'}
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
end.
|
||||||
19
V-0.6/UnitFormSwap_u.pas
Normal file
19
V-0.6/UnitFormSwap_u.pas
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
unit UnitFormSwap_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
uses
|
||||||
|
System.sysutils, Winapi.Messages;
|
||||||
|
|
||||||
|
type
|
||||||
|
FormSwap = class(TObject);
|
||||||
|
public
|
||||||
|
//function swapBtoL : string;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
procedure FormSwap.swapBtoL();
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
1665
V-0.6/UserLogin_u.dfm
Normal file
1665
V-0.6/UserLogin_u.dfm
Normal file
File diff suppressed because it is too large
Load Diff
111
V-0.6/UserLogin_u.pas
Normal file
111
V-0.6/UserLogin_u.pas
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
unit UserLogin_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
||||||
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.pngimage, Vcl.ExtCtrls,
|
||||||
|
Vcl.StdCtrls,UserPage_u,Login_u, Vcl.Menus;
|
||||||
|
|
||||||
|
type
|
||||||
|
TfrmUserLogin = class(TForm)
|
||||||
|
edtUsername: TEdit;
|
||||||
|
edtPassword: TEdit;
|
||||||
|
btnLogin: TButton;
|
||||||
|
logo: TImage;
|
||||||
|
Label1: TLabel;
|
||||||
|
MainMenu1: TMainMenu;
|
||||||
|
Cancel1: TMenuItem;
|
||||||
|
procedure edtPasswordDblClick(Sender: TObject);
|
||||||
|
procedure edtUsernameDblClick(Sender: TObject);
|
||||||
|
procedure btnLoginClick(Sender: TObject);
|
||||||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
procedure Cancel1Click(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
var
|
||||||
|
Closed : Boolean;
|
||||||
|
sUsername : string;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
frmUserLogin: TfrmUserLogin;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
uses Business_u;
|
||||||
|
|
||||||
|
procedure TfrmUserLogin.btnLoginClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
sPassword : string;
|
||||||
|
iUser : Integer;
|
||||||
|
bolAdmin : Boolean;
|
||||||
|
begin
|
||||||
|
sUsername:= edtUsername.Text;
|
||||||
|
sPassword:= edtPassword.Text;
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('SELECT ID, Admin FROM Login WHERE Username = :reg0 AND pass = :reg1');
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('reg0').Value:= sUsername;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('reg1').Value:= sPassword;
|
||||||
|
DataUser.adoUser.Open;
|
||||||
|
iUser:= DataUser.adoUser.FieldByName('ID').AsInteger;
|
||||||
|
bolAdmin := DataUser.adoUser.FieldByName('Admin').AsBoolean;
|
||||||
|
// ShowMessage(IntToStr(iUser));
|
||||||
|
|
||||||
|
if iUser > 0 then
|
||||||
|
begin
|
||||||
|
if bolAdmin = False then
|
||||||
|
begin
|
||||||
|
frmUserPage.Show;
|
||||||
|
frmUserLogin.Hide;
|
||||||
|
frmUserPage.sUserInUse:= sUsername;
|
||||||
|
edtUsername.Text:='Username';
|
||||||
|
edtPassword.Text:='Password';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('User is Admin pleas use Admin login page');
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ShowMessage('Username or Password incorect');
|
||||||
|
DataUser.adoUser.Close;
|
||||||
|
exit
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserLogin.Cancel1Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
frmBusiness.Show;
|
||||||
|
frmUserLogin.Hide;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserLogin.edtUsernameDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtUsername.Text:='';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserLogin.edtPasswordDblClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
edtPassword.Text:='';
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserLogin.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
begin
|
||||||
|
Application.Terminate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
77
V-0.6/UserPage_u.dfm
Normal file
77
V-0.6/UserPage_u.dfm
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
object frmUserPage: TfrmUserPage
|
||||||
|
Left = 0
|
||||||
|
Top = 0
|
||||||
|
Caption = 'User Page'
|
||||||
|
ClientHeight = 519
|
||||||
|
ClientWidth = 777
|
||||||
|
Color = clDefault
|
||||||
|
Font.Charset = DEFAULT_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -11
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
Menu = MainMenu1
|
||||||
|
OldCreateOrder = False
|
||||||
|
Position = poDesktopCenter
|
||||||
|
OnClose = FormClose
|
||||||
|
OnCreate = FormCreate
|
||||||
|
PixelsPerInch = 96
|
||||||
|
TextHeight = 13
|
||||||
|
object redtGoles: TRichEdit
|
||||||
|
Left = 310
|
||||||
|
Top = 8
|
||||||
|
Width = 454
|
||||||
|
Height = 264
|
||||||
|
Font.Charset = ANSI_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -11
|
||||||
|
Font.Name = 'Tahoma'
|
||||||
|
Font.Style = []
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 0
|
||||||
|
Zoom = 100
|
||||||
|
end
|
||||||
|
object caleUser: TCalendar
|
||||||
|
Left = 7
|
||||||
|
Top = 8
|
||||||
|
Width = 297
|
||||||
|
Height = 264
|
||||||
|
StartOfWeek = 0
|
||||||
|
TabOrder = 1
|
||||||
|
OnChange = caleUserChange
|
||||||
|
end
|
||||||
|
object Panel1: TPanel
|
||||||
|
Left = 8
|
||||||
|
Top = 288
|
||||||
|
Width = 296
|
||||||
|
Height = 65
|
||||||
|
Caption = 'Panel1'
|
||||||
|
TabOrder = 2
|
||||||
|
object btnClockIn: TButton
|
||||||
|
Left = 0
|
||||||
|
Top = 0
|
||||||
|
Width = 137
|
||||||
|
Height = 65
|
||||||
|
Caption = 'Clock In'
|
||||||
|
TabOrder = 0
|
||||||
|
OnClick = btnClockInClick
|
||||||
|
end
|
||||||
|
object btnClockOut: TButton
|
||||||
|
Left = 160
|
||||||
|
Top = 0
|
||||||
|
Width = 137
|
||||||
|
Height = 65
|
||||||
|
Caption = 'Clock Out'
|
||||||
|
TabOrder = 1
|
||||||
|
OnClick = btnClockOutClick
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object MainMenu1: TMainMenu
|
||||||
|
Left = 8
|
||||||
|
Top = 368
|
||||||
|
object Logout1: TMenuItem
|
||||||
|
Caption = 'Logout'
|
||||||
|
OnClick = Logout1Click
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
139
V-0.6/UserPage_u.pas
Normal file
139
V-0.6/UserPage_u.pas
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
unit UserPage_u;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
||||||
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls, Vcl.Grids,
|
||||||
|
Vcl.Samples.Calendar, Vcl.Menus, Vcl.ExtCtrls;
|
||||||
|
|
||||||
|
type
|
||||||
|
TfrmUserPage = class(TForm)
|
||||||
|
redtGoles: TRichEdit;
|
||||||
|
MainMenu1: TMainMenu;
|
||||||
|
Logout1: TMenuItem;
|
||||||
|
caleUser: TCalendar;
|
||||||
|
Panel1: TPanel;
|
||||||
|
btnClockIn: TButton;
|
||||||
|
btnClockOut: TButton;
|
||||||
|
procedure Button1Click(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
procedure ComboBox1Change(Sender: TObject);
|
||||||
|
procedure Logout1Click(Sender: TObject);
|
||||||
|
procedure caleUserChange(Sender: TObject);
|
||||||
|
procedure btnClockInClick(Sender: TObject);
|
||||||
|
procedure btnClockOutClick(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ Private declarations }
|
||||||
|
var
|
||||||
|
iDay : Integer;
|
||||||
|
public
|
||||||
|
{ Public declarations }
|
||||||
|
var
|
||||||
|
closed : Boolean;
|
||||||
|
sUserInUse : string;
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
frmUserPage: TfrmUserPage;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{$R *.dfm}
|
||||||
|
|
||||||
|
uses Business_u, Login_u;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.btnClockInClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
iConfirm : Integer;
|
||||||
|
begin
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('INSERT INTO ClockLog(InOut,DateLog,TimeLog,Username) VALUES(:par0,:par1,:par2,:par3)');
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par0').Value:='In';
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par1').Value:=DateToStr(Date);
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par2').Value:=TimeToStr(time);
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par3').Value:=sUserInUse;
|
||||||
|
iConfirm:=MessageDlg('Confirm Clock in', mtConfirmation, mbYesNo, 7);
|
||||||
|
if iConfirm = 7 then exit;
|
||||||
|
if iConfirm = 6 then DataUser.adoUser.ExecSQL;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.btnClockOutClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
iConfirm : Integer;
|
||||||
|
begin
|
||||||
|
DataUser.adoUser.SQL.Clear;
|
||||||
|
DataUser.adoUser.SQL.Add('INSERT INTO ClockLog(InOut,DateLog,TimeLog,Username) VALUES(:par0,:par1,:par2,:par3)');
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par0').Value:='Out';
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par1').Value:=Date;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par2').Value:=time;
|
||||||
|
DataUser.adoUser.Parameters.ParamByName('par3').Value:=sUserInUse;
|
||||||
|
iConfirm:=MessageDlg('Confirm Clock OUT', mtConfirmation, mbYesNo, 7);
|
||||||
|
if iConfirm = 7 then exit;
|
||||||
|
if iConfirm = 6 then DataUser.adoUser.ExecSQL;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.Button1Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
closed:=True;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.caleUserChange(Sender: TObject);
|
||||||
|
var
|
||||||
|
i : Integer;
|
||||||
|
Goletext : TextFile;
|
||||||
|
sLine : string ;
|
||||||
|
begin
|
||||||
|
iday:=caleUser.Day;
|
||||||
|
redtGoles.Text:='';
|
||||||
|
//ShowMessage(sUserName+IntToStr(iDay)+'.txt');
|
||||||
|
AssignFile(Goletext, sUserInUse+IntToStr(iDay)+'.txt');
|
||||||
|
if sUserInUse > '' then
|
||||||
|
begin
|
||||||
|
if FileExists(sUserInUse+IntToStr(iDay)+'.txt') then
|
||||||
|
begin
|
||||||
|
redtGoles.Text:='';
|
||||||
|
reset(Goletext);
|
||||||
|
while not Eof(Goletext) do
|
||||||
|
begin
|
||||||
|
Readln(Goletext, sLine);
|
||||||
|
redtGoles.Lines.Add(sLine);
|
||||||
|
end;
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
Rewrite(Goletext);
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
exit;
|
||||||
|
CloseFile(Goletext);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.ComboBox1Change(Sender: TObject);
|
||||||
|
begin
|
||||||
|
// if ComboBox1.Text = 'LogOut' then
|
||||||
|
// closed:= True;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
|
begin
|
||||||
|
Application.Terminate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
iDay:=caleUser.Day;
|
||||||
|
closed:=False;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmUserPage.Logout1Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
frmBusiness.show;
|
||||||
|
frmUserPage.Free;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end.
|
||||||
BIN
V-0.6/Uses.ldb
Normal file
BIN
V-0.6/Uses.ldb
Normal file
Binary file not shown.
BIN
V-0.6/Uses.mdb
Normal file
BIN
V-0.6/Uses.mdb
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/AdminAdd_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/AdminAdd_u.dcu
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/AdminLogin_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/AdminLogin_u.dcu
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/Business_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/Business_u.dcu
Normal file
Binary file not shown.
22
V-0.6/Win32/Debug/Businss_p.cmds
Normal file
22
V-0.6/Win32/Debug/Businss_p.cmds
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
-I"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\debug"
|
||||||
|
-I"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\release"
|
||||||
|
-I"C:\Users\mrfluffy\Documents\Embarcadero\Studio\20.0\Imports"
|
||||||
|
-I"c:\program files (x86)\embarcadero\studio\20.0\Imports"
|
||||||
|
-I"C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp"
|
||||||
|
-I"c:\program files (x86)\embarcadero\studio\20.0\include"
|
||||||
|
-O"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\release"
|
||||||
|
-O"C:\Users\mrfluffy\Documents\Embarcadero\Studio\20.0\Imports"
|
||||||
|
-O"c:\program files (x86)\embarcadero\studio\20.0\Imports"
|
||||||
|
-O"C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp"
|
||||||
|
-O"c:\program files (x86)\embarcadero\studio\20.0\include"
|
||||||
|
-R"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\release"
|
||||||
|
-R"C:\Users\mrfluffy\Documents\Embarcadero\Studio\20.0\Imports"
|
||||||
|
-R"c:\program files (x86)\embarcadero\studio\20.0\Imports"
|
||||||
|
-R"C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp"
|
||||||
|
-R"c:\program files (x86)\embarcadero\studio\20.0\include"
|
||||||
|
-U"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\debug"
|
||||||
|
-U"c:\program files (x86)\embarcadero\studio\20.0\lib\Win32\release"
|
||||||
|
-U"C:\Users\mrfluffy\Documents\Embarcadero\Studio\20.0\Imports"
|
||||||
|
-U"c:\program files (x86)\embarcadero\studio\20.0\Imports"
|
||||||
|
-U"C:\Users\Public\Documents\Embarcadero\Studio\20.0\Dcp"
|
||||||
|
-U"c:\program files (x86)\embarcadero\studio\20.0\include"
|
||||||
BIN
V-0.6/Win32/Debug/Businss_p.exe
Normal file
BIN
V-0.6/Win32/Debug/Businss_p.exe
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/Businss_p.rsm
Normal file
BIN
V-0.6/Win32/Debug/Businss_p.rsm
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/Busniss_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/Busniss_u.dcu
Normal file
Binary file not shown.
0
V-0.6/Win32/Debug/Ian Pretorius9.txt
Normal file
0
V-0.6/Win32/Debug/Ian Pretorius9.txt
Normal file
0
V-0.6/Win32/Debug/Janco Bester23.txt
Normal file
0
V-0.6/Win32/Debug/Janco Bester23.txt
Normal file
2
V-0.6/Win32/Debug/Janco Bester24.txt
Normal file
2
V-0.6/Win32/Debug/Janco Bester24.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
moenie dood gaan nie
|
||||||
|
|
||||||
1
V-0.6/Win32/Debug/Janco Bester30.txt
Normal file
1
V-0.6/Win32/Debug/Janco Bester30.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
saxnsjcbaub
|
||||||
0
V-0.6/Win32/Debug/Janco Bester5.txt
Normal file
0
V-0.6/Win32/Debug/Janco Bester5.txt
Normal file
BIN
V-0.6/Win32/Debug/Login_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/Login_u.dcu
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/Unit1.dcu
Normal file
BIN
V-0.6/Win32/Debug/Unit1.dcu
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/UserLogin_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/UserLogin_u.dcu
Normal file
Binary file not shown.
BIN
V-0.6/Win32/Debug/UserPage_u.dcu
Normal file
BIN
V-0.6/Win32/Debug/UserPage_u.dcu
Normal file
Binary file not shown.
0
V-0.6/Win32/Debug/camdon alec vosloo12.txt
Normal file
0
V-0.6/Win32/Debug/camdon alec vosloo12.txt
Normal file
2
V-0.6/Win32/Debug/camdon alec vosloo15.txt
Normal file
2
V-0.6/Win32/Debug/camdon alec vosloo15.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
you have to not die
|
||||||
|
|
||||||
1
V-0.6/Win32/Debug/zastian13.txt
Normal file
1
V-0.6/Win32/Debug/zastian13.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
Reference in New Issue
Block a user