/// <summary> /// 비가동 상세 저장 수정 /// </summary> /// <returns></returns> public bool InsertUpdateNop_Ma_Master(NopMaMasterVO item) { try { using (SqlCommand comm = new SqlCommand()) { comm.Connection = new SqlConnection(Connstr); comm.CommandText = "InsertUpdateNop_Ma_Master"; comm.CommandType = CommandType.StoredProcedure; comm.Parameters.AddWithValue("@Nop_Ma_Code", item.Nop_Ma_Code); comm.Parameters.AddWithValue("@Nop_Ma_Name", item.Nop_Ma_Name); comm.Parameters.AddWithValue("@Ins_Emp", item.Ins_Emp); comm.Connection.Open(); int result = Convert.ToInt32(comm.ExecuteNonQuery()); comm.Connection.Close(); if (result > 0) { return(true); } else { return(false); } } } catch { throw; } }
public bool InsertUpdateNop_Ma_Master(NopMaMasterVO item) { return(dac.InsertUpdateNop_Ma_Master(item)); }