修改了 namespace order中的若干操作,增加了pdf里的项目负责人和项目负责人职称字段

This commit is contained in:
Li Jianxuan 2013-08-28 01:41:49 +00:00
parent 7c6f3e3f0c
commit 9552d51276
4 changed files with 25 additions and 1 deletions

View File

@ -45,6 +45,19 @@ class Offlineapp
//接收
public function receive($id)
{
if(empty($id) || !is_numeric($id))
{
return "参数错误";
}
$data = array(
);
$sql="update dataorder set status=4,ts_received=now() where id=?";
$rs = $this->db->query($sql,array($id));
$row = $rs->fetch();
}

View File

@ -268,7 +268,7 @@ class Order
$pdf->template = $this->config->offline->template;
$pdf->heihetemplate = $this->config->offline->heihetemplate;
$formData['project'].='['.$formData['project_title'].' | '.$formData['project_type'].' | '.$formData['project_id'].']';
$formData['project'].='['.$formData['project_title'].' | '.$formData['project_type'].' | '.$formData['project_id'].' | ' . $formData['leader'] . ' | ' .$formData['leadertitle']. ']';
$pdf->data = $formData;
if (isset($formData['westdclist'])) $pdf->drawWestdc();

View File

@ -110,6 +110,16 @@ class PdfForm implements \Order\listener\PdfFormEvents
return "请填写项目标题";
}
if(empty($formData['leader']))
{
return "请填写项目负责人";
}
if(empty($formData['leadertitle']))
{
return "请填写项目负责人职称";
}
if(empty($formData['project']))
{
return "请填写用途";

View File

@ -46,6 +46,7 @@ class PdfOperate implements \Order\listener\PdfEvents
$formData['username'] = $formData['realname'];
unset($formData['realname']);
unset($formData['save']);
if ($row) {
$s = $dbh->update($this->tbl_offlineapp,$formData," id={$row['id']} ");
return $s;