##### 打印机打印数据历史记录

记录编号 | 所属门店 | 打印机名称 | 显示数据 | 上传时间 | 编辑
--- | --- | --- | --- | --- | ---
$printnumber=M(printnumber); $pinPRid=$valfo["prId"]; $map["pinDate"]=array("like",array($nowYM."%")); $map["pinPRid"]=$pinPRid; $rs=$printnumber->where($map)->select(); $map1["pinDate"]=array("notlike",array($nowYM."%")); $map1["pinPRid"]=$pinPRid; $rs1=$printnumber->where($map1)->select(); $prId=$val["pinPRid"]; $printinfo=M("printinfo"); $rs_ps=$printinfo->where("prId=$prId")->find(); $rs_ps["prName"]; $dId=$rs_ps["prDid"]; $department=M("department"); $rs_dp=$department->where("dId=$dId")->find();
<{$val.pinId}> | <{$rs_dp.dName}> | <{$rs_ps.prName}> | <{$val.pinNowNumber}> <{$rs_ps.prUnit}> | <{$val.pinDate}> | 修改 | 删除
$prId1=$val1["pinPRid"]; $printinfo1=M("printinfo"); $rs_ps1=$printinfo1->where("prId=$prId1")->find(); $rs_ps1["prName"]; $dId1=$rs_ps1["prDid"]; $department1=M("department"); $rs_dp1=$department1->where("dId=$dId1")->find();
<{$val1.pinId}> | <{$rs_dp1.dName}> | <{$rs_ps1.prName}> | <{$val1.pinNowNumber}> <{$rs_ps1.prUnit}> | <{$val1.pinDate}> | 修改 | 删除
$prId=$val["pinPRid"]; $printinfo=M("printinfo"); $rs_ps=$printinfo->where("prId=$prId")->find(); $rs_ps["prName"]; $dId=$rs_ps["prDid"]; $department=M("department"); $rs_dp=$department->where("dId=$dId")->find();
<{$val.pinId}> | <{$rs_dp.dName}> | <{$rs_ps.prName}> | <{$val.pinNowNumber}> <{$rs_ps.prUnit}> | <{$val.pinDate}> | 修改 | 删除
$prId1=$val1["pinPRid"]; $printinfo1=M("printinfo"); $rs_ps1=$printinfo1->where("prId=$prId1")->find(); $rs_ps1["prName"]; $dId1=$rs_ps1["prDid"]; $department1=M("department"); $rs_dp1=$department1->where("dId=$dId1")->find();
<{$val1.pinId}> | <{$rs_dp1.dName}> | <{$rs_ps1.prName}> | <{$val1.pinNowNumber}> <{$rs_ps1.prUnit}> | <{$val1.pinDate}> | 修改 | 删除