| | |
| | | List<DataTable> tableList = new List<DataTable>(); |
| | | |
| | | //查看权限 |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Edit", 1, false, User)) |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Query", 1, false, User)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 安灯逐级呼叫规则 作废/反作废 |
| | | #region 产品工艺参数清单列表 作废/反作废 |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="HInterID">单据ID</param> |
| | | /// <param name="IsAudit">作废(0),反作废(1)</param> |
| | | /// <param name="CurUserName">作废人</param> |
| | | /// <returns></returns> |
| | | [Route("Gy_MaterialTechParamBill/DeleteGy_MaterialTechParamBill")] |
| | | [Route("Gy_MaterialTechParamBill/DropGy_MaterialTechParamBill")] |
| | | [HttpGet] |
| | | public object DeleteGy_MaterialTechParamBill(int HInterID, int IsAudit, string CurUserName) |
| | | public object DropGy_MaterialTechParamBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "Gy_MaterialTechParamBillMain_Delete"; |
| | | DBUtility.ClsPub.CurUserName = CurUserName; |
| | |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 产品工艺参数清单 更新相同物料+模具的上下标准 值 产生一个新版本,老的作废 |
| | | [Route("Gy_MaterialTechParamBill/SaveGy_MaterialTechParamBill_Update")] |
| | | [HttpGet] |
| | | public object SaveGy_MaterialTechParamBill_Update(string HInterID, string User) |
| | | { |
| | | try |
| | | { |
| | | List<DataTable> tableList = new List<DataTable>(); |
| | | |
| | | //查看权限 |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Edit", 1, false, User)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无更新权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (HInterID == null || HInterID.Equals("")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterID不能为空!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_Gy_MaterialTechParamBillMain_Insert '"+HInterID+"','"+User+"' ", "h_p_Gy_MaterialTechParamBillMain_Insert"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "更新成功"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | } |