def __init__(self, request): from get_head import get_posreprots_fields self.head, FieldNames, FieldCaption = get_posreprots_fields( self.report_typeid) super(GetDeviceSummaryReport, self).__init__() #设置 colum_trans 属性 def f_datetime(r, val): if val == "" or val == "None": return "" else: return val.strftime('%Y-%m-%d %H:%M:%S') for i in FieldNames: self.grid.fields[i]["width"] = 70 self.grid.fields["summary_money"]["width"] = 160 self.grid.fields["summary_dev_money"]["width"] = 160 self.grid.fields["summary_count"]["width"] = 160 self.grid.fields["pos_count"]["width"] = 80 self.grid.fields["meal_money"]["width"] = 80 self.grid.fields["pos_date"]["width"] = 160 self.grid.fields["device_sn"]["width"] = 120 if get_option("POS_IC"): self.grid.fields["error_summary_money"]["width"] = 100 self.grid.fields["error_summary_count"]["width"] = 100 self.grid.fields["sum_device_count"]["width"] = 100 # self.SetHide("device_name") self.SetHide("error_summary_count") self.SetHide("error_summary_money")
def __init__(self,request): from get_head import get_posreprots_fields self.head,FieldNames,FieldCaption = get_posreprots_fields('12') super(GetNoCardBlanceReport, self) .__init__() #设置 colum_trans 属性 def f_datetime(r, val): if val=="" or val=="None" : return "" else: return val.strftime('%Y-%m-%d %H:%M:%S') for i in FieldNames: self.grid.fields[i]["width"]=150
def __init__(self,request): from get_head import get_posreprots_fields self.head,FieldNames,FieldCaption = get_posreprots_fields(self.report_typeid) super(GetDeptSummaryReport, self) .__init__() #设置 colum_trans 属性 def f_datetime(r, val): if val=="" or val=="None" : return "" else: return val.strftime('%Y-%m-%d %H:%M:%S') for i in FieldNames: self.grid.fields[i]["width"]=100 self.grid.fields["pos_date"]["width"]=180
def __init__(self,request): from get_head import get_posreprots_fields self.head,FieldNames,FieldCaption = get_posreprots_fields(self.report_typeid) super(GetAllowReport, self) .__init__() #设置 colum_trans 属性 def f_datetime(r, val): if val=="" or val=="None" : return "" else: return val.strftime('%Y-%m-%d %H:%M:%S') for i in FieldNames: self.grid.fields[i]["width"]=80 self.grid.fields["check_time"]["width"]=150 if get_option("POS_IC"): self.grid.fields["convey_time"]["width"]=150