Exemple #1
0
         $dimn->setValue('opedrawingid', $_GET['revid']);
     }
     $dimn->showDimensionUI();
 }
 if (isset($_GET['rowno'])) {
     $i = $_GET['rowno'] - 1;
     $data = array('id' => $i, 'tl' => $_GET['tl'], 'tu' => $_GET['tu']);
     $dimn->addDimensionRow($data);
 }
 if (isset($_GET['rev'])) {
     $dimn->setValue('operationid', $_GET['opid']);
     if (isset($_GET['oldrev'])) {
         $dimn->setValue('oldrev', 1);
     }
     if (isset($_GET['id'])) {
         $dimn->getStageRevno($_GET['id']);
     } else {
         $dimn->getStageRevno();
     }
 }
 if (isset($_GET['sgid'])) {
     $au = new Approval();
     $au->setValue('skillgroup', $_GET['sgid']);
     $au->setValue('tname', 'Ope_Drawing');
     $au->setValue('linkcol', 'Ope_Drawing_ID');
     $au->setValue('linkid', $_GET['opdrgid']);
     $au->setValue('remarks', $_GET['appremarks']);
     $au->saveApproval();
 }
 if (isset($_GET['copy'])) {
     ///show dimwnsions list for copying to another operation