yusijie
2026-02-28 0ad8b5d768d28752aeb1aa2c9d548bcc12757f40
WebAPI/Controllers/SCGL/Sc_MESBeginWorkBillController.cs
@@ -1710,6 +1710,7 @@
                }
                oCN.BeginTran();
                DataSet ds2 = null;
                //保存
                //保存完毕后处理
                bool bResult = false;
@@ -1745,8 +1746,29 @@
                    }
                }
                string sReturn = "";
                if (oSystemParameter.ShowBill(ref sReturn) == true)
                {
                    if (oSystemParameter.omodel.WMS_CampanyName == "华舟")
                    {
                        LogService.Write("自动生成工作联系单...");
                        //自动生成工作联系单
                        ds2 = oCN.RunProcReturn("exec h_p_OA_WorkLinkBill_Create " + ds.Tables[0].Rows[0]["HInterID"].ToString() + "," + 3772, "h_p_OA_WorkLinkBill_Create");
                    }
                }
                oCN.Commit();
                if (ds2 != null && ds2.Tables[0].Rows.Count > 0)
                {
                    int HInterID = int.Parse(ds2.Tables[0].Rows[0]["NewHInterID"].ToString());
                    LogService.Write("执行消息推送..." + HInterID);
                    // 触发消息推送
                    Service.GeTuiService.PubishSingle(HInterID);
                }
                if (bResult)
                {