예제 #1
0
 public function doWebDelHolder()
 {
     global $_GPC, $_W;
     $id = intval($_GPC['id']);
     $chips = biz_getChips($id);
     $holdname = explode(';', $chips['holdername']);
     $holdguid = explode(';', $chips['holderguid']);
     $url = $this->createWebUrl('delholder', array('id' => $id));
     if ($_W['isajax']) {
         include $this->template('holder_del');
         exit;
     }
     if ($_W['token'] == $_GPC['token']) {
         $holdids = $_GPC['holdids'];
         if (!empty($holdids)) {
             $hdiff = array_diff($holdguid, $holdids);
             $holderguid = implode(';', $hdiff);
             $state = pdo_update('chips', array('holderguid' => $holderguid), array('id' => $id));
             $chips['holderguid'] = $holderguid;
             if ($state !== false) {
                 $state = biz_saveHolderName($chips);
             }
             if ($state !== false) {
                 message('数据删除成功!', $this->createWebUrl('chips', array('id' => $id)), 'success');
             } else {
                 message('数据保存出错!', $this->createWebUrl('chips', array('id' => $id)), 'error');
             }
         } else {
             message('未选择删除权益人!', $this->createWebUrl('chips'), 'error');
         }
     }
 }
예제 #2
0
                //更新状态为确认
                db_updateChipsStatus($chips['id'], 8);
                message('认购确定,生成供款明细成功!', $this->createWebUrl($do));
            } else {
                message('生成供款明细失败!', $this->createWebUrl($do));
            }
        } else {
            message('无效的房间数据!', $this->createWebUrl($do));
        }
    }
    include $this->template('book_disp');
}
if ($op == 'print') {
    load()->web('print');
    $id = intval($_GPC['id']);
    $chips = biz_getChips($id, true);
    $printTitle = '认购书';
    $type = 4;
    $msg = '';
    $enable = print_checkChipsEnable($chips, $type, $msg);
    if ($enable) {
        if ($_W['token'] == $_GPC['token']) {
            print_addTask($chips, $this->createWebUrl($do), $type);
        } else {
            $url = $this->createWebUrl($do, array('op' => 'print', 'id' => $id));
            print_Confirm($chips, $url, $type);
        }
    } else {
        echo $msg;
    }
    exit;
예제 #3
0
        message('无效数据或认筹单不允许修改!', $this->createWebUrl($do));
    }
    if (checksubmit()) {
        $status = biz_getDictionary('chipstatus', true);
        $pre = array('source' => $_GPC['source'], 'operator' => $_W['username']);
        $data = array('status' => $status['确认'], 'changetime' => TIMESTAMP, 'pretype' => 2, 'premoney' => 0, 'preattach' => iserializer($pre));
        pdo_update('chips', $data, array('id' => $chips['id']));
        message('认筹单已确认无诚意金,数据更新成功!', $this->createWebUrl($do));
    }
    include $this->template('chips_confirm');
    exit;
}
if ($op == 'display') {
    disableWebCache();
    $id = intval($_GPC['id']);
    $chips = biz_getChips($id);
    if (empty($chips)) {
        echo '无效的参数';
        exit;
    }
    if (!$this->CheckDataRight($chips)) {
        echo '无权查看数据';
        exit;
    }
    if ($chips['pretype'] == 2) {
        $preattach = biz_unserializer($chips, 'preattach');
    }
    $user_info = $chips['user'];
    $pre_bills = biz_getBills($chips['qrcode'], 1, null);
    foreach ($pre_bills as &$bill) {
        if (empty($bill['Printed'])) {