systemregionserviceimpl.java

来自「q企业web应用 q企业web应用 q企业web应用」· Java 代码 · 共 41 行

JAVA
41
字号
package com.meybosoft.microerp.business.impl;

//地区信息
import java.util.Collection;

import com.easyjf.web.tools.DbPageList;
import com.easyjf.web.tools.IPageList;
import com.meybosoft.microerp.business.SystemRegionService;
import com.meybosoft.microerp.system.SystemRegion;

public class SystemRegionServiceImpl extends AbstractDAOServiceSupport
		implements SystemRegionService {
	public boolean addSystemRegion(SystemRegion region) {
		return this.dao.save(region);
	}
	public SystemRegion getSystemRegion(String sn) {

		return (SystemRegion) this.dao.get(SystemRegion.class,sn);
	}

	public boolean delSystemRegion(SystemRegion region) {
		return this.dao.del(region);
	}

	public boolean moveTo(SystemRegion region) {
		// TODO 自动生成方法存根
		return false;
	}

	public IPageList querySystemRegion(String scope, Collection paras, int currentPage,
			int pageSize) {	
		DbPageList pageList=new DbPageList(SystemRegion.class,scope,paras,dao);
		pageList.doList(currentPage, pageSize);	
		return pageList;
	}

	public boolean updateSystemRegion(SystemRegion region) {
		return this.dao.update(region);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?