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


PHP Employee::GetEmployee方法代码示例

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


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

示例1: EmployeeOvertime

    public static function EmployeeOvertime()
    {
        $statement = TransactionVouchers::PayrollCategoryReport($_GET['sid'], $_GET['month'], 'Overtime');
        $employee = Employee::GetEmployee($_GET['sid']);
        echo '
				<div class="logo">
				  <h5 style="margin-bottom:-15px;margin-top:0px;font-size:14px;">Date: ' . date('d/m/Y') . '</h5>
				  <h4>OVERTIME: ' . $employee->name . '</h4>
				  <h5 style="margin-top:-10px">Month: ' . $_GET['month'] . '</h5>';
        echo '</div>

				<table class="table table-bordered table-striped" style="text-align:center;margin-left:0;margin-right:0;width:760px;font-size:12px;">
			      <thead class="title">
			        <tr>
			          <td>DATE</td>
			          <td>HOURS</td>
			          <td>RATE</td>
			          <td>AMOUNT</td>
			          <td>DESCRIPTION</td>
			        </tr>
			      </thead>
			      <tbody>';
        $tot = 0.0;
        foreach ($statement as $item) {
            $tot += $item['amount'];
            echo '<tr>
			      <td style="width:90px">' . $item['datetime'] . '</td>
			      <td style="width: 100px">' . $item['qty'] . '</td>
			      <td style="width: 100px"><script>document.writeln((' . $item['rate'] . ').formatMoney(2, \'.\', \',\'));</script></td>
			      <td style="width: 100px"><script>document.writeln((' . $item['amount'] . ').formatMoney(2, \'.\', \',\'));</script></td>
			      <td style="max-width: 220px;">' . $item['description'] . '</td>
			    </tr>';
        }
        echo '</tbody>
			    </table>
			    <div class="logo">
			    <p style="margin: 5px 0 0 5px">Total Advances: <b>Ksh. <script>document.writeln((' . $tot . ').formatMoney(2, \'.\', \',\'));</script></b></p>				    
			    </div>';
    }
开发者ID:xander-mbaka,项目名称:momentum,代码行数:39,代码来源:reports.php

示例2: getEmployee

 public function getEmployee($id)
 {
     if ($this->validateAdmin()) {
         echo json_encode(Employee::GetEmployee($id));
     } else {
         echo 0;
     }
 }
开发者ID:xander-mbaka,项目名称:momentum,代码行数:8,代码来源:index.php

示例3: __construct

 function __construct($id, $uname, $role, $category, $pid, $access)
 {
     $this->id = $id;
     $this->username = $uname;
     $this->access = $access;
     $this->role = Role::GetRole(intval($role));
     if ($category == "Employee") {
         $this->record = Employee::GetEmployee($pid);
     }
     if ($category == "Vendor") {
         $this->record = SystemVendor::GetVendor();
     }
 }
开发者ID:xander-mbaka,项目名称:momentum,代码行数:13,代码来源:LSOfficeDomain.php

示例4: __construct

 function __construct($id, $voucherId, $claimantId, $description, $ledgerId, $claimed, $adjusted)
 {
     $this->id = $id;
     $this->claimant = Employee::GetEmployee($claimantId);
     $this->voucherId = $voucherId;
     $this->description = $description;
     $this->ledger = Ledger::GetLedger($ledgerId);
     $this->claimed = $claimed;
     $this->adjusted = $adjusted;
 }
开发者ID:xander-mbaka,项目名称:momentum,代码行数:10,代码来源:DomainPrjMgt.php

示例5: GetUncleared

 public static function GetUncleared($empid)
 {
     $results = [];
     try {
         $sql = 'SELECT * FROM payslips WHERE party_id = ' . $empid . ' AND status != 2';
         $entries = DatabaseHandler::GetAll($sql);
         foreach ($entries as $entry) {
             $slip = new PaySlip(Employee::GetEmployee($entry['party_id']), $entry['month'], $entry['paid']);
             $slip->populate($entry['id']);
             $results[] = $slip;
         }
         return $results;
     } catch (Exception $e) {
         return false;
     }
 }
开发者ID:xander-mbaka,项目名称:momentum,代码行数:16,代码来源:DomainHRM.php


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