申请编辑信息遮罩不关闭

master
chenzhi 5 years ago
parent 22dc7a62ce
commit 5a9fc76374

@ -46,6 +46,9 @@ class AggregateFinanceSetController extends Controller {
} }
public function setDailyCount($stime="now") public function setDailyCount($stime="now")
{ {
if(!IS_CLI){
die("只支持脚本访问");
}
if($stime=="now"){ if($stime=="now"){
$stime=time(); $stime=time();
}else{ }else{
@ -70,13 +73,13 @@ class AggregateFinanceSetController extends Controller {
echo $nowdate."非周一和月初,无需任何处理".PHP_EOL; echo $nowdate."非周一和月初,无需任何处理".PHP_EOL;
} }
} }
public function setWeekCount($stime)//进行周结 protected function setWeekCount($stime)//进行周结
{ {
$begintime = mktime(0,0,0,date('m',$stime),date('d',$stime)-7,date('Y',$stime)); $begintime = mktime(0,0,0,date('m',$stime),date('d',$stime)-7,date('Y',$stime));
$endtime = mktime(0,0,0,date('m',$stime),date('d',$stime),date('Y',$stime))-1; $endtime = mktime(0,0,0,date('m',$stime),date('d',$stime),date('Y',$stime))-1;
$this->getAndSaveData(0,$begintime,$endtime); $this->getAndSaveData(0,$begintime,$endtime);
} }
public function setMonthCount($stime)//进行周结 protected function setMonthCount($stime)//进行周结
{ {
$thismonth = date('m',$stime); $thismonth = date('m',$stime);
$thisyear = date('Y',$stime); $thisyear = date('Y',$stime);

@ -521,7 +521,7 @@
layer.open({ layer.open({
type: 2, type: 2,
title: "申请开票", title: "申请开票",
shadeClose: true, shadeClose: false,
shade: 0.8, shade: 0.8,
area: ['70%', '80%'], area: ['70%', '80%'],
content:'/admin.php?s=/AggregateFinanceStatement/createStatement/id/'+id content:'/admin.php?s=/AggregateFinanceStatement/createStatement/id/'+id
@ -533,7 +533,7 @@
layer.open({ layer.open({
type: 2, type: 2,
title: "开票编辑", title: "开票编辑",
shadeClose: true, shadeClose: false,
shade: 0.8, shade: 0.8,
area: ['70%', '80%'], area: ['70%', '80%'],
content:'/admin.php?s=/AggregateFinanceStatement/editStatement/id/'+id content:'/admin.php?s=/AggregateFinanceStatement/editStatement/id/'+id

Loading…
Cancel
Save