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
41defe66
Commit
41defe66
authored
May 04, 2022
by
charleslee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:費用導入
parent
a0b90a6b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
417 additions
and
114 deletions
+417
-114
WebAPI/Controllers/FeeOfferConfigController.cs
WebAPI/Controllers/FeeOfferConfigController.cs
+9
-5
WebAPI/Controllers/ProcInfoController.cs
WebAPI/Controllers/ProcInfoController.cs
+100
-36
WebAPI/Controllers/UserInfoController.cs
WebAPI/Controllers/UserInfoController.cs
+256
-68
WebAPI/Models/DataObjects/PCaseInfo.cs
WebAPI/Models/DataObjects/PCaseInfo.cs
+22
-0
WebAPI/Models/DataObjects/SDeptInfo.cs
WebAPI/Models/DataObjects/SDeptInfo.cs
+0
-1
WebAPI/Models/DataObjects/SDeptUser.cs
WebAPI/Models/DataObjects/SDeptUser.cs
+1
-1
WebAPI/Models/DataObjects/SUserInfo.cs
WebAPI/Models/DataObjects/SUserInfo.cs
+1
-0
WebAPI/Models/ViewModels/UserInfo/DeptUserImportViewModel.cs
WebAPI/Models/ViewModels/UserInfo/DeptUserImportViewModel.cs
+22
-0
WebAPI/Web.config
WebAPI/Web.config
+1
-0
WebAPI/WebAPI.csproj
WebAPI/WebAPI.csproj
+5
-3
No files found.
WebAPI/Controllers/FeeOfferConfigController.cs
View file @
41defe66
...
@@ -267,11 +267,15 @@ namespace WebAPI.Controllers
...
@@ -267,11 +267,15 @@ namespace WebAPI.Controllers
String
errmsg
=
""
,
msg
=
""
;
String
errmsg
=
""
,
msg
=
""
;
List
<
Message
>
OutmsgLIst
=
new
List
<
Message
>();
List
<
Message
>
OutmsgLIst
=
new
List
<
Message
>();
String
connString
=
ConfigurationManager
.
ConnectionStrings
[
"DefaultConnection"
].
ConnectionString
;
String
connString
=
ConfigurationManager
.
ConnectionStrings
[
"DefaultConnection"
].
ConnectionString
;
Message
msgt
;
Message
msgt
;
var
table
=
ds
.
Tables
[
0
];
var
table
=
ds
.
Tables
[
0
];
DataRow
drh
=
table
.
Rows
[
0
];
DataRow
drh
=
table
.
Rows
[
0
];
for
(
int
i
=
0
;
i
<
drh
.
ItemArray
.
Length
;
i
++)
for
(
int
i
=
0
;
i
<
drh
.
ItemArray
.
Length
;
i
++)
table
.
Columns
[
i
].
ColumnName
=
ToTraditional
(
drh
[
i
].
ToString
());
{
string
a
=
drh
[
i
].
ToString
();
Console
.
WriteLine
(
ToTraditional
(
drh
[
i
].
ToString
()));
table
.
Columns
[
i
].
ColumnName
=
ToTraditional
(
drh
[
i
].
ToString
());
}
Dictionary
<
String
,
String
>
ids
=
new
Dictionary
<
String
,
String
>(),
Temps
=
new
Dictionary
<
String
,
String
>();
Dictionary
<
String
,
String
>
ids
=
new
Dictionary
<
String
,
String
>(),
Temps
=
new
Dictionary
<
String
,
String
>();
DataRow
drRow
;
DataRow
drRow
;
...
...
WebAPI/Controllers/ProcInfoController.cs
View file @
41defe66
This diff is collapsed.
Click to expand it.
WebAPI/Controllers/UserInfoController.cs
View file @
41defe66
This diff is collapsed.
Click to expand it.
WebAPI/Models/DataObjects/PCaseInfo.cs
0 → 100644
View file @
41defe66
using
Dapper.Contrib.Extensions
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Web
;
namespace
WebAPI.Models
{
[
Table
(
"p_case_info"
)]
public
class
PCaseInfo
{
public
string
case_id
{
get
;
set
;
}
public
string
customer_id
{
get
;
set
;
}
public
string
case_volume_customer
{
get
;
set
;
}
public
string
case_type_id
{
get
;
set
;
}
public
string
business_type_id
{
get
;
set
;
}
public
string
apply_type_id
{
get
;
set
;
}
public
string
country_id
{
get
;
set
;
}
public
string
case_volume
{
get
;
set
;
}
public
bool
is_enabled
{
get
;
set
;
}
}
}
\ No newline at end of file
WebAPI/Models/SDeptInfo.cs
→
WebAPI/Models/
DataObjects/
SDeptInfo.cs
View file @
41defe66
...
@@ -18,6 +18,5 @@ namespace WebAPI.Models
...
@@ -18,6 +18,5 @@ namespace WebAPI.Models
public
bool
is_enabled
{
get
;
set
;
}
public
bool
is_enabled
{
get
;
set
;
}
public
bool
is_branch
{
get
;
set
;
}
public
bool
is_branch
{
get
;
set
;
}
public
string
dept_code
{
get
;
set
;
}
public
string
dept_code
{
get
;
set
;
}
}
}
}
}
\ No newline at end of file
WebAPI/Models/SDeptUser.cs
→
WebAPI/Models/
DataObjects/
SDeptUser.cs
View file @
41defe66
...
@@ -17,6 +17,6 @@ namespace WebAPI.Models
...
@@ -17,6 +17,6 @@ namespace WebAPI.Models
public
string
authority
{
get
;
set
;
}
public
string
authority
{
get
;
set
;
}
public
string
country
{
get
;
set
;
}
public
string
country
{
get
;
set
;
}
[
Key
]
[
Key
]
public
int
identity_id
{
get
;
set
;
}
public
int
?
identity_id
{
get
;
set
;
}
}
}
}
}
\ No newline at end of file
WebAPI/Models/SUserInfo.cs
→
WebAPI/Models/
DataObjects/
SUserInfo.cs
View file @
41defe66
...
@@ -9,6 +9,7 @@ namespace WebAPI.Models
...
@@ -9,6 +9,7 @@ namespace WebAPI.Models
[
Table
(
"s_user_info"
)]
[
Table
(
"s_user_info"
)]
public
class
SUserInfo
public
class
SUserInfo
{
{
[
Key
]
public
string
user_id
{
get
;
set
;
}
public
string
user_id
{
get
;
set
;
}
public
int
user_type
{
get
;
set
;
}
public
int
user_type
{
get
;
set
;
}
public
string
user_name
{
get
;
set
;
}
public
string
user_name
{
get
;
set
;
}
...
...
WebAPI/Models/ViewModels/UserInfo/DeptUserImportViewModel.cs
0 → 100644
View file @
41defe66
using
Dapper.Contrib.Extensions
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Web
;
namespace
WebAPI.Models
{
public
class
DeptUserImportViewModel
{
public
string
dept_id
{
get
;
set
;
}
public
string
user_id
{
get
;
set
;
}
public
string
role_id
{
get
;
set
;
}
public
Boolean
is_default
{
get
;
set
;
}
public
int
user_type
{
get
;
set
;
}
public
string
authority
{
get
;
set
;
}
public
string
country
{
get
;
set
;
}
public
int
?
identity_id
{
get
;
set
;
}
public
string
is_exist
{
get
;
set
;
}
public
string
is_sub
{
get
;
set
;
}
}
}
\ No newline at end of file
WebAPI/Web.config
View file @
41defe66
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<
add
key
=
"webpages:Enabled"
value
=
"false"
/>
<
add
key
=
"webpages:Enabled"
value
=
"false"
/>
<
add
key
=
"ClientValidationEnabled"
value
=
"true"
/>
<
add
key
=
"ClientValidationEnabled"
value
=
"true"
/>
<
add
key
=
"UnobtrusiveJavaScriptEnabled"
value
=
"true"
/>
<
add
key
=
"UnobtrusiveJavaScriptEnabled"
value
=
"true"
/>
<
add
key
=
"admin_user_id"
value
=
"true"
/>
</
appSettings
>
</
appSettings
>
<!--
<!--
如需
web
.
config
變更的說明,請參閱
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkId
=
235367
。
如需
web
.
config
變更的說明,請參閱
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkId
=
235367
。
...
...
WebAPI/WebAPI.csproj
View file @
41defe66
...
@@ -223,6 +223,7 @@
...
@@ -223,6 +223,7 @@
<Compile
Include=
"Dal\DalFee.cs"
/>
<Compile
Include=
"Dal\DalFee.cs"
/>
<Compile
Include=
"Dal\DalCaseInfo.cs"
/>
<Compile
Include=
"Dal\DalCaseInfo.cs"
/>
<Compile
Include=
"Dal\DalProcInfo.cs"
/>
<Compile
Include=
"Dal\DalProcInfo.cs"
/>
<Compile
Include=
"Models\DataObjects\PCaseInfo.cs"
/>
<Compile
Include=
"Models\EhrEmployee.cs"
/>
<Compile
Include=
"Models\EhrEmployee.cs"
/>
<Compile
Include=
"Models\Esn_todos_SettleModel.cs"
/>
<Compile
Include=
"Models\Esn_todos_SettleModel.cs"
/>
<Compile
Include=
"Models\AnnualInfo.cs"
/>
<Compile
Include=
"Models\AnnualInfo.cs"
/>
...
@@ -230,9 +231,10 @@
...
@@ -230,9 +231,10 @@
<Compile
Include=
"Models\Esn_TodosModel.cs"
/>
<Compile
Include=
"Models\Esn_TodosModel.cs"
/>
<Compile
Include=
"Models\ParamModel.cs"
/>
<Compile
Include=
"Models\ParamModel.cs"
/>
<Compile
Include=
"Models\CommonResponseMsg.cs"
/>
<Compile
Include=
"Models\CommonResponseMsg.cs"
/>
<Compile
Include=
"Models\SDeptInfo.cs"
/>
<Compile
Include=
"Models\DataObjects\SDeptInfo.cs"
/>
<Compile
Include=
"Models\SDeptUser.cs"
/>
<Compile
Include=
"Models\DataObjects\SDeptUser.cs"
/>
<Compile
Include=
"Models\SUserInfo.cs"
/>
<Compile
Include=
"Models\DataObjects\SUserInfo.cs"
/>
<Compile
Include=
"Models\ViewModels\UserInfo\DeptUserImportViewModel.cs"
/>
<Compile
Include=
"Tool\Common.cs"
/>
<Compile
Include=
"Tool\Common.cs"
/>
<Compile
Include=
"Tool\CorsHandle.cs"
/>
<Compile
Include=
"Tool\CorsHandle.cs"
/>
<Compile
Include=
"Tool\ExcelHelper.cs"
/>
<Compile
Include=
"Tool\ExcelHelper.cs"
/>
...
...
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