百度就会看到一些对related的解读,但始终有些疑惑,今天终于弄懂了related:
关联字段,表示本字段引用关联表中的某字段。格式为:fields.related(关系字段,引用字段,type, relation, string,
...),关系字段是本对象的某字段(通常是one2many or...
分类:
其他好文 时间:
2014-05-31 12:47:45
阅读次数:
185
//将money的分转化为元 public String coinToYuan(String
coin) { Double dd = Double.parseDouble(coin); Double ddd = dd / 100; if (dd %
100 == 0) { ...
分类:
其他好文 时间:
2014-05-31 12:41:32
阅读次数:
547
下面来把剩下的工作做完,换肤功能昨天已近讨论过,今天就不重复了。首先建立三个全局变量,一个存放文件路径,一个存放数据,一个存放过滤条件。 string
DBFileName; DataView dataView; string[] filter = ne...
分类:
其他好文 时间:
2014-05-31 12:39:30
阅读次数:
284
1.tring是c#中的类,String是.net Framework的类(在c#
IDE中不会显示蓝色) 2.# string映射为.net Framework的String
3.果用string,编译器会把它编译成String,所以如果直接用String就可以让编译器少做一点点工作。如果使用c#...
分类:
其他好文 时间:
2014-05-31 12:31:22
阅读次数:
213
public class ServiceImp :
IService1,IService2,IService3 { public string SayHelloA() { return
"你好,这是第一个服务协定。"; } ...
分类:
其他好文 时间:
2014-05-31 11:08:00
阅读次数:
219
1.Integer转换成int的方法Integer i; int k =
i.intValue();即Integer.intValue();2.int转换成Integerint i;Integer it = new
Integer(i);3.String转换成int的方法String str = "...
分类:
编程语言 时间:
2014-05-31 08:27:30
阅读次数:
260
public String createPDF(ProjectManageBase
projectManageBase) { Map map = new HashMap();// velocity模板中的变量 try {
//模版vm的路径 ...
分类:
编程语言 时间:
2014-05-31 07:57:43
阅读次数:
809
提升软件性能,通常喜欢去调整各种启动参数,这没有多大意义,小伎俩。
性能优化要从架构和策略入手,才有可能得到较大的收益Solr的查询是基于Field的,以Field为基本单元,例如一个文章站要索引classArticle{
String title; String content; String t...
分类:
其他好文 时间:
2014-05-31 06:15:39
阅读次数:
226
我不们直接在Foreach
里面直接添加IF,这样会报错,这个前提是子视图,其他的我没有试验过。像这样:@foreach (Gift.Modules.Model.Entitys.XT_CZ
item in ViewData["ZTCZ"] as IList){ string htmlfacti...
分类:
其他好文 时间:
2014-05-31 05:11:24
阅读次数:
259
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-05-30 23:46:09
阅读次数:
453