当前位置: 首页>>代码示例>>PHP>>正文


PHP AFS::getCadastralLotNumber方法代码示例

本文整理汇总了PHP中AFS::getCadastralLotNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP AFS::getCadastralLotNumber方法的具体用法?PHP AFS::getCadastralLotNumber怎么用?PHP AFS::getCadastralLotNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AFS的用法示例。


在下文中一共展示了AFS::getCadastralLotNumber方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Main


//.........这里部分代码省略.........
             break;
         case "add":
             // temporarily add points
             $pointsArray = $this->formArray["pointsArray"];
             $pointID = 1;
             if (is_array($pointsArray)) {
                 $this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
                 for ($pointID = 1; $pointID <= count($pointsArray); $pointID++) {
                     $this->tpl->set_var("pointID", $pointID);
                     $this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
                     $this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
                     $this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
                     $this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
                     $this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
                     $this->tpl->parse("PointsListBlock", "PointsList", true);
                 }
                 $pointsArray[$pointID]["pointType"] = $this->formArray["pointType"];
                 $pointsArray[$pointID]["quadrant"] = $this->formArray["quadrant"];
                 $pointsArray[$pointID]["bearingDeg"] = $this->formArray["bearingDeg"];
                 $pointsArray[$pointID]["bearingMin"] = $this->formArray["bearingMin"];
                 $pointsArray[$pointID]["distance"] = $this->formArray["distance"];
                 $this->tpl->set_var("pointID", $pointID);
                 $this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
                 $this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
                 $this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
                 $this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
                 $this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
                 $this->tpl->parse("PointsListBlock", "PointsList", true);
             } else {
                 $pointsArray[$pointID]["pointType"] = $this->formArray["pointType"];
                 $pointsArray[$pointID]["quadrant"] = $this->formArray["quadrant"];
                 $pointsArray[$pointID]["bearingDeg"] = $this->formArray["bearingDeg"];
                 $pointsArray[$pointID]["bearingMin"] = $this->formArray["bearingMin"];
                 $pointsArray[$pointID]["distance"] = $this->formArray["distance"];
                 $this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
                 $this->tpl->set_var("pointID", $pointID);
                 $this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
                 $this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
                 $this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
                 $this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
                 $this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
                 $this->tpl->parse("PointsListBlock", "PointsList", true);
             }
             $this->formArray["pointsExist"] = "true";
             break;
         default:
             $AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
             $AFSDetails = new SoapObject(NCCBIZ . "AFSDetails.php", "urn:Object");
             if (!($xmlStr = $AFSDetails->getAFS($this->formArray["afsID"]))) {
                 exit("error xml");
             } else {
                 //echo $xmlStr;
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     exit("error domDoc");
                 } else {
                     $afs = new AFS();
                     $afs->parseDomDocument($domDoc);
                     $this->formArray["afsID"] = $afs->getAfsID();
                     $this->formArray["cadastralLotNumber"] = $afs->getCadastralLotNumber();
                     $this->formArray["gisTechnicalDescription"] = $afs->getGISTechnicalDescription();
                     if ($this->formArray["gisTechnicalDescription"] == "") {
                         $this->formArray["pointsExist"] = "false";
                         $this->hideBlock("PointsList");
                     } else {
                         $this->formArray["pointsExist"] = "true";
                         // parse gisTechnicalDescription into $pointsArray
                         // separate each pointRecord at "," and each point at "-"
                         $gisTechDescArray = explode(",", $this->formArray["gisTechnicalDescription"]);
                         foreach ($gisTechDescArray as $pointString) {
                             $pointArray = explode("-", $pointString);
                             $pointID = $pointArray[0];
                             $pointsArray[$pointID]["pointType"] = $pointArray[1];
                             $pointsArray[$pointID]["quadrant"] = $pointArray[2];
                             $pointsArray[$pointID]["bearingDeg"] = $pointArray[3];
                             $pointsArray[$pointID]["bearingMin"] = $pointArray[4];
                             $pointsArray[$pointID]["distance"] = $pointArray[5];
                         }
                         if (is_array($pointsArray)) {
                             $this->tpl->set_block("rptsTemplate", "PointsList", "PointsListBlock");
                             for ($pointID = 1; $pointID <= count($pointsArray); $pointID++) {
                                 $this->tpl->set_var("pointID", $pointID);
                                 $this->tpl->set_var("pointType", $pointsArray[$pointID]["pointType"]);
                                 $this->tpl->set_var("quadrant", $pointsArray[$pointID]["quadrant"]);
                                 $this->tpl->set_var("bearingDeg", $pointsArray[$pointID]["bearingDeg"]);
                                 $this->tpl->set_var("bearingMin", $pointsArray[$pointID]["bearingMin"]);
                                 $this->tpl->set_var("distance", $pointsArray[$pointID]["distance"]);
                                 $this->tpl->parse("PointsListBlock", "PointsList", true);
                             }
                         }
                     }
                 }
             }
             break;
     }
     $this->setForm();
     $this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("afsID" => $this->formArray["afsID"])));
     $this->tpl->parse("templatePage", "rptsTemplate");
     $this->tpl->finish("templatePage");
     $this->tpl->p("templatePage");
 }
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:GISTechnicalDescriptionEncode.php


注:本文中的AFS::getCadastralLotNumber方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。