您的位置:首页 > 其它

公司内部技术

2012-12-28 07:53 176 查看
昨天做了换热站管理模块,页面中涉及到select框的问题,由于公司对select框用方法进行包装,

构建:调用数据字典

初始化调用方法:toSelect(form.name,"ID","NAME")

修改后赋值:一,用mixlist的rowSelect方法,拿到结果集

二,查询数据字典中的值,根据选择的index来赋值

具体的赋值方法为,result.toForm(form);

本内容只作为自己查询用!!切记

2012-12-28 11:21记

公司项目心得

user.java 关乎@company_id

dept_type 02 区县

ext.data.simplestore 存储数组数据

ext.form.ComboBox 构造select对象,listeners作为监听事件的方法

默认值不被存到数据库,只能用combobox来构造select,因为combobox覆盖了getValue和setValue

自己学习内容:、

smartupload是jsp文件上传下载组件 smartupload.jar

com.jspsmart.upload.File = smartupload构造对象

POIFSFileSystem 文件流对象,HSSFWorkbook包装file

update fc_house_temp set 原房号=replace(原房号,'''','') ;

--update fc_house_temp set 原房号=substr(原房号,2,length(原房号)+1) ;

update fc_house_temp set 小区编号='A029';

update fc_house_temp set 入住时间='2012-12-25';

update fc_house_temp set 面积名称1='住宅面积' where 使用类型1 like '居民%';

update fc_house_temp set 标准编号1='A04' where 使用类型1 like '居民%';

update fc_house_temp set 面积名称2='公建面积' where 使用类型1 like '公建%';

update fc_house_temp set 标准编号2='A05' where 使用类型1 like '公建%';

--原房号为1-1的形式的更新方法

update fc_house_temp set 单元号='00' where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))=0; --trim(原房号)为1-2形式,用trim(原房号)更新单元号为00

update fc_house_temp set 楼层='0'||substr(trim(原房号),1,instr(trim(原房号),'-',1)-1) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))=0

and length(substr(trim(原房号),1,instr(trim(原房号),'-',1)-1))=1; --单元号长度是1位的情况

update fc_house_temp set 门牌号=trim(substr(trim(原房号),instr(trim(原房号),'-',1)+1,10)) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))=0; --门牌号号长度为10以内位的情况

update fc_house_temp set 门牌号='0'||trim(substr(trim(原房号),instr(trim(原房号),'-',1)+1,10))

where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))=0 and length(trim(substr(trim(原房号),instr(trim(原房号),'-',1)+1,10)))=1; --门牌号号长度为10以内位的情况

--trim(原房号)为1-1-1的形式的更新方法

update fc_house_temp set 单元号=substr(trim(原房号),1,instr(trim(原房号),'-',1)-1) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0; --trim(原房号)为1-2形式,用trim(原房号)更新单元号为00

update fc_house_temp set 单元号='0'||substr(trim(原房号),1,instr(trim(原房号),'-',1)-1) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0;

--截取原房号到楼层-之间的-

update fc_house_temp set 楼层=substr(trim(原房号),instr(trim(原房号),'-',1)+1,(instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1))-(instr(trim(原房号),'-',1)+1)) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0;

--楼层为1位的前面加0补充

update fc_house_temp set 楼层='0'||substr(trim(原房号),instr(trim(原房号),'-',1)+1,(instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1))-(instr(trim(原房号),'-',1)+1))

where length(trim(substr(trim(原房号),instr(trim(原房号),'-',1)+1,(instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1))-(instr(trim(原房号),'-',1)+1))))=1

and instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0;

--截图原房号到门牌号字段

update fc_house_temp set 门牌号=substr(trim(原房号),instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1)+1,20) where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0;

update fc_house_temp set 门牌号='0'||substr(trim(原房号),instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1)+1,20)

where instr(trim(原房号),'-',(instr(trim(原房号),'-',1)+1))>0 and length(trim(substr(trim(原房号),instr(trim(原房号),'-',instr(trim(原房号),'-',1)+1)+1,20)))=1;

--更新某个字段

update fc_house_temp set 楼层='01' where trim(幢编号)='010' and trim(楼层)='1层车库';--1层 车库

--查询所需字段

select

trim(小区编号) as 小区编号,

trim(小区名称) as 小区名称,

trim(幢编号) as 幢编号,

trim(幢名称) as 幢名称,

trim(单元号) as 单元号,

trim(楼层) as 楼层,

trim(门牌号) as 门牌号,

trim(原房号) as 原房号,

trim(入住时间) as 入住时间,

trim(住户名称) as 住户名称,

trim(工作单位) as 工作单位,

trim(面积名称1) as 面积名称1,

trim(使用类型1) as 使用类型1,

trim(建筑面积1) as 建筑面积1,

trim(收费面积1) as 收费面积1,

trim(赠送面积1) as 赠送面积1,

trim(标准编号1) as 标准编号1,

trim(面积名称2) as 面积名称2,

trim(使用类型2) as 使用类型2,

trim(建筑面积2) as 建筑面积2,

trim(收费面积2) as 收费面积2,

trim(赠送面积2) as 赠送面积2,

trim(标准编号2) as 标准编号2,

trim(面积名称3) as 面积名称3,

trim(使用类型3) as 使用类型3,

trim(建筑面积3) as 建筑面积3,

trim(收费面积3) as 收费面积3,

trim(赠送面积3) as 赠送面积3,

trim(标准编号3) as 标准编号3,

trim(用户卡号) as 用户卡号,

trim(入网年度) as 入网年度,

trim(供热状态) as 供热状态,

trim(分户状态) as 分户状态,

trim(管理站所) as 管理站所

from fc_house_temp;

select * from fc_house_temp;

delete from fc_house_temp;

select distinct stat_name from of_station 金州中心汽车换热站

SELECT * FROM FC_COMMUNITY WHERE COMMUNITYCODE='A012'

SELECT * FROM FC_HOUSE WHERE COMMUNITYCODE='A012'

Eclipse 布置项目问题

一,在.project文件中需要加入加载的项目名称

二,拷贝项目到eclipse的工作空间

三,import方式导入工作空间的文件

java project 建立

一,建立项目名称

二,把所有公司的src下文件拷贝到项目下src下

三,导入相关jar包通过buildpath

lib文件最好放在该项目文件下

更改2个之间的数据,原来已收用户、和停供用户

sf_charge,sf_detail,sf_bill,fc_heatstoping
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: