1
zrg
昨天 c4c02944532a9bfda6de9a0cd85a9dfa631ed003
WebAPI/Controllers/ReportPlatFormController.cs
@@ -59,6 +59,46 @@
        }
        #endregion
        #region 报工平台根据责任人筛选加载资源列表
        [Route("ReportPlatForm/SearchGetLineBindBillListStatus")]
        [HttpGet]
        public object SearchGetLineBindBillListStatus(string HUserName,string HStatus)
        {
            try
            {
                //根据选择资源ID获取当前生产工单、责任人
                ds = oCN.RunProcReturn("exec h_p_JIT_GetSourceInfoByUser " + HUserName + ",'" + HStatus + "'", "h_p_JIT_GetSourceInfoByUser");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "获取资源绑定数据成功!";
                    objJsonResult.data = ds;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "暂无资源绑定!";
                    objJsonResult.data = ds;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = e.Message.ToString();
                objJsonResult.data = null;
            }
            return objJsonResult;
        }
        #endregion
        #region 报工平台资源保存
        /// <summary>
        /// 报工平台资源保存