Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
04e9f9e2
Commit
04e9f9e2
authored
Jul 03, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加获取调拨单详情接口
parent
437ead6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
185 additions
and
0 deletions
+185
-0
dc_base_transfer_info.cs
Bailun.DC.Models/Allot/dc_base_transfer_info.cs
+95
-0
dc_base_transfer_info_skus.cs
Bailun.DC.Models/Allot/dc_base_transfer_info_skus.cs
+29
-0
AllotServices.cs
Bailun.DC.Services/AllotServices.cs
+27
-0
ApiController.cs
Bailun.DC.Web/Controllers/ApiController.cs
+34
-0
No files found.
Bailun.DC.Models/Allot/dc_base_transfer_info.cs
0 → 100644
View file @
04e9f9e2
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Allot
{
/// <summary>
/// 调拨单详情
/// </summary>
public
class
dc_base_transfer_info
{
public
int
id
{
get
;
set
;
}
public
int
dataid
{
get
;
set
;
}
public
string
code
{
get
;
set
;
}
public
string
schedulecode
{
get
;
set
;
}
public
string
shipmentid
{
get
;
set
;
}
public
int
stateid
{
get
;
set
;
}
public
int
allocatecargostate
{
get
;
set
;
}
public
string
shipmentstatus
{
get
;
set
;
}
public
string
sourcewarename
{
get
;
set
;
}
public
string
sourcewareno
{
get
;
set
;
}
public
string
targetwareno
{
get
;
set
;
}
public
string
targetwarename
{
get
;
set
;
}
public
string
sendrequire
{
get
;
set
;
}
public
string
createusername
{
get
;
set
;
}
public
DateTime
creationtime
{
get
;
set
;
}
public
string
producttype
{
get
;
set
;
}
public
int
?
scheduletype
{
get
;
set
;
}
public
int
?
transfertype
{
get
;
set
;
}
public
string
purchasecode
{
get
;
set
;
}
public
string
targetwareaddress
{
get
;
set
;
}
public
string
specialproblem
{
get
;
set
;
}
public
DateTime
?
expectarrivaltime
{
get
;
set
;
}
public
string
transporttype
{
get
;
set
;
}
public
int
islockedposition
{
get
;
set
;
}
public
string
receiptno
{
get
;
set
;
}
public
string
targetwareaddressinfo
{
get
;
set
;
}
public
string
logisticscode
{
get
;
set
;
}
public
string
logisticsname
{
get
;
set
;
}
public
string
packrequirements
{
get
;
set
;
}
public
DateTime
timestamp
{
get
;
set
;
}
public
int
isexception
{
get
;
set
;
}
public
int
isdeleted
{
get
;
set
;
}
public
decimal
?
skuweight
{
get
;
set
;
}
public
string
skuweightStr
{
get
;
set
;
}
public
decimal
?
sinnleticketmaxweight
{
get
;
set
;
}
public
decimal
?
singleboxmaxweight
{
get
;
set
;
}
public
decimal
?
singleboxminweight
{
get
;
set
;
}
public
decimal
?
estimatedcost
{
get
;
set
;
}
public
string
trackingno
{
get
;
set
;
}
public
string
channelname
{
get
;
set
;
}
public
DateTime
dc_createtime
{
get
;
set
;
}
}
}
Bailun.DC.Models/Allot/dc_base_transfer_info_skus.cs
0 → 100644
View file @
04e9f9e2
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Allot
{
/// <summary>
/// 调拨单详情 sku信息
/// </summary>
public
class
dc_base_transfer_info_skus
{
public
int
id
{
get
;
set
;
}
public
int
dataid
{
get
;
set
;
}
public
string
transferno
{
get
;
set
;
}
public
string
productname
{
get
;
set
;
}
public
string
sku
{
get
;
set
;
}
public
int
deliverycount
{
get
;
set
;
}
public
int
storagecount
{
get
;
set
;
}
public
DateTime
createtime
{
get
;
set
;
}
}
}
Bailun.DC.Services/AllotServices.cs
View file @
04e9f9e2
...
@@ -125,5 +125,32 @@ namespace Bailun.DC.Services
...
@@ -125,5 +125,32 @@ namespace Bailun.DC.Services
}
}
}
}
/// <summary>
/// 获取调拨单详情接口
/// </summary>
/// <param name="page">页码</param>
/// <param name="pagesize">每页记录数</param>
/// <param name="start">开始时间</param>
/// <param name="end">结束时间</param>
/// <param name="total">符合条件的记录数</param>
/// <returns></returns>
public
List
<
Models
.
Allot
.
dc_base_transfer_info
>
ListAllot
(
int
page
,
int
pagesize
,
DateTime
start
,
DateTime
end
,
ref
int
total
)
{
var
sql
=
$"select * from dc_base_transfer_info where dc_createtime>='
{
start
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
' and dc_createtime<='
{
end
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
'"
;
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
var
obj
=
cn
.
Page
<
Models
.
Allot
.
dc_base_transfer_info
>(
page
,
pagesize
,
sql
,
ref
total
);
return
obj
.
AsList
();
}
}
}
}
}
}
Bailun.DC.Web/Controllers/ApiController.cs
View file @
04e9f9e2
...
@@ -834,5 +834,38 @@ namespace Bailun.DC.Web.Controllers
...
@@ -834,5 +834,38 @@ namespace Bailun.DC.Web.Controllers
}
}
/// <summary>
/// 获取调拨单详情信息
/// </summary>
/// <param name="start">开始时间</param>
/// <param name="end">结束时间</param>
/// <returns></returns>
[
HttpPost
]
public
JsonResult
ListAllotInfo
(
DateTime
start
,
DateTime
end
,
int
page
,
int
pagesize
=
1000
)
{
try
{
var
total
=
0
;
var
result
=
new
Services
.
AllotServices
().
ListAllot
(
page
,
pagesize
,
start
,
end
,
ref
total
);
return
Json
(
new
{
success
=
true
,
data
=
result
,
msg
=
""
,
total
=
total
});
}
catch
(
Exception
ex
)
{
return
Json
(
new
{
success
=
false
,
msg
=
ex
.
Message
,
total
=
0
});
}
}
}
}
}
}
\ No newline at end of file
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