1
yangle
2022-12-09 7b013346174c6f645039ea7673a666a3228cf20b
WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs
@@ -215,6 +215,7 @@
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                //if (HWorkTimes <= 0)
                //{
                //    objJsonResult.code = "0";
@@ -255,10 +256,13 @@
                //    objJsonResult.data = null;
                //    return objJsonResult;
                //}
                var num = 0;
                //若MAINDI重复则重新获取
                oCN.BeginTran();
                if ("Add".Equals(eventType))
                {
                    num = 1;
                    if (!AllowbillNo(HBillNo))
                    {
                        oCN.RollBack();
@@ -290,6 +294,7 @@
                }
                else if ("Modify".Equals(eventType))
                {
                    num = 2;
                    oCN.RunProc("UpDate Sc_StationOutBillMain set  " +
                    "HUpDater='" + HMaker + "'" +
                    ",HUpDateDate=getdate()" +
@@ -358,7 +363,7 @@
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + HInterID + ",1");
                oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + HInterID + ","+ num + "");
                oCN.RunProc("exec h_p_Mes_ProcessExchangeChangeStatus  " + HInterID + " ");
                oCN.RunProc("exec h_p_Mes_StationOutBillBackBarCode  " + HInterID + " ");
                //判断是否是 末道工序 
@@ -394,6 +399,7 @@
            }
            catch (Exception e)
            {
                oCN.RollBack();
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();