Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PharmacySMSReport
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
PharmacySMSReport
Commits
43330c78
Commit
43330c78
authored
4 years ago
by
Venubabu Sunkara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Date format added
parent
830932eb
Pipeline
#47459
passed with stages
in 35 seconds
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
17 deletions
+37
-17
PharmaStoreReport/Views/Home/Index.cshtml
PharmaStoreReport/Views/Home/Index.cshtml
+1
-1
PharmaStoreReport/Views/Shared/_Layout.cshtml
PharmaStoreReport/Views/Shared/_Layout.cshtml
+6
-4
PharmaStoreReport/wwwroot/css/bootstrap-datepicker3.min.css
PharmaStoreReport/wwwroot/css/bootstrap-datepicker3.min.css
+7
-0
PharmaStoreReport/wwwroot/js/bootstrap-datepicker.min.js
PharmaStoreReport/wwwroot/js/bootstrap-datepicker.min.js
+8
-0
PharmaStoreReport/wwwroot/js/validate-home.js
PharmaStoreReport/wwwroot/js/validate-home.js
+15
-12
No files found.
PharmaStoreReport/Views/Home/Index.cshtml
View file @
43330c78
...
...
@@ -19,7 +19,7 @@
<div
class=
"sms_report"
>
<h1>
SMS Reports
</h1>
<div
class=
"form-group mb-0"
>
<input
type=
"
date"
class=
"form-control"
id=
"theDate"
placeholder=
"DD/MM/YYYY
"
/>
<input
type=
"
text"
class=
"form-control"
id=
"theDate"
placeholder=
"YYYY/MM/DD
"
/>
</div>
</div>
</aside>
...
...
This diff is collapsed.
Click to expand it.
PharmaStoreReport/Views/Shared/_Layout.cshtml
View file @
43330c78
...
...
@@ -6,16 +6,18 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
@ViewData["Title"] - PharmaStoreReport
</title>
<link
href=
"~/css/main.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"~/css/bootstrap-datepicker3.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
@RenderBody()
@*
<footer
class=
"border-top footer text-muted"
>
<div
class=
"container"
>
©
2021 - PharmaStoreReport -
<a
asp-area=
""
asp-controller=
"Home"
asp-action=
"Privacy"
>
Privacy
</a>
</div>
</footer>
*@
<div
class=
"container"
>
©
2021 - PharmaStoreReport -
<a
asp-area=
""
asp-controller=
"Home"
asp-action=
"Privacy"
>
Privacy
</a>
</div>
</footer>
*@
<script
src=
"~/js/main.min.js"
type=
"text/javascript"
></script>
<script
src=
"~/js/bootstrap-datepicker.min.js"
type=
"text/javascript"
></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
PharmaStoreReport/wwwroot/css/bootstrap-datepicker3.min.css
0 → 100644
View file @
43330c78
This diff is collapsed.
Click to expand it.
PharmaStoreReport/wwwroot/js/bootstrap-datepicker.min.js
0 → 100644
View file @
43330c78
This diff is collapsed.
Click to expand it.
PharmaStoreReport/wwwroot/js/validate-home.js
View file @
43330c78
...
...
@@ -3,9 +3,21 @@ var fileCount = 0;
var
fileNames
=
[];
var
pfileList
=
[];
$
(
function
()
{
ShowDatesInCalander
();
$
(
"
#theDate
"
).
datepicker
({
format
:
"
d MM yyyy
"
,
todayHighlight
:
true
,
autoclose
:
true
}).
datepicker
(
"
setDate
"
,
new
Date
());;
$
(
"
#Months
"
).
change
(
function
()
{
$
(
'
#txtMonth
'
).
val
(
$
(
'
.months-drop :selected
'
).
text
());
$
(
'
#txtMonth
'
).
val
(
$
(
'
#Months option :selected
'
).
text
());
var
year
=
$
(
'
#Years option:selected
'
).
val
();
var
month
=
$
(
'
#Months option:selected
'
).
val
();
if
(
year
!=
"
0
"
&&
month
!=
"
0
"
)
{
$
(
"
#theDate
"
).
datepicker
(
"
setDate
"
,
new
Date
(
year
+
"
-
"
+
month
+
"
-
"
+
new
Date
().
getDate
()));
}
else
{
$
(
"
#theDate
"
).
datepicker
(
"
setDate
"
,
new
Date
());
}
});
$
(
'
#Years
'
).
change
(
function
()
{
Year
=
$
(
'
#Years option:selected
'
).
val
();
...
...
@@ -35,6 +47,7 @@ $(function () {
var
dropdown
=
$
(
'
#Months
'
);
dropdown
.
empty
();
dropdown
.
prepend
(
'
<option selected="selected" value="0"> Select Month </option>
'
);
$
(
"
#theDate
"
).
datepicker
(
"
setDate
"
,
new
Date
());
}
});
$
(
'
.download-excels
'
).
click
(
function
()
{
...
...
@@ -172,14 +185,4 @@ function RemoveItems() {
fileCount
=
fileCount
-
1
;
}
}
}
function
ShowDatesInCalander
()
{
var
date
=
new
Date
();
var
day
=
date
.
getDate
();
var
month
=
date
.
getMonth
()
+
1
;
var
year
=
date
.
getFullYear
();
if
(
month
<
10
)
month
=
"
0
"
+
month
;
if
(
day
<
10
)
day
=
"
0
"
+
day
;
var
today
=
year
+
"
-
"
+
month
+
"
-
"
+
day
;
$
(
"
#theDate
"
).
attr
(
"
value
"
,
today
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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