配置實現 增刪改查的配置例項

2021-06-01 02:09:53 字數 981 閱讀 6192

以部門為例:

1、部門的列表配置(含增刪改查的按鈕及刪除的實現)

<?xml version="1.0" encoding="utf-8"?>

select name from s_dep where id=''

s_dep.id

s_dep.name

s_user.name

s_dep.sn

case when s_dep.iflag=1 then '' else '停用' end

s_dep

left join s_user on s_dep.manager=s_user.id

and s_dep.name like

and s_dep.iflag=

s_dep.id

tmp/myedit.aspx?n=editdep

tmp/myedit.aspx?n=editdep&id=

select case when count(*)>0 then 1 else 0 end from s_user where depid=''

update s_dep set iflag=0 where id=''

delete from s_dep where parentid=''

delete from s_dep where id=''

tmp/myquery.aspx?n=listuser&depid=

tmp/myquery.aspx?n=listdep&parentid=

tmp/myquery.aspx?n=listdep&parentid=

2、部門編輯的配置

<?xml version="1.0" encoding="utf-8"?>

checkid()

ltkj.bal.queryvalidate

s_dep

window.opener=null;window.open('','_self');window.close();

JDBC 實現增刪改查

public class notedaoimpl implements notedao catch exception e finally 修改操作 public void update note note throws exception catch exception e finally 刪除操...

Ajax JQuery LinQ實現增刪改查無重新整理

開發工具sql server2008 vs2010.採用三層框架 bll dal ui 首先在sql server2008中建立名為userinfo的資料庫,表名為tb user包含欄位userid 主鍵 自動識別符號為1 username birthday address phone remark...

JDBC實現增刪改查

對資料庫進行增刪改操作的步驟 1.通過connection物件建立statement,statement的功能是向資料庫傳送sql語句。2.通過呼叫int executeupdate string sql 它可以傳送dml和ddl 例項 class.forname com.mysql.jdbc.dr...