From 98e6e329c30c8d270e8926375d16717da26628d4 Mon Sep 17 00:00:00 2001
From: yxj <1qaz@123>
Date: 星期三, 14 四月 2021 14:54:41 +0800
Subject: [PATCH] 销售出库、委外入库上传生成CLOUD单据方法中增加调用更新自定义字段存储过程;采购入库上传生成CLOUD单据改调用新方法
---
CLOUDWEB/CLOUDWEB.csproj.user | 2 +-
CLOUDWEB/WebService1.asmx.cs | 22 +++++++++++++++++++++-
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/CLOUDWEB/CLOUDWEB.csproj.user b/CLOUDWEB/CLOUDWEB.csproj.user
index 7f9b7fe..f0c6530 100644
--- a/CLOUDWEB/CLOUDWEB.csproj.user
+++ b/CLOUDWEB/CLOUDWEB.csproj.user
@@ -2,7 +2,7 @@
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>CLOUDWEBAPI</NameOfLastUsedPublishProfile>
- <LastActiveSolutionConfig>Debug|x86</LastActiveSolutionConfig>
+ <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />
diff --git a/CLOUDWEB/WebService1.asmx.cs b/CLOUDWEB/WebService1.asmx.cs
index 1526db7..bfaffe0 100644
--- a/CLOUDWEB/WebService1.asmx.cs
+++ b/CLOUDWEB/WebService1.asmx.cs
@@ -10684,6 +10684,9 @@
var result = client.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save",
new object[] { "SAL_OUTSTOCK", sJson });
+ //鐢熸垚鍗曟嵁鍚庢洿鏂拌嚜瀹氫箟瀛楁
+ oCn.RunProc("exec h_p_Sc_UpDateSelfFildSellOut '" + oMain.HBillNo + "','" + sHSourceType + "'");
+
if (oSystemParameterMain.Kf_SellOutBill_AutoCheck == "Y") //绯荤粺鍙傛暟 鑷姩瀹℃牳
{
string sJson2 = "{\"CreateOrgId\":0,\"Numbers\":[\"" + oMain.HBillNo + "\"]}";
@@ -15803,7 +15806,7 @@
}
if (oSystemParameter.omodel.Kf_POStockInBill_ERPMode.ToUpper() == "CLOUD") //鍒ゆ柇鍚屾妯″紡鏄噾铦禖LOUD
{
- if (oSystemParameter.omodel.WMS_CampanyName == "鍗撳姏" || oSystemParameter.omodel.WMS_CampanyName == "闊╃數" || oSystemParameter.omodel.WMS_CampanyName == "鍥涚淮灏�" || oSystemParameter.omodel.WMS_CampanyName == "闆呯惇璇�") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� 绌虹櫧涓洪�氱敤
+ if (oSystemParameter.omodel.WMS_CampanyName == "鍗撳姏" || oSystemParameter.omodel.WMS_CampanyName == "闊╃數" || oSystemParameter.omodel.WMS_CampanyName == "鍥涚淮灏�") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� 绌虹櫧涓洪�氱敤
{
if (set_SavePOStockInBill_CLD(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg) == true)
{
@@ -16287,6 +16290,8 @@
" \"FInStockEntry_Link_FRuleId\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FRuleId"]) + "\"," +
" \"FInStockEntry_Link_FSTableName\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FSTableName"]) + "\"," +
" \"FInStockEntry_Link_FSBillId\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FSBillId"]) + "\"," +
+ " \"FInStockEntry_Link_FBASEUNITQTYOLD\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FBASEUNITQTYOLD"]) + "\"," +
+ " \"FInStockEntry_Link_FREMAININSTOCKBASEQTYOLD\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FREMAININSTOCKBASEQTYOLD"]) + "\"," +
" \"FInStockEntry_Link_FSId\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FEntity_Link_FSId"]) + "\"" +
" } ]," +
" \"FBFLowId\":{\"FID\":\"" + Pub_Class.ClsPub.isStrNull(Ds.Tables[1].Rows[i]["FBFLowId"]) + "\"}}";
@@ -16323,6 +16328,9 @@
{
var result = client.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save",
new object[] { "STK_InStock", sJson });
+
+ //鐢熸垚鍗曟嵁鍚庢洿鏂拌嚜瀹氫箟瀛楁
+ oCn.RunProc("exec h_p_Sc_UpDateSelfFildPOStockIn '" + oMain.HBillNo + "','" + sHSourceType + "'");
if (oSystemParameterMain.Kf_POStockInBill_AutoCheck == "Y") //绯荤粺鍙傛暟 鑷姩瀹℃牳
{
@@ -19989,6 +19997,10 @@
var result = client.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.Save",
new object[] { "STK_InStock", sJson });
+ //鐢熸垚鍗曟嵁鍚庢洿鏂拌嚜瀹氫箟瀛楁
+ oCn.RunProc("exec h_p_Sc_UpDateSelfFildPOStockIn '" + oMain.HBillNo + "','" + sHSourceType + "'");
+
+
if (oSystemParameterMain.Kf_EntrustInBill_AutoCheck == "Y") //绯荤粺鍙傛暟 鑷姩瀹℃牳
{
string sJson2 = "{\"CreateOrgId\":0,\"Numbers\":[\"" + oMain.HBillNo + "\"]}";
@@ -22941,6 +22953,14 @@
return true;
}
+ [WebMethod]
+ //寰楀埌 鏈�澶у崟鎹甀D
+ public bool get_MaxBillID(string HTranType, ref Int64 HInterID, ref string sErrMsg)
+ {
+ HInterID = DBUtility.ClsPub.CreateBillID_Prod(HTranType, ref sErrMsg);
+ return true;
+ }
+
//鍒ゆ柇鐢ㄦ埛鏉冮檺
[WebMethod]
public bool CheckModRight(string ModRightName, string sUserName, ref string sErrMsg)
--
Gitblit v1.9.1