$contact = $de_json["contact"];
//货主
$contactphone = $de_json["contactphone"];
//联系电话
$knob = $de_json["knobid"];
//节巴
$climb = $de_json["climbid"];
//爬皮
//$position=$de_json["goodpositionid"];//
$position = $de_json["positionid"];
//取材位置
$device = $de_json["deviceid"];
//加工设备
$widerange = chageEmptyStr($de_json["widerange"]);
//宽度范围
$thincknessrange = chageEmptyStr($de_json["thincknessrange"]);
//厚度范围
$newold = $de_json["newoldid"];
//新旧
$blue = $de_json["blueid"];
//蓝变
$worm = $de_json["wormid"];
//虫眼
$decay = $de_json["decayid"];
//腐朽
$fromid = $de_json["fromid"];
//产地
$dry = $de_json["dryid"];
//烘干
$slash = $de_json["slashid"];
//斜裂
Beispiel #2
0
$dry = $de_json["dryid"];
//烘干
$slash = $de_json["slashid"];
//斜裂
$ring = $de_json["ringid"];
//环裂
$oil = $de_json["oilid"];
//抽油
$black = $de_json["blackid"];
//黑心
$content = $de_json["content"];
$dumpposition = chageEmptyStr($de_json["dumpposition"]);
//货场
$contact = chageEmptyStr($de_json["contact"]);
//货主
$contactphone = chageEmptyStr($de_json["contactphone"]);
//货主手机
$mypics = $de_json["pics"];
//图片数组
//
$publishtime = date("Y-m-d H:i:s");
$updatetime = $publishtime;
//形成推荐条件
$sqlstr = '';
//推荐查询条件
if ($kindid != 0) {
    $sqlstr = 'p.kindid=' . $kindid . ' and ';
}
if ($stuffid != 0) {
    $sqlstr = $sqlstr . ' p.stuffid=' . $stuffid . ' and ';
}
// 货种
$productlen = $_POST["productlen"];
// 长度
$spotpositionid = $_POST["spotpositionid"];
// 位置
$train = $_POST["train"];
//列号
$trainDate = $_POST["trainDate"];
//列到货日期
// error_log(date('Y-m-d H:i:s') .'spotpositionid='.$spotpositionid."\n",3,$_SERVER['DOCUMENT_ROOT']."/log/run.log");
$userphone = $_SESSION['phone'];
// 操作员手机
$dump = new dump($carnum, $spotpositionid, $portid, $userid, $userphone);
$dump->kindid = $kindid;
$dump->stuffid = $stuffid;
$dump->productlen = chageEmptyStr($productlen);
$dump->contactphone = $contactphone;
$dump->train = $train;
$dump->trainDate = $trainDate;
//error_log(date('Y-m-d H:i:s') .'ok=1'."\n",3,$_SERVER['DOCUMENT_ROOT']."/log/run.log");
$result = $dump->operationRecord();
//error_log(date('Y-m-d H:i:s') .'ok=0'.$result."\n",3,$_SERVER['DOCUMENT_ROOT']."/log/run.log");
// $updateresult=array();
if ($result) {
    if ($dump->isnew) {
        $caption = "发布";
    } else {
        $caption = "更新";
    }
    $caption = $caption . "成功,获得积分:" . $dump->perfect;
    echo "<script>alert('" . $caption . "');window.location.href=\" " . "goodspublish.php?train='" . $train . "'&trainDate='" . $trainDate . "'" . "\";</script>";
Beispiel #4
0
//烘干
$dump->slash = $de_json["slashid"];
//斜裂
$dump->ring = $de_json["ringid"];
//环裂
$dump->oil = $de_json["oilid"];
//抽油
$dump->black = $de_json["blackid"];
//黑心
$dump->contact = chageEmptyStr($de_json["contact"]);
//货主
$dump->contactphone = chageEmptyStr($de_json["contactphone"]);
//货主手机号
$dump->content = chageEmptyStr($de_json["content"]);
//详细介绍
$dump->price = chageEmptyStr($de_json["price"]);
//价格
$dump->salestatusid = $de_json["salestatusid"];
//价格
$dump->mypics = $de_json["pics"];
//图片数组
$dump->display = $de_json["display"];
//显示状态2015.6.28 lja
if (isset($_SESSION['ismgr'])) {
    if ($_SESSION['ismgr'] == 1) {
        $dump->ismgr = 1;
    }
    //管理员
}
$result = $dump->operationRecord();
//error_log(date('Y-m-d H:i:s') . $result."\n",3,$_SERVER['DOCUMENT_ROOT']."/log/run.log");
$decay = $de_json["decayid"];
//腐朽
$fromid = $de_json["fromid"];
//产地
$dry = $de_json["dryid"];
//烘干
$slash = $de_json["slashid"];
//斜裂
$ring = $de_json["ringid"];
//环裂
$oil = $de_json["oilid"];
//抽油
$black = $de_json["blackid"];
//黑心
$content = $de_json["content"];
$dumpposition = chageEmptyStr($de_json["dumpposition"]);
//货场
$mypics = $de_json["pics"];
//图片数组
//
$publishtime = date("Y-m-d H:i:s");
$updatetime = $publishtime;
//$cdkey=$userphone.date("ymdHis").rand(1000,9999)."2";
$cdkey = $de_json["cdkey"];
//修改散货,使用传入的值
//*********数据输入****
$conn = db_connect();
$conn->query("start transaction");
//开始事务
//插入数据
$query = "update t_product set kindid=" . $kindid . ",stuffid=" . $stuffid . ",productlen='" . $productlen . "',diameterlen=" . $diameterlen . ",wide=" . $wide . ",thinckness=" . $thinckness . ",tolerance=" . $tolerance . ",widerange=" . $widerange . ",thincknessrange=" . $thincknessrange . ",refcapacity=" . $refcapacity . ",timber='" . $timber . "',dry='" . $dry . "',newold='" . $newold . "',timbertype='" . $timbertype . "',knob='" . $knob . "',blue='" . $blue . "',worm='" . $worm . "',decay='" . $decay . "',climb='" . $climb . "',slash='" . $slash . "',ring='" . $ring . "',oil='" . $oil . "',black='" . $black . "',part='" . $part . "',device='" . $device . "',fromid='" . $fromid . "',portid='" . $portid . "',publishtime='" . $publishtime . "',dumpposition='" . $dumpposition . "',updatetime='" . $updatetime . "',goodtype=2,content='" . $content . "' where cdkey='" . $cdkey . "'";
Beispiel #6
0
//产地
$dump->dry = $de_json["dryid"];
//烘干
$dump->slash = $de_json["slashid"];
//斜裂
$dump->ring = $de_json["ringid"];
//环裂
$dump->oil = $de_json["oilid"];
//抽油
$dump->black = $de_json["blackid"];
//黑心
$dump->contact = chageEmptyStr($de_json["contact"]);
//货主
$dump->contactphone = chageEmptyStr($de_json["contactphone"]);
//货主手机号
$dump->content = chageEmptyStr($de_json["content"]);
//详细介绍
$dump->mypics = $de_json["pics"];
//图片数组
$result = $dump->operationRecord();
// echo $result;
// return;
//echo $dump;
//	return;
$updateresult = array();
if ($result) {
    $updateresult['result'] = "success";
    $updateresult['perfect'] = $dump->perfect;
    $updateresult['isnew'] = $dump->isnew;
    //$updateresult['positionvalue']=$dump->positionvalue;
    //$updateresult['diameterlen']=$dump->diameterlen;//径级
//产地
$dump->dry = $de_json["dryid"];
//烘干
$dump->slash = $de_json["slashid"];
//斜裂
$dump->ring = $de_json["ringid"];
//环裂
$dump->oil = $de_json["oilid"];
//抽油
$dump->black = $de_json["blackid"];
//黑心
$dump->content = chageEmptyStr($de_json["content"]);
//详细介绍
$dump->refnum = chageEmptyStr($de_json["refnum"]);
//参考根数 空串转换数字 2016.06.23 ljm
$dump->refwight = chageEmptyStr($de_json["refwight"]);
//参考重量 空串转换数字 2016.06.23 ljm
//输入页面上无此项$dumpposition=chageEmptyStr($de_json["dumppositionid"]);//货场
$dump->mypics = $de_json["pics"];
//图片数组
//
$publishtime = date("Y-m-d H:i:s");
$dump->updatetime = $publishtime;
//$cdkey=$userphone.date("ymdHis").rand(1000,9999)."2";
//$dump->cdkey = $de_json["cdkey"];  //修改散货,使用传入的值
$result = $dump->operationRecord();
//echo $result;
//return;
$updateresult = array();
if ($result) {
    $updateresult['result'] = "success";
$contact = $de_json["contact"];
//联系人
$phone = $de_json["phone"];
//手机
// $productlen=chageEmptyStr($de_json["productlen"]);//长度
$contactphone = $de_json["contactphone"];
//联系电话
$email = $de_json["email"];
//邮箱
$address = chageEmptyStr($de_json["address"]);
//地址
$website = chageEmptyStr($de_json["website"]);
//网址
$content = chageEmptyStr($de_json["content"]);
//网址
$keyword = chageEmptyStr($de_json["keyword"]);
//关键字
$publishtime = date("Y-m-d H:i:s");
$updatetime = $publishtime;
$mypics = $de_json["pics"];
//图片数组
//*********数据输入****
$conn = db_connect();
$conn->query("start transaction");
//开始事务
//更新数据
$query = "update t_company set companyname='" . $companyname . "',product='" . $product . "',contact='" . $contact . "',phone='" . $phone . "',contactphone='" . $contactphone . "',email='" . $email . "'," . "address='" . $address . "',website='" . $website . "',keyword='" . $keyword . "',content='" . $content . "',updatetime='" . $updatetime . "' where companyid=" . $companyid;
$insertresult = $conn->query($query);
$picresult = true;
$deleted = true;
$delfromdb = true;