|
|
|
@ -26,6 +26,8 @@ using ConvertHelper;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using System.Security.Policy;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using FastReport.Editor;
|
|
|
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime;
|
|
|
|
|
|
|
|
|
|
namespace VOL.WMS.Services
|
|
|
|
|
{
|
|
|
|
@ -227,15 +229,14 @@ namespace VOL.WMS.Services
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (AuditParam.execution == "查询明细")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
foreach (var item in AuditParam.wheres)
|
|
|
|
|
{
|
|
|
|
|
if (item.name == "GID" && !string.IsNullOrWhiteSpace(item.value))
|
|
|
|
|
if (item.name == "BILLNO" && !string.IsNullOrWhiteSpace(item.value))
|
|
|
|
|
{
|
|
|
|
|
addcondition($" i.GID = '{item.value}' ");
|
|
|
|
|
addcondition($" BILLNO = '{item.value}' ");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -333,6 +334,34 @@ namespace VOL.WMS.Services
|
|
|
|
|
_webResponseContent.Error(e.Message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (AuditParam.execution == "关联业务") {
|
|
|
|
|
var BSNO = "";
|
|
|
|
|
foreach (var item in AuditParam.wheres)
|
|
|
|
|
{
|
|
|
|
|
if (item.name == "BSNO" && !string.IsNullOrWhiteSpace(item.value))
|
|
|
|
|
{
|
|
|
|
|
BSNO=item.value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return GetBillView(BSNO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (AuditParam.execution == "关联业务费用")
|
|
|
|
|
{
|
|
|
|
|
var BSNO = "";
|
|
|
|
|
var OPLBNAME = "";
|
|
|
|
|
foreach (var item in AuditParam.wheres)
|
|
|
|
|
{
|
|
|
|
|
if (item.name == "BSNO" && !string.IsNullOrWhiteSpace(item.value))
|
|
|
|
|
{
|
|
|
|
|
BSNO = item.value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return GetBillFeeView(BSNO, OPLBNAME);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (jp.TYPENAME == "付费发票核销")
|
|
|
|
@ -538,5 +567,97 @@ namespace VOL.WMS.Services
|
|
|
|
|
|
|
|
|
|
return _webResponseContent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过四个接口获取 头信息、应收应付、利润、客户利润
|
|
|
|
|
/// 将结果集组合到data中返回
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="BSNO"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public WebResponseContent GetBillView(string BSNO) {
|
|
|
|
|
|
|
|
|
|
var dicnos3 = new string[] { "DS7url" };
|
|
|
|
|
var tUrlList = DictionaryManager.GetDictionaries(dicnos3).ToList();
|
|
|
|
|
var urlhead = tUrlList[0].Sys_DictionaryList[0].DicValue;
|
|
|
|
|
|
|
|
|
|
var userid = UserContext.Current.UserInfo.User_Id;
|
|
|
|
|
var username = UserContext.Current.UserInfo.UserName;
|
|
|
|
|
var usercompanyid = UserContext.Current.UserInfo.CompanyId;
|
|
|
|
|
|
|
|
|
|
//1 MvcShipping/MsOpBill/GetBLData
|
|
|
|
|
//handle: edit condition: BSNO = 'topseai710150217EED46C159E71C49FD838CF8'
|
|
|
|
|
|
|
|
|
|
var urlDetail1 = "/MvcShipping/MsOpBill/GetBLData";
|
|
|
|
|
var url1 = urlhead + urlDetail1;
|
|
|
|
|
|
|
|
|
|
JObject reqObj = new JObject
|
|
|
|
|
{
|
|
|
|
|
{ "handle", "edit" },
|
|
|
|
|
{ "condition", $" BSNO='{BSNO}' " }
|
|
|
|
|
};
|
|
|
|
|
var D1 = new DBResult();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var t_str = reqObj.ToString(Newtonsoft.Json.Formatting.None);
|
|
|
|
|
var rtn = SendHelper.DoPost(url1, t_str);
|
|
|
|
|
|
|
|
|
|
D1 = JsonConvert.DeserializeObject<DBResult>(rtn);
|
|
|
|
|
|
|
|
|
|
//_webResponseContent = new WebResponseContent(rtnresult);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
_webResponseContent.Error(e.Message);
|
|
|
|
|
return _webResponseContent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return _webResponseContent.OK("查询成功", D1.Data);
|
|
|
|
|
}
|
|
|
|
|
public WebResponseContent GetBillFeeView(string BSNO, string OPLBNAME)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var dicnos3 = new string[] { "DS7url" };
|
|
|
|
|
var tUrlList = DictionaryManager.GetDictionaries(dicnos3).ToList();
|
|
|
|
|
var urlhead = tUrlList[0].Sys_DictionaryList[0].DicValue;
|
|
|
|
|
|
|
|
|
|
var userid = UserContext.Current.UserInfo.User_Id;
|
|
|
|
|
var username = UserContext.Current.UserInfo.UserName;
|
|
|
|
|
var usercompanyid = UserContext.Current.UserInfo.CompanyId;
|
|
|
|
|
//2 费用
|
|
|
|
|
|
|
|
|
|
var urlDetail2 = "/MvcShipping/MsChFee/GetDataListAPP";
|
|
|
|
|
var url2 = urlhead + urlDetail2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JObject reqObj2 = new JObject
|
|
|
|
|
{
|
|
|
|
|
{ "condition", $" exists (select 1 from v_op_bill b where b.BSNO=ch_fee.BSNO and b.BSNO='{BSNO}' " },
|
|
|
|
|
{ "oplbname", OPLBNAME },
|
|
|
|
|
{ "userid", userid },
|
|
|
|
|
{ "username", username },
|
|
|
|
|
{ "usercompanyid", usercompanyid }
|
|
|
|
|
};
|
|
|
|
|
var D2 = new DBResult();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
var t_str = reqObj2.ToString(Newtonsoft.Json.Formatting.None);
|
|
|
|
|
var rtn = SendHelper.DoPost(url2, t_str);
|
|
|
|
|
|
|
|
|
|
D2 = JsonConvert.DeserializeObject<DBResult>(rtn);
|
|
|
|
|
|
|
|
|
|
//_webResponseContent = new WebResponseContent(rtnresult);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
_webResponseContent.Error(e.Message);
|
|
|
|
|
return _webResponseContent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _webResponseContent.OK();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|