コード例 #1
0
ファイル: batch.php プロジェクト: gauravsaxena21/simantz
     $o->allowedit = $_REQUEST["allowedit"];
     $o->getBatchlineform();
     echo '</html>';
     exit;
     //after return xml shall not run more code.
     break;
 case "searchbatchline":
     //return xml table to grid
     $wherestring = " WHERE batch_id={$o->batch_id}";
     $o->showBatchline($wherestring);
     exit;
     //after return xml shall not run more code.
     break;
 case "saveBatchline":
     //process submited xml data from grid
     $o->saveBatchline();
     break;
 case "delete":
     if ($o->deleteBatchAjax($o->batch_id)) {
         //success
         $msg = "<div class='statusmsg'>Record deleted successfully.</div>";
         $arr = array("msg" => $msg, "status" => 1);
         echo json_encode($arr);
     } else {
         //failed
         $msg = "<div class='statusmsg'>Failed to delete Record. Please try again.</div>";
         $arr = array("msg" => $msg, "status" => 2);
         echo json_encode($arr);
     }
     break;
 case "activatebatch":