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
dc59f3c4
Commit
dc59f3c4
authored
4 years ago
by
Vinodkumar Chindam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
File submit issue is fixed.
parent
ef715388
Pipeline
#47517
passed with stages
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
22 deletions
+18
-22
PharmaStoreReport/wwwroot/js/validate-home.js
PharmaStoreReport/wwwroot/js/validate-home.js
+18
-22
No files found.
PharmaStoreReport/wwwroot/js/validate-home.js
View file @
dc59f3c4
...
...
@@ -143,10 +143,8 @@ $(function () {
}
}
else
if
(
!
(
fileNames
.
some
(
r
=>
uploadfiles
.
toLocaleString
().
toLowerCase
().
trim
().
indexOf
(
r
.
split
(
'
.
'
).
slice
(
0
,
-
1
).
join
(
'
.
'
)))
==
3
))
{
else
{
ValidateFileNames
();
//result = fileNames.filter(a => !uploadfiles.includes(a.split('.').slice(0, -1).join('.')));
//console.log(result);
if
(
unmachedfiles
.
length
==
1
)
{
$
.
bootstrapGrowl
(
"
Please select
"
+
unmachedfiles
[
0
]
+
"
file
"
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
}
...
...
@@ -156,25 +154,24 @@ $(function () {
else
if
(
unmachedfiles
.
length
==
3
)
{
$
.
bootstrapGrowl
(
"
Please select AMS_HealthNotes,StoreReportNumbersResults and Script_Figures Files
"
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
}
else
{
ajaxLoading
();
$
(
'
.fileupload
'
).
fileupload
(
'
send
'
,
{
files
:
filesList
,
Year
:
$
(
'
.year-drop :selected
'
).
text
(),
Month
:
$
(
'
.months-drop :selected
'
).
text
()
}).
done
(
function
(
result
,
textStatus
,
jqXHR
)
{
$loading
.
hide
();
if
(
result
.
success
)
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
success
'
,
color
:
'
blue
'
,
delay
:
1800
})
}
else
{
ajaxLoading
();
$
(
'
.fileupload
'
).
fileupload
(
'
send
'
,
{
files
:
filesList
,
Year
:
$
(
'
.year-drop :selected
'
).
text
(),
Month
:
$
(
'
.months-drop :selected
'
).
text
()
}).
done
(
function
(
result
,
textStatus
,
jqXHR
)
{
$loading
.
hide
();
if
(
result
.
success
)
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
success
'
,
color
:
'
blue
'
,
delay
:
1800
})
}
else
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
}
})
.
fail
(
function
(
result
,
textStatus
,
jqXHR
)
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
});
}
else
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
}
})
.
fail
(
function
(
result
,
textStatus
,
jqXHR
)
{
$
.
bootstrapGrowl
(
result
.
message
,
{
type
:
'
danger
'
,
color
:
'
red
'
,
delay
:
1800
})
});
}
}
});
});
...
...
@@ -211,7 +208,6 @@ function RemoveItems() {
}
function
ValidateFileNames
()
{
debugger
;
unmachedfiles
=
[];
unmachedfiles
=
uploadfiles
.
filter
(
function
(
a
)
{
return
fileNames
.
toLocaleString
().
split
(
'
.
'
).
slice
(
0
,
-
1
).
join
(
'
.
'
).
indexOf
(
a
.
toLowerCase
().
trim
())
===
-
1
;
...
...
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