Procházet zdrojové kódy

汇款信息相关

caipin před 7 roky
rodič
revize
4760e6b1bf

+ 70 - 0
protected/class/receipt.func.php

@@ -0,0 +1,70 @@
+<?php
+
+/**
+ * 数据导出
+ * @param array $title   标题行名称
+ * @param array $data   导出数据
+ * @param string $fileName 文件名
+ * @param string $savePath 保存路径
+ * @param $type   是否下载  false--保存   true--下载
+ * @return string   返回文件全路径
+ * @throws PHPExcel_Exception
+ * @throws PHPExcel_Reader_Exception
+ * @exportExcel(array('姓名','年龄'), array(array('a',21),array('b',23)), '档案', './', true);
+ */
+function exportExcel($title=array(), $data=array(), $fileName='', $savePath='./', $isDown=false){
+	Doo::loadClass ( 'PHPExcel1.7.9/PHPExcel' );
+	$obj = new PHPExcel();
+
+	//横向单元格标识
+	$cellName = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'AA', 'AB', 'AC', 'AD', 'AE', 'AF', 'AG', 'AH', 'AI', 'AJ', 'AK', 'AL', 'AM', 'AN', 'AO', 'AP', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AV', 'AW', 'AX', 'AY', 'AZ');
+
+	$obj->getActiveSheet(0)->setTitle('sheet名称');   //设置sheet名称
+	$_row = 0;   //设置纵向单元格标识
+	if($title){
+		$_cnt = count($title);
+		//$obj->getActiveSheet(0)->mergeCells('A'.$_row.':'.$cellName[$_cnt-1].$_row);   //合并单元格
+		//$obj->setActiveSheetIndex(0)->setCellValue('A'.$_row, '数据导出:'.date('Y-m-d H:i:s'));  //设置合并后的单元格内容
+		$_row++;
+		$i = 0;
+		foreach($title AS $v){   //设置列标题
+			$obj->setActiveSheetIndex(0)->setCellValue($cellName[$i].$_row, $v);
+			$i++;
+		}
+		$_row++;
+	}
+
+	//填写数据
+	if($data){
+		$i = 0;
+		foreach($data AS $_v){
+			$j = 0;
+			foreach($_v AS $_cell){
+				$obj->getActiveSheet(0)->setCellValue($cellName[$j] . ($i+$_row), $_cell);
+				$j++;
+			}
+			$i++;
+		}
+	}
+
+	//文件名处理
+	if(!$fileName){
+		$fileName = uniqid(time(),true);
+	}
+
+	$objWrite = PHPExcel_IOFactory::createWriter($obj, 'Excel2007');
+
+	if($isDown){   //网页下载
+		header('pragma:public');
+		header("Content-Disposition:attachment;filename=$fileName.xls");
+		$objWrite->save('php://output');exit;
+	}
+
+	$_fileName = iconv("utf-8", "gb2312", $fileName);   //转码
+	$_savePath = $savePath.$_fileName.'.xlsx';
+	$objWrite->save($_savePath);
+
+	return $savePath.$fileName.'.xlsx';
+}
+
+?>

+ 1 - 1
protected/controller/ReceiptController.php

@@ -8587,7 +8587,7 @@ class ReceiptController extends DooController {
 				$receipt->pastDate = date ( "Y-m-d" );
 				
 				// 微信企业号通知
-				$this->setWXMsg ( $rid, 1 );
+				//$this->setWXMsg ( $rid, 1 );
 			}
 			$receipt->amount = $amount;
 			$receipt->update ( array (

+ 120 - 1
protected/view/admin/expensesCollect.html

@@ -95,6 +95,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						
@@ -139,6 +168,37 @@
 							
 							<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 							<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+							
+							
+							<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+							
+							
+							
+							
 							<tr><th class="taC" colspan="2">费用说明</th>
 							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 							
@@ -210,7 +270,7 @@
 	  				</div>
 	  			</div>
 	  			
-	  			
+	  			<!-- 报销单 -->
 	  			<!-- elseif {{receiptList' value.Rtype}}==2 -->
 	  			
 	  			
@@ -237,6 +297,36 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						
@@ -366,6 +456,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						

+ 57 - 0
protected/view/admin/expensesEdi.html

@@ -69,6 +69,36 @@
 							
 							<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 							<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+							
+							
+							
+							<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+							
+							
 							<tr><th class="taC" colspan="2">费用说明</th>
 							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 							
@@ -136,6 +166,33 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						

+ 115 - 0
protected/view/admin/implement.html

@@ -100,6 +100,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						<tr class="warning">
@@ -132,6 +161,34 @@
 							
 							<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 							<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+							
+							<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+							
+							
 							<tr><th class="taC" colspan="2">费用说明</th>
 							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 							
@@ -260,6 +317,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">费用说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						<tr class="warning"><td class="taR"><b>({{receiptDetail' value.receiptOrder}})本次报销费用合计</b></td>
@@ -419,6 +505,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						<tr class="warning"><td class="taR"><b>({{receiptDetail' value.receiptOrder}})本次报销费用合计</b></td>

+ 57 - 0
protected/view/admin/receiptburEdi.html

@@ -119,6 +119,34 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						
@@ -197,6 +225,35 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
+	  						
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 	  						

+ 28 - 0
protected/view/admin/remitApproval.html

@@ -73,6 +73,34 @@
 	  						
 	  						<tr><th class="taC" colspan="2">产生费用所在办事处</th></tr>
 	  						<tr><th style="text-align:center" colspan="2">{{receiptDetail' value.category}}</th></tr>
+	  						
+	  						
+	  						<tr><th colspan="2" class="taC">汇款信息</th></tr>
+							<tr><th>汇款人户名</th>
+							<td>{{receiptDetail' value.remittanceName}}</td>
+							</tr>
+							<tr>
+							<th>汇款银行</th>
+							<td>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==0 -->
+							公司广发
+							<!-- elseif {{receiptDetail' value.remittanceBankType}}==1 -->
+							其他
+							<!-- endif -->
+							</td>
+							</tr>
+							<tr><th>汇款开户银行名称</th><td>
+							{{receiptDetail' value.bankName}}
+							</td></tr>
+							<tr><th>汇款帐号</th><td>
+							{{receiptDetail' value.bankNumber}}
+							</td></tr>
+							<!-- if {{receiptDetail' value.remittanceBankType}}==1 -->
+							<tr><th>联行号</th><td>
+							{{receiptDetail' value.coupletNumber}}
+							</td></tr>
+							<!-- endif -->
+	  						
 	  						<tr><th class="taC" colspan="2">报销说明</th></tr>
 	  						<tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>