Viewing file: printRepFollowDocDept.php (25.43 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
set_time_limit(0);
include_once "template.php";
include_once "../link/function.php";
include_once "../link/functionshow.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocuments.php";
include_once "funct.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocReceiveSend.php";
include_once "../class/clsPerson.php";
include_once "../link/keyThai.php";
include_once "getPrefix.php";
//CHAIN ADD
include_once "../class/clsSendReceive.php";
include_once "../class/clsCollegeDetail.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDt = new doctype($oC);
$oDoc = new Documents($oC);
$oDoc2 = new Documents($oC);
$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRs = new DocReceiveSend($oC);
$oRs0 = new DocReceiveSend($oC); // Chain add
$oRs1 = new DocReceiveSend($oC);
$oRs2 = new DocReceiveSend($oC); // Chain add
$oRs5 = new DocReceiveSend($oC); // Chain add
$oRs8 = new DocReceiveSend($oC);
$oRs9 = new DocReceiveSend($oC);
$oPS = new person($oC);
$oPS1 = new person($oC);
$oPS2 = new person($oC);
$oPS3 = new person($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
// CHAIN ADD
$oTsr = new sendreceive($oC);
$oCd = new collegedetail($oC);
?>
<?php
function showsteplinedocRef1($searchDoc){
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsPerson.php";
include_once "../class/clsDepartment.php";
include_once "getPrefix.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oRs00 = new DocReceiveSend($oC);
$oRs11 = new DocReceiveSend($oC);
$oRs22 = new DocReceiveSend($oC);
$oPS22 = new person($oC);
$oRs00->SearchByDocIDDsID3($searchDoc);
if($oRs00->GetRecord()=="1"){
$oRs22->SearchByDrsFromDrsIDcaseps($oRs00->DrsID);
while($oRs22->GetRecord()){
$oPS22->SearchByKey($oRs22->personId);
$oPS22->GetRecord();
echo "<br><font color=\"#029b0a\">[".GetPrefix($oPS22->prefixId).$oPS22->fName." ".$oPS22->lName."]</font>";
}
$oRs11->SearchByDrsFromDrsIDcasedept($oRs00->DrsID);
while($oRs11->GetRecord()){
showsteplinedocRef1($oRs11->DocID);
}
// echo $DocNoBackTmp;
}
//return $DocNoBackTmp;
}
?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" align="center">
<tr><td >
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">รายงาน</a>
</font>
<img src="../picture/ico3.gif" width="10" border="0" align="absmiddle">รายงานการติดตามหนังสือราชการที่กำหนดวันแล้วเสร็จ</font>
</legend>
<form name="ff" method="post" action="printRepFollowDocDeptex.php">
<table width="99%" align="center">
<tr>
<td height="22"><font face="MS Sans Serif, Tahoma, sans-serif"><strong>รายงานการติดตามหนังสือราชการที่กำหนดวันแล้วเสร็จ
<? $oDP1->SearchByKey($deptId); $oDP1->GetRecord(); echo "หน่วยงาน :: ".$oDP1->deptName; ?>
</strong></font></td>
<td height="22" align="right"><font face="MS Sans Serif, Tahoma, sans-serif"><strong>OIS...</strong></font></td>
</tr>
<tr>
<td width="92%" height="22"><font face="MS Sans Serif, Tahoma, sans-serif"><strong><? echo $GLOBALS["COLLEGENAME"]; ?>
<?
// =======================================================================================================
// == CHAIN EDIT - 2015/07/16 ============================================================================
// =======================================================================================================
if(th2a($yearDoc) != 0){
echo "วันที่ดำเนินการส่งหนังสือประจำปี ".a2th($yearDoc);
}else if($start != 0){
echo "วันที่ดำเนินการส่งหนังสือตั้งแต่วันที่ "; list($day1,$month1,$year1) = preg_split('[/]',$start); $s=($year1+543)."-".$month1."-".$day1; echo abbreDate2($s,'/');
echo " ถึง "; list($day2,$month2,$year2) = preg_split('[/]',$end); $e=($year2+543)."-".$month2."-".$day2; echo abbreDate2($e,'/');
}else if($DocDueDateStart != 0){
echo "วันที่กำหนดวันเสร็จตั้งแต่วันที่ "; list($day1,$month1,$year1) = preg_split('[/]',$DocDueDateStart); $s=($year1+543)."-".$month1."-".$day1; echo abbreDate2($s,'/');
echo " ถึง "; list($day2,$month2,$year2) = preg_split('[/]',$DocDueDateEnd); $e=($year2+543)."-".$month2."-".$day2; echo abbreDate2($e,'/');
}
// =======================================================================================================
?>
</strong></font></td>
<td width="8%" align="right">
<a href='#' onClick='return showDocex2()'><img src="../picture/print.gif" title="พิมพ์หน้านี้" border="0" style="cursor:pointer;"></a>
<a href='#' onClick='return showDocex()'><img src="../picture/ico_excel.gif" title="พิมพ์ excel" border="0" style="cursor:pointer;"></a></td>
</tr>
<tr>
<td height="24" colspan="2"><hr></td>
</tr>
<tr align="center">
<td align="center" colspan="2">
<!-- =============================================================================== -->
<!-- ==== CHAIN ADD - 2015/07/17 - Script Fix header of table ====================== -->
<!-- =============================================================================== -->
<style type="text/css">
body { height: 1000px; }
thead{
background-color:white;
}
</style>
<script type="text/javascript" src="../source/jquery-1.9.1.min.js"></script>
<script type="text/javascript">//<![CDATA[
$(window).load(function(){
function moveScroll(){
var scroll = $(window).scrollTop();
var anchor_top = $("#maintable").offset().top;
var anchor_bottom = $("#bottom_anchor").offset().top;
if (scroll>anchor_top && scroll<anchor_bottom) {
clone_table = $("#clone");
if(clone_table.length == 0){
clone_table = $("#maintable").clone();
clone_table.attr('id', 'clone');
clone_table.css({position:'fixed',
'pointer-events': 'none',
top:0});
clone_table.width($("#maintable").width());
$("#table-container").append(clone_table);
$("#clone").css({visibility:'hidden'});
$("#clone thead").css({visibility:'visible', 'pointer-events':'auto'});
}
} else {
$("#clone").remove();
}
}
$(window).scroll(moveScroll);
});//]]>
</script>
<!-- =============================================================================== -->
<div id="table-container">
<table id="maintable" width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<thead>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"><th width="6%" align="center"><strong>ที่</strong></th><th width="15%" align="center"><strong>ที่หนังสือ</strong></th><th width="22%" align="center"><strong>เรื่อง</strong></th><th width="10%" align="center"><strong>ว/ด/ป ที่<br>ลงทะเบียน</strong></th><th width="17%" align="center"><strong>หน่วยงานย่อย/<br>ผู้รับผิดชอบหลัก</strong>
<!-- Chain Comment 20150629 -->
<!--</td><th width="10%" align="center"><strong>หมายเหตุ</strong></th>-->
</td><th width="10%" align="center"><strong>กำหนดวันแล้วเสร็จ</strong></th>
</td><th width="10%" align="center"><strong>หนังสือตอบกลับ</strong></th>
</td><th width="10%" align="center"><strong>รอดำเนินการ</strong></th>
</td><th width="10%" align="center">ดำเนินการแล้วเสร็จ</th>
</tr>
</thead>
<tbody>
<?
// =======================================================================================================
// == CHAIN EDIT - 2015/07/16 ============================================================================
// =======================================================================================================
$startT = 0;
$endT = 0;
if(th2a($yearDoc) != 0){ //ประจำปีปฎิทิน
$yy = th2a($yearDoc);
$startT = $yy."-01-01";
$endT = $yy."-12-31";
}else if($start != 0){
list($dd, $mm, $yy) = preg_split('[/]',$start);
$startT=($yy+543)."-".$mm."-".$dd;
list($dd, $mm, $yy) = preg_split('[/]',$end);
$endT=($yy+543)."-".$mm."-".$dd;
}
// =======================================================================================================
else if($DocDueDateStart != 0){ //กำหนดวันเสร็จ
list($dd, $mm, $yy) = preg_split('[/]',$DocDueDateStart);
$DocDueDateStart=($yy+543)."-".$mm."-".$dd;
list($dd, $mm, $yy) = preg_split('[/]',$DocDueDateEnd);
$DocDueDateEnd=($yy+543)."-".$mm."-".$dd;
}
// $oDoc->SearchByDrsSendDateDocTypeNoDocSubjectDocNoDeptIdfDeleteDocGroupDsID3($startT,$endT,th2a($DocTypeNoStart),th2a($DocTypeNoEnd),th2a($DocSubject),th2a($DocNo),$deptId,$MaxDocGroup,$printorder);
$oDoc->SearchByDrsSendDateDocTypeNoDocSubjectDocNoDeptIdfDeleteDocGroupDsIDDocDueDate($startT,$endT,th2a($DocTypeNoStart),th2a($DocTypeNoEnd),th2a($DocSubject),th2a($DocNo),$deptId,$MaxDocGroup,$printorder,$DocDueDateStart,$DocDueDateEnd);
while($oDoc->GetRecord()){
$nomainps='0';
if(($i%2) == 0)
echo "<tr bgcolor=\"#FFFFFF\" height=22 >";
else
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_17"]."\">";
//===================================================================================
$nomainps=0;
$completedate = "-"; //กำหนดวันแล้วเสร็จ
$waitaction = ""; //สถานะการรอ
$actiondate = ""; //วันที่ดำเนินการแล้วเสร็จ
$DocNoBack = ""; //ที่หนังสือตอบกลับ
$showname = ""; //หน่วยงานย่อย/ผู้รับผิดชอบหลัก
$DueDate = "";
//=================================================================================================
//==== CHAIN ADD 2015/07/14 กำหนดวันแล้วเสร็จ --completedate - (ส่งภายนอก) ===============================================
//=================================================================================================
if($oDoc->RsID=='2'){
$x=0;
$oTsr->SearchDocSend($GLOBALS["COLLEGEID"],$oDoc->DocID);
while($oTsr->GetRecord()){
$oCd->SearchByKey($oTsr->tsr_to_node);
$oCd->GetRecord();
$showname .= " ".$oCd->collegeAbbr;
if($oTsr->tsr_SendNew!="0000-00-00 00:00:00"){
list($DocD2,$DocT2) = preg_split('[ ]',$oTsr->tsr_SendNew);
$showname .= "<br>[ส่งเพิ่มเติม ".abbreDate2($DocD2,'/')." ".a2th($DocT2)."]";
}
$showname .= "<br>";
if($oTsr->tsr_DrsDocDueDate!="0000-00-00 00:00:00"){
list($DocD,$DocT) = preg_split('[ ]',$oTsr->tsr_DrsDocDueDate);
$DueDate = $DocD;
$completedate = abbreDate2($DocD,'/')."<br>".a2th($DocT);
}
}
}
//=================================================================================================
// $oRs8->SearchByDrsFromDrsIDDrsMainPs($oDoc->DrsID);
$oRs8->SearchByDrsFromDrsID($oDoc->DrsID); // CHAIN Add
while($oRs8->GetRecord()){ //echo "<pre>";print_r($oRs8);echo "</pre>";
//=================================================================================================
//==== CHAIN ADD 2015/07/13 กำหนดวันแล้วเสร็จ --completedate===============================================
//=================================================================================================
if($oRs8->DrsDocDueDate!="0000-00-00" || $oRs8->DrsDocDueDate!=""){
list($DocD,$DocT) = preg_split('[ ]',$oRs8->DrsDocDueDate);
$DueDate = $DocD;
$completedate = abbreDate2($DocD,'/')."<br>".a2th($DocT);
}
//=================================================================================================
//=================================================================================================
//==== CHAIN ADD 2015/07/13 หน่วยงานย่อย/ผู้รับผิดชอบหลัก --showname=============================================
//=================================================================================================
if($oRs8->personId==0){
$oDlc->SearchByKey($oRs8->DlcID); $oDlc->GetRecord();
$oDP->SearchByKey($oDlc->deptId); $oDP->GetRecord();
$oPS->SearchByKey($oRs8->DrsReceivePersonId); $oPS->GetRecord();
if($oRs8->DrsReceivePersonId!='0'){
$showname .= " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName.'<br>';
}
$showname .= "สารบรรณย่อย";
$showname .= " (".$oDP->deptName.")";
if($oRs8->DrsMainDept=="Y"){ $showname .= "<br> <font color=\"#029b0a\">[หน่วยงานรับผิดชอบหลัก]</font>"; }
$nomainps=1;
$sendtodept=1;
}else{
$sendtodept='';
$oPS->SearchByKey($oRs8->personId); $oPS->GetRecord();
$showname .= " ".GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName;
if($oRs8->DrsMainPs=="Y"){ $showname .= " <font color=\"#029b0a\">[ผู้รับผิดชอบหลัก]</font>"; $nomainps=0; }else{ $nomainps=1; }
if($oRs8->DrsSendToPs=="Y"){
$showname .= " <font color=\"#FF0000\">[ส่งด่วน]</font>";
}
}
if($oRs8->DrsSendDocNew !="0000-00-00 00:00:00"){
$showname .= "<br> <font color=\"#FF0000\">[ส่งเพิ่มเติม] ";
list($DocD,$DocT) = preg_split('[ ]',$oRs8->DrsSendDocNew);
$showname .= abbreDate2($DocD,'/')." ".a2th($DocT);
$showname .= "</font>";
}
$showname .= "<br>";
//=================================================================================================
//=================================================================================================
//==== CHAIN ADD 2015/07/13 สถานะการรับทราบ --actiondate=================================================
//=================================================================================================
// if($sendtodept==1){
// $oRs9->SearchByDrsFromDrsID($oRs8->DrsID); $oRs9->GetRecord();
// if($oRs8->DrsSendDate!="0000-00-00 00:00:00" && $oRs9->DsID!='6' && $oRs9->DsID!='7' ){ list($DocD3,$DocT3) = preg_split('[ ]',$oRs8->DrsSendDate); $actiondate = "รับทราบ::<br>".abbreDate2($DocD3,'/')."<br>".a2th($DocT3);}
// if($oRs9->DsID=='6'){ $actiondate = "ไม่รับทราบ"; }
// if($oRs9->DsID=='7'){ $actiondate = "แจ้งการส่งผิด"; }
// }else{
// if($oRs8->DsID=="4" && $oRs8->DrsDocReceiveDate=="0000-00-00 00:00:00"){
// $actiondate = "เปิดหนังสือ";
// }else if($oRs8->DsID=="5" && $oRs8->DrsDocReceiveDate=="0000-00-00 00:00:00"){
// $actiondate = "เปิดแฟ้มหนังสือ";
// }else if($oRs8->DsID=="5" && $oRs8->DrsDocReceiveDate!="0000-00-00 00:00:00"){
// list($DocD2,$DocT2) = preg_split('[ ]',$oRs8->DrsDocReceiveDate);
// $actiondate = "รับทราบ::<br>".abbreDate2($DocD2,'/')."<br>".a2th($DocT2)."";
// }
// if($oRs8->DrsDelete=='Y'){ $actiondate = 'ลบหนังสือ'; }
// if($oRs8->DrsDeleteAdmin=='Y'){ $actiondate = '[ลบหนังสือโดยผู้รับผิดชอบระบบ]'; }
// if($oRs8->DsID=="7" && $oRs8->DrsDocReceiveDate!="0000-00-00 00:00:00"){
// list($DocD2,$DocT2) = preg_split('[ ]',$oRs8->DrsDocReceiveDate);
// $actiondate = "แจ้งการส่งผิด::<br>".abbreDate2($DocD2,'/')."<br>".a2th($DocT2)."<br>";
// }
// }
// if($actiondate == "-"){
// $waitaction = "<img src='../picture/yes16x16 24-bit.png' title='รอดำเนินการ' border='0'>";
// }
//=================================================================================================
//============= สถานะเวลา =========================================
// if($nomainps==1){
// echo "-";
// }else{
// if($oRs8->DocRefAnsDate!="0000-00-00 00:00:00"){
// list($DocD2,$DocT2) = preg_split('[ ]',$oRs8->DocRefAnsDate);
// if($DocD2==$oRs->DrsDocDueDate){
// echo '<br>หลังเวลากำหนด<br>';
// }else if($DocD2==$oRs->DrsDocDueDate){
// echo '<br>ตามเวลากำหนด<br>';
// }else{
// echo '<br>ก่อนเวลากำหนด<br>';
// }
// echo abbreDate2($DocD2,'/');
// }else{
// echo '<br>ยังไม่ปฏิบัติ<br>';
// }
// }
$i++;
}
/*
//======================================================================================================
// == 2015/07/10 == CHAIN Add == หาหน่วยงานย่อย/ผู้รับผิดชอบหลัก =====================================================================
//======================================================================================================
// $oRs->SearchByDrsFromDrsIDDrsMainPs($oDoc->DrsID);
$oRs->SearchByDrsFromDrsID($oDoc->DrsID);
if($oRs->GetRecord()==1){
// echo "<pre>";
// print_r($oRs);
// echo "</pre>";
if($oRs->DrsSendToPs=="Y"){
$oPS->SearchByKey($oRs->DrsReceivePersonId); $oPS->GetRecord();
$showname=GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName;
if($oRs->DrsDocReceiveDate!="0000-00-00 00:00:00" || $oRs->DrsDocReceiveDate!=""){
list($DocD,$DocT) = preg_split('[ ]',$oRs->DrsDocReceiveDate);
$waitaction = "";
$actiondate = abbreDate2($DocD,'/')."<br>".a2th($DocT);
}else{
$actiondate = "-";
}
}else{
$personIdMain = (personId==0)?$oRs->DrsReceivePersonId:$oRs->DrsSendPersonId;
if($personIdMain!=0 || $personIdMain!=""){
$oPS->SearchByKey($personIdMain); $oPS->GetRecord();
$showname=GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName;
}
if($oRs->DrsSendDate!="0000-00-00 00:00:00" || $oRs->DrsSendDate!=""){
list($DocD,$DocT) = preg_split('[ ]',$oRs->DrsSendDate);
$waitaction = "";
$actiondate = abbreDate2($DocD,'/')."<br>".a2th($DocT);
}else{
$actiondate = "-";
}
}
}else{
$showname="<div align=\"center\">-</div>";
$nomainps=1;
}
//======================================================================================================
*/
?>
<td width="6%" align="center" title="ที่"><? echo a2th($oDoc->DocTypeNo); ?></td>
<td width="15%" title="ที่หนังสือ"> <? if($oDoc->DtID!="15"){ echo $oDoc->DocNo; }else{ echo '-'; }?></td>
<td width="23%" title="เรื่อง"> <a href="#" onClick="printDetailFollowDocDept('<? echo $oDoc->DocID; ?>','<? echo $oDoc->DrsID; ?>')"><? echo $oDoc->DocSubject; ?></a></td>
<td width="11%" align="center" title="ว/ด/ป ที่ลงทะเบียน"><? if($oDoc->DocDateCreate!="0000-00-00 00:00:00"){ list($DocD,$DocT) = preg_split('[ ]',$oDoc->DocDateCreate); echo abbreDate2($DocD,'/')."<br>".a2th($DocT);} ?></td>
<td width="15%" title="หน่วยงานย่อย/
ผู้รับผิดชอบหลัก"> <? echo $showname; ?></td>
<!-- Chain Comment 20150629 -->
<!--<td width="9%"> </td>-->
<td width="9%" align ="center" title="กำหนดวันแล้วเสร็จ"><?php echo $completedate;?></td>
<td width="9%" align ="center" title="หนังสือตอบกลับ">
<?php
//======================================================================================================
// == 2015/07/10 == CHAIN Add == หาที่หนังสือตอบกลับ , สถานะการตอบกลับ , วันที่ดำเนินการแล้วเสร็จ ===============================================
//======================================================================================================
$oDoc2->searchDocRefByDocIDDocName($oDoc->DocID, th2a($oDoc->DocNo), th2a($oDoc->DocSubject));
// if($oDoc2->GetRecord()==1){
$flag = 1;
while($oDoc2->GetRecord()){
$flag = 0;
// echo "| $iii++ |-> $oDoc2->DocNo _";
if($oDoc2->DocDateCreate!="0000-00-00 00:00:00"){
list($DocD,$DocT) = preg_split('[ ]',$oDoc2->DocDateCreate);
$waitaction .= "";
// --- เช็ควันเกินกำหนด --------------------------------------------------------------
list($ya,$ma,$da) = preg_split('[,]',time_diff($DueDate, $DocD));
if($ya == 0 && $ma == 0 && $da == 0){
$actiondate .= abbreDate2($DocD,'/')."<br>".a2th($DocT);
}else if($ya < 0 || $ma < 0 || $da < 0){
$actiondate .= abbreDate2($DocD,'/')."<br>".a2th($DocT);
}else{
$actiondate .= "<font color='#FF0000'>".abbreDate2($DocD,'/')."<br>".a2th($DocT)."</font>";
}
}
$DocNoBack = $oDoc2->DocNo;
echo $DocNoBack; // Chain Add 2015/08/13
//==============================================================================
//=== CHAIN ADD 2015/08/07 - แสดงชื่อผู้รับผิดชอบหลักของหนังสือตอบกลับ ======================
//==============================================================================
/* $oRs0->SearchByDocIDDsID3(th2a($oDoc2->DocID));
if($oRs0->GetRecord()=="1"){
$oDlc1->SearchByKey($oRs0->DlcID);
$oDlc1->GetRecord();
$oDlp->SearchByKey($oDlc1->DlpID);
$oDlp->GetRecord();
$oPS1->SearchByKey($oRs0->DrsReceivePersonId);
$oPS1->GetRecord();
$oRs5->SearchByDocIDDsID0(th2a($oDoc2->DocID));
$oRs5->GetRecord();
$oRs2->SearchByDrsFromDrsIDcaseps($oRs0->DrsID);
while($oRs2->GetRecord()){
$oPS2->SearchByKey($oRs2->personId);
$oPS2->GetRecord();
// echo " ".GetPrefix($oPS2->prefixId).$oPS2->fName." ".$oPS2->lName."</font> ";
// if($oRs2->DrsMainPs=='Y'){
// echo "[ผู้รับผิดชอบหลัก]";
// }
$DocNoBack .= "<br><font color=\"#029b0a\">[".GetPrefix($oPS2->prefixId).$oPS2->fName." ".$oPS2->lName."]</font>";
// if($oRs2->DrsMainPs=='Y'){
// }
}
$oRs1->SearchByDrsFromDrsIDcasedept($oRs0->DrsID);
while($oRs1->GetRecord()){
$oDlc2->SearchByKey($oRs1->DlcID);
$oDlc2->GetRecord();
$oDlp1->SearchByKey($oDlc2->DlpID);
$oDlp1->GetRecord();
$oPS3->SearchByKey($oRs1->DrsReceivePersonId);
$oPS3->GetRecord();
}
} */
// echo "<br>=====================================<br>";
// echo "<br><br>{".th2a($oDoc2->DocID)."}";
showsteplinedocRef1(th2a($oDoc2->DocID));
// echo "<br>-------------------------------------<br>";
//==============================================================================
$waitaction .= "<br>";
$actiondate .= "<br>";
$DocNoBack .= "<br>";
}
// echo "<br>";
if($flag){
$waitaction .= "<img src='../picture/yes16x16 24-bit.png' title='รอดำเนินการ' border='0'>";
$actiondate .= "-";
$DocNoBack .= "-";
}
//======================================================================================================
// echo $DocNoBack; // Chain Comment 2015/08/13
?>
</td>
<td width="9%" align ="center" title="รอดำเนินการ"><?php echo $waitaction;?></td>
<td width="9%" align ="center" title="ดำเนินการแล้วเสร็จ"><?php echo $actiondate;?></td>
</tr>
</tbody>
<? $i++; }
?>
</table>
<!-- =============================================================================== -->
<!-- ==== CHAIN ADD - 2015/07/17 - Fix header of table ============================= -->
<!-- =============================================================================== -->
<div id="bottom_anchor"></div>
</div>
<!-- =============================================================================== -->
</td></tr>
<tr><td align="center" colspan="2"><input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'searchRepFollowDocDept.php'"></td></tr>
</table>
<input type="hidden" name="DocSubject" id="DocSubject" value="<? echo $DocSubject; ?>" >
<input type="hidden" name="DocNo" id="DocNo" value="<? echo $DocNo; ?>" >
<input type="hidden" name="start" id="start" value="<? echo $start; ?>" >
<input type="hidden" name="end" id="end" value="<? echo $end; ?>" >
<input type="hidden" name="yearDoc" id="yearDoc" value="<? echo $yearDoc; ?>" >
<input type="hidden" name="DocTypeNoStart" id="DocTypeNoStart" value="<? echo $DocTypeNoStart; ?>" >
<input type="hidden" name="DocTypeNoEnd" id="DocTypeNoEnd" value="<? echo $DocTypeNoEnd; ?>" >
<input type="hidden" name="pId" id="pId" value="<? echo $pId; ?>" >
<input type="hidden" name="deptId" id="deptId" value="<? echo $deptId; ?>" >
<input type="hidden" name="seeAll" id="seeAll" value="<? echo $seeAll; ?>" >
<input type="hidden" name="dlcid" id="dlcid" value="<? echo $dlcid; ?>" >
<input type="hidden" name="printorder" id="printorder" value="<? echo $printorder; ?>" >
<input type="hidden" name="print" id="print" value="พิมพ์" >
</form>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<script>
function printDetailFollowDocDept(p,q){
FileName = "printRepFollowDocDeptDetail.php?DocID="+p+"&DrsID="+q;
var w=600;
var h=600;
strOption = "scrollbars=yes,left=300,top=100,width=" + w + ",height=" + h;
window.open(FileName,"",strOption);
}function showDocex(){
document.ff.submit();
}
function showDocex2(){
window.print();
}
</script>
|