コード例 #1
0
ファイル: viewPrdReq.php プロジェクト: kpbaek/sbm.dealer
<?php

$pi_no = $_REQUEST["pi_no"];
$po_no = $_REQUEST["po_no"];
include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/order/readEqpOrder.php";
include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/docs/readPrdReq.php";
$responce = readEqpOrder($pi_no, $po_no);
$responce = readPrdReq($responce, $pi_no, $po_no);
echo json_encode($responce);
コード例 #2
0
ファイル: crtSndMail.php プロジェクト: kpbaek/sbm.dealer
     $sql = $sql . ", (SELECT w_email FROM om_worker";
     $sql = $sql . "   WHERE team_atcd='" . $_SESSION['ss_user']['team_atcd'] . "' AND worker_uid='" . $_SESSION['ss_user']['uid'] . "')";
     $sql = $sql . ", (SELECT eng_nm FROM om_worker";
     $sql = $sql . "   WHERE team_atcd='" . $_SESSION['ss_user']['team_atcd'] . "' AND worker_uid='" . $_SESSION['ss_user']['uid'] . "')";
     $sql = $sql . ", (select atcd_nm from cm_cd_attr where cd = '0071' and atcd = '" . $sndmail_atcd . "'), '', now(), '" . $_SESSION['ss_user']['uid'] . "')";
 } else {
     // worker
     if ($wrk_tp_atcd == "00700310" && $sndmail_atcd == "00700311") {
         // 생산의뢰서
         $po_no = "";
         if (isset($_REQUEST["po_no"])) {
             $po_no = $_REQUEST["po_no"];
         }
         include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/order/readEqpOrder.php";
         include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/docs/readPrdReq.php";
         $prdReq = readEqpOrder($pi_no, $po_no);
         $prdReq = readPrdReq($prdReq, $pi_no, $po_no);
         $ctnt = getPrdReqMailCtnt($ctnt, $prdReq);
     } else {
         if ($wrk_tp_atcd == "00700320") {
             // 부품출고의뢰서
             $swp_no = "";
             if (isset($_REQUEST["swp_no"])) {
                 $swp_no = $_REQUEST["swp_no"];
             }
             include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/order/readPartOrder.php";
             include $_SERVER["DOCUMENT_ROOT"] . "/application/views/admin/docs/readPartReq.php";
             $partReq = readPartOrder($pi_no, $swp_no);
             $partReq = readPartReq($partReq, $pi_no, $swp_no);
             $ctnt = getPartReqMailCtnt($ctnt, $partReq);
         } else {