1
duhe
2024-03-28 92cc987c52cc28414e04f95a4656ac39ad925d54
WebAPI/Controllers/SCGL/Sc_ICMOReportBillController.cs
@@ -1270,5 +1270,43 @@
        }
        #endregion
        #region 生产汇报单 根据主内码与子内码获取生产汇报单数据
        [Route("Sc_ICMOReportBill/loadSc_ICMOReportBill_Push")]
        [HttpGet]
        public object loadSc_ICMOReportBill_Push(long HInterID, long HSubID)
        {
            try
            {
                ds = oCN.RunProcReturn("select * from h_v_IF_ICMOReportBillList_Edit where hmainid =" + HInterID + " and hsubid = " + HSubID, "h_v_IF_ICMOReportBillList_Edit");
                if (ds == null || ds.Tables[0].Rows.Count == 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "未查询到源单信息!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "Sucess!";
                    objJsonResult.data = ds.Tables[0];
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}