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


PHP Company::getCompanyName方法代码示例

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


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

示例1: Main

 function Main($referer = "")
 {
     if (!$referer || !isset($referer)) {
         $referer = "OwnerList.php";
     }
     $this->tpl->set_var("referer", $referer);
     switch ($this->formArray["formAction"]) {
         case "save" || "view" || "viewOnly":
             $this->tpl->set_var("referer", $referer);
             $CompanyDetails = new SoapObject(NCCBIZ . "CompanyDetails.php", "urn:Object");
             if (!($xmlStr = $CompanyDetails->getCompanyDetails($this->formArray["companyID"]))) {
                 $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                 $this->tpl->set_var("TableBlock", "record not found");
             } else {
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                     $this->tpl->set_var("TableBlock", "error xmlDoc");
                 } else {
                     $company = new Company();
                     $company->parseDomDocument($domDoc);
                     $this->formArray["companyID"] = $company->getCompanyID();
                     $this->formArray["companyName"] = $company->getCompanyName();
                     $this->formArray["tin"] = $company->getTin();
                     $this->formArray["telephone"] = $company->getTelephone();
                     $this->formArray["fax"] = $company->getFax();
                     $address = $company->addressArray[0];
                     if (is_a($address, Address)) {
                         $this->formArray["addressID"] = $address->getAddressID();
                         $this->formArray["number"] = $address->getNumber();
                         $this->formArray["street"] = $address->getStreet();
                         $this->formArray["barangay"] = $address->getBarangay();
                         $this->formArray["district"] = $address->getDistrict();
                         $this->formArray["municipalityCity"] = $address->getMunicipalitycity();
                         $this->formArray["province"] = $address->getProvince();
                     }
                     $this->formArray["email"] = $company->getEmail();
                     $this->formArray["website"] = $company->getWebsite();
                 }
             }
             if ($this->formArray["formAction"] == "viewOnly") {
                 $this->tpl->set_block("rptsTemplate", "ViewOnly", "ViewOnlyBlock");
                 $this->tpl->set_var("ViewOnlyBlock", "");
             }
             break;
         case "cancel":
             //header("location: CompanyList.php");
             exit;
             break;
         default:
             $this->tpl->set_block("rptsTemplate", "ACK", "ACKBlock");
             $this->tpl->set_var("ACKBlock", "");
     }
     //*/
     $this->setForm();
     $this->tpl->parse("templatePage", "rptsTemplate");
     $this->tpl->finish("templatePage");
     $this->tpl->p("templatePage");
 }
开发者ID:armic,项目名称:erpts,代码行数:58,代码来源:CompanyDetails.php

示例2: encoder_redirect_success

function encoder_redirect_success(Company $company)
{
    $Company_Name = $company->getCompanyName();
    $Company_Name_Amharic = $company->getCompanyNameAmharic();
    $dir = "VIEW/html/Encoder/Add_Company/Company_List.php?success=1&Company_Name={$Company_Name}&Company_Name_Amharic={$Company_Name_Amharic}";
    $url = BASE_URL . $dir;
    header("Location:{$url}");
    //redirect the encoder to the regions add place
    exit;
}
开发者ID:rogermule,项目名称:afalagi-web,代码行数:10,代码来源:Edit_Health_Institute.php

示例3: Main

 function Main()
 {
     switch ($this->formArray["ownerType"]) {
         case "Person":
             $this->tpl->set_block("rptsTemplate", "CompanyDetails", "CompanyDetailsBlock");
             $this->tpl->set_var("CompanyDetailsBlock", "");
             $person = new Person();
             $person->selectRecord($this->formArray["id"]);
             $this->tpl->set_var("id", $person->getPersonID());
             $this->tpl->set_var("lastName", $person->getLastName());
             $this->tpl->set_var("firstName", $person->getFirstName());
             $this->tpl->set_var("middleName", $person->getMiddleName());
             $this->tpl->set_var("gender", $person->getGender());
             $this->tpl->set_var("birthday", $person->getBirthday());
             $this->tpl->set_var("maritalStatus", $person->getMaritalStatus());
             $this->tpl->set_var("tin", $person->getTin());
             $address = $person->addressArray[0];
             if (is_a($address, Address)) {
                 $this->tpl->set_var("fullAddress", $address->getFullAddress());
             }
             $this->tpl->set_var("telephone", $person->getTelephone());
             $this->tpl->set_var("mobileNumber", $person->getMobileNumber());
             $this->tpl->set_var("email", $person->getEmail());
             break;
         case "Company":
             $this->tpl->set_block("rptsTemplate", "PersonDetails", "PersonDetailsBlock");
             $this->tpl->set_var("PersonDetailsBlock", "");
             $company = new Company();
             $company->selectRecord($this->formArray["id"]);
             $this->tpl->set_var("id", $company->getCompanyID());
             $this->tpl->set_var("companyName", $company->getCompanyName());
             $this->tpl->set_var("tin", $company->getTin());
             $this->tpl->set_var("telephone", $company->getTelephone());
             $this->tpl->set_var("fax", $company->getFax());
             $address = $company->addressArray[0];
             if (is_a($address, Address)) {
                 $this->tpl->set_var("fullAddress", $address->getFullAddress());
             }
             $this->tpl->set_var("email", $company->getEmail());
             $this->tpl->set_var("website", $company->getWebsite());
             break;
         default:
             exit("No Person/Company selected. <a href='OwnerList.php" . $this->sess->url("") . "'>Click here</a> to go back to the Owner List.");
             break;
     }
     $this->tpl->set_var("ownerType", $this->formArray["ownerType"]);
     $this->tpl->set_var("uname", $this->user["uname"]);
     $this->tpl->set_var("today", date("F j, Y"));
     $this->setPageDetailPerms();
     $this->tpl->set_var("Session", $this->sess->url(""));
     $this->tpl->parse("templatePage", "rptsTemplate");
     $this->tpl->finish("templatePage");
     $this->tpl->p("templatePage");
 }
开发者ID:armic,项目名称:erpts,代码行数:54,代码来源:OwnerDetails.php

示例4: saveCompany

 /**
  * Save Company
  * @param Company $company
  * @returns boolean
  * @throws DaoException
  */
 public function saveCompany(Company $company)
 {
     try {
         $infoStr = $company->comapanyName . '|' . $company->country . '|' . $company->street1 . '|' . $company->street2 . '|' . $company->state . '|' . $company->city . '|' . $company->zipCode . '|' . $company->phone . '|' . $company->fax . '|' . $company->taxId . '|' . $company->naics . '|' . $company->comments;
         $q = Doctrine_Query::create()->from('CompanyGeninfo')->where("code = ?", "001");
         $companyGeninfo = $q->fetchOne();
         $companyGeninfo->setGeninfoValues($infoStr);
         $companyGeninfo->save();
         $rootCompanyStructure = $this->readCompanyStructure(1);
         $rootCompanyStructure->setTitle($company->getCompanyName());
         $rootCompanyStructure->save();
         return true;
     } catch (Exception $e) {
         throw new DaoException($e->getMessage());
     }
 }
开发者ID:THM068,项目名称:orangehrm,代码行数:22,代码来源:CompanyDao.php

示例5: setCompanyList

 function setCompanyList()
 {
     $db = new DB_RPTS();
     $db1 = new DB_RPTS();
     $db->query("SELECT DISTINCT companyID from OwnerCompany inner join Owner on Owner.ownerID=OwnerCompany.ownerID where Owner.rptopID <> ''");
     $this->tpl->set_block("rptsTemplate", "Company", "cBlk");
     for ($i = 0; $db->next_record(); $i++) {
         $companyID = $db->f("companyID");
         $company = new Company();
         if ($company->selectRecord($companyID)) {
             //$setPersonArray($person);
             $this->tpl->set_var(companyName, $company->getCompanyName());
             $this->tpl->set_var(companyID, $companyID);
         }
         $this->tpl->parse("cBlk", "Company", true);
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:17,代码来源:ViewSOA.php

示例6: getOwnerName

 function getOwnerName($ownerType, $id)
 {
     $ownerName = "";
     switch ($ownerType) {
         case "Person":
             $person = new Person();
             $person->selectRecord($id);
             $ownerName = $person->getName();
             $this->tpl->set_var("openWin", "PersonDetails.php" . $this->sess->url("") . "&personID=" . $id . "&formAction=viewOnly");
             break;
         case "Company":
             $company = new Company();
             $company->selectRecord($id);
             $ownerName = $company->getCompanyName();
             $this->tpl->set_var("openWin", "CompanyDetails.php" . $this->sess->url("") . "&companyID=" . $id . "&formAction=viewOnly");
             break;
     }
     return $ownerName;
 }
开发者ID:armic,项目名称:erpts,代码行数:19,代码来源:OutboxList.php

示例7: _

    $div_style = 'style="display:none;"';
}
echo '<input type="checkbox" name="setRec" id="setRec" value= "Yes" ', $checked, ' onclick="setRecurent();" />', '&nbsp;&nbsp;', '<span class="text12"><b>', _('Set this invoice as recurrent'), '</b></span><br /><br />', '<div id="rec_section" class="text12" ', $div_style, '>', _('Repeat this invoice every: <br />'), '<div class="spacerblock_5"></div>', '<input type="text" name="recurrent" id="recurrent" size="2" value="', $recurrence, '">&nbsp;', $_SESSION['RecurrentInvoice']->generateRecurrentFrequencyCombo($frequency), '<br /><br /><br />', _('(like every 2 Months or every 3 Days)'), '</div><br />';
// Recurrent Part ends here
?>
                
            </div>
        </div>
        <div class="left_menu_footer"></div><br /><br />
    </td><td class="layout_rcolumn">
        <div class="contentfull">
            <div class="text32"><b><?php 
echo _('Edit Invoice'), ' ', $_SESSION['do_invoice']->num;
?>
:</b> <?php 
$company_name = $do_company->getCompanyName($_SESSION['do_invoice']->idcompany);
echo empty($company_name) ? $do_contact->getContactName($_SESSION['do_invoice']->idcontact) : $company_name;
?>
</div>
            <div class="spacerblock_20"></div>
            <div class="invoice_edit">
                <?php 
if ($_SESSION['do_invoice']->inv_logo == '') {
    echo '<a href="/settings_invoice.php">Upload Logo</a>';
} else {
    echo '<img src="/files/' . $_SESSION['do_invoice']->inv_logo . '" alt="" /><br />';
}
?>
                <div class="spacerblock_20"></div>
                <table class="layout_columns">
					<tr>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:invoice_edit.php

示例8: Main

 function Main()
 {
     $this->getSignatory();
     if (is_array($this->formArray["personCompanyIDArray"])) {
         $this->tpl->set_block("rptsTemplate", "Page", "PageBlock");
         foreach ($this->formArray["personCompanyIDArray"] as $personCompanyID) {
             $this->tpl->set_var("pageNumber", $this->pageNumber);
             switch ($this->formArray["ownerType"]) {
                 case "Company":
                     $company = new Company();
                     $company->selectRecord($personCompanyID);
                     $nameList = $company->getCompanyName();
                     break;
                 case "Person":
                 default:
                     $person = new Person();
                     $person->selectRecord($personCompanyID);
                     $nameList = $person->getName();
                     break;
             }
             $this->tpl->set_var("nameList", $nameList);
             $tdNumberList = "";
             $tdArray = $this->getTDArrayFromOwner($personCompanyID);
             if (is_array($tdArray)) {
                 foreach ($tdArray as $td) {
                     if ($tdNumberList != "") {
                         $tdNumberList .= "\n";
                     }
                     $tdNumberList .= $this->getTDNumberListLine($td);
                 }
             }
             $this->tpl->set_var("tdNumberList", $tdNumberList);
             $this->tpl->parse("PageBlock", "Page", true);
             $this->pageNumber++;
         }
     } else {
         exit("no owners selected");
     }
     $this->setLguDetails();
     $this->setForm();
     $this->tpl->parse("templatePage", "rptsTemplate");
     $this->tpl->finish("templatePage");
     $testpdf = new PDFWriter();
     $testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
     if (isset($this->formArray["print"])) {
         $testpdf->writePDF($name);
         //,$this->formArray["print"]);
     } else {
         $testpdf->writePDF($name);
     }
 }
开发者ID:armic,项目名称:erpts,代码行数:51,代码来源:CertificateOfLandHoldingPrint.php

示例9: Main

 function Main()
 {
     switch ($this->formArray["formAction"]) {
         case "edit":
             $CompanyDetails = new SoapObject(NCCBIZ . "CompanyDetails.php", "urn:Object");
             if (!($xmlStr = $CompanyDetails->getCompanyDetails($this->formArray["companyID"]))) {
                 $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                 $this->tpl->set_var("TableBlock", "record not found");
             } else {
                 if (!($domDoc = domxml_open_mem($xmlStr))) {
                     $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                     $this->tpl->set_var("TableBlock", "error xmlDoc");
                 } else {
                     $company = new Company();
                     $company->parseDomDocument($domDoc);
                     $this->formArray["companyID"] = $company->getCompanyID();
                     $this->formArray["companyName"] = $company->getCompanyName();
                     $this->formArray["tin"] = $company->getTin();
                     $this->formArray["telephone"] = $company->getTelephone();
                     $this->formArray["fax"] = $company->getFax();
                     $address = $company->addressArray[0];
                     if (is_a($address, Address)) {
                         $this->formArray["addressID"] = $address->getAddressID();
                         $this->formArray["number"] = $address->getNumber();
                         $this->formArray["street"] = $address->getStreet();
                         $this->formArray["barangay"] = $address->getBarangay();
                         $this->formArray["district"] = $address->getDistrict();
                         $this->formArray["municipalityCity"] = $address->getMunicipalitycity();
                         $this->formArray["province"] = $address->getProvince();
                     }
                     $this->formArray["email"] = $company->getEmail();
                     $this->formArray["website"] = $company->getWebsite();
                 }
             }
             break;
         case "save":
             $CompanyEncode = new SoapObject(NCCBIZ . "CompanyEncode.php", "urn:Object");
             if ($this->formArray["companyID"] != "") {
                 $CompanyDetails = new SoapObject(NCCBIZ . "CompanyDetails.php", "urn:Object");
                 if (!($xmlStr = $CompanyDetails->getCompanyDetails($this->formArray["companyID"]))) {
                     $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                     $this->tpl->set_var("TableBlock", "record not found");
                 } else {
                     if (!($domDoc = domxml_open_mem($xmlStr))) {
                         $this->tpl->set_block("rptsTemplate", "Table", "TableBlock");
                         $this->tpl->set_var("TableBlock", "error xmlDoc");
                     } else {
                         $company = new Company();
                         $company->parseDomDocument($domDoc);
                         $address = $company->addressArray[0];
                         if (is_a($address, Address)) {
                             $address->setAddressID($this->formArray["addressID"]);
                             $address->setNumber($this->formArray["number"]);
                             $address->setStreet($this->formArray["street"]);
                             $address->setBarangay($this->formArray["barangay"]);
                             $address->setDistrict($this->formArray["district"]);
                             $address->setMunicipalityCity($this->formArray["municipalityCity"]);
                             $address->setProvince($this->formArray["province"]);
                             $address->setDomDocument();
                         }
                         //$company->selectRecord($this->formArray["companyID"]);
                         $company->setCompanyID($this->formArray["companyID"]);
                         $company->setCompanyName($this->formArray["companyName"]);
                         $company->setTin($this->formArray["tin"]);
                         $company->setTelephone($this->formArray["telephone"]);
                         $company->setFax($this->formArray["fax"]);
                         $company->setAddressArray($address);
                         $company->setEmail($this->formArray["email"]);
                         $company->setWebsite($this->formArray["website"]);
                         $company->setDomDocument();
                         $doc = $company->getDomDocument();
                         $xmlStr = $doc->dump_mem(true);
                         if (!($ret = $CompanyEncode->updateCompany($xmlStr))) {
                             exit("error update");
                         }
                     }
                 }
             } else {
                 $address = new Address();
                 $address->setNumber($this->formArray["number"]);
                 $address->setStreet($this->formArray["street"]);
                 $address->setBarangay($this->formArray["barangay"]);
                 $address->setDistrict($this->formArray["district"]);
                 $address->setMunicipalityCity($this->formArray["municipalityCity"]);
                 $address->setProvince($this->formArray["province"]);
                 $address->setDomDocument();
                 $company = new Company();
                 $company->setCompanyID($this->formArray["companyID"]);
                 $company->setCompanyName($this->formArray["companyName"]);
                 $company->setTelephone($this->formArray["telephone"]);
                 $company->setFax($this->formArray["fax"]);
                 $company->setTin($this->formArray["tin"]);
                 $company->setAddressArray($address);
                 $company->setEmail($this->formArray["email"]);
                 $company->setWebsite($this->formArray["website"]);
                 $company->setDomDocument();
                 $doc = $company->getDomDocument();
                 $xmlStr = $doc->dump_mem(true);
                 if (!($ret = $CompanyEncode->saveCompany($xmlStr, $this->formArray["ownerID"]))) {
                     exit("error save");
//.........这里部分代码省略.........
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:CompanyEncode.php

示例10: PaymentLog

    echo _('No, I\'ll add later');
    ?>
</a><br /><br />
                </div>
                <?php 
    $do_inv_payment_log = new PaymentLog();
    $do_inv_payment_log->getPaymentLog($_SESSION['do_invoice']->idinvoice);
    while ($do_inv_payment_log->next()) {
        $count = 0;
        $e_del_log = new Event("PaymentLog->eventDeletePaymentLog");
        $e_del_log->addParam("goto", $_SERVER['PHP_SELF']);
        $e_del_log->addParam("id", $do_inv_payment_log->idpaymentlog);
        $e_del_log->addParam("amt", $do_inv_payment_log->amount);
        echo '<div id="templt', $count, '" class="co_worker_item co_worker_desc">';
        echo '<div style="position: relative;">';
        echo '<span class="text12"><span class="text_lightblue">', $do_inv_payment_log->ref_num, '</span> <span class="sep1">|</span> <b>', $_SESSION['do_invoice']->viewAmount($do_inv_payment_log->amount), '</b><br />', '<b>', isset($_SESSION['do_invoice']->idcompany) ? $do_company->getCompanyName($_SESSION['do_invoice']->idcompany) : $do_contact->getContactName($_SESSION['do_invoice']->idcontact), '</b><br />', '<span class="text_darkgray">Received: ', date('F j, Y', $do_inv_payment_log->timestamp), '</span></span>';
        $img_del = '<img class="delete_icon_tag" border="0" width="14px" height="14px" src="/images/delete.gif">';
        echo '<div width="15px" id="trashcan', $count, '" class="deletenote" style="right:0;">' . $e_del_log->getLink($img_del, ' title="' . _('Remove') . '"') . '</div>';
        echo '</div></div>';
        echo '<div class="invoiceline12"></div>';
        $count++;
    }
    ?>
            </div>
        </div>
        <div class="left_menu_footer"></div><br /><br />
               <?php 
}
?>
               
<?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:invoice.php

示例11: Main

 function Main()
 {
     $this->formArray['currentDate'] = date("F d, Y");
     $MunicipalityCityDetails = new SoapObject(NCCBIZ . "MunicipalityCityDetails.php", "urn:Object");
     #test values
     //$this->formArray['municipalityCityID']=1;
     if (!($xmlStr = $MunicipalityCityDetails->getMunicipalityCityDetails($this->formArray['municipalityCityID']))) {
         #echo($xmlStr);
         //exit("xml failed for municipality");
         header("Location: " . $this->sess->url("ViewSOA.php") . "&status=2");
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             echo "error xmlDoc";
         } else {
             $MunicipalityCity = new MunicipalityCity();
             $MunicipalityCity->parseDomDocument($domDoc);
             $this->formArray['municipality'] = $MunicipalityCity->getDescription();
         }
     }
     #test values
     //$this->formArray['ownerID']=5;
     #echo("ownerID=".$this->formArray['ownerID']."<br>");
     //			$this->displayOwnerList($this->formArray['ownerID']);
     #test values
     //$this->formArray["rptopID"]=15;
     if ($this->formArray['personID'] != "") {
         $person = new Person();
         $person->selectRecord($this->formArray['personID']);
         $this->tpl->set_var(ownerName, $person->getFullName());
         $this->tpl->set_var(ownerNo, $person->getTin());
         $address = $person->addressArray[0];
         $this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
         $db = new DB_RPTS();
         $sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['personID'];
         $db->query($sql);
     } else {
         $company = new Company();
         $company->selectRecord($this->formArray['companyID']);
         $this->tpl->set_var(ownerName, $company->getCompanyName());
         $this->tpl->set_var(ownerNo, $company->getCompanyID());
         $address = $company->addressArray[0];
         $this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
         $db = new DB_RPTS();
         $sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['companyID'];
         $db->query($sql);
     }
     /*$person = new Person();
     		$person->selectRecord($this->formArray['personID']);
     		$this->tpl->set_var(ownerName,$person->getFullName());
     		$this->tpl->set_var(ownerNo,$person->getTin());
     		$address = $person->addressArray[0];
     		$this->tpl->set_var(ownerAddress,$address->getNumber() ." ".$address->getStreet()." ".$address->getBarangay()." ".$address->getDistrict()." ".$address->getMunicipalitycity()." ".$address->getProvince());
     		$db = new DB_RPTS();
     
     		$sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=".$this->formArray['personID'];
     		$db->query($sql);*/
     $this->tpl->set_block("rptsTemplate", "ROW", "RowBlk");
     for ($i = 0; $db->next_record(); $i++) {
         $rptopID = $db->f("rptopID");
         $RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
         if (!($xmlStr = $RPTOPDetails->getRPTOP($rptopID))) {
             //	exit("xml failed for RPTOP");
             header("Location: " . $this->sess->url("ViewSOA.php") . "&status=1");
         } else {
             //echo $xmlStr;
             if (!($domDoc = domxml_open_mem($xmlStr))) {
                 $this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
                 $this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
             } else {
                 $rptop = new RPTOP();
                 $td = new TD();
                 $rptop->parseDomDocument($domDoc);
                 foreach ($rptop as $key => $value) {
                     $this->formArray['payableYear'] = $rptop->getTaxableYear();
                     $rptopID = $rptop->getRptopID();
                     if ($key == "tdArray") {
                         $tdCtr = 0;
                         if (count($value)) {
                             foreach ($value as $tkey => $tvalue) {
                                 $td->selectRecord($tvalue->getTdID());
                                 $assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
                                 $propertyType = $td->getPropertyType();
                                 $TaxDeclarationNumber = $td->getTaxDeclarationNumber();
                                 //										$this->tpl->set_var(kind,$propertyType);
                                 //										$this->tpl->set_var(currentTDNo,$TaxDeclarationNumber);
                                 /*									$dues = new Dues();
                                 									$dues->create($td->getTdID(), "","","","2003");
                                 									$this->tpl->set_var(basic,$dues->getBasic());
                                 									$totBasic += $dues->getBasic();
                                 									$this->tpl->set_var(sef,$dues->getSEF());
                                 									$totSEF += $dues->getSEF();
                                 									$this->tpl->set_var(total,$dues->getSEF()+$dues->getBasic());
                                 									$totTaxDue += $dues->getSEF()+$dues->getBasic();*/
                                 $afsID = $td->getAfsID();
                                 $afs = new AFS();
                                 $afs->selectRecord($afsID);
                                 $od = new OD();
                                 $od->selectRecord($afs->getOdID());
                                 $addr = $od->getLocationAddress();
                                 if (count($addr)) {
//.........这里部分代码省略.........
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:ViewSOA_back.php

示例12: Main

 function Main()
 {
     $this->formArray['currentDate'] = date("F d, Y");
     $MunicipalityCityDetails = new SoapObject(NCCBIZ . "MunicipalityCityDetails.php", "urn:Object");
     #test values
     //$this->formArray['municipalityCityID']=1;
     if (!($xmlStr = $MunicipalityCityDetails->getMunicipalityCityDetails($this->formArray['municipalityCityID']))) {
         #echo($xmlStr);
         exit("xml failed for municipality");
         //header("Location: ".$this->sess->url("ViewSOA.php")."&status=2");
     } else {
         if (!($domDoc = domxml_open_mem($xmlStr))) {
             echo "error xmlDoc";
         } else {
             $MunicipalityCity = new MunicipalityCity();
             $MunicipalityCity->parseDomDocument($domDoc);
             $this->formArray['municipality'] = $MunicipalityCity->getDescription();
         }
     }
     if ($this->formArray['personID'] != "") {
         $person = new Person();
         $person->selectRecord($this->formArray['personID']);
         $this->tpl->set_var(ownerName, $person->getFullName());
         $this->tpl->set_var(ownerNo, $person->getTin());
         $address = $person->addressArray[0];
         if (is_object($address)) {
             $this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
         } else {
             $this->tpl->set_var(ownerAddress, "");
         }
         $db = new DB_RPTS();
         $sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['personID'];
         $db->query($sql);
     } else {
         $company = new Company();
         $company->selectRecord($this->formArray['companyID']);
         $this->tpl->set_var(ownerName, $company->getCompanyName());
         $this->tpl->set_var(ownerNo, $company->getCompanyID());
         $address = $company->addressArray[0];
         $this->tpl->set_var(ownerAddress, $address->getNumber() . " " . $address->getStreet() . " " . $address->getBarangay() . " " . $address->getDistrict() . " " . $address->getMunicipalitycity() . " " . $address->getProvince());
         $db = new DB_RPTS();
         $sql = "SELECT rptopID FROM Owner inner join OwnerPerson on Owner.ownerID=OwnerPerson.ownerID WHERE Owner.rptopID <> '' AND OwnerPerson.personID=" . $this->formArray['companyID'];
         $db->query($sql);
     }
     $ypos = 325;
     $this->tpl->set_block("rptsTemplate", "ROW", "RowBlk");
     for ($i = 0; $db->next_record(); $i++) {
         $rptopID = $db->f("rptopID");
         $RPTOPDetails = new SoapObject(NCCBIZ . "RPTOPDetails.php", "urn:Object");
         if (!($xmlStr = $RPTOPDetails->getRPTOP($rptopID))) {
             //	exit("xml failed for RPTOP");
             header("Location: " . $this->sess->url("ViewSOA.php") . "&status=1");
         } else {
             //echo $xmlStr;
             if (!($domDoc = domxml_open_mem($xmlStr))) {
                 $this->tpl->set_block("rptsTemplate", "OwnerListTable", "OwnerListTableBlock");
                 $this->tpl->set_var("OwnerListTableBlock", "error xmlDoc");
             } else {
                 $rptop = new RPTOP();
                 $td = new TD();
                 $rptop->parseDomDocument($domDoc);
                 foreach ($rptop as $key => $value) {
                     $this->formArray['payableYear'] = $rptop->getTaxableYear();
                     $rptopID = $rptop->getRptopID();
                     if ($key == "tdArray") {
                         $tdCtr = 0;
                         if (count($value)) {
                             foreach ($value as $tkey => $tvalue) {
                                 $td->selectRecord($tvalue->getTdID());
                                 $assessedValue = number_format($td->getAssessedValue(), 2, ".", "");
                                 $propertyType = $td->getPropertyType();
                                 $TaxDeclarationNumber = $td->getTaxDeclarationNumber();
                                 $afsID = $td->getAfsID();
                                 $afs = new AFS();
                                 $afs->selectRecord($afsID);
                                 $od = new OD();
                                 $od->selectRecord($afs->getOdID());
                                 $addr = $od->getLocationAddress();
                                 if (count($addr)) {
                                     $location = strtoupper($addr->getNumber() . " " . substr($addr->getBarangay(), 0, 4) . " " . substr($addr->getMunicipalityCity(), 0, 3) . " " . substr($addr->getProvince(), 0, 3));
                                     $munCityID = $addr->getMunicipalityCityID();
                                 }
                                 if (count($afs->landArray)) {
                                     foreach ($afs->landArray as $afsKey => $afsValue) {
                                         $actualUse = $afsValue->getActualUse();
                                         $landActualUses = new LandActualUses();
                                         $landActualUses->selectRecord($actualUse);
                                         $Code = $landActualUses->getCode();
                                     }
                                 }
                                 if (count($afs->improvementsBuildingsArray)) {
                                     foreach ($afs->improvementsBuildingsArray as $afsKey => $afsValue) {
                                         $actualUse = $afsValue->getActualUse();
                                         $improvementsBuildingsActualUses = new improvementsBuildingsActualUses();
                                         $improvementsBuildingsActualUses->selectRecord($actualUse);
                                         $Code = $improvementsBuildingsActualUses->getCode();
                                     }
                                 }
                                 if ($munCityID == $this->formArray['municipalityCityID']) {
                                     $this->tpl->set_var(location, $location);
//.........这里部分代码省略.........
开发者ID:armic,项目名称:erpts,代码行数:101,代码来源:ViewSOA1.php

示例13: printQueue

 public static function printQueue(Pad $pad, $cprecode, $printserver, $memo)
 {
     $printer = Printer::model()->find('lid=:printerId and dpid=:dpid', array(':printerId' => $pad->printer_id, ':dpid' => $pad->dpid));
     if (empty($printer)) {
         return array('status' => 0, 'dpid' => $siteno->dpid, 'jobid' => "0", 'type' => 'none', 'msg' => yii::t('app', 'PAD还没有设置默认打印机'));
     }
     $listData = array("22" . Helper::setPrinterTitle(Company::getCompanyName($pad->dpid), 8));
     if (!empty($memo)) {
         array_push($listData, "br");
         array_push($listData, "11" . $memo);
     }
     array_push($listData, "00");
     array_push($listData, "br");
     $precode = $cprecode;
     //后面加切纸
     $sufcode = "0A0A0A0A0A0A1D5601";
     $printret = array();
     $orderid = "0000000000";
     $retccontent = Helper::printConetent($printer, $listData, $precode, $sufcode, $printserver, $orderid);
     return $retccontent;
 }
开发者ID:song-yuan,项目名称:wymenujp,代码行数:21,代码来源:Helper.php

示例14: act_getCompanyName

 public static function act_getCompanyName($where = ' 1 ')
 {
     if (!Auth::checkAccess(__CLASS__, __FUNCTION__)) {
         self::$errCode = '5905';
         self::$errMsg = 'You have no access to get Company name';
         echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg));
         return false;
     }
     $data = Company::getCompanyName($where);
     if (!$data) {
         self::$errCode = Company::$errCode;
         self::$errMsg = Company::$errMsg;
         echo json_encode(array('errCode' => self::$errCode, 'errMsg' => self::$errMsg));
         return false;
     }
     return $data;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:17,代码来源:company.action.php

示例15: Company

 function Add_Company(Company $company)
 {
     $Company_Name = $company->getCompanyName();
     $Company_Name_Amharic = $company->getCompanyNameAmharic();
     $query = "INSERT INTO Company (Name,Name_Amharic,Registration_Date) VALUES ('{$Company_Name}','{$Company_Name_Amharic}', Now())";
     $result = mysqli_query($this->getDbc(), $query);
     if ($result) {
         return TRUE;
     } else {
         return FALSE;
     }
 }
开发者ID:rogermule,项目名称:afalagi-web,代码行数:12,代码来源:Sub_Encoder_Controller.php


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