| | |
| | | |
| | | #region 器具改制入库单据维护列表 |
| | | |
| | | [Route("Sc_MouldRepairInBillList/GetMouldRepairInBillList")] |
| | | [Route("Sc_CheckToolsRepairWorkBillList/GetMouldRepairInBillList")] |
| | | [HttpGet] |
| | | public object GetMouldRepairInBillList(string sWhere) |
| | | { |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region[模具改制入库单编辑时获取表头数据] |
| | | [Route("Sc_CheckToolsRepairWorkBillList/Sc_MouldRepairInHouseBillListCheckDetai")] |
| | | [HttpGet] |
| | | public ApiResult<DataSet> Sc_MouldRepairInHouseBillListCheckDetai(string HID) |
| | | { |
| | | if (string.IsNullOrEmpty(HID)) |
| | | return new ApiResult<DataSet> { code = -1, msg = "ID不能为空" }; |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | |
| | | var dataSet = oCN.RunProcReturn("select top 1 * from h_v_Sc_MouldProdInHouseBillList where hmainid= " + HID + " ", "h_v_Sc_MouldProdInHouseBillList"); |
| | | if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) |
| | | return new ApiResult<DataSet> { code = -1, msg = "不存在单号" }; |
| | | |
| | | return new ApiResult<DataSet> { code = 1, msg = "查询成功", data = dataSet }; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | // HSecUnitID, 辅助计量单位代码 HSecUnitCode, 辅助计量单位 HSecUnitName,换算率 HSecUnitRate, |
| | | // HUnitID, 计量单位代码 HUnitCode, 计量单位 HUnitName, |
| | | // 设计寿命 HDesignLife, 原剩余寿命 HLeaveLife, 新剩余寿命 HNewLife,表体备注 HRemark |
| | | // FROM h_v_Sc_MouldLifeChangeBillList_Edit"), "h_v_Sc_MouldLifeChangeBillList_Edit"); |
| | | // FROM h_v_Sc_MouldLifeChangeBillList_Edit"), "h_v_Sc_MouldLifeChangeBillList_Edit"); |
| | | |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 1; |
| | |
| | | // HSecUnitID, 辅助计量单位代码 HSecUnitCode, 辅助计量单位 HSecUnitName,换算率 HSecUnitRate, |
| | | // HUnitID, 计量单位代码 HUnitCode, 计量单位 HUnitName, |
| | | // 设计寿命 HDesignLife, 原剩余寿命 HLeaveLife, 新剩余寿命 HNewLife,表体备注 HRemark |
| | | // FROM h_v_Sc_MouldLifeChangeBillList_Edit where 1 = 1 "); |
| | | // FROM h_v_Sc_MouldLifeChangeBillList_Edit where 1 = 1 "); |
| | | // string sql = sql1 + sqlWhere; |
| | | // ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldLifeChangeBillList_Edit"); |
| | | |