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
21dcfb5f
Commit
21dcfb5f
authored
4 years ago
by
Vinodkumar Chindam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Added common method ."
This reverts commit
30a2aa66
.
parent
30a2aa66
Pipeline
#47854
passed with stages
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
PharmaStoreReport/Common/Utility.cs
PharmaStoreReport/Common/Utility.cs
+8
-21
No files found.
PharmaStoreReport/Common/Utility.cs
View file @
21dcfb5f
...
...
@@ -250,9 +250,10 @@ namespace PharmaStoreReport.Common
wsSheet
.
Protection
.
AllowSelectLockedCells
=
false
;
for
(
int
i
=
0
;
i
<
Data
.
Rows
.
Count
;
i
++)
{
int
cellcol
=
3
;
int
k
=
8
;
CellsConvertToNumbers
(
i
,
cellcol
,
k
,
wsSheet
);
for
(
int
j
=
3
;
j
<=
8
;
j
++)
{
wsSheet
.
Cells
[
i
+
3
,
j
].
Style
.
Numberformat
.
Format
=
"0"
;
}
wsSheet
.
Cells
[
i
+
3
,
1
].
Value
=
Data
.
Rows
[
i
][
"PharmacyName"
];
wsSheet
.
Cells
[
i
+
3
,
2
].
Value
=
Data
.
Rows
[
i
][
"State"
];
wsSheet
.
Cells
[
i
+
3
,
3
].
Value
=
Int32
.
Parse
((
string
)
Data
.
Rows
[
i
][
"ScriptsActual"
]);
...
...
@@ -343,9 +344,10 @@ namespace PharmaStoreReport.Common
wsSheet
.
Protection
.
AllowSelectLockedCells
=
false
;
for
(
int
i
=
0
;
i
<
Data
.
Rows
.
Count
;
i
++)
{
int
cellcol
=
2
;
int
k
=
5
;
CellsConvertToNumbers
(
i
,
cellcol
,
k
,
wsSheet
);
for
(
int
k
=
3
;
k
<=
5
;
k
++)
{
wsSheet
.
Cells
[
i
+
2
,
k
].
Style
.
Numberformat
.
Format
=
"0"
;
}
wsSheet
.
Cells
[
i
+
2
,
1
].
Value
=
Data
.
Rows
[
i
][
"PharmacyName"
];
wsSheet
.
Cells
[
i
+
2
,
2
].
Value
=
Data
.
Rows
[
i
][
"State"
];
wsSheet
.
Cells
[
i
+
2
,
3
].
Value
=
Int32
.
Parse
((
string
)
Data
.
Rows
[
i
][
"Scpirts"
]);
...
...
@@ -415,20 +417,5 @@ namespace PharmaStoreReport.Common
}
return
Unmatched
;
}
/// <summary>
/// Convert cell as number value.
/// </summary>
/// <param name="i"></param>
/// <param name="cellCol"></param>
/// <param name="k"></param>
/// <param name="wsSheet"></param>
private
void
CellsConvertToNumbers
(
int
i
,
int
cellCol
,
int
k
,
ExcelWorksheet
wsSheet
)
{
for
(
int
j
=
3
;
j
<=
k
;
j
++)
{
wsSheet
.
Cells
[
i
+
cellCol
,
j
].
Style
.
Numberformat
.
Format
=
"0"
;
}
}
}
}
\ 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