|
@@ -64,12 +64,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
string condition = " and Status>-1";
|
|
string condition = " and Status>-1";
|
|
|
- //仓库仓库名称
|
|
|
|
|
|
|
+ //仓库名称
|
|
|
if (!string.IsNullOrEmpty(StoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(StoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreName where StoreName='" + StoreIdStoreName + "')";
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreName where StoreName='" + StoreIdStoreName + "')";
|
|
|
}
|
|
}
|
|
|
- //仓库仓库编号
|
|
|
|
|
|
|
+ //仓库编号
|
|
|
if (!string.IsNullOrEmpty(StoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(StoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreNo where StoreNo='" + StoreIdStoreNo + "')";
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreNo where StoreNo='" + StoreIdStoreNo + "')";
|
|
@@ -89,12 +89,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and ToUserId in (select ToUserId from UsersForRealName where RealName='" + ToUserIdRealName + "')";
|
|
condition += " and ToUserId in (select ToUserId from UsersForRealName where RealName='" + ToUserIdRealName + "')";
|
|
|
}
|
|
}
|
|
|
- //收货仓库仓库编号
|
|
|
|
|
|
|
+ //收货仓库编号
|
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreNo where StoreNo='" + ToStoreIdStoreNo + "')";
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreNo where StoreNo='" + ToStoreIdStoreNo + "')";
|
|
|
}
|
|
}
|
|
|
- //收货仓库仓库名称
|
|
|
|
|
|
|
+ //收货仓库名称
|
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreName where StoreName='" + ToStoreIdStoreName + "')";
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreName where StoreName='" + ToStoreIdStoreName + "')";
|
|
@@ -109,7 +109,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and SourceStoreId in (select SourceStoreId from StoreHouseForStoreName where StoreName='" + SourceStoreIdStoreName + "')";
|
|
condition += " and SourceStoreId in (select SourceStoreId from StoreHouseForStoreName where StoreName='" + SourceStoreIdStoreName + "')";
|
|
|
}
|
|
}
|
|
|
- //出货创客创客编号
|
|
|
|
|
|
|
+ //出货创客编号
|
|
|
if (!string.IsNullOrEmpty(FromUserIdMakerCode))
|
|
if (!string.IsNullOrEmpty(FromUserIdMakerCode))
|
|
|
{
|
|
{
|
|
|
condition += " and FromUserId in (select FromUserId from UsersForMakerCode where MakerCode='" + FromUserIdMakerCode + "')";
|
|
condition += " and FromUserId in (select FromUserId from UsersForMakerCode where MakerCode='" + FromUserIdMakerCode + "')";
|
|
@@ -119,12 +119,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and FromUserId in (select FromUserId from UsersForRealName where RealName='" + FromUserIdRealName + "')";
|
|
condition += " and FromUserId in (select FromUserId from UsersForRealName where RealName='" + FromUserIdRealName + "')";
|
|
|
}
|
|
}
|
|
|
- //出货仓库仓库编号
|
|
|
|
|
|
|
+ //出货仓库编号
|
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreNo where StoreNo='" + FromStoreIdStoreNo + "')";
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreNo where StoreNo='" + FromStoreIdStoreNo + "')";
|
|
|
}
|
|
}
|
|
|
- //出货仓库仓库名称
|
|
|
|
|
|
|
+ //出货仓库名称
|
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreName where StoreName='" + FromStoreIdStoreName + "')";
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreName where StoreName='" + FromStoreIdStoreName + "')";
|
|
@@ -421,12 +421,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
|
string condition = " and Status>-1";
|
|
string condition = " and Status>-1";
|
|
|
- //仓库仓库名称
|
|
|
|
|
|
|
+ //仓库名称
|
|
|
if (!string.IsNullOrEmpty(StoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(StoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreName where StoreName='" + StoreIdStoreName + "')";
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreName where StoreName='" + StoreIdStoreName + "')";
|
|
|
}
|
|
}
|
|
|
- //仓库仓库编号
|
|
|
|
|
|
|
+ //仓库编号
|
|
|
if (!string.IsNullOrEmpty(StoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(StoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreNo where StoreNo='" + StoreIdStoreNo + "')";
|
|
condition += " and StoreId in (select StoreId from SmallStoreHouseForStoreNo where StoreNo='" + StoreIdStoreNo + "')";
|
|
@@ -446,12 +446,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and ToUserId in (select ToUserId from UsersForRealName where RealName='" + ToUserIdRealName + "')";
|
|
condition += " and ToUserId in (select ToUserId from UsersForRealName where RealName='" + ToUserIdRealName + "')";
|
|
|
}
|
|
}
|
|
|
- //收货仓库仓库编号
|
|
|
|
|
|
|
+ //收货仓库编号
|
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreNo where StoreNo='" + ToStoreIdStoreNo + "')";
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreNo where StoreNo='" + ToStoreIdStoreNo + "')";
|
|
|
}
|
|
}
|
|
|
- //收货仓库仓库名称
|
|
|
|
|
|
|
+ //收货仓库名称
|
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(ToStoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreName where StoreName='" + ToStoreIdStoreName + "')";
|
|
condition += " and ToStoreId in (select ToStoreId from StoreHouseForStoreName where StoreName='" + ToStoreIdStoreName + "')";
|
|
@@ -466,7 +466,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and SourceStoreId in (select SourceStoreId from StoreHouseForStoreName where StoreName='" + SourceStoreIdStoreName + "')";
|
|
condition += " and SourceStoreId in (select SourceStoreId from StoreHouseForStoreName where StoreName='" + SourceStoreIdStoreName + "')";
|
|
|
}
|
|
}
|
|
|
- //出货创客创客编号
|
|
|
|
|
|
|
+ //出货创客编号
|
|
|
if (!string.IsNullOrEmpty(FromUserIdMakerCode))
|
|
if (!string.IsNullOrEmpty(FromUserIdMakerCode))
|
|
|
{
|
|
{
|
|
|
condition += " and FromUserId in (select FromUserId from UsersForMakerCode where MakerCode='" + FromUserIdMakerCode + "')";
|
|
condition += " and FromUserId in (select FromUserId from UsersForMakerCode where MakerCode='" + FromUserIdMakerCode + "')";
|
|
@@ -476,12 +476,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and FromUserId in (select FromUserId from UsersForRealName where RealName='" + FromUserIdRealName + "')";
|
|
condition += " and FromUserId in (select FromUserId from UsersForRealName where RealName='" + FromUserIdRealName + "')";
|
|
|
}
|
|
}
|
|
|
- //出货仓库仓库编号
|
|
|
|
|
|
|
+ //出货仓库编号
|
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreNo))
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreNo))
|
|
|
{
|
|
{
|
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreNo where StoreNo='" + FromStoreIdStoreNo + "')";
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreNo where StoreNo='" + FromStoreIdStoreNo + "')";
|
|
|
}
|
|
}
|
|
|
- //出货仓库仓库名称
|
|
|
|
|
|
|
+ //出货仓库名称
|
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreName))
|
|
if (!string.IsNullOrEmpty(FromStoreIdStoreName))
|
|
|
{
|
|
{
|
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreName where StoreName='" + FromStoreIdStoreName + "')";
|
|
condition += " and FromStoreId in (select FromStoreId from StoreHouseForStoreName where StoreName='" + FromStoreIdStoreName + "')";
|
|
@@ -542,23 +542,23 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
result.Add("Info", "Excel报表-" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + ".xlsx");
|
|
result.Add("Info", "Excel报表-" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + ".xlsx");
|
|
|
result.Add("Obj", diclist);
|
|
result.Add("Obj", diclist);
|
|
|
Dictionary<string, object> ReturnFields = new Dictionary<string, object>();
|
|
Dictionary<string, object> ReturnFields = new Dictionary<string, object>();
|
|
|
- ReturnFields.Add("StoreIdStoreName", "仓库仓库名称");
|
|
|
|
|
- ReturnFields.Add("StoreIdStoreNo", "仓库仓库编号");
|
|
|
|
|
|
|
+ ReturnFields.Add("StoreIdStoreName", "仓库名称");
|
|
|
|
|
+ ReturnFields.Add("StoreIdStoreNo", "仓库编号");
|
|
|
ReturnFields.Add("BrandId", "产品类型");
|
|
ReturnFields.Add("BrandId", "产品类型");
|
|
|
ReturnFields.Add("SnNo", "SN编号");
|
|
ReturnFields.Add("SnNo", "SN编号");
|
|
|
ReturnFields.Add("SnId", "SNID");
|
|
ReturnFields.Add("SnId", "SNID");
|
|
|
ReturnFields.Add("ToUserIdMakerCode", "收货人创客编号");
|
|
ReturnFields.Add("ToUserIdMakerCode", "收货人创客编号");
|
|
|
ReturnFields.Add("ToUserIdRealName", "收货人真实姓名");
|
|
ReturnFields.Add("ToUserIdRealName", "收货人真实姓名");
|
|
|
- ReturnFields.Add("ToStoreIdStoreNo", "收货仓库仓库编号");
|
|
|
|
|
- ReturnFields.Add("ToStoreIdStoreName", "收货仓库仓库名称");
|
|
|
|
|
|
|
+ ReturnFields.Add("ToStoreIdStoreNo", "收货仓库编号");
|
|
|
|
|
+ ReturnFields.Add("ToStoreIdStoreName", "收货仓库名称");
|
|
|
ReturnFields.Add("SourceStoreIdStoreNo", "源仓库编号仓库编号");
|
|
ReturnFields.Add("SourceStoreIdStoreNo", "源仓库编号仓库编号");
|
|
|
ReturnFields.Add("SourceStoreIdStoreName", "源仓库编号仓库名称");
|
|
ReturnFields.Add("SourceStoreIdStoreName", "源仓库编号仓库名称");
|
|
|
ReturnFields.Add("ApplyFlag", "申请标记");
|
|
ReturnFields.Add("ApplyFlag", "申请标记");
|
|
|
ReturnFields.Add("ApplyDate", "申请时间");
|
|
ReturnFields.Add("ApplyDate", "申请时间");
|
|
|
- ReturnFields.Add("FromUserIdMakerCode", "出货创客创客编号");
|
|
|
|
|
|
|
+ ReturnFields.Add("FromUserIdMakerCode", "出货创客编号");
|
|
|
ReturnFields.Add("FromUserIdRealName", "出货创客真实姓名");
|
|
ReturnFields.Add("FromUserIdRealName", "出货创客真实姓名");
|
|
|
- ReturnFields.Add("FromStoreIdStoreNo", "出货仓库仓库编号");
|
|
|
|
|
- ReturnFields.Add("FromStoreIdStoreName", "出货仓库仓库名称");
|
|
|
|
|
|
|
+ ReturnFields.Add("FromStoreIdStoreNo", "出货仓库编号");
|
|
|
|
|
+ ReturnFields.Add("FromStoreIdStoreName", "出货仓库名称");
|
|
|
ReturnFields.Add("CancelFlag", "撤回标记");
|
|
ReturnFields.Add("CancelFlag", "撤回标记");
|
|
|
ReturnFields.Add("CancelDate", "撤回时间");
|
|
ReturnFields.Add("CancelDate", "撤回时间");
|
|
|
|
|
|