RCV3060.php
1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?PHP
//*****************************************************************************
//* プログラム名:請求・入金管理
//* プログラムID:RCV3060.php
//* 機能 :受注額画面
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("./inc/session_start.inc");
include("./inc/SessionChk.inc");
include("./inc/dbcon.inc");
include('./inc/smarty.conf');
//*** 受注額取得 ***//
$strSQL = "SELECT * FROM mst_gyoumu WHERE gyoumu_id = ".$gyoumu_id." ";
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$objData = pg_fetch_object($objRec, 0);
$GyoumuMoney = NtoZ($objData->gyoumu_money);
function NtoZ($prm){
//Nullと空文字をゼロに置き換えます
if(is_null($prm) || trim($prm) == "" ){
return 0;
}else{
return $prm;
}
}
$o_smarty->assign('Money_Tani' , $Money_Tani); //金額単位
$o_smarty->assign('RCV_MODE' , $RCV_MODE); //請求管理モード
$o_smarty->assign('div_id' , $div_id); // DIVの場所
$o_smarty->assign('cboDay' , $cboDay);
$o_smarty->assign('GyoumuMoney' , $GyoumuMoney);
$o_smarty->assign('area_id' , $area_id); //部門
$o_smarty->assign('gyoumu_id' , $gyoumu_id); //業務
$o_smarty->assign('uriageMode' , $uriageMode); //売り上げモード
$o_smarty->assign('AreaData' , $AreaData); // 拠点情報
$o_smarty->assign('GyoumuData' , $GyoumuData); // 業務情報
$o_smarty->assign('KobanData' , $KobanData);
$o_smarty->assign('GyousyaData' , $GyousyaData); // 業者情報
$o_smarty->assign('optSeikyukbn', $optSeikyukbn); // 請求区分
$o_smarty->assign('cboYoteiDay' , $cboYoteiDay); // 予定日
$o_smarty->assign('InpMoney' , $InpMoney); // 予定金額
$o_smarty->assign('rcv_key' , $rcv_key); // キー
$o_smarty->display('RCV3060.tpl');
?>