`
yunzhongxia
  • 浏览: 640348 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
注意:下面的是针对utmost平台. JdbcService callfunc在调用java中的一个方法的时候提示找不到改方法的可能原因。 1 没有在类顶部标记service 2 方法不是public的 3 表示的service存在多个 4 参数类型不对 Object对应java端的flex.messaging.io.amf.ASObject    ASObject  ObjectProxy对应java端的flex.messaging.io.ObjectProxy 5 在调用callfunc的方法里面最好是var obj:Object=new Object();obj=。。。。 ...
In Oracle/PLSQL, the decode function has the functionality of an IF-THEN-ELSE statement. The syntax for the decode function is: decode( expression , search , result [, search , result]... [, default] ) expression is the value to compare. search is the value that is compared against expression ...
In Oracle/PLSQL, the to_date function converts a string to a date. The syntax for the to_date function is: to_date( string1, [ format_mask ], [ nls_language ] ) string1 is the string that will be converted to a date. format_mask is optional. This is the format that will be used to convert str ...
You can use the BrowserManager's setTitle() method to set the title in your HTML wrapper. This shows up as the name of the web page in the title bar of the browser. When you first initialize the BrowserManager, you set the value of the title in the second parameter to the init() method. The followin ...
 最近同事在做一个日历组件,类似于系统日历一样,一个月的第一天可能是周三,这样的话就要前面空出2个checkbox。但是怎么隐藏这2个checkbox, <mx:TileList dataProvider="{ac3}" id="tl"> <mx:itemRenderer> <mx:Component> <mx:CheckBox label="{data.name}" selected="{data.sel}" visible=" ...
分页改变了datagrid的数据源,数据源变了视图就跟着变了。因此原来的排序方式丢失。解决的办法是在更新数据源之前保存Sort。改变数据后对在对arrayCollection加上Sort属性。 下面是代码的关键     if(obj.data!=null){      if(userDb!=null){       var sortFields:Sort=userDb.sort;       userDb=obj.data as ArrayCollection;       userDb.sort=sortFields;       userDb.refresh();       ...
<?xml version="1.0" encoding="utf-8"?> <!-- http://blog.flexexamples.com/2007/08/23/determining-a-datagridcolumn-objects-current-sort-order/ --> <mx:Application name="DataGridColumn_sortDescending_test" xmlns:mx="http://www.adobe.com/2006/m ...
注释:以下代码是针对自己的平台而写的(对flex+java做了封装),现给我的思路。 flex前段监听FaultEvent事件 //调用存储过程 public function getCall(procedureName:String, param:Object, resultHandler:Function, faultHandler:Function=null):void { if (resultHandler != null) ro.getCall.addEventListener(ResultEvent.RESULT, resultHandler); ...
public void save(String tableName,HashMap<String,Object> param) throws Exception{ //注意 param中的key必须与数据库中的列表相对应 //如果主键不存在则从序列中生成一个新的id SimpleJdbcInsert jdbcInsert=new SimpleJdbcInsert(this.getDataSource()).withTableName(tableName); try { String primary_key=(String) param.get( ...
var point:Point=new Point(0,0); var xy:Point =txt_user_name.localToGlobal(point);  localToGlobal是相对全局的坐标。
BigDecimal bg1=new BigDecimal("1111.20"); BigDecimal bg2=new BigDecimal("2222.05"); Double ss = bg1.doubleValue()+bg2.doubleValue(); Double flag = null; String text = ss.toString(); BigDecimal bd = new BigDecimal(text).setScale(2,BigDecimal.ROUND_HALF_UP); fl ...
在Oracle中,可以使用instr函数对某个字符串进行判断,判断其是否含有指定的字符。其语法为:instr(sourceString,destString,start,appearPosition).其中sourceString代表源字符串;destString代表想聪源字符串中查找的子串;start代表查找的开始位置,该参数可选的,默认为1;appearPosition代表想从源字符中查找出第几次出现的destString,该参数也是可选的,默认为1;如果start的值为负数,那么代表从右往左进行查找。返回值为:查找到的字符串的位置。 对于instr函数,我们经常这样使用:从一个字符串中 ...
在用JdbsTemplate查询时sql语第句中用到了in(?),in中的参数可能是多个,这个时候传参挺麻烦的。一种是把in中的值一个个取出来直接拼sql语句。最后的形式类似where name in('张三','李四')。第二种方法是针对oracle数据库的。 String sql=" select * from amc_base_log where instr(?,log_uuid)>0"; String param="'430,434'"; List list=jdbc.getJdbcTemplate().queryForList(sq ...
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.collections.ArrayCollection; [Bindable] publ ...
       由于平台的主页面加载了很多事件,因此当鼠标移动的比较快的时候会出现 SystemManager/updateLastActiveForm()的错误,在一个论坛上有个网友说是flex sdk3.2 版本的SystemManager.as 的一个bug。我把sdks的版本改为3.3,问题解决了。 sdk3.3或者3.4里面没有组件和advancedatagrid组件,可以下载datavisualization_sdk3.4.zip文件放到相应文件夹下就可以了。
Global site tag (gtag.js) - Google Analytics