- 浏览: 248911 次
- 性别:
- 来自: 深圳
-
最新评论
-
江恂泽:
楼主 这家伙会把data 拆分开来 转换成day year形 ...
JsonUtil -
mdsp25xhm:
为何没有列表查询功能?
myBatis DAO封装
文章列表
<FrameLayout android:id="@+id/frameLayout1"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/layout"
android:layout_width="fill_parent" android:layout_height="wrap_content&quo ...
在使用Android开发程序时,经常需要调用系统服务,如拔打电话号码,需要调用:
<uses-permission android:name="android.permission.CALL_PHONE" /> ,等于增加了一个对拔打电话的访问权限,如果不添加这个,则无法使用拔打电话服务,如果捕捉错误的话,会出现如下错误:
12-08 13:24:12.041: INFO/info(487): Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:124 cmp= ...
Ext.Msg.show({
//title: "保存",
msg: "Reboot Instance,Please Wait...",
progressText: "Request...",
width: 300,
wait: true,
waitConfig: {interval:200},
icon: "ext-mb-d ...
{
tooltip:'stop jobinstance',
getClass: function(return_value, meta, record)
{ // Or return a class from a function
var jobinstance_status = record.get('status');
if(jobinstance_status == ...
spring+hibernate:Cannot get a connection, pool error Timeout waiting for idle object,重启服务器无错
<property name="poolPreparedStatements" value="true"></property>
压力释放给数据库
public class CookieDeal {
public CookieDeal() {
}
//获取cookie中 key:name的值
public static Object getValueByName(HttpServletRequest request,String name)
{
Cookie[] cookies = request.getCookies(); // 获取浏览器中的Cookie
if(null != cookies)
{
for(int i=0;i<cookies.length; ...
function JSCookie()
{
this.GetCookie = function(key)
{
var value = document.cookie.match(new RegExp(";?"+key+"=([^;]*)","i"));
return unescape(value?value[1]:"");
};
this.GetChild = function(cookiekey,childke ...
Ext.create('Ext.panel.Panel', {
//title: 'Results',
width: 1050,
height: 327,
renderTo: bodys,
layout: {
type: 'hbox/vbox', // Arrange child items vertically
align: 'stretch', // Each takes up full width
padding: 5
},
it ...
listeners: {
'cellclick':function(grid,rowIndex,columnIndex,e )
{
var count = grid.getStore().getCount(); //获取当前总条数
var sel_model = grid.getSelectionModel();//获取当前选择行
//var record = sel_model.getSelection();//获取行数据
for (var i = 0; i < count ; ...
var form = this.up('form').getForm();//获取表单对象
var field=form.findField("cloudSubsriberId");//表单取值“id:'cloudSubsriberId'”
var value=field.getValue();
if (null == value || value.length == 0) {
Ext.Msg.alert('List users', 'cloudSubsriberId is nu ...
listeners: {
'cellclick':function(grid,rowIndex,columnIndex,e ){}
}
Ext.define('JobinstanceBean', {
extend: 'Ext.data.Model',
fields: [
{name: 'jobInstanceId', type: 'int'},
{name: 'internalId', type: 'int'},
{name: 'jobName', type: 'string'},
{name: 'status', t ...
//create grid
var grid = Ext.create('Ext.form.Panel', {
//title: 'My VM Instance List',
width:'100%',
height: 300,
frame: true,
store: myStore,
loadMask: true,
items: [{
...
File file = new File("");
FileInputStream in = new FileInputStream(file);
InputStreamReader read = new InputStreamReader(in, JobInstanceParameter.ENCODING_FASHION);
BufferedReader reader = new BufferedReader(read);
int tempchar;
while ((tempchar = reader.read()) != -1)
{
...
xtype: 'combobox',
fieldLabel: 'Select Template',
margin:'0 600 10 0',
columnWidth:1,
name: 'tpName',
store: Ext.create('Ext.data.ArrayStore', {
fields: ['name', 'value'],
...