|
|
@ -212,21 +212,21 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var sr = new StreamReader(Request.InputStream, Encoding.UTF8);
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
var strJson = sr.ReadToEnd();
|
|
|
|
//BasicDataRefDAL.SaveLog(strJson, "", "大简云比对", "删除业务");
|
|
|
|
//BasicDataRefDAL.SaveLog(strJson, "", "大简云比对", "删除业务");
|
|
|
|
var param = JsonConvert.Deserialize<DJYBILLDELETE_SEND>(strJson);
|
|
|
|
var paramHead = JsonConvert.Deserialize<InterfaceParam_Base>(strJson);
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//param.Save();
|
|
|
|
//param.Save();
|
|
|
|
InterfaceLog.Save("PublicInterface", strJson);
|
|
|
|
InterfaceLog.Save("PublicInterface", strJson);
|
|
|
|
|
|
|
|
|
|
|
|
Assembly assembly = Assembly.Load("DSWeb");
|
|
|
|
Assembly assembly = Assembly.Load("DSWeb");
|
|
|
|
var classname = "DSWeb.Areas.CommMng.PublicInterfaceDAL.DJYBILLDELETE";
|
|
|
|
var classname = "DSWeb.Areas.CommMng.PublicInterfaceDAL."+ paramHead.PORTNAME;
|
|
|
|
var type = assembly.GetType(classname);
|
|
|
|
var type = assembly.GetType(classname);
|
|
|
|
|
|
|
|
|
|
|
|
Object obj = type.Assembly.CreateInstance(type.ToString());
|
|
|
|
Object obj = type.Assembly.CreateInstance(type.ToString());
|
|
|
|
|
|
|
|
|
|
|
|
var doset = type.GetMethod("DoSet");
|
|
|
|
var doset = type.GetMethod("DoSet");
|
|
|
|
var _param = new object[] { param };
|
|
|
|
var _param = new object[] { paramHead.Param };
|
|
|
|
DJYBILLDELETE_REPLY result = (DJYBILLDELETE_REPLY)doset.Invoke(obj, BindingFlags.Instance | BindingFlags.NonPublic, null, _param, null);
|
|
|
|
DBResult result = (DBResult)doset.Invoke(obj, BindingFlags.Instance | BindingFlags.NonPublic, null, _param, null);
|
|
|
|
|
|
|
|
|
|
|
|
//var str = JsonConvert.Serialize(result);
|
|
|
|
//var str = JsonConvert.Serialize(result);
|
|
|
|
|
|
|
|
|
|
|
@ -243,12 +243,8 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
var _r = new DJYINFOBASE();
|
|
|
|
var _r = new DJYINFOBASE();
|
|
|
|
_r.Code = 1;
|
|
|
|
_r.Code = 1;
|
|
|
|
|
|
|
|
|
|
|
|
var msg = e.Message;
|
|
|
|
var msg = JsonConvert.Serialize(e);
|
|
|
|
if (e.InnerException != null && e.InnerException.Message != null)
|
|
|
|
var _rs = BasicDataRefDAL.SaveLog(msg, "", "PublicInterface", "错误");
|
|
|
|
{
|
|
|
|
|
|
|
|
msg += "//InnerException.Message:" + e.InnerException.Message;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var _rs = BasicDataRefDAL.SaveLog(msg, "", "大简云比对", "删除业务");
|
|
|
|
|
|
|
|
//var _rr = JsonConvert.Deserialize<DBResult>(_rs.Content);
|
|
|
|
//var _rr = JsonConvert.Deserialize<DBResult>(_rs.Content);
|
|
|
|
_r.Message = msg;
|
|
|
|
_r.Message = msg;
|
|
|
|
|
|
|
|
|
|
|
@ -290,6 +286,95 @@ namespace DSWeb.Areas.CommMng.Controllers
|
|
|
|
public string Param { get; set; }
|
|
|
|
public string Param { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class InterfaceParam_Base
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public string PORTNAME { get; set; }
|
|
|
|
|
|
|
|
public string GID { get; set; }
|
|
|
|
|
|
|
|
public object Param { get; set; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class 全泰账单_Fee
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 单证费
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_name { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_unit { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_price { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_count { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_currency { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string cost_amount { get; set; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class 全泰账单_Bill
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_no { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_date { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 正本提单
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_type { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 已出单
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_status { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_vessel { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_voyage { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_amount_usa { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_amount_rmb { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_container_type { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_container_count { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string bill_remark { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public List<全泰账单_Fee> bill_details { get; set; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class InterfaceLog
|
|
|
|
public static class InterfaceLog
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public static void Save(string PORTNAME, object c)
|
|
|
|
public static void Save(string PORTNAME, object c)
|
|
|
|