c卡拉ok点歌管理系统论文(编辑修改稿)内容摘要:

} } 3. 如果 用户 查询到 歌曲 的信息之后,想做一些的修 改 删除,添加之类的修改,如果添加 歌曲 信息的话,则要录入新 歌曲 的详细信息,如修改的 歌曲 信息的话可根据某方面的信息进行相关的修该,如删除 歌曲 信息的话,则要对 歌曲 的信息进行全部的删除,并相应的保存到数据库里面,方便下次 用户 对 歌曲 的信息进行相关的操作,具体修改 ,删除,添加的操作代码如下: region 添加 public int tbMusifoAdd(tb_musicinfo tb_aut) { int intResult = 0。 try { getConnection getCon = new getConnection()。 oledCon = ()。 ()。 string strAdd = insert into tb_musicinfo values (。 strAdd += 39。 + + 39。 ,39。 + + 39。 ,。 strAdd += 39。 + + 39。 ,39。 + + 39。 ,。 strAdd += 39。 + + 39。 ,39。 + + 39。 ,。 strAdd += 39。 + + 39。 ,39。 + + 39。 ,。 strAdd+=39。 + +39。 )。 oledcmd = new OleDbCommand(strAdd, oledCon)。 intResult = ()。 return intResult。 ~ 17 ~ } catch (Exception ee) { (())。 return intResult。 } } endregion region 修改 public int tbMusifoUpdate(tb_musicinfo tb_aut) { int intResult = 0。 try { getConnection getCon = new getConnection()。 oledCon = ()。 ()。 string strAdd = update tb_musicinfo set。 strAdd += MusicC_name=39。 + + 39。 ,。 strAdd += Music_author=39。 + + 39。 ,Music_Kind=39。 + + 39。 ,。 strAdd += Music_chinse=39。 + + 39。 ,Music_filepath=39。 + + 39。 ,。 strAdd += Music_Ping=39。 + + 39。 ,Music_date=39。 + + 39。 ,。 strAdd += Music_falg =39。 + + 39。 where Music_code=39。 + + 39。 oledcmd = new OleDbCommand(strAdd, oledCon)。 intResult = ()。 return intResult。 } catch (Exception ee) { (())。 return intResult。 } ~ 18 ~ } endregion region 删除 public int tbMusifoDelete(string tb_aut) { int intResult = 0。 try { getConnection getCon = new getConnection()。 oledCon = ()。 ()。 string strAdd = delete * from tb_musicinfo where。 strAdd += Music_code=39。 + tb_aut+ 39。 oledcmd = new OleDbCommand(strAdd, oledCon)。 intResult = ()。 return intResult。 } catch (Exception ee) { (())。 return intResult。 } } endregion region 编号 public int tbMusifoID() { int intResult = 0。 try { getConnection getCon = new getConnection()。 oledCon = ()。 ()。 string strAdd = select Max(Music_code) from tb_musicinfo。 oledcmd = new OleDbCommand(strAdd, oledCon)。 ~ 19 ~ oleRed = ()。 ()。 if () { if (oleRed[0].ToString() == ) { intResult = 1。 } else { intResult = (oleRed[0].ToString()) + 1。 } } return intResult。 } catch (Exception ee) { (())。 return intResult。 } } endregion region 查询 public void tbMusifoFill(object obj) { try { getConnection getCon = new getConnection()。 oledCon = ()。 ()。 string strAdd = select * from tb_musicinfo。 oledcmd = new OleDbCommand(strAdd, oledCon)。 oleRed = ()。 ListView lv = (ListView)obj。 ()。 while (()) { ListViewItem lv1 = new ~ 20 ~ ListViewItem(oleRed[0].ToString())。 (oleRed[1].ToString())。 (oleRed[2].ToString())。 (oleRed[3].ToString())。 (oleRed[4].ToString())。 (oleRed[5].ToString())。 (lv1)。 } ()。 } catch (Exception ee) { (())。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。