一:工具类
{CSDN:CODE:615619}
二:应用
按设备在线状态排序
List deviceList = deviceAction.listDevices(qc);
SortListUtil sortList = new SortListUtil();
sortList.Sort(deviceList, "getIsConnect", "desc...
分类:
编程语言 时间:
2015-03-10 12:10:23
阅读次数:
136
WebClient client = new WebClient(); String url = "http://localhost/MESAPIWebService/MESAPI.asmx?WSDL";//这个地址可以写在Config文件里面,这里取出来就行了.在原地址后面加...
分类:
Web程序 时间:
2015-03-10 12:02:56
阅读次数:
307
Account = { balance = 0}function Account:deposit(v) self.balance = self.balance + vendfunction Account:new(o) o = o or {} setmetatable(o, self)--A...
分类:
其他好文 时间:
2015-03-10 11:58:45
阅读次数:
117
有时从数据库中取得的时间后面带.0,想把这给去掉,具体作法String date = "2013-03-10 09:08:06.0"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date d = sd...
分类:
其他好文 时间:
2015-03-10 11:57:16
阅读次数:
811
Step 1: Create a New Application and Projects Step 2: Create an Unbounded Task Flow for Each Menu Step 3: Create an ADF Menu for Each Unbounded Ta...
分类:
其他好文 时间:
2015-03-10 11:46:00
阅读次数:
147
页面代码如下:Controllers代码:public ActionResult Create() { List categories = categoryService.GetAll(); ViewData["Categories"] = new SelectList(...
分类:
Web程序 时间:
2015-03-10 11:45:39
阅读次数:
160
委托是一个类可以把一个方法当作另一个方法的参数使用。声明委托:delegate string 委托名(参数列表);使用委托的函数 返回值和参数列表与委托相同使用委托: 委托名 委托变量名=new 委托(函数名); 委托变量名(参数列表);例子: delegate string de1(s...
一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo...
NetworkComms v3版本中,默认使用的是protobuf.net序列化器。即当您没有指定序列化的时候,系统自动使用默认的protobuf.net序列化器。当然我们也可以自己指定序列化器语法如下: SendReceiveOptions aboveOptions = new SendRecei...
分类:
Web程序 时间:
2015-03-10 07:53:53
阅读次数:
129
The storyboard ID is a String field that you can use to create a new ViewController based on that storyboard ViewController. An example use would be f...
分类:
其他好文 时间:
2015-03-10 06:48:26
阅读次数:
155