| | |
| | | |
| | | try |
| | | { |
| | | |
| | | //编辑权限 |
| | | if (!DBUtility.ClsPub.Security_Log_second("IpadIndex_Edit", 1, false, HUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "新增产线失败!无权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select * from Gy_SourceRelationSet where HSourceID='" + HSourceID + "' and HUserName='" + HUserName + "'", "Gy_SourceRelationSet"); |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | |
| | | #region 报工平台删除资源列表 |
| | | [Route("ReportPlatForm/DeleteGetLineBindBillList")] |
| | | [HttpGet] |
| | | public object DeleteGetLineBindBillList(string HSourceID) |
| | | public object DeleteGetLineBindBillList(string HSourceID,string user) |
| | | { |
| | | try |
| | | { |
| | | |
| | | //编辑权限 |
| | | if (!DBUtility.ClsPub.Security_Log_second("IpadIndex_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "删除产线失败!无权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | //更新切换状态值 |
| | | string sql = string.Format(@"delete Gy_SourceRelationSet where HSourceID='" + HSourceID + "'"); |
| | | string sql = string.Format(@"delete Gy_SourceRelationSet where HSourceID='" + HSourceID + "' and HUserName = '" + user + "'"); |
| | | oCN.RunProc(sql); |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |