chenhaozhe
2026-01-29 8e55450074db98dd91318cae7fd2f0b4cb194448
WebAPI/Controllers/Sb_CheckEqpRepairWorkBillController.cs
@@ -917,7 +917,40 @@
        #endregion
        #region [设备维修单通过故障登记单获取维修记录]
        [Route("Sb_EqpRepairWorkBill/GetEquipMatainanceBillBySourceInterID")]
        [HttpGet]
        public object GetEquipMatainanceBillBySourceInterID (string user, int HSourceInterID)
        {
            try
            {
                if (!DBUtility.ClsPub.Security_Log("Sb_EquipRepairCheckBillList", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无保存权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                ds = oCN.RunProcReturn($"select * from h_v_GetEquipMatainanceBillBySourceInterID where HInterID = {HSourceInterID} and isnull(设备维修验收单,'') = ''", "h_v_GetEquipMatainanceBillBySourceInterID");
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "返回记录成功!";
                objJsonResult.data = ds.Tables[0];
                return objJsonResult;
            }
            catch (Exception ex)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region 设备维修验收单保存/编辑
        /// <summary>