Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
9328b545
Commit
9328b545
authored
May 31, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add migration files, model files and changes
parent
7466407f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
110 additions
and
9 deletions
+110
-9
database/migrations/2022_05_31_091643_create_overhead_table.php
+38
-0
database/migrations/2022_05_31_094032_change_datatype_p_project_code_in_project_tbl.php
+32
-0
packages/portal/timesheet/resources/views/dashboard/borangBolehCaj.blade.php
+8
-6
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+2
-2
packages/portal/timesheet/src/Model/Project.php
+29
-0
packages/portal/timesheet/src/Model/ts_master.php
+1
-1
No files found.
database/migrations/2022_05_31_091643_create_overhead_table.php
0 → 100644
View file @
9328b545
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
CreateOverheadTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'overhead'
,
function
(
Blueprint
$table
)
{
$table
->
increments
(
'id'
);
$table
->
integer
(
'o_id'
)
->
nullable
()
->
unsigned
();
$table
->
string
(
'o_overhead_desc'
,
50
)
->
nullable
();
$table
->
integer
(
'o_overhead_sts'
)
->
nullable
()
->
unsigned
();
$table
->
timestamps
();
$table
->
integer
(
'updated_by'
)
->
nullable
();
$table
->
softDeletes
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'overhead'
);
}
}
database/migrations/2022_05_31_094032_change_datatype_p_project_code_in_project_tbl.php
0 → 100644
View file @
9328b545
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
ChangeDatatypePProjectCodeInProjectTbl
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'project'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'p_project_code'
,
50
)
->
nullable
()
->
change
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'project'
,
function
(
Blueprint
$table
)
{
//
});
}
}
packages/portal/timesheet/resources/views/dashboard/borangBolehCaj.blade.php
View file @
9328b545
...
@@ -27,7 +27,10 @@ input[type=number] {
...
@@ -27,7 +27,10 @@ input[type=number] {
<th colspan="
2
">Chargeable</th>
<th colspan="
2
">Chargeable</th>
<th colspan="
15
" class="
center
aligned
">Date</th>
<th colspan="
15
" class="
center
aligned
">Date</th>
<th>
<th>
<button type="
submit
" class="
center
aligned
ui
blue
compact
labeled
icon
button
">
<i class="
save
icon
"></i>
Save
</button>
</th>
</th>
</tr>
</tr>
<tr>
<tr>
...
@@ -51,9 +54,11 @@ input[type=number] {
...
@@ -51,9 +54,11 @@ input[type=number] {
<td>
<td>
{
{$projectname}
}
{
{$projectname}
}
</td>
</td>
<td colspan="
15
">
@for(
$i
= 0;
$i
< 15 ;
$i
++)
<td >
<input type="
number
" onkeypress="
onlynumber
(
event
)
" name="
tm_chargeable_hrs
" min="
0
" max="
24
" style="
padding
-
right
:
4
px
;
padding
-
left
:
4
px
;
" onchange="
limiter
(
this
);
">
<input type="
number
" onkeypress="
onlynumber
(
event
)
" name="
tm_chargeable_hrs
" min="
0
" max="
24
" style="
padding
-
right
:
4
px
;
padding
-
left
:
4
px
;
" onchange="
limiter
(
this
);
">
</td>
</td>
@endfor
<td>
<td>
<input type="
number
" onkeypress="
onlynumber
(
event
)
" name="" style="
padding
-
right
:
4
px
;
padding
-
left
:
4
px
;
" onchange="
limiter
(
this
);
" readonly="">
<input type="
number
" onkeypress="
onlynumber
(
event
)
" name="" style="
padding
-
right
:
4
px
;
padding
-
left
:
4
px
;
" onchange="
limiter
(
this
);
" readonly="">
</td>
</td>
...
@@ -62,10 +67,7 @@ input[type=number] {
...
@@ -62,10 +67,7 @@ input[type=number] {
</tbody>
</tbody>
</table>
</table>
<button type="
submit
" class="
center
aligned
ui
blue
compact
labeled
icon
button
">
<i class="
save
icon
"></i>
Save
</button>
</form>
</form>
</div>
</div>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
9328b545
...
@@ -6,7 +6,7 @@ use Illuminate\Routing\Controller;
...
@@ -6,7 +6,7 @@ use Illuminate\Routing\Controller;
use
Carbon\Carbon
;
use
Carbon\Carbon
;
use
DB
;
use
DB
;
use
Portal\Timesheet\Model\Users
;
use
Portal\Timesheet\Model\Users
;
use
Portal\Timesheet\Model\
t
s_master
;
use
Portal\Timesheet\Model\
T
s_master
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Input
;
use
Illuminate\Support\Facades\Input
;
use
File
;
use
File
;
...
@@ -101,7 +101,7 @@ class DashboardController extends Controller
...
@@ -101,7 +101,7 @@ class DashboardController extends Controller
{
{
// dd($request);
// dd($request);
$data
=
new
t
s_master
;
$data
=
new
T
s_master
;
$data
->
tm_chargeable_hrs
=
$request
->
tm_chargeable_hrs
;
$data
->
tm_chargeable_hrs
=
$request
->
tm_chargeable_hrs
;
$data
->
save
();
$data
->
save
();
return
redirect
(
'home'
);
return
redirect
(
'home'
);
...
...
packages/portal/timesheet/src/Model/Project.php
0 → 100644
View file @
9328b545
<?php
namespace
Portal\Timesheet\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
Project
extends
Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected
$table
=
'project'
;
/**
* undocumented function
*
* @return void
* @author
**/
public
function
info
()
{
}
}
packages/portal/timesheet/src/Model/ts_master.php
View file @
9328b545
...
@@ -4,7 +4,7 @@ namespace Portal\Timesheet\Model;
...
@@ -4,7 +4,7 @@ namespace Portal\Timesheet\Model;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
class
t
s_master
extends
Model
class
T
s_master
extends
Model
{
{
/**
/**
* The database table used by the model.
* The database table used by the model.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment