def Onautocheck_adr(self, event): ldlg = LoginDialog(None, -1, u'登录窗口') ldlg.ShowModal() global executeflag print u"获取单月智能报表总数(ADR):", executeflag if executeflag == 1: import sd4 sd4.MySelectMonth(None, -1, u'任意月份选择') ty = sd4.readini_year() tmstart = sd4.readini_month() tmending = sd4.readini_month2() executeflag = 0 t = threading.Thread(target=login_new_adr.checklistauto, args=(ty, tmstart,tmending)) self.P.append(t) t.start() else: print u"一些东西出错了"
def OnAdrAppraise(self, event): ldlg = LoginDialog(None, -1, u'登录窗口') ldlg.ShowModal() global executeflag print u"更新再评价(MDR):", executeflag if executeflag == 1: import sd4 sd4.MySelectMonth(None, -1, u'任意月份选择') year = sd4.readini_year() start_month = sd4.readini_month() end_month = sd4.readini_month2() executeflag = 0 import adr_appraise t = threading.Thread(target=adr_appraise.crawler_appraise, args=(year, start_month, end_month)) self.P.append(t) t.start() else: print u"一些东西出错了"
def OnCheckList_mdr(self, event): ldlg = LoginDialog(None, -1, u'登录窗口') ldlg.ShowModal() global executeflag print u"自动核查(MDR):", executeflag if executeflag == 1: import sd4 sd4.MySelectMonth(None, -1, u'任意月份选择') ty = sd4.readini_year() tmstart = sd4.readini_month() tmending = sd4.readini_month2() executeflag = 0 import zoe2 t = threading.Thread(target=zoe2.RegulateMdrData, args=(ty, tmstart, tmending)) self.P.append(t) t.start() else: print u"一些东西出错了"