class:importtime
fromopenerp.osvimportosv
fromopenerp.reportimportreport_sxw
classstock_picking_out(report_sxw.rml_parse):
def__init__(self,cr,uid,name,context):
super(stock_picking_out,self).__init__(cr,uid,name,context=context)
self.localcontext.update(..
分类:
Web程序 时间:
2016-12-13 00:23:05
阅读次数:
574
两种方法用来隐藏tabBar 1.在本页面隐藏 #pragma mark - 隐藏tabBar - (void)viewWillAppear:(BOOL)animated{ self.tabBarController.tabBar.hidden = YES; } - (void)viewWillDi ...
分类:
移动开发 时间:
2016-12-12 20:06:51
阅读次数:
182
http://blog.csdn.net/worldzhy/article/details/41312713 - (void)viewDidDisappear:(BOOL)animated { //因为点击登录离开页面时 if (YES == _popAsLoginFlag) { [self.nav ...
分类:
移动开发 时间:
2016-12-12 14:49:38
阅读次数:
189
iOS开发中界面跳转有两种方式,上下跳转和左右跳转。 上下跳转_TO: let secondViewController = SecondViewController() self.presentViewController(secondViewController, animated: true, ...
分类:
编程语言 时间:
2016-12-12 01:40:40
阅读次数:
229
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2016-12-11 15:39:59
阅读次数:
192
/**
*分析查询表达式
*@accesspublic
*@parammixed$data主键列表或者查询条件(闭包)
*@paramstring$with关联预查询
*@parambool$cache是否缓存
*@returnQuery
*/
protectedstaticfunctionparseQuery(&$data,$with,$cache)//解析sql表达式
{
$result=self::with($with)-&g..
分类:
Web程序 时间:
2016-12-11 10:33:44
阅读次数:
260
class Human(object): laugh = 'hahahaha' def show_laugh(self): print self.laugh def laugh_100th(self): for i in range(100): self.show_laugh()//也可以调用 sh ...
分类:
编程语言 时间:
2016-12-11 02:56:36
阅读次数:
152
最后阶段,加入判断球拍击中小球的代码,并以小球落入窗口底部为结束。#引入下列模块
fromtkinterimport*#画图模块
importrandom#随机数模块
importtime#时间模块
#创建ball类
classBall:
def__init__(self,canvas,paddle,color):#初始化函数,包含画布canvas和颜色color参数..
分类:
编程语言 时间:
2016-12-10 23:17:12
阅读次数:
483
importtornado.ioloopimporttornado.webfromtornado.optionsimportdefine,options,parse_command_linefromtornado.webimportRequestHandlerclassPicHandles(RequestHandler):defget(self):data={}data[‘pic_id‘]=self.request.uri.split(‘/‘)[-1:][0]ifint(data[‘pic_id‘])==1:..
分类:
其他好文 时间:
2016-12-09 20:31:40
阅读次数:
2654
问题:模板中创建form表单中的下拉列表, 前台打开页面显示object,而不是值,如图: 尝试了多种办法无果,最后解决了,处理办法是修改models.py,原来的model: [python] view plain copy class TechnicistLocation(models.Mode ...
分类:
其他好文 时间:
2016-12-09 19:39:57
阅读次数:
166