Viewing file: processFormatDeptNo.php (2.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once("../../class/clsDB.php");
include_once "../global.php";
include_once "../class/clsTable.php";
include_once "../link/function.php";
include_once "../class/clsDepartment.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC);
$oDP->SearchBydeptDateDocGroup($oDP->SearchMaxDocGroup());
while($oDP->GetRecord()){
$oDP->Edit();
$oDP->deptId=$oDP->deptId;
echo "deptId=".$oDP->deptId."<br>";
$oDP->deptName=$oDP->deptName;
echo "deptName=".$oDP->deptName."<br>";
$oDP->deptDesc=$oDP->deptDesc;
echo "deptDesc=".$oDP->deptDesc."<br>";
$oDP->deptCode=$oDP->deptCode;
echo "deptCode=".$oDP->deptCode."<br>";
$oDP->deptParent=$oDP->deptParent;
echo "deptParent=".$oDP->deptParent."<br>";
$oDP->deptYear=$oDP->deptYear;
echo "deptYear=".$oDP->deptYear."<br>";
$oDP->deptDate=$oDP->deptDate;
echo "deptDate=".$oDP->deptDate."<br>";
$oDP->deptRef=$oDP->deptRef;
echo "deptRef=".$oDP->deptRef."<br>";
$oDP->pbriId=$oDP->pbriId;
//echo "pbriId=".$oDP->pbriId."<br>";
$oDP->deptIsCenter=$oDP->deptIsCenter;
//echo "deptIsCenter=".$oDP->deptIsCenter."<br>";
$oDP->receiveIn=$oDP->receiveIn;
//echo "receiveIn=".$oDP->receiveIn."<br>";
$oDP->receiveOut=$oDP->receiveOut;
//echo "receiveOut=".$oDP->receiveOut."<br>";
$oDP->sendIn=$oDP->sendIn;
//echo "sendIn=".$oDP->sendIn."<br>";
$oDP->sendOut=$oDP->sendOut;
//echo "sendOut=".$oDP->sendOut."<br>";
$oDP->deptNo=$deptNo[$oDP->deptId];
echo "deptNo=".$oDP->deptNo."<br>";
$oDP->docGroup=$oDP->docGroup;
//echo "docGroup=".$oDP->docGroup."<br>---------------------------------------<br>";
$oDP->depttypeId=$oDP->depttypeId;
//echo "depttypeId=".$oDP->depttypeId."<br>";
$oDP->deptParentId=$oDP->deptParentId;
//echo "deptParentId=".$oDP->deptParentId."<br>";
$oDP->deptLevel=$oDP->deptLevel;
//echo "deptLevel=".$oDP->deptLevel."<br>";
$oDP->deptGroup=$oDP->deptGroup;
//echo "deptGroup=".$oDP->deptGroup."<br>";
$oDP->Save();
}
?>
<script language="JavaScript">
parent.location.href ="formatdeptNo.php?s=1";
</script>
|