WebAPI/Controllers/²Ö´æ¹ÜÀí/ÌõÂëÉú³É/Sc_BarCodeController.cs
@@ -1824,7 +1824,7 @@
        }
        #endregion
        #region æ›´æ–°æ¡ç  å¯¹åº”单据 å•号 æ¬¡æ•° æ—¶é—´
        #region æ›´æ–°æ¡ç å¯¹åº”出库申请单号 å…´è¾¾
        public class BarCodeMeta
        {
            public string HBarCode { get; set; }
@@ -1851,23 +1851,24 @@
            string msg2 = sArray[0].ToString();
            string HBillType = sArray[1].ToString();
            string HBillNo = sArray[2].ToString();
            string HOrgName = sArray[3].ToString();
            List<BarCodeMeta> BarCodeMetaList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<BarCodeMeta>>(msg2);
            oCN.BeginTran();
            try
            {
                oCN.BeginTran();
                for(int i = 0; i < BarCodeMetaList.Count; i++)
                {
                    if (HBillType == "1205") // é”€å”®å‡ºåº“
                    {
                        oCN.RunProcReturn("Update Gy_BarCodeBill set HOutStockDate = getdate(), HOutStockCounts=isnull(HOutStockCounts,0)+1," +
                           "HOutStockBillNo='" + HBillNo + " 'where HBarCode = '" + BarCodeMetaList[i].HBarCode + "'", "Gy_BarCodeBill");
                    }
                    if (HBillType == "1201") // é‡‡è´­å…¥åº“
                    {
                        oCN.RunProcReturn("Update Gy_BarCodeBill set HInStockDate = getdate(), HInStockCounts=isnull(HOutStockCounts,0)+1," +
                           "HInStockBillNo='" + HBillNo + " 'where HBarCode = '" + BarCodeMetaList[i].HBarCode + "'", "Gy_BarCodeBill");
                        if (HOrgName.Contains("兴达") && !string.IsNullOrEmpty(HBillNo))
                        {
                            // å…´è¾¾ é”€å”®å‡ºåº“æ›´æ–° å‘货通知单
                            oCN.RunProcReturn("Update Gy_BarCodeBill set " +
                            "HSeOutStockBillNo='" + HBillNo + "' where HBarCode = '" + BarCodeMetaList[i].HBarCode + "'", "Gy_BarCodeBill");
                        }
                    }
                }
                
@@ -1879,6 +1880,7 @@
            }
            catch (Exception e)
            {
                oCN.RollBack();
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "修改失败!" + e.Message;