| | |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using System.Dynamic; |
| | | using Gs.Toolbox; |
| | | using Gs.Toolbox.ApiCore.Abstract.Mvc; |
| | | using Gs.Toolbox.ApiCore.Common.Mvc; |
| | | using Gs.Toolbox.ApiCore.Group; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.Dynamic; |
| | | using static Gs.Toolbox.UtilityHelper; |
| | | |
| | | |
| | | namespace GS.QC.Service; |
| | | namespace GS.QC.Service |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 其它入库检验 |
| | | /// </summary> |
| | | [ApiGroup(ApiGroupNames.QC)] |
| | | public class RkqcManager : IRomteService |
| | | { |
| | | private readonly IHttpContextAccessor _http; |
| | | |
| | | private readonly string _userCode, _userGuid, _orgFids; |
| | | |
| | | public RkqcManager(IHttpContextAccessor httpContextAccessor) |
| | | { |
| | | _http = httpContextAccessor; |
| | | (_userCode, _userGuid, _orgFids) = |
| | | GetUserGuidAndOrgGuid(_http); |
| | | UtilityHelper.GetUserGuidAndOrgGuid(_http); |
| | | } |
| | | |
| | | #region CRUD |
| | |
| | | var dset = new DataSet(); |
| | | try |
| | | { |
| | | dset = DbHelperSQL.RunProcedure("[rkqc_detect01_get]", parameters, |
| | | "0"); |
| | | dset = DbHelperSQL.RunProcedure("[rkqc_detect01_get]", parameters, "0"); |
| | | if (dset != null && dset.Tables.Count > 0 && |
| | | dset.Tables[0].Rows.Count > 0) |
| | | { |
| | |
| | | var _tb = dset.Tables[1].TableToDynamicList(); |
| | | m.list5 = _tb; |
| | | //打印信息 |
| | | var row = dset.Tables[2].Rows[0]; |
| | | DataRow row = dset.Tables[2].Rows[0]; |
| | | m.kdy = row["kdy"].ToString(); |
| | | m.ydy = row["ydy"].ToString(); |
| | | var _tb8 = dset.Tables[3].TableToDynamicList(); |
| | |
| | | |
| | | #endregion |
| | | } |
| | | } |