Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
solho
code
Commits
6bf1fc87
Commit
6bf1fc87
authored
Apr 23, 2021
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤回fixed
parent
1ecb7332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
+6
-6
No files found.
WebAPI/Controllers/Esn_Subitem/Esn_Todos_FlowController.cs
View file @
6bf1fc87
...
@@ -170,8 +170,8 @@ namespace WebAPI.Controllers
...
@@ -170,8 +170,8 @@ namespace WebAPI.Controllers
#
region
取得該員身分
#
region
取得該員身分
cmd
.
CommandText
=
@"select * from evw_Employee a
cmd
.
CommandText
=
@"select * from evw_Employee a
where a.user_id= @user_id and a.is_enabled=1 and isnull(Emp_LeaveDate,'')=''"
;
where a.user_id= @user_id and a.is_enabled=1 and isnull(Emp_LeaveDate,'')=''"
;
//
cmd.Parameters.AddWithValue("@user_id", obj_input["Wade_User_ID"].ToString());
cmd
.
Parameters
.
AddWithValue
(
"@user_id"
,
obj_input
[
"Wade_User_ID"
].
ToString
());
cmd
.
Parameters
.
AddWithValue
(
"@user_id"
,
"FD67D192-041B-4725-A3E1-CB5E62A5CC61"
);
//test
//
cmd.Parameters.AddWithValue("@user_id", "FD67D192-041B-4725-A3E1-CB5E62A5CC61");//test
ds
=
SqlToDs
(
cmd
);
ds
=
SqlToDs
(
cmd
);
...
@@ -182,8 +182,7 @@ namespace WebAPI.Controllers
...
@@ -182,8 +182,7 @@ namespace WebAPI.Controllers
if
(
dr
[
"is_dept_manager"
].
ToString
()
==
"1"
)
Confirm_Class
.
Add
(
"Leader"
);
if
(
dr
[
"is_dept_manager"
].
ToString
()
==
"1"
)
Confirm_Class
.
Add
(
"Leader"
);
}
}
#
endregion
#
endregion
//Confirm_Class.Add("PG"); Confirm_Class.Add("Leader"); //test
#
region
取得
FLOW
相關
#
region
取得
FLOW
相關
cmd
.
CommandText
=
@"select et.*,etf.id AS Flowid,etf.*,
cmd
.
CommandText
=
@"select et.*,etf.id AS Flowid,etf.*,
etfs.* FROM esn_todos et
etfs.* FROM esn_todos et
...
@@ -208,8 +207,8 @@ namespace WebAPI.Controllers
...
@@ -208,8 +207,8 @@ namespace WebAPI.Controllers
String
Wade_User_ID
=
obj_input
[
"Wade_User_ID"
].
ToString
(),
Reject_Description
=
obj_input
[
"Reject_Description"
].
ToString
(),
String
Wade_User_ID
=
obj_input
[
"Wade_User_ID"
].
ToString
(),
Reject_Description
=
obj_input
[
"Reject_Description"
].
ToString
(),
date0
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:dd"
),
Tsql
=
""
;
date0
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:dd"
),
Tsql
=
""
;
JToken
JtSn
=
obj_input
.
SelectToken
(
"$.Sns[?(@.todos_sn == '888302')]"
)
;
JToken
JtSn
;
List
<
String
>
sql
=
new
List
<
string
>();
//
List<String> sql = new List<string>();
int
StepType_id_Previous
,
StepType_id
;
int
StepType_id_Previous
,
StepType_id
;
foreach
(
DataRow
dr
in
ds
.
Tables
[
0
].
Rows
)
foreach
(
DataRow
dr
in
ds
.
Tables
[
0
].
Rows
)
{
{
...
@@ -258,6 +257,7 @@ namespace WebAPI.Controllers
...
@@ -258,6 +257,7 @@ namespace WebAPI.Controllers
else
if
(
Confirm_Method
==
"RV"
)
else
if
(
Confirm_Method
==
"RV"
)
{
{
CStepTypeNext
=
AllStepType
.
Where
(
p
=>
p
.
id
==
StepType_id_Previous
).
FirstOrDefault
();
CStepTypeNext
=
AllStepType
.
Where
(
p
=>
p
.
id
==
StepType_id_Previous
).
FirstOrDefault
();
CStepTypeCur
.
id
=
CStepTypeNext
.
id
;
//回復與下一步 同ID
}
}
Tsql
=
Tsql
+
CStepTypeCur
.
Map_Class
+
"_IsConfirm ="
+
IsConfirm
+
","
;
Tsql
=
Tsql
+
CStepTypeCur
.
Map_Class
+
"_IsConfirm ="
+
IsConfirm
+
","
;
Tsql
=
Tsql
+
" StepType_id = '"
+
CStepTypeNext
.
id
+
"',StepType_id_Previous = '"
+
CStepTypeCur
.
id
+
Tsql
=
Tsql
+
" StepType_id = '"
+
CStepTypeNext
.
id
+
"',StepType_id_Previous = '"
+
CStepTypeCur
.
id
+
...
...
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