1111
This commit is contained in:
parent
a5ed0ba6c3
commit
74dd275168
@ -128,5 +128,12 @@ namespace MyCode.Project.Domain.Model
|
||||
/// </summary>
|
||||
public int? Priority {get;set;}
|
||||
|
||||
/// <summary>
|
||||
/// Desc:程序执行结果返回内容
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string Result {get;set;}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,8 +14,12 @@
|
||||
|
||||
<connectionStrings>
|
||||
|
||||
<add name="WMSConn" connectionString="Data Source=192.168.221.155; Initial Catalog=ESB_DTC; User ID=app_k3;Password=Postman2025k3; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun2" providerName="System.Data.SqlClient" />
|
||||
<add name="YunTongConn" connectionString="Data Source=192.168.116.209; Initial Catalog=K3ZMFS_0905; User ID=sa;Password=Ac661978! ; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun1" providerName="System.Data.SqlClient" />
|
||||
|
||||
<!--<add name="WMSConn" connectionString="Data Source=192.168.221.155; Initial Catalog=ESB_DTC; User ID=app_k3;Password=Postman2025k3; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun2" providerName="System.Data.SqlClient" />
|
||||
<add name="YunTongConn" connectionString="Data Source=192.168.116.209; Initial Catalog=K3ZMFS_0905; User ID=sa;Password=Ac661978!; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun1" providerName="System.Data.SqlClient" />-->
|
||||
|
||||
<add name="WMSConn" connectionString="Data Source=127.0.0.1; Initial Catalog=yuntong; User ID=sa;Password=1; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun2" providerName="System.Data.SqlClient" />
|
||||
<add name="YunTongConn" connectionString="Data Source=127.0.0.1; Initial Catalog=yuntong; User ID=sa;Password=1; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun1" providerName="System.Data.SqlClient" />
|
||||
|
||||
</connectionStrings>
|
||||
<appSettings>
|
||||
|
||||
@ -9,6 +9,6 @@ namespace MyCode.Project.Services.IServices
|
||||
{
|
||||
public interface IOrderPushService
|
||||
{
|
||||
void PushOrderToKingDee(string id);
|
||||
string PushOrderToKingDee(string id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -158,8 +158,9 @@ namespace MyCode.Project.Services.Implementation
|
||||
}
|
||||
#endregion
|
||||
|
||||
public void PushOrderToKingDee(string id)
|
||||
public string PushOrderToKingDee(string id)
|
||||
{
|
||||
string result2 = "";
|
||||
var orderHead = _pushKingDeeOrderRepository.Queryable().Where(t => id == t.Id.ToString()).First();
|
||||
if (orderHead.Status != 0)
|
||||
{
|
||||
@ -184,6 +185,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
if (param.FSYNCHRONIZEKINGDEE == "1")
|
||||
{
|
||||
var response = PushKingdeeSaleOrder(orderHead, param);
|
||||
result2 = JsonHelper.ToJson(response);
|
||||
// 如果保存成功,需要更新源单数据
|
||||
if (response.IsSuccess)
|
||||
{
|
||||
@ -196,12 +198,14 @@ namespace MyCode.Project.Services.Implementation
|
||||
{
|
||||
//wms
|
||||
var result = PushWMSSaleOrder(orderHead, param);
|
||||
result2 = JsonHelper.ToJson(result);
|
||||
if (result.Code == 200)
|
||||
{
|
||||
orderHead.Status = 2;
|
||||
_pushKingDeeOrderRepository.Update(orderHead);
|
||||
}
|
||||
}
|
||||
return result2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -165,19 +165,22 @@ namespace MyCode.Project.Services.Implementation
|
||||
var type = UnityHelper.GetUnityContainer().Resolve(Type.GetType(process.FuncClass));
|
||||
|
||||
MethodInfo method = type.GetType().GetMethod(process.FuncMethod);
|
||||
object result = new object();
|
||||
|
||||
if (!string.IsNullOrEmpty(process.ParamInfo))
|
||||
{
|
||||
method.Invoke(type, new object[] { process.ParamInfo });
|
||||
result= method.Invoke(type, new object[] { process.ParamInfo });
|
||||
}
|
||||
else
|
||||
{
|
||||
method.Invoke(type, new object[] { });
|
||||
result= method.Invoke(type, new object[] { });
|
||||
}
|
||||
|
||||
if (result == null)
|
||||
result = "";
|
||||
process.FuncStatus = (int)WorkProcessStatus.Complete;
|
||||
process.ExecuteTime = DateTime.Now;
|
||||
process.ExceptionInfo = string.Empty;
|
||||
process.Result= result.ToString();
|
||||
_SysWorkProcessRepository.Update(process);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user