WebAPI/Controllers/条码管理/WEBSController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Web References/WebS/Reference.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Web References/WebS/WebService1.wsdl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebAPI.csproj.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -1383,6 +1383,13 @@ string sJXCode = ""; if (oSystemParameter.ShowBill(ref sErrMsg) == true) { string sSourceBarCodeCtl = "N"; //æ ¡éª-æ¯å¦è¿è¡æºåå¯¹åºæ¡ç æ ¸å¯¹ï¼'Y'ä¸ºæ ¸å¯¹ï¼ if (HBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl == "Y") { //éå®åºåºå sSourceBarCodeCtl = "Y"; } if (oSystemParameter.omodel.WMS_CampanyName == "å®ç") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° 空ç½ä¸ºéç¨ { sJXCode = POStockInBillController.JX_Json(sBarCode, HBillID, HBillType, HStockOrgID, HBillNo, HMaker); @@ -1393,22 +1400,47 @@ } try { WebSoBar = oWebs.get_CheckTypeByBarCode_BillCheck(sJXCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); if (WebSoBar == null) //ååæ®ä¸ºæ«ç çæï¼æ ¡éªæ¶ä¸çææ¡ç è®°å½ï¼åªå¯¹åæ«æçæ¡ç è¿è¡æ ¸å¯¹ if (sSourceBarCodeCtl == "Y") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; objJsonResult.data = null; return objJsonResult; WebSoBar = oWebs.get_BillBarCode_Verify(HBillID, HBillNo, HBillType, sJXCode, HQty, HMaker, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); if (WebSoBar == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = WebSoBar; return objJsonResult; } } //å忮鿫ç çæï¼æ ¡éªæ¶çææ¡ç è®°å½ else { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = WebSoBar; return objJsonResult; WebSoBar = oWebs.get_CheckTypeByBarCode_BillCheck(sJXCode, HBillID, HBillType, HBillNo, HMaker, HWhID, HSPID, HQty, HStockOrgID, ref DBUtility.ClsPub.sErrInfo); if (WebSoBar == null) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "æå"; objJsonResult.data = WebSoBar; return objJsonResult; } } } catch (Exception e) @@ -1483,7 +1515,71 @@ #endregion #region è¿åç¼ååè¡¨ä¿¡æ¯ #region æ«ç 模åï¼å é¤éä¸è¡æ¡ç åºå ¥åºä¸´æ¶è¡¨è®°å½ /// <summary> /// æ«ç 模åï¼å é¤éä¸è¡æ¡ç åºå ¥åºä¸´æ¶è¡¨è®°å½ /// </summary> /// <returns></returns> [Route("WEBSController/set_DeleteBarCodeByEntryID_BillCheck_Json")] [HttpGet] public object set_DeleteBarCodeByEntryID_BillCheck_Json(long HInterID, string HBillType, long HMaterID, long HAuxPropID, string HMTONo, long HSourceInterID, long HSourceEntryID, Int64 HStockOrgID) { //è·åç³»ç»åæ° string sErrMsg = ""; if (oSystemParameter.ShowBillByOrgID(HStockOrgID,ref sErrMsg) == true) { string sSourceBarCodeCtl = "N"; //æ ¡éª-æ¯å¦è¿è¡æºåå¯¹åºæ¡ç æ ¸å¯¹ï¼'Y'ä¸ºæ ¸å¯¹ï¼ if (HBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl == "Y") { //éå®åºåºå sSourceBarCodeCtl = "Y"; } //ååæ®ä¸ºæ«ç çæï¼å¯¹åæ«æçæ¡ç è¿è¡æ ¸å¯¹ if (sSourceBarCodeCtl == "Y") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ ¡éªæ¡ç ï¼å é¤åè½ä¸å¯ç¨ï¼ "; objJsonResult.data = null; return objJsonResult; } //å忮鿫ç çæ else { try { oCn.RunProc("Delete from KF_PonderationBillMain_Temp where HInterID=" + HInterID.ToString() + " and HBillType='" + HBillType + "' and HMaterID=" + HMaterID.ToString() + " and HAuxPropID=" + HAuxPropID.ToString() + " and HMTONo='" + HMTONo + "' and HSourceInterID=" + HSourceInterID.ToString() + " and HSourceEntryID=" + HSourceEntryID.ToString() + " and HQty<>0 ", ref DBUtility.ClsPub.sExeReturnInfo); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å 餿å"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å 餿éè¡æ¡ç åºå ¥åºä¸´æ¶è¡¨è®°å½å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } } #endregion #region ç¼å模å è¿åç¼ååè¡¨ä¿¡æ¯ /// <summary> /// è¿åç¼ååè¡¨ä¿¡æ¯ æ ¡éªæ¨¡å¼ @@ -1534,6 +1630,156 @@ #endregion #region ç¼åæ¨¡å æ ¹æ®åæ®ID,å é¤ä¸´æ¶è¡¨è®°å½ /// <summary> /// æ ¹æ®åæ®ID,å é¤ä¸´æ¶è¡¨è®°å½ /// </summary> /// <returns></returns> [Route("WEBSController/DeleteBillList_BillCheck_Json")] [HttpGet] public object DeleteBillList_BillCheck_Json(long HInterID, string HBillType, Int64 HStockOrgID) { //è·åç³»ç»åæ° string sErrMsg = ""; if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true) { string sSourceBarCodeCtl = "N"; //æ ¡éª-æ¯å¦è¿è¡æºåå¯¹åºæ¡ç æ ¸å¯¹ï¼'Y'ä¸ºæ ¸å¯¹ï¼ if (HBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl == "Y") { //éå®åºåºå sSourceBarCodeCtl = "Y"; } //ååæ®ä¸ºæ«ç çæï¼å¯¹åæ«æçæ¡ç è¿è¡æ ¸å¯¹ï¼å 餿¡ç åºå ¥åºæ ¡éªç¼åè®°å½ if (sSourceBarCodeCtl == "Y") { try { oCn.RunProc("Delete from KF_PonderationBillMain_Temp_Verify where HInterID=" + HInterID.ToString() + " and HBillType='" + HBillType + "'", ref DBUtility.ClsPub.sExeReturnInfo); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å 餿å"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å 餿éåæ®æ¡ç åºå ¥åºä¸´æ¶è¡¨è®°å½å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } //å忮鿫ç çæï¼å 餿¡ç åºå ¥åºç¼ååè¡¨è®°å½ else { try { oCn.RunProc("Delete from KF_PonderationBillMain_Temp where HInterID=" + HInterID.ToString() + " and HBillType='" + HBillType + "'", ref DBUtility.ClsPub.sExeReturnInfo); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "å 餿å"; objJsonResult.data = null; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "å 餿éåæ®æ¡ç åºå ¥åºä¸´æ¶è¡¨è®°å½å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } } #endregion #region ç¼å模å å·²ä¸ä¼ å表çé¢ï¼æ¤éåè½ /// <summary> /// å·²ä¸ä¼ å表çé¢ï¼æ¤éåè½ï¼å é¤WMSè¡¨åæ¬å°åºå ¥åºåè®°å½ï¼å¹¶æ´æ°TEMP表ä¸çä¸ä¼ åæ®µ HRelationInterID=0 /// </summary> /// <returns></returns> [Route("WEBSController/DeleteICStockBillAndWMS_BillCheck_Json")] [HttpGet] public object DeleteICStockBillAndWMS_BillCheck_Json(Int64 HInterID, string HBillNo, string HBillType, Int64 HStockOrgID) { //è·åç³»ç»åæ° string sErrMsg = ""; if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true) { string sSourceBarCodeCtl = "N"; //æ ¡éª-æ¯å¦è¿è¡æºåå¯¹åºæ¡ç æ ¸å¯¹ï¼'Y'ä¸ºæ ¸å¯¹ï¼ if (HBillType == "1205" && oSystemParameter.omodel.Kf_SellOutBillCheck_SourceBarCodeCtl == "Y") { //éå®åºåºå sSourceBarCodeCtl = "Y"; } //ååæ®ä¸ºæ«ç çæï¼å¯¹åæ«æçæ¡ç è¿è¡æ ¸å¯¹ if (sSourceBarCodeCtl == "Y") { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ ¡éªæ¡ç ï¼æ¤éåè½ä¸å¯ç¨ï¼ "; objJsonResult.data = null; return objJsonResult; } //å忮鿫ç çæ else { try { if (oWebs.DeleteICStockBillAndWMS(HInterID, HBillNo, HBillType, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //æåï¼ objJsonResult.data = null; return objJsonResult; } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ objJsonResult.data = null; return objJsonResult; } } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æ¤é忮已ä¸ä¼ è®°å½å¤±è´¥ï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } } else { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; objJsonResult.data = null; return objJsonResult; } } #endregion #endregion WebAPI/Web References/WebS/Reference.cs
@@ -100,6 +100,8 @@ private System.Threading.SendOrPostCallback get_CheckTypeByBarCode_BillCheckOperationCompleted; private System.Threading.SendOrPostCallback get_BillBarCode_VerifyOperationCompleted; private System.Threading.SendOrPostCallback GetKf_PonderationBillMain_Temp_BillCheckOperationCompleted; private System.Threading.SendOrPostCallback set_UpdateTemp_BillCheckOperationCompleted; @@ -1276,6 +1278,9 @@ /// <remarks/> public event get_CheckTypeByBarCode_BillCheckCompletedEventHandler get_CheckTypeByBarCode_BillCheckCompleted; /// <remarks/> public event get_BillBarCode_VerifyCompletedEventHandler get_BillBarCode_VerifyCompleted; /// <remarks/> public event GetKf_PonderationBillMain_Temp_BillCheckCompletedEventHandler GetKf_PonderationBillMain_Temp_BillCheckCompleted; @@ -4179,6 +4184,50 @@ if ((this.get_CheckTypeByBarCode_BillCheckCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.get_CheckTypeByBarCode_BillCheckCompleted(this, new get_CheckTypeByBarCode_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks/> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_BillBarCode_Verify", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ClsKf_ICStockBill_WMS get_BillBarCode_Verify(long HInterID, string HBillNo, string HBillType, string HBarCode, double HQty, string HMaker, long HStockOrgID, ref string sErrMsg) { object[] results = this.Invoke("get_BillBarCode_Verify", new object[] { HInterID, HBillNo, HBillType, HBarCode, HQty, HMaker, HStockOrgID, sErrMsg}); sErrMsg = ((string)(results[1])); return ((ClsKf_ICStockBill_WMS)(results[0])); } /// <remarks/> public void get_BillBarCode_VerifyAsync(long HInterID, string HBillNo, string HBillType, string HBarCode, double HQty, string HMaker, long HStockOrgID, string sErrMsg) { this.get_BillBarCode_VerifyAsync(HInterID, HBillNo, HBillType, HBarCode, HQty, HMaker, HStockOrgID, sErrMsg, null); } /// <remarks/> public void get_BillBarCode_VerifyAsync(long HInterID, string HBillNo, string HBillType, string HBarCode, double HQty, string HMaker, long HStockOrgID, string sErrMsg, object userState) { if ((this.get_BillBarCode_VerifyOperationCompleted == null)) { this.get_BillBarCode_VerifyOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_BillBarCode_VerifyOperationCompleted); } this.InvokeAsync("get_BillBarCode_Verify", new object[] { HInterID, HBillNo, HBillType, HBarCode, HQty, HMaker, HStockOrgID, sErrMsg}, this.get_BillBarCode_VerifyOperationCompleted, userState); } private void Onget_BillBarCode_VerifyOperationCompleted(object arg) { if ((this.get_BillBarCode_VerifyCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.get_BillBarCode_VerifyCompleted(this, new get_BillBarCode_VerifyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } @@ -49253,6 +49302,40 @@ /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")] public delegate void get_BillBarCode_VerifyCompletedEventHandler(object sender, get_BillBarCode_VerifyCompletedEventArgs e); /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class get_BillBarCode_VerifyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal get_BillBarCode_VerifyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// <remarks/> public ClsKf_ICStockBill_WMS Result { get { this.RaiseExceptionIfNecessary(); return ((ClsKf_ICStockBill_WMS)(this.results[0])); } } /// <remarks/> public string sErrMsg { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[1])); } } } /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")] public delegate void GetKf_PonderationBillMain_Temp_BillCheckCompletedEventHandler(object sender, GetKf_PonderationBillMain_Temp_BillCheckCompletedEventArgs e); /// <remarks/> WebAPI/Web References/WebS/WebService1.wsdl
@@ -1180,6 +1180,28 @@ </s:sequence> </s:complexType> </s:element> <s:element name="get_BillBarCode_Verify"> <s:complexType> <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" /> <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" /> <s:element minOccurs="0" maxOccurs="1" name="HBarCode" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="HQty" type="s:double" /> <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="HStockOrgID" type="s:long" /> <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="get_BillBarCode_VerifyResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="get_BillBarCode_VerifyResult" type="tns:ClsKf_ICStockBill_WMS" /> <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetKf_PonderationBillMain_Temp_BillCheck"> <s:complexType> <s:sequence> @@ -13854,6 +13876,12 @@ <wsdl:message name="get_CheckTypeByBarCode_BillCheckSoapOut"> <wsdl:part name="parameters" element="tns:get_CheckTypeByBarCode_BillCheckResponse" /> </wsdl:message> <wsdl:message name="get_BillBarCode_VerifySoapIn"> <wsdl:part name="parameters" element="tns:get_BillBarCode_Verify" /> </wsdl:message> <wsdl:message name="get_BillBarCode_VerifySoapOut"> <wsdl:part name="parameters" element="tns:get_BillBarCode_VerifyResponse" /> </wsdl:message> <wsdl:message name="GetKf_PonderationBillMain_Temp_BillCheckSoapIn"> <wsdl:part name="parameters" element="tns:GetKf_PonderationBillMain_Temp_BillCheck" /> </wsdl:message> @@ -17107,6 +17135,10 @@ <wsdl:input message="tns:get_CheckTypeByBarCode_BillCheckSoapIn" /> <wsdl:output message="tns:get_CheckTypeByBarCode_BillCheckSoapOut" /> </wsdl:operation> <wsdl:operation name="get_BillBarCode_Verify"> <wsdl:input message="tns:get_BillBarCode_VerifySoapIn" /> <wsdl:output message="tns:get_BillBarCode_VerifySoapOut" /> </wsdl:operation> <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> <wsdl:input message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapIn" /> <wsdl:output message="tns:GetKf_PonderationBillMain_Temp_BillCheckSoapOut" /> @@ -19480,6 +19512,15 @@ </wsdl:operation> <wsdl:operation name="get_CheckTypeByBarCode_BillCheck"> <soap:operation soapAction="http://tempuri.org/get_CheckTypeByBarCode_BillCheck" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="get_BillBarCode_Verify"> <soap:operation soapAction="http://tempuri.org/get_BillBarCode_Verify" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> @@ -24467,6 +24508,15 @@ <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="get_BillBarCode_Verify"> <soap12:operation soapAction="http://tempuri.org/get_BillBarCode_Verify" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetKf_PonderationBillMain_Temp_BillCheck"> <soap12:operation soapAction="http://tempuri.org/GetKf_PonderationBillMain_Temp_BillCheck" style="document" /> <wsdl:input> WebAPI/WebAPI.csproj.user
@@ -9,7 +9,7 @@ <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\Git\houduan\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\GITä»åº\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> <UseIISExpress>false</UseIISExpress> <Use64BitIISExpress />