Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php class Albariuser extends Database { public $user_login; public $user_id; public $u..
Decoded Output download
<?php
class Albariuser extends Database { public $user_login; public $user_id; public $user_mobile; public $fullname; public $user_fname; public $login_time; public $ProTmpID; public $user_type; public $profile_img; public $location_id; public $sd_panel; public $sd_code; public function __construct() { parent::__construct(); if ($_SESSION["user_login"]) { $this->gen_fir = $_SESSION["gen_fir"]; $this->user_login = $_SESSION["user_login"]; $this->user_id = $_SESSION["user_id"]; $this->user_mobile = $_SESSION["user_mobile"]; $this->fullname = $_SESSION["fullname"]; $this->login_time = $_SESSION["login_time"]; $this->user_fname = $_SESSION["user_fname"]; $this->user_type = $_SESSION["user_type"]; $this->profile_img = $_SESSION["profile_img"]; $this->location_id = $_SESSION["location_id"]; $this->sd_panel = $_SESSION["sd_panel"]; $this->sd_code = $_SESSION["sd_code"]; } if ($_SESSION["ProTmpID"]) { $this->ProTmpID = $_SESSION["ProTmpID"]; } } function generate_fingerprint() { foreach (array("HTTP_HOST", "HTTP_ACCEPT", "REMOTE_ADDR", "SERVER_NAME", "HTTP_USER_AGENT") as $name) { $key[] = empty($_SERVER[$name]) ? NULL : $_SERVER[$name]; } $key[] = "/" . SITE_NAME . "/" . SITE_URL . "/" . session_id(); return md5(implode("\x0", $key)); } public function setLogin() { $_SESSION["gen_fir"] = $this->generate_fingerprint(); $_SESSION["user_login"] = true; if ($this->isPropertySet("user_id", "V")) { $_SESSION["user_id"] = $this->getProperty("user_id"); } if ($this->isPropertySet("user_mobile", "V")) { $_SESSION["user_mobile"] = $this->getProperty("user_mobile"); } if ($this->isPropertySet("login_time", "V")) { $_SESSION["login_time"] = $this->getProperty("login_time"); } if ($this->isPropertySet("fullname", "V")) { $_SESSION["fullname"] = $this->getProperty("fullname"); } if ($this->isPropertySet("user_fname", "V")) { $_SESSION["user_fname"] = $this->getProperty("user_fname"); } if ($this->isPropertySet("user_type", "V")) { $_SESSION["user_type"] = $this->getProperty("user_type"); } if ($this->isPropertySet("profile_img", "V")) { $_SESSION["profile_img"] = $this->getProperty("profile_img"); } if ($this->isPropertySet("location_id", "V")) { $_SESSION["location_id"] = $this->getProperty("location_id"); } if ($this->isPropertySet("sd_code", "V")) { $_SESSION["sd_code"] = $this->getProperty("sd_code"); } $_SESSION["sd_panel"] = "false"; } public function setSecurityCode() { $_SESSION["sd_panel"] = "true"; if ($this->isPropertySet("sd_code", "V")) { $_SESSION["sd_code"] = $this->getProperty("sd_code"); } } public function checkLogin() { if ($this->user_login && $this->gen_fir == $this->generate_fingerprint()) { return true; } else { return false; } } function getExtention($type) { if ($type == "image/jpeg" || $type == "image/jpg" || $type == "image/pjpeg") { return "jpg"; } elseif ($type == "image/png") { return "png"; } elseif ($type == "image/gif") { return "gif"; } } public function getImagename($type, $user_id = '') { $md5 = md5(time()); $filename = substr($md5, rand(5, 25), 5); if ($user_id != '') { $filename = $filename . "-" . $user_id . "." . $this->getExtention($type); } else { $filename = $filename . "." . $this->getExtention($type); } return $filename; } public function getDocumentName($filanname, $user_id = '') { $md5 = md5(time()); $filename = substr($md5, rand(5, 25), 5); if ($user_id != '') { $filename = $filename . "-" . $user_id . "." . end(explode(".", $filanname)); } else { $filename = $filename . "." . end(explode(".", $filanname)); } return $filename; } public function getExtentionValidate($type) { if ($type == "image/jpeg" || $type == "image/jpg" || $type == "image/pjpeg" || $type == "image/png" || $type == "image/gif") { return 1; } else { return 0; } } public function MonthList($Month_id) { $MonthList = ''; if ($Month_id == 1) { $MonthList .= "<option value="1" selected>Jan</option>"; } else { $MonthList .= "<option value="1">Jan</option>"; } if ($Month_id == 2) { $MonthList .= "<option value="2" selected>Feb</option>"; } else { $MonthList .= "<option value="2">Feb</option>"; } if ($Month_id == 3) { $MonthList .= "<option value="3" selected>Mar</option>"; } else { $MonthList .= "<option value="3">Mar</option>"; } if ($Month_id == 4) { $MonthList .= "<option value="4" selected>Apr</option>"; } else { $MonthList .= "<option value="4">Apr</option>"; } if ($Month_id == 5) { $MonthList .= "<option value="5" selected>May</option>"; } else { $MonthList .= "<option value="5">May</option>"; } if ($Month_id == 6) { $MonthList .= "<option value="6" selected>Jun</option>"; } else { $MonthList .= "<option value="6">Jun</option>"; } if ($Month_id == 7) { $MonthList .= "<option value="7" selected>Jul</option>"; } else { $MonthList .= "<option value="7">Jul</option>"; } if ($Month_id == 8) { $MonthList .= "<option value="8" selected>Aug</option>"; } else { $MonthList .= "<option value="8">Aug</option>"; } if ($Month_id == 9) { $MonthList .= "<option value="9" selected>Sep</option>"; } else { $MonthList .= "<option value="9">Sep</option>"; } if ($Month_id == 10) { $MonthList .= "<option value="10" selected>Oct</option>"; } else { $MonthList .= "<option value="10">Oct</option>"; } if ($Month_id == 11) { $MonthList .= "<option value="11" selected>Nov</option>"; } else { $MonthList .= "<option value="11">Nov</option>"; } if ($Month_id == 12) { $MonthList .= "<option value="12" selected>Dec</option>"; } else { $MonthList .= "<option value="12">Dec</option>"; } return $MonthList; } public function DayList($Day_id) { $Day_list = ''; for ($i = 1; $i <= 31; $i++) { if ($i == $Day_id) { $Day_list .= "<option value="" . $i . "" selected>" . $i . "</option>"; } else { $Day_list .= "<option value="" . $i . "">" . $i . "</option>"; } } return $Day_list; } public function YearList($Year_id) { $Year_list = ''; for ($y = 1905; $y <= 2011; $y++) { if ($y == $Year_id) { $Year_list .= "<option value="" . $y . "" selected>" . $y . "</option>"; } else { $Year_list .= "<option value="" . $y . "">" . $y . "</option>"; } } return $Year_list; } public function settmpReg() { if ($this->isPropertySet("ProTmpID", "V")) { $_SESSION["ProTmpID"] = $this->getProperty("ProTmpID"); } } public function UnRegTmp() { unset($_SESSION["ProTmpID"]); } public function CheckUserEmail() { $Sql = "SELECT \xa \x9 user_id,
\x9 \x9 user_email
\x9 \x9FROM\xa\x9\x9 \x9\x9rs_tbl_users
\x9\x9 WHERE \xa\x9 \x9\x91=1"; if ($this->isPropertySet("user_email", "V")) { $Sql .= " AND user_email='" . $this->getProperty("user_email") . "'"; } return $this->dbQuery($Sql); } public function CheckUserMobile() { $Sql = "SELECT \xa\x9\x9\x9 user_id,
\x9 \x9\x9user_mobile
\x9\x9\x9\x9FROM\xa \x9\x9\x9rs_tbl_users\xa \x9\x9 WHERE \xa \x9 \x91=1"; if ($this->isPropertySet("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } return $this->dbQuery($Sql); } public function CheckLeadPhone() { $Sql = "SELECT
\x9\x9\x9 \x9leads_id,\xa\x9 \x9 client_phone_number
\x9\x9 FROM\xa \x9\x9 rs_tbl_leads
\x9 \x9WHERE \xa \x9\x9\x91=1"; if ($this->isPropertySet("client_phone_number", "V")) { $Sql .= " AND client_phone_number='" . $this->getProperty("client_phone_number") . "'"; } return $this->dbQuery($Sql); } public function checkUserLogin() { $Sql = "SELECT \xa\x9\x9\x9 user_id,
\x9\x9\x9\x9user_email,\xa \x9\x9\x9\x9user_mobile,
\x9\x9\x9user_pass,
\x9 \x9\x9\x9user_fname,
\x9\x9user_lname,
\x9\x9\x9 CONCAT(user_fname,' ',user_lname) AS fullname,
\x9 user_type_id,
\x9\x9isActive,
\x9 \x9\x9login_required,\xa \x9\x9\x9 user_profile_img,
\x9\x9sms_verification,
\x9\x9 short_code,
\x9\x9 location_id\xa\x9\x9 FROM
\x9\x9 \x9rs_tbl_users\xa\x9\x9\x9 WHERE \xa\x9 \x9\x9\x91=1"; if ($this->isPropertySet("user_email", "V")) { $Sql .= " AND user_email='" . $this->getProperty("user_email") . "'"; } if ($this->isPropertySet("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } if ($this->isPropertySet("short_code", "V")) { $Sql .= " AND short_code='" . $this->getProperty("short_code") . "'"; } if ($this->isPropertySet("login_required", "V")) { $Sql .= " AND login_required='" . $this->getProperty("login_required") . "'"; } if ($this->isPropertySet("user_type_id", "V")) { $Sql .= " AND user_type_id=" . $this->getProperty("user_type_id"); } if ($this->isPropertySet("user_pass", "V")) { $Sql .= " AND user_pass='" . $this->getProperty("user_pass") . "'"; } return $this->dbQuery($Sql); } public function checkUserSecurityCode() { $Sql = "SELECT
\x9 \x9user_id,
\x9\x9 user_security_code
\x9FROM\xa \x9 rs_tbl_users
\x9 WHERE \xa\x9\x9 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; } if ($this->isPropertySet("user_security_code", "V")) { $Sql .= " AND user_security_code='" . $this->getProperty("user_security_code") . "'"; } return $this->dbQuery($Sql); } public function UserActivate() { $Sql = "UPDATE rs_tbl_users SET\xa \x9\x9 \x9isActive=1\xa \x9 WHERE
\x9\x9 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } return $this->dbQuery($Sql); } public function customerCombo($sel = '') { $opt = ''; $Sql = "SELECT
\x9\x9\x9user_id,\xa\x9\x9\x9 CONCAT(user_fname, ' ', user_lname) as fullname\xa \x9 FROM
\x9 rs_tbl_users
\x9\x9 \x9WHERE\xa \x9 1=1
\x9AND isActive=1 ORDER BY user_fname"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["user_id"] == $sel) { $opt .= "<option value="" . $rows["user_id"] . "" selected>" . $rows["fullname"] . "</option>
"; } else { $opt .= "<option value="" . $rows["user_id"] . "">" . $rows["fullname"] . "</option>
"; } } return $opt; } public function LeaveTypeCombo($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9 leave_type_id,\xa \x9 leave_name
\x9 FROM\xa\x9 \x9\x9\x9rs_tbl_leave_type\xa\x9 WHERE\xa \x9\x91=1 \xa \x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["leave_type_id"] == $sel) { $opt .= "<option value="" . $rows["leave_type_id"] . "" selected>" . $rows["leave_name"] . "</option>
"; } else { $opt .= "<option value="" . $rows["leave_type_id"] . "">" . $rows["leave_name"] . "</option>
"; } } return $opt; } public function YearlyLeaveTypeCombo($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9 yearly_leave_type_id,\xa\x9\x9\x9 yearly_leave_name\xa\x9 \x9\x9FROM\xa \x9 \x9rs_tbl_yearly_leave_type
\x9\x9\x9 WHERE\xa\x9 \x9 1=1
\x9\x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["yearly_leave_type_id"] == $sel) { $opt .= "<option value="" . $rows["yearly_leave_type_id"] . "" selected>" . $rows["yearly_leave_name"] . "</option>
"; } else { $opt .= "<option value="" . $rows["yearly_leave_type_id"] . "">" . $rows["yearly_leave_name"] . "</option>
"; } } return $opt; } public function EmployeeCombo($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9\x9 user_id,
\x9 \x9 CONCAT(user_fname, ' ', user_lname) as fullname
\x9 FROM\xa \x9 \x9rs_tbl_users
\x9\x9 WHERE
\x9\x9 1=1 \xa\x9\x9 \x9\x9AND isActive=1 AND user_type_id!=1 AND device_uid!=0 ORDER BY user_fname"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["user_id"] == $sel) { $opt .= "<option value="" . $rows["user_id"] . "" selected>" . $rows["fullname"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["user_id"] . "">" . $rows["fullname"] . "</option>
"; } } return $opt; } public function EmployeeComboDeviceId($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9\x9 \x9user_id,
\x9\x9 device_uid,\xa\x9 \x9 CONCAT(user_fname, ' ', user_lname) as fullname
\x9 \x9FROM\xa\x9 \x9 \x9rs_tbl_users\xa\x9 \x9 WHERE\xa\x9\x9\x9\x9\x91=1 \xa\x9\x9 \x9 AND isActive=1 AND user_type_id!=1 AND device_uid!=0"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["device_uid"] == $sel) { $opt .= "<option value="" . $rows["device_uid"] . "" selected>" . $rows["fullname"] . "</option>
"; } else { $opt .= "<option value="" . $rows["device_uid"] . "">" . $rows["fullname"] . "</option>
"; } } return $opt; } public function ShiftCombo($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9 \x9 shift_id,
\x9\x9\x9 shift_name
\x9 FROM\xa \x9\x9 rs_tbl_shifts
\x9 WHERE\xa\x9 \x9 1=1
AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["shift_id"] == $sel) { $opt .= "<option value="" . $rows["shift_id"] . "" selected>" . $rows["shift_name"] . "</option>
"; } else { $opt .= "<option value="" . $rows["shift_id"] . "">" . $rows["shift_name"] . "</option>\xa"; } } if ($sel != '' && $sel == 0) { $opt .= "<option value="0" selected>Off Day " . $sel . "</option>"; } else { $opt .= "<option value="0">Off Day " . $sel . "</option>"; } return $opt; } public function AgentCombo($location_id, $not_user_type_id) { $opt = ''; $Sql = "SELECT \xa user_id,
\x9\x9\x9 \x9CONCAT(user_fname, ' ', user_lname) as fullname,\xa\x9\x9 \x9user_type_id
\x9 FROM\xa \x9\x9\x9rs_tbl_users\xa\x9\x9\x9\x9WHERE\xa\x9\x9 1=1 \xa \x9AND isActive=1 AND location_id='" . $location_id . "' AND (user_type_id!='" . $not_user_type_id . "' and user_type_id!=1)"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["user_id"] == $sel) { $opt .= "<option value="" . $rows["user_id"] . "" selected>" . $rows["fullname"] . " => [" . UserType($rows["user_type_id"]) . "]</option>\xa"; } else { $opt .= "<option value="" . $rows["user_id"] . "">" . $rows["fullname"] . " => [" . UserType($rows["user_type_id"]) . "]</option>
"; } } return $opt; } public function AgentComboCpml($location_id, $not_user_type_id) { $opt = ''; $Sql = "SELECT \xa\x9 \x9\x9user_id,\xa \x9CONCAT(user_fname, ' ', user_lname) as fullname,
\x9\x9user_type_id\xa \x9 FROM
\x9\x9\x9 \x9rs_tbl_users
\x9 WHERE
\x9 \x91=1 \xa \x9\x9 \x9AND isActive=1 AND location_id='" . $location_id . "' AND user_type_id='" . $not_user_type_id . "'"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["user_id"] == $sel) { $opt .= "<option value="" . $rows["user_id"] . "" selected>" . $rows["fullname"] . " => [" . UserType($rows["user_type_id"]) . "]</option>
"; } else { $opt .= "<option value="" . $rows["user_id"] . "">" . $rows["fullname"] . " => [" . UserType($rows["user_type_id"]) . "]</option>\xa"; } } return $opt; } public function MogrationCombo() { $opt = ''; $Sql = "SELECT\xa\x9\x9\x9 \x9loc.location_id,\xa \x9 loc.location_name,
\x9\x9\x9\x9\x9loc.isActive,\xa \x9comp.company_name
\x9 \x9FROM
\x9 \x9 rs_tbl_location as loc
\x9\x9\x9 INNER JOIN rs_tbl_companies as comp
\x9\x9 ON (loc.company_id = comp.company_id)
\x9\x9 WHERE\xa \x9 \x91=1
\x9 \x9\x9AND loc.isActive=1 AND loc.location_id!='" . $this->location_id . "'"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["location_id"] == $sel) { $opt .= "<option value="" . $rows["location_id"] . "" selected>" . $rows["company_name"] . "->" . $rows["location_name"] . "</option>
"; } else { $opt .= "<option value="" . $rows["location_id"] . "">" . $rows["company_name"] . "->" . $rows["location_name"] . "</option>
"; } } return $opt; } public function LocationCombo($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9 \x9loc.location_id,
\x9loc.location_name,\xa\x9 \x9\x9\x9loc.isActive,\xa\x9 \x9comp.company_name
\x9 \x9FROM\xa \x9 rs_tbl_location as loc\xa\x9\x9 \x9\x9INNER JOIN rs_tbl_companies as comp\xa \x9 ON (loc.company_id = comp.company_id)\xa\x9\x9 \x9WHERE
\x9\x9 1=1 \xa\x9\x9\x9\x9 AND loc.isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["location_id"] == $sel) { $opt .= "<option value="" . $rows["location_id"] . "" selected>" . $rows["company_name"] . "->" . $rows["location_name"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["location_id"] . "">" . $rows["company_name"] . "->" . $rows["location_name"] . "</option>\xa"; } } return $opt; } public function LocationComboWTL($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9 \x9loc.location_id,
\x9\x9 loc.location_name,\xa\x9 \x9\x9 loc.isActive,\xa \x9 \x9\x9comp.company_name,
\x9\x9 \x9(SELECT count(user_id) FROM rs_tbl_users as u WHERE u.location_id=loc.location_id AND teamlead_status=2) as nooftl\xa\x9 \x9FROM\xa\x9 \x9rs_tbl_location as loc\xa INNER JOIN rs_tbl_companies as comp\xa \x9 \x9ON (loc.company_id = comp.company_id)
\x9 WHERE\xa \x9 \x9 1=1
\x9 AND loc.isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["location_id"] == $sel) { $opt .= "<option value="" . $rows["location_id"] . "" selected>" . $rows["company_name"] . "->" . $rows["location_name"] . " (No.of TL " . $rows["nooftl"] . ")" . "</option>
"; } else { $opt .= "<option value="" . $rows["location_id"] . "">" . $rows["company_name"] . "->" . $rows["location_name"] . " (No.of TL " . $rows["nooftl"] . ")" . "</option>\xa"; } } return $opt; } public function TotalemployeesCounter() { $Sql = "SELECT \xa \x9 count(user_id) as UserCounter\xa \x9 FROM\xa \x9\x9rs_tbl_users
\x9\x9\x9 WHERE\xa\x9 \x9\x9 1=1
\x9 \x9\x9AND user_type_id = 10 AND isActive = 1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["UserCounter"]; } public function TotalAssetsCounter() { $Sql = "SELECT \xa\x9 \x9 \x9count(asset_id) as AssetCounter
\x9FROM
\x9\x9 rs_tbl_assets
\x9 WHERE
\x9 \x9\x91=1 \xa\x9 \x9 \x9 AND isActive = 1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["AssetCounter"]; } public function findstatuscurrent($userid) { $Sql = "SELECT \xa \x9 count(user_vacation_id) as VacCounter\xa \x9\x9FROM\xa\x9\x9\x9 rs_tbl_vacations\xa \x9WHERE\xa\x9 \x9\x9 1=1
\x9 AND user_id = {$userid} AND CURDATE() between start_date and end_date; "; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["VacCounter"]; } public function TotalAssetsAssigned() { $Sql = "SELECT \xa\x9 \x9 count(asset_id) as AssetAssigned
\x9FROM\xa \x9 rs_tbl_assets
\x9\x9\x9WHERE
\x9 1=1
\x9\x9\x9 AND asset_status= 2 AND isActive = 1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["AssetAssigned"]; } public function TotalactempCounter() { $Sql = "SELECT
\x9 \x9count(user_id) as UserCountera\xa\x9 FROM\xa \x9\x9 rs_tbl_users
\x9 \x9 WHERE
\x9\x91=1
\x9\x9\x9\x9\x9AND user_type_id = 10 AND jobStatus= 1 AND isActive = 1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["UserCountera"]; } public function TotalvacempCounter() { $Sql = "SELECT
\x9\x9\x9\x9count(user_id) as UserCountera\xa \x9 FROM
\x9\x9\x9rs_tbl_users
\x9 \x9\x9WHERE
\x9 \x9\x9 1=1 \xa \x9 AND user_type_id = 10 AND jobStatus= 2 AND isActive = 1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["UserCountera"]; } public function TotalinacempCounter() { $Sql = "SELECT
\x9 count(user_id) as UserCountera
\x9 \x9 FROM\xa \x9 rs_tbl_users\xa \x9 \x9WHERE\xa\x9\x9 \x91=1 \xa \x9\x9 AND user_type_id = 10 AND isActive = 2"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["UserCountera"]; } public function LocationComboLocationBase($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9 loc.location_id,\xa\x9\x9 \x9loc.location_name,\xa \x9\x9 loc.isActive,
\x9 comp.company_name,
\x9\x9 (SELECT count(user_id) FROM rs_tbl_users as u WHERE u.location_id=loc.location_id AND teamlead_status=2) as nooftl\xa\x9 \x9\x9FROM
\x9 \x9 rs_tbl_location as loc
\x9\x9INNER JOIN rs_tbl_companies as comp\xa \x9\x9 ON (loc.company_id = comp.company_id)\xa WHERE
\x9 \x9 1=1
\x9 \x9AND loc.isActive=1 AND loc.location_id=" . $this->location_id; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["location_id"] == $sel) { $opt .= "<option value="" . $rows["location_id"] . "" selected>" . $rows["company_name"] . "->" . $rows["location_name"] . " (No.of TL " . $rows["nooftl"] . ")" . "</option>\xa"; } else { $opt .= "<option value="" . $rows["location_id"] . "">" . $rows["company_name"] . "->" . $rows["location_name"] . " (No.of TL " . $rows["nooftl"] . ")" . "</option>\xa"; } } return $opt; } public function GetTeamLeadID($sel = '') { $Sql = "SELECT
\x9\x9\x9\x9 user_id\xa\x9\x9\x9 FROM\xa\x9 \x9 \x9rs_tbl_users
\x9\x9\x9WHERE
\x9\x91=1 \xa\x9\x9\x9\x9\x9AND isActive=1 AND location_id=" . $this->location_id . " AND teamlead_status=2"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["user_id"]; } public function getiqprofession($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9\x9\x9iqprofession_id,
\x9\x9\x9 \x9iqprofession
FROM\xa\x9\x9\x9 rs_tbl_iqprofession\xa \x9\x9 WHERE
\x9\x9\x9\x91=1 \xa\x9 \x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["iqprofession_id"] == $sel) { $opt .= "<option value="" . $rows["iqprofession_id"] . "" selected>" . $rows["iqprofession"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["iqprofession_id"] . "">" . $rows["iqprofession"] . "</option>
"; } } return $opt; } public function getsubarea($sel = '') { $opt = ''; $Sql = "SELECT
\x9\x9\x9subarea_id,\xa \x9 subarea\xa\x9\x9\x9\x9FROM
\x9\x9\x9\x9\x9rs_tbl_subarea\xa \x9\x9WHERE\xa\x9\x9 \x91=1
\x9 \x9 \x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["subarea_id"] == $sel) { $opt .= "<option value="" . $rows["subarea_id"] . "" selected>" . $rows["subarea"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["subarea_id"] . "">" . $rows["subarea"] . "</option>\xa"; } } return $opt; } public function getorigunit($sel = '') { $opt = ''; $Sql = "SELECT\xa\x9 \x9 origunit_id,
\x9\x9 \x9 origunit\xa\x9\x9\x9 FROM\xa \x9\x9rs_tbl_origunit
WHERE\xa\x9\x9\x9 1=1 \xa\x9 \x9\x9\x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["origunit_id"] == $sel) { $opt .= "<option value="" . $rows["origunit_id"] . "" selected>" . $rows["origunit"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["origunit_id"] . "">" . $rows["origunit"] . "</option>
"; } } return $opt; } public function getloccode($sel = '') { $opt = ''; $Sql = "SELECT\xa\x9\x9\x9 \x9\x9loccode_id,\xa\x9\x9 \x9loccode\xa \x9 \x9FROM
\x9\x9\x9 rs_tbl_loccode
\x9 \x9\x9WHERE
\x91=1 \xa\x9\x9 \x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["loccode_id"] == $sel) { $opt .= "<option value="" . $rows["loccode_id"] . "" selected>" . $rows["loccode"] . "</option>
"; } else { $opt .= "<option value="" . $rows["loccode_id"] . "">" . $rows["loccode"] . "</option>
"; } } return $opt; } public function getAssetType($sel = '') { $opt = ''; $Sql = "SELECT
\x9 \x9\x9 \x9\x9asset_type_id,\xa\x9\x9 \x9 \x9\x9 asset_type\xa\x9 \x9 \x9 \x9\x9FROM\xa\x9\x9\x9\x9\x9 \x9\x9rs_tbl_assets_type
\x9 \x9\x9 \x9 WHERE\xa\x9\x9 \x9 \x9\x9 1=1 \xa \x9 \x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["asset_type_id"] == $sel) { $opt .= "<option value="" . $rows["asset_type_id"] . "" selected>" . $rows["asset_type"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["asset_type_id"] . "" disabled>" . $rows["asset_type"] . "</option>\xa"; } } return $opt; } public function getCatagories($sel = '') { $opt = ''; $Sql = "SELECT\xa\x9\x9 \x9\x9 \x9cat_id,
\x9\x9 \x9 cat_name
\x9\x9 FROM
\x9 \x9\x9rs_tbl_catagories\xa\x9\x9 \x9 \x9WHERE\xa\x9 \x9 \x9 1=1
\x9\x9\x9 \x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["cat_id"] == $sel) { $opt .= "<option value="" . $rows["cat_id"] . "" selected>" . $rows["cat_name"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["cat_id"] . "">" . $rows["cat_name"] . "</option>\xa"; } } return $opt; } public function getCompanies($sel = '') { $opt = ''; $Sql = "SELECT
\x9\x9\x9 \x9company_id,\xa\x9\x9\x9 \x9 company_name\xa \x9\x9\x9\x9 FROM\xa \x9\x9 tamimi_company\xa\x9\x9 \x9\x9 WHERE\xa \x9\x9 1=1
\x9 \x9 \x9 AND isActive=1 AND company_type=2"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["company_id"] == $sel) { $opt .= "<option value="" . $rows["company_id"] . "" selected>" . $rows["company_name"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["company_id"] . "">" . $rows["company_name"] . "</option>\xa"; } } return $opt; } public function getallCompanies($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9 \x9company_id,
\x9 \x9\x9 company_name
\x9FROM
\x9\x9\x9 tamimi_company\xa WHERE
\x9\x9 1=1
\x9 \x9 \x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["company_id"] == $sel) { $opt .= "<option value="" . $rows["company_id"] . "" selected>" . $rows["company_name"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["company_id"] . "">" . $rows["company_name"] . "</option>\xa"; } } return $opt; } public function getcostcenter($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9 \x9 costcenter_id,
\x9 \x9\x9costcenter
\x9 FROM\xa\x9\x9 \x9 \x9\x9rs_tbl_costcenter\xa\x9\x9 \x9 WHERE
\x9\x9 \x9\x91=1 \xa \x9 \x9\x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["costcenter_id"] == $sel) { $opt .= "<option value="" . $rows["costcenter_id"] . "" selected>" . $rows["costcenter"] . "</option>
"; } else { $opt .= "<option value="" . $rows["costcenter_id"] . "">" . $rows["costcenter"] . "</option>
"; } } return $opt; } public function getpayrollarea($sel = '') { $opt = ''; $Sql = "SELECT
\x9 \x9\x9\x9\x9\x9payrollarea_id,
\x9\x9 \x9\x9 \x9\x9\x9\x9payrollarea
\x9\x9 \x9 \x9 FROM\xa \x9\x9 \x9 rs_tbl_payrollarea
\x9\x9 \x9\x9 WHERE\xa\x9 \x9 \x9 \x9 \x9\x91=1 \xa \x9 \x9\x9\x9\x9 \x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["payrollarea_id"] == $sel) { $opt .= "<option value="" . $rows["payrollarea_id"] . "" selected>" . $rows["payrollarea"] . "</option>
"; } else { $opt .= "<option value="" . $rows["payrollarea_id"] . "">" . $rows["payrollarea"] . "</option>\xa"; } } return $opt; } public function getempnationality($sel = '') { $opt = ''; $Sql = "SELECT\xa\x9 \x9 \x9\x9\x9empnationality_id,\xa\x9 \x9 \x9\x9 \x9empnationality\xa \x9 \x9 \x9\x9 FROM\xa\x9 \x9 \x9\x9 \x9 rs_tbl_empnationality
\x9\x9 \x9 \x9 WHERE
\x9\x9 \x9 \x9\x9\x9\x91=1
\x9\x9\x9 \x9 \x9\x9\x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["empnationality_id"] == $sel) { $opt .= "<option value="" . $rows["empnationality_id"] . "" selected>" . $rows["empnationality"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["empnationality_id"] . "">" . $rows["empnationality"] . "</option>\xa"; } } return $opt; } public function Getcatagory_name($astcat_id) { $Sql = "SELECT
\x9\x9 \x9\x9\x9\x9\x9 tc.cat_id,\xa \x9 \x9 \x9 \x9\x9tc.cat_name,
\x9 \x9 \x9\x9\x9tc.isActive,\xa \x9\x9\x9 \x9\x9\x9ta.catagory_id
\x9 \x9 \x9 \x9FROM\xa \x9 \x9 \x9 rs_tbl_catagories as tc
\x9 \x9 \x9\x9 INNER JOIN rs_tbl_assets as ta\xa\x9\x9\x9\x9 \x9 \x9ON (tc.cat_id = ta.catagory_id)
\x9 \x9 \x9 WHERE\xa\x9\x9 \x9\x9 \x9\x9 1=1 \xa\x9 \x9\x9 \x9AND tc.isActive=1 AND tc.cat_id='" . $astcat_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["cat_name"]; } public function GetassetType_name($asttyp_id) { $Sql = "SELECT
\x9\x9\x9\x9\x9\x9\x9 asst.asset_type_id,
\x9 \x9\x9\x9 \x9 asst.asset_type,
\x9\x9 \x9\x9 \x9\x9asst.isActive,
\x9 \x9\x9\x9\x9\x9 tac.asset_type_id
\x9 \x9 FROM
\x9\x9\x9\x9\x9\x9\x9rs_tbl_assets_type as asst\xa \x9 \x9 \x9 \x9INNER JOIN rs_tbl_assets as tac\xa \x9 \x9\x9 ON (tac.asset_type_id = asst.asset_type_id )
\x9 \x9\x9\x9 \x9WHERE\xa \x9 \x9\x9\x9\x9\x9 1=1 \xa\x9\x9\x9\x9 \x9\x9\x9 AND asst.isActive=1 AND asst.asset_type_id='" . $asttyp_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["asset_type"]; } public function Getiqprofession_name($iqpro_id) { $Sql = "SELECT
\x9\x9\x9\x9\x9 \x9\x9 ip.iqprofession_id,
\x9\x9\x9 \x9\x9\x9\x9\x9 ip.iqprofession,\xa \x9 \x9\x9 \x9 \x9ip.isActive,\xa\x9\x9 \x9\x9 \x9\x9\x9 us.iqama_profession
\x9\x9\x9 \x9\x9\x9\x9FROM
\x9 \x9 \x9 \x9 \x9rs_tbl_iqprofession as ip
\x9 \x9\x9\x9 INNER JOIN rs_tbl_users as us
\x9\x9 \x9\x9\x9 \x9\x9 ON (ip.iqprofession_id = us.iqama_profession)\xa\x9\x9\x9\x9 \x9\x9 \x9WHERE
\x9 \x9 \x9\x9\x9\x9 1=1
\x9\x9 \x9 AND ip.isActive=1 AND ip.iqprofession_id='" . $iqpro_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["iqprofession"]; } public function Getsubarea_name($pass_id) { $Sql = "SELECT\xa \x9 \x9\x9\x9\x9 sa.subarea_id,\xa\x9\x9\x9\x9\x9 \x9 \x9\x9sa.subarea,\xa \x9\x9 \x9\x9sa.isActive,\xa \x9\x9\x9 \x9us.sub_area\xa\x9 \x9\x9\x9 \x9 FROM
\x9\x9\x9 rs_tbl_subarea as sa
\x9\x9\x9\x9\x9\x9\x9\x9 \x9INNER JOIN rs_tbl_users as us\xa\x9\x9 \x9 \x9 \x9\x9ON (sa.subarea_id = us.sub_area)
\x9 \x9\x9\x9 \x9\x9\x9WHERE
\x9\x9\x9\x9 \x9\x9 1=1 \xa \x9 \x9 \x9\x9AND sa.isActive=1 AND sa.subarea_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["subarea"]; } public function Getjobtitle_name($pass_id) { $Sql = "SELECT
\x9\x9\x9\x9 jt.job_title_id,
\x9\x9 \x9\x9\x9 jt.job_title,
\x9 \x9 \x9 \x9\x9jt.isActive,
\x9 \x9 \x9\x9\x9 \x9\x9us.user_designation\xa \x9\x9\x9 \x9 FROM\xa\x9 \x9\x9\x9\x9 rs_tbl_job_title as jt
\x9 \x9\x9 \x9\x9 INNER JOIN rs_tbl_users as us
\x9 \x9 \x9 \x9\x9ON (jt.job_title_id = us.user_designation)
\x9\x9\x9\x9 \x9WHERE\xa\x9\x9 \x9\x9\x9 \x9 1=1
\x9 \x9 \x9 \x9\x9AND jt.isActive=1 AND jt.job_title_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["job_title"]; } public function Getbrand_name($pass_id) { $Sql = "SELECT
\x9\x9 \x9\x9\x9\x9 ab.asset_brand_id,
\x9\x9 \x9\x9 \x9\x9\x9 ab.asset_brands,\xa\x9\x9 \x9 \x9 ab.isActive,\xa\x9\x9\x9 \x9 \x9\x9\x9ass.brand\xa \x9 \x9\x9\x9\x9FROM
\x9\x9 \x9\x9 \x9 rs_tbl_asset_brands as ab\xa\x9 \x9\x9 \x9 INNER JOIN rs_tbl_assets as ass
\x9 \x9 ON (ab.asset_brand_id = ass.brand)\xa\x9\x9\x9\x9\x9 \x9\x9WHERE\xa \x9\x9\x9 \x9\x9\x91=1
\x9 \x9 \x9 \x9AND ab.isActive=1 AND ab.asset_brand_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["asset_brands"]; } public function Getorigunit_name($pass_id) { $Sql = "SELECT
\x9\x9\x9\x9\x9 \x9\x9 ou.origunit_id,
\x9 \x9 \x9\x9\x9\x9 ou.origunit,\xa\x9\x9\x9\x9 \x9\x9 \x9ou.isActive,
\x9\x9 \x9 \x9 \x9us.orig_unit\xa \x9 \x9\x9\x9 FROM\xa\x9 \x9 \x9 \x9rs_tbl_origunit as ou
\x9 \x9\x9 \x9\x9\x9INNER JOIN rs_tbl_users as us
\x9\x9\x9\x9\x9 ON (ou.origunit_id = us.orig_unit)\xa\x9 \x9\x9 WHERE
\x9 \x9 \x9 1=1
\x9\x9 \x9 \x9 \x9AND ou.isActive=1 AND ou.origunit_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["origunit"]; } public function Getloccode_name($pass_id) { $Sql = "SELECT\xa\x9\x9\x9\x9 \x9 \x9 lc.loccode_id,\xa \x9 \x9\x9 \x9\x9lc.loccode,
\x9 \x9\x9\x9 \x9 \x9 lc.isActive,
\x9 \x9\x9\x9 \x9 \x9us.location_id\xa \x9 \x9\x9 \x9FROM
\x9\x9\x9\x9 \x9 rs_tbl_loccode as lc\xa\x9\x9 \x9\x9\x9\x9\x9\x9INNER JOIN rs_tbl_users as us
\x9 \x9 \x9 \x9 \x9\x9ON (lc.loccode_id = us.location_id)
\x9 \x9 \x9 \x9WHERE
\x9\x9 \x9 1=1 \xa \x9\x9\x9 \x9\x9\x9AND lc.isActive=1 AND lc.loccode_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["loccode"]; } public function Getcostcenter_name($pass_id) { $Sql = "SELECT\xa\x9\x9 \x9\x9\x9\x9\x9\x9 cc.costcenter_id,
\x9 \x9\x9\x9\x9\x9 \x9 cc.costcenter,
\x9\x9 cc.isActive,
\x9\x9\x9 \x9\x9\x9 us.cost_center
\x9\x9 \x9\x9\x9\x9FROM
\x9\x9\x9\x9\x9 \x9 rs_tbl_costcenter as cc
\x9 \x9 \x9\x9 \x9\x9INNER JOIN rs_tbl_users as us\xa\x9\x9\x9 \x9 \x9\x9 ON (cc.costcenter_id = us.cost_center)\xa \x9\x9 \x9 WHERE\xa\x9 \x9 \x9\x9 \x91=1
\x9 \x9 \x9AND cc.isActive=1 AND cc.costcenter_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["costcenter"]; } public function Getpayrollarea_name($pass_id) { $Sql = "SELECT
\x9 \x9 pp.payrollarea_id,
\x9 \x9 pp.payrollarea,
\x9\x9 \x9\x9 \x9pp.isActive,
\x9\x9 \x9\x9\x9 \x9 us.payroll_area
\x9\x9 FROM
\x9\x9\x9 \x9\x9\x9\x9rs_tbl_payrollarea as pp
\x9\x9\x9 \x9\x9 INNER JOIN rs_tbl_users as us\xa\x9\x9\x9\x9 \x9\x9\x9 \x9\x9ON (pp.payrollarea_id = us.payroll_area)
\x9 \x9 \x9\x9\x9 WHERE\xa\x9\x9\x9\x9 \x9 \x9 \x91=1
\x9 \x9 \x9 AND pp.isActive=1 AND pp.payrollarea_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["payrollarea"]; } public function Getempnationality_name($pass_id) { $Sql = "SELECT\xa\x9 \x9\x9 \x9\x9\x9\x9 en.empnationality_id,
\x9\x9 \x9 \x9\x9 \x9en.empnationality,\xa \x9 \x9 \x9\x9en.isActive,\xa\x9 us.user_nationality\xa \x9 \x9\x9 \x9 FROM\xa \x9 \x9\x9rs_tbl_empnationality as en
\x9\x9\x9 \x9\x9\x9 INNER JOIN rs_tbl_users as us
\x9\x9 \x9 \x9 \x9 ON (en.empnationality_id = us.user_nationality)
\x9\x9\x9 \x9\x9\x9WHERE\xa\x9\x9\x9 \x9\x9\x9\x9\x9\x91=1
\x9 \x9\x9\x9 \x9AND en.isActive=1 AND en.empnationality_id='" . $pass_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["empnationality"]; } public function CompanyCombo($sel = '') { $opt = ''; $Sql = "SELECT
\x9 \x9 \x9company_id,\xa company_name\xa \x9 FROM\xa rs_tbl_companies
\x9\x9\x9 WHERE\xa\x9 \x9 \x91=1 \xa\x9\x9 \x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["company_id"] == $sel) { $opt .= "<option value="" . $rows["company_id"] . "" selected>" . $rows["company_name"] . "</option>\xa"; } else { $opt .= "<option value="" . $rows["company_id"] . "">" . $rows["company_name"] . "</option>\xa"; } } return $opt; } public function GetLocation($location_id) { $Sql = "SELECT
\x9\x9\x9\x9 loc.location_id,
\x9 \x9 \x9loc.location_name,\xa \x9 \x9loc.isActive,\xa \x9\x9 \x9comp.company_name
\x9\x9\x9\x9FROM\xa\x9\x9\x9 \x9rs_tbl_location as loc\xa \x9\x9\x9 INNER JOIN rs_tbl_companies as comp\xa\x9 \x9ON (loc.company_id = comp.company_id)
\x9 WHERE\xa\x9\x9 \x9 1=1
\x9 AND loc.isActive=1 AND loc.location_id='" . $location_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["location_name"]; } public function JobTitleCombo($sel = '') { $opt = ''; $Sql = "SELECT
\x9 \x9\x9\x9job_title_id,
\x9\x9\x9\x9job_title
\x9\x9\x9\x9FROM\xa \x9\x9\x9 rs_tbl_job_title\xa\x9\x9 \x9WHERE\xa \x9\x9\x9 1=1 \xa\x9 \x9\x9AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["job_title_id"] == $sel) { $opt .= "<option value="" . $rows["job_title_id"] . "" selected>" . $rows["job_title"] . "</option>
"; } else { $opt .= "<option value="" . $rows["job_title_id"] . "">" . $rows["job_title"] . "</option>\xa"; } } return $opt; } public function BrandCombo($sel = '') { $opt = ''; $Sql = "SELECT\xa \x9\x9 asset_brand_id,
\x9\x9\x9\x9\x9asset_brands
\x9 FROM\xa\x9 \x9\x9rs_tbl_asset_brands
\x9\x9 WHERE
\x9 \x9\x9 1=1 \xa \x9\x9\x9 AND isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["asset_brand_id"] == $sel) { $opt .= "<option value="" . $rows["asset_brand_id"] . "" selected>" . $rows["asset_brands"] . "</option>
"; } else { $opt .= "<option value="" . $rows["asset_brand_id"] . "">" . $rows["asset_brands"] . "</option>\xa"; } } return $opt; } public function DepartmentCombo($sel = '') { $opt = ''; $Sql = "SELECT
\x9 \x9\x9dp.department_id,
\x9\x9\x9dp.user_id,\xa\x9\x9\x9\x9 dp.company_id,
\x9 \x9\x9dp.department_name,
\x9 \x9\x9\x9dp.isActive,\xa \x9 cp.company_name\xa\x9 \x9\x9FROM
\x9\x9rs_tbl_department as dp
\x9\x9\x9\x9 INNER JOIN rs_tbl_companies cp
\x9 \x9 \x9ON (dp.company_id = cp.company_id)\xa\x9 WHERE
\x9 \x9 1=1 \xa\x9\x9\x9\x9\x9AND dp.isActive=1"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["department_id"] == $sel) { $opt .= "<option value="" . $rows["department_id"] . "" selected>" . $rows["company_name"] . " -> " . $rows["department_name"] . "</option>
"; } else { $opt .= "<option value="" . $rows["department_id"] . "">" . $rows["company_name"] . " -> " . $rows["department_name"] . "</option>\xa"; } } return $opt; } public function GetComLocInfo($location_id) { $Sql = "SELECT
\x9loc.location_id,\xa \x9loc.location_name,
\x9 \x9 loc.isActive,\xa \x9\x9 \x9comp.company_name
\x9FROM
\x9 rs_tbl_location as loc
\x9\x9\x9\x9INNER JOIN rs_tbl_companies as comp
\x9 \x9 \x9ON (loc.company_id = comp.company_id)\xa \x9\x9WHERE\xa\x9 \x9\x9 1=1 \xa\x9 \x9\x9\x9AND loc.isActive=1 AND loc.location_id='" . $location_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["company_name"] . "/" . $rows["location_name"]; } public function GetComDeptInfo($department_id) { $Sql = "SELECT\xa\x9\x9 \x9dept.department_id,
\x9dept.department_name,\xa\x9\x9\x9\x9\x9dept.isActive,
\x9\x9\x9 \x9comp.company_name\xa \x9\x9 FROM\xa \x9\x9 \x9rs_tbl_department as dept\xa \x9\x9 INNER JOIN rs_tbl_companies as comp
\x9 \x9\x9\x9ON (dept.company_id = comp.company_id)
\x9 \x9\x9WHERE\xa\x9 \x91=1 \xa \x9\x9\x9 AND dept.isActive=1 AND dept.department_id='" . $department_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["company_name"] . "/" . $rows["department_name"]; } public function GetUserFullName($user_id) { $Sql = "SELECT
\x9 \x9 user_id,\xa \x9\x9 CONCAT(user_fname) AS fullname
\x9 \x9 FROM\xa \x9\x9\x9rs_tbl_users
\x9\x9WHERE
\x9\x9\x9\x91=1
\x9\x9\x9\x9 AND user_id='" . $user_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["fullname"]; } public function GetLocationId($user_id) { $Sql = "SELECT
\x9\x9\x9 user_id,
\x9\x9\x9\x9location_id AS userlocation\xa \x9 FROM
rs_tbl_users
\x9\x9 WHERE\xa\x9\x9\x9\x9\x91=1 \xa \x9 AND user_id='" . $user_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["userlocation"]; } public function Getcompanyname($user_id) { $Sql = "SELECT \xa \x9 company_id,\xa \x9\x9 company_name\xa \x9 FROM\xa \x9 \x9tamimi_company
\x9 \x9WHERE\xa\x9\x9\x9\x9\x91=1
\x9\x9\x9\x9 AND company_id='" . $user_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["company_name"]; } public function GetTeamLeadsCombo($sel = '') { $opt = ''; $Sql = "SELECT \xa \x9 \x9user_id,
\x9 \x9\x9CONCAT(user_fname,' ',user_lname) AS fullname\xa \x9\x9FROM\xa \x9\x9\x9 rs_tbl_users
\x9WHERE
\x9 \x91=1 \xa\x9\x9\x9\x9\x9 AND teamlead_status=2 AND location_id=" . $this->location_id . " AND user_id=" . $sel; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { $opt .= "<option value="" . $rows["user_id"] . "" selected>" . $rows["fullname"] . "</option>
"; } return $opt; } public function GetUserFullNameByDeviceId($Device_Uid) { $Sql = "SELECT \xa \x9\x9\x9device_uid,\xa\x9\x9 \x9\x9CONCAT(user_fname,' ',user_lname) AS fullname\xa\x9 \x9\x9FROM\xa \x9\x9\x9 rs_tbl_users
\x9 \x9WHERE\xa \x9 \x91=1
\x9 AND device_uid='" . $Device_Uid . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["fullname"]; } public function GetUserDeviceId($user_id) { $Sql = "SELECT \xa \x9 \x9\x9device_uid\xa\x9\x9 \x9FROM
rs_tbl_users
\x9 \x9WHERE
\x9 \x9 1=1
\x9\x9 \x9 AND user_id='" . $user_id . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["device_uid"]; } public function GetUserIdByDeviceId($device_uid) { $Sql = "SELECT \xa\x9 \x9 user_id
\x9 FROM\xa \x9 rs_tbl_users\xa \x9 WHERE\xa \x9\x9 \x91=1 \xa\x9\x9 \x9 AND device_uid='" . $device_uid . "'"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["user_id"]; } public function lstUsers() { $Sql = "SELECT
\x9\x9 user_id,\xa\x9 \x9\x9 enter_user_id,\xa\x9\x9\x9\x9\x9employee_id,
\x9 \x9\x9 iqama_profession,\xa\x9\x9\x9 \x9user_fname,\xa\x9\x9\x9 user_designation,\xa \x9 \x9orig_unit,
\x9 \x9 \x9location_id,
\x9 \x9cost_center,
\x9\x9\x9 payroll_area,
\x9\x9 \x9sub_area,
\x9\x9 \x9 user_gender,
\x9 \x9 user_nationality,\xa \x9\x9user_religion,
\x9\x9 \x9user_mobile,\xa\x9\x9 user_dob,\xa\x9\x9 \x9\x9iqama_no,
\x9\x9 \x9iqama_expiry,
\x9 \x9passport_no,
passport_expiry,
\x9 reg_date,
user_insurance,\xa \x9 \x9user_email,\xa\x9 \x9 licence_no,
\x9\x9gosi_no,
\x9\x9 \x9\x9contract_type,
\x9\x9jobStatus,\xa\x9 \x9\x9hire_date,\xa\x9\x9\x9 \x9user_profile_img,\xa \x9\x9cnic_front_side,\xa \x9 user_cv,\xa \x9 isActive,
\x9\x9\x9\x9 DATE_FORMAT(user_dob, '%m-%d') AS upcoming_dob\xa \x9\x9FROM\xa\x9\x9 \x9\x9rs_tbl_users
\x9\x9\x9 WHERE \xa\x9 \x9\x91=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("enter_user_id", "V")) { $Sql .= " AND enter_user_id=" . $this->getProperty("enter_user_id"); } if ($this->isPropertySet("employee_id", "V")) { $Sql .= " AND employee_id=" . $this->getProperty("employee_id"); } if ($this->isPropertySet("iqama_profession", "V")) { $Sql .= " AND iqama_profession=" . $this->getProperty("iqama_profession"); } if ($this->isPropertySet("user_id_not", "V")) { $Sql .= " AND user_id!=" . $this->getProperty("user_id_not"); } if ($this->isPropertySet("search_user", "V")) { $Sql .= " AND (LOWER(user_fname) LIKE '%" . $this->getProperty("search_user") . "%' OR LOWER(user_lname) LIKE '%" . $this->getProperty("search_user") . "%')"; } if ($this->isPropertySet("user_fname", "V")) { $Sql .= " AND user_fname='" . $this->getProperty("user_fname") . "'"; } if ($this->getProperty("user_designation", "V")) { $Sql .= " AND user_designation='" . $this->getProperty("user_designation") . "'"; } if ($this->getProperty("orig_unit", "V")) { $Sql .= " AND orig_unit='" . $this->getProperty("orig_unit") . "'"; } if ($this->getProperty("location_id", "V")) { $Sql .= " AND location_id='" . $this->getProperty("location_id") . "'"; } if ($this->getProperty("cost_center", "V")) { $Sql .= " AND cost_center='" . $this->getProperty("cost_center") . "'"; } if ($this->getProperty("user_type_id", "V")) { $Sql .= " AND user_type_id='" . $this->getProperty("user_type_id") . "'"; } if ($this->getProperty("payroll_area", "V")) { $Sql .= " AND payroll_area='" . $this->getProperty("payroll_area") . "'"; } if ($this->getProperty("sub_area", "V")) { $Sql .= " AND sub_area='" . $this->getProperty("sub_area") . "'"; } if ($this->getProperty("user_gender", "V")) { $Sql .= " AND user_gender='" . $this->getProperty("user_gender") . "'"; } if ($this->getProperty("user_nationality", "V")) { $Sql .= " AND user_nationality='" . $this->getProperty("user_nationality") . "'"; } if ($this->getProperty("user_religion", "V")) { $Sql .= " AND user_religion='" . $this->getProperty("user_religion") . "'"; } if ($this->getProperty("user_dob_up", "V")) { $Sql .= " AND DATE_FORMAT(user_dob, '%m-%d') >= '" . $this->getProperty("user_dob_up") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } if ($this->getProperty("user_dob", "V")) { $Sql .= " AND user_dob='" . $this->getProperty("user_dob") . "'"; } if ($this->getProperty("iqama_no", "V")) { $Sql .= " OR iqama_no='" . $this->getProperty("iqama_no") . "'"; } if ($this->getProperty("iqama_expiry", "V")) { $Sql .= " AND iqama_expiry='" . $this->getProperty("iqama_expiry") . "'"; } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND iqama_expiry BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->getProperty("passport_no", "V")) { $Sql .= " AND passport_no='" . $this->getProperty("passport_no") . "'"; } if ($this->getProperty("passport_expiry", "V")) { $Sql .= " AND passport_expiry='" . $this->getProperty("passport_expiry") . "'"; } if ($this->getProperty("passport_expiry", "V")) { $Sql .= " AND passport_expiry='" . $this->getProperty("passport_expiry") . "'"; } if ($this->getProperty("user_insurance", "V")) { $Sql .= " AND user_insurance='" . $this->getProperty("user_insurance") . "'"; } if ($this->getProperty("user_email", "V")) { $Sql .= " AND user_email='" . $this->getProperty("user_email") . "'"; } if ($this->getProperty("gosi_no", "V")) { $Sql .= " AND gosi_no='" . $this->getProperty("gosi_no") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssets() { $Sql = "SELECT
\x9 \x9asset_id,\xa \x9\x9 asset_name,
\x9\x9\x9\x9asset_status,
\x9\x9\x9 \x9manufacturer,\xa\x9 brand,
\x9 asset_no,\xa\x9 \x9 \x9modal_no,\xa\x9 \x9 serial_no,
\x9 \x9\x9 assset_img,
\x9 \x9 comments,\xa\x9\x9 \x9entery_id,
\x9\x9\x9 catagory_id,
\x9\x9\x9\x9asset_type_id,\xa \x9\x9\x9 asset_condition,
\x9 \x9entry_date,\xa\x9\x9 document_file_name,
\x9 document_file,\xa\x9\x9 \x9isActive
\x9 \x9\x9FROM\xa rs_tbl_assets \xa \x9 WHERE \xa \x9\x91=1"; if ($this->isPropertySet("asset_id", "V")) { $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); } if ($this->isPropertySet("asset_name", "V")) { $Sql .= " AND asset_name=" . $this->getProperty("asset_name"); } if ($this->isPropertySet("asset_status", "V")) { $Sql .= " AND asset_status=" . $this->getProperty("asset_status"); } if ($this->isPropertySet("manufacturer", "V")) { $Sql .= " AND manufacturer=" . $this->getProperty("manufacturer"); } if ($this->isPropertySet("search_user", "V")) { $Sql .= " AND (LOWER(asset_name) LIKE '%" . $this->getProperty("search_user") . "%')"; } if ($this->isPropertySet("brand", "V")) { $Sql .= " AND brand='" . $this->getProperty("brand") . "'"; } if ($this->getProperty("asset_no", "V")) { $Sql .= " AND asset_no='" . $this->getProperty("asset_no") . "'"; } if ($this->getProperty("modal_no", "V")) { $Sql .= " AND modal_no='" . $this->getProperty("modal_no") . "'"; } if ($this->getProperty("serial_no", "V")) { $Sql .= " AND serial_no='" . $this->getProperty("serial_no") . "'"; } if ($this->getProperty("assset_img", "V")) { $Sql .= " AND assset_img='" . $this->getProperty("assset_img") . "'"; } if ($this->getProperty("comments", "V")) { $Sql .= " AND comments='" . $this->getProperty("comments") . "'"; } if ($this->getProperty("entery_id", "V")) { $Sql .= " AND entery_id='" . $this->getProperty("entery_id") . "'"; } if ($this->getProperty("catagory_id", "V")) { $Sql .= " AND catagory_id='" . $this->getProperty("catagory_id") . "'"; } if ($this->getProperty("asset_type_id", "V")) { $Sql .= " AND asset_type_id='" . $this->getProperty("asset_type_id") . "'"; } if ($this->getProperty("asset_condition", "V")) { $Sql .= " AND asset_condition='" . $this->getProperty("asset_condition") . "'"; } if ($this->getProperty("entry_date", "V")) { $Sql .= " AND entry_date='" . $this->getProperty("entry_date") . "'"; } if ($this->getProperty("document_file_name", "V")) { $Sql .= " AND document_file_name='" . $this->getProperty("document_file_name") . "'"; } if ($this->getProperty("document_file", "V")) { $Sql .= " AND document_file='" . $this->getProperty("document_file") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstTamimicompany() { $Sql = "SELECT \xa \x9\x9\x9 company_id,\xa\x9\x9 \x9 company_name,
\x9 \x9 company_description,\xa company_president,\xa \x9\x9\x9president_info,\xa\x9 \x9\x9\x9\x9company_chairman,\xa\x9 \x9\x9 chairman_info,\xa \x9\x9 company_gm,\xa\x9 bord_of_directors,
\x9\x9\x9company_type,
\x9\x9\x9 \x9heirarchy_chart,\xa\x9\x9 \x9\x9document_file_name,\xa\x9\x9 \x9\x9\x9document_file,\xa \x9\x9 \x9\x9company_policy,
\x9\x9\x9\x9\x9company_terms,
\x9 \x9website_link,\xa\x9\x9 \x9 isActive\xa \x9 FROM
\x9tamimi_company
WHERE \xa \x9 \x91=1"; if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("company_name", "V")) { $Sql .= " AND company_name=" . $this->getProperty("company_name"); } if ($this->isPropertySet("company_type", "V")) { $Sql .= " AND company_type=" . $this->getProperty("company_type"); } if ($this->getProperty("heirarchy_chart", "V")) { $Sql .= " AND heirarchy_chart='" . $this->getProperty("heirarchy_chart") . "'"; } if ($this->getProperty("document_file_name", "V")) { $Sql .= " AND document_file_name='" . $this->getProperty("document_file_name") . "'"; } if ($this->getProperty("document_file", "V")) { $Sql .= " AND document_file='" . $this->getProperty("document_file") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstTamimiprojects() { $Sql = "SELECT
\x9 \x9 project_id,\xa \x9 company_id,\xa \x9\x9\x9\x9\x9project_name,
\x9 \x9 project_description,
\x9\x9 \x9 project_type,
\x9\x9\x9 start_date,
\x9\x9\x9 \x9\x9end_date,\xa \x9\x9\x9 completion_percentage,
\x9 \x9proect_manager,\xa \x9\x9\x9\x9core_team,\xa \x9 \x9project_status,\xa \x9 isActive\xa \x9 FROM\xa \x9\x9\x9tamimi_projects \xa \x9\x9 WHERE
\x9 \x9 1=1"; if ($this->isPropertySet("project_id", "V")) { $Sql .= " AND project_id=" . $this->getProperty("project_id"); } if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id=" . $this->getProperty("company_id"); } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssignAssets() { $Sql = "SELECT
\x9 assign_asset_id,\xa\x9\x9\x9\x9 asset_id,\xa\x9\x9\x9\x9 assign_to,
\x9 assign_by,\xa\x9\x9 \x9 current_status,\xa \x9\x9 assign_date,
\x9 \x9 assign_time,
\x9 document_file_name,
\x9 \x9 document_file,\xa \x9\x9 isActive
\x9 \x9 FROM
\x9 rs_tbl_assets_assign
\x9 \x9 WHERE
\x9\x9 \x91=1"; if ($this->isPropertySet("assign_asset_id", "V")) { $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); } if ($this->isPropertySet("asset_id", "V")) { $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); } if ($this->isPropertySet("assign_to", "V")) { $Sql .= " AND assign_to=" . $this->getProperty("assign_to"); } if ($this->isPropertySet("assign_by", "V")) { $Sql .= " AND assign_by=" . $this->getProperty("assign_by"); } if ($this->isPropertySet("search_user", "V")) { $Sql .= " AND (LOWER(asset_name) LIKE '%" . $this->getProperty("search_user") . "%')"; } if ($this->isPropertySet("current_status", "V")) { $Sql .= " AND current_status='" . $this->getProperty("current_status") . "'"; } if ($this->getProperty("assign_date", "V")) { $Sql .= " AND assign_date='" . $this->getProperty("assign_date") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstReturnAssets() { $Sql = "SELECT \xa \x9\x9\x9return_asset_id,
\x9\x9 \x9assign_asset_id,
\x9\x9 \x9asset_id,
\x9 received_by,\xa\x9 \x9current_status,\xa \x9\x9 returned_date,
\x9 returned_condition,\xa\x9\x9 \x9isActive
\x9 FROM
\x9 \x9rs_tbl_return_asset
\x9 \x9WHERE \xa\x9\x9 \x91=1"; if ($this->isPropertySet("return_asset_id", "V")) { $Sql .= " AND return_asset_id=" . $this->getProperty("return_asset_id"); } if ($this->isPropertySet("assign_asset_id", "V")) { $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); } if ($this->isPropertySet("asset_id", "V")) { $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); } if ($this->isPropertySet("received_by", "V")) { $Sql .= " AND received_by=" . $this->getProperty("received_by"); } if ($this->isPropertySet("current_status", "V")) { $Sql .= " AND current_status=" . $this->getProperty("current_status"); } if ($this->isPropertySet("returned_date", "V")) { $Sql .= " AND returned_date='" . $this->getProperty("returned_date") . "'"; } if ($this->getProperty("returned_condition", "V")) { $Sql .= " AND returned_condition='" . $this->getProperty("returned_condition") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUsersdocexpired() { $Sql = "SELECT
\x9 \x9user_id,\xa\x9\x9 enter_user_id,\xa \x9\x9 \x9employee_id,\xa \x9 \x9user_designation,
\x9 \x9iqama_profession,\xa \x9\x9\x9 user_dob,
\x9\x9\x9\x9\x9user_fname,
\x9\x9iqama_no,
\x9 \x9 iqama_expiry,\xa \x9 passport_no,
\x9\x9\x9\x9passport_expiry,
\x9 \x9 isActive
\x9 \x9FROM\xa\x9\x9\x9\x9 rs_tbl_users
\x9 WHERE \xa\x9 \x9\x9 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("enter_user_id", "V")) { $Sql .= " AND enter_user_id=" . $this->getProperty("enter_user_id"); } if ($this->getProperty("passport_no", "V")) { $Sql .= " AND passport_no='" . $this->getProperty("passport_no") . "'"; } if ($this->getProperty("iqama_expiry", "V")) { $Sql .= " AND iqama_expiry <'" . $this->getProperty("iqama_expiry") . "'"; } if ($this->getProperty("passport_expiry", "V")) { $Sql .= " AND passport_expiry <'" . $this->getProperty("passport_expiry") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } return $this->dbQuery($Sql); } public function lstUserspasexp() { $Sql = "SELECT
\x9\x9\x9\x9\x9user_id,\xa \x9\x9 \x9enter_user_id,\xa\x9\x9 employee_id,
\x9\x9 \x9 iqama_profession,
\x9 \x9 user_designation,\xa \x9 user_dob,\xa\x9\x9 \x9 user_fname,\xa \x9 \x9passport_no,
\x9 passport_expiry,\xa\x9\x9 isActive,
\x9 \x9\x9DATE_FORMAT(user_dob, '%m-%d') AS upcoming_dob
\x9 \x9FROM
\x9 rs_tbl_users
\x9 \x9WHERE \xa 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("enter_user_id", "V")) { $Sql .= " AND enter_user_id=" . $this->getProperty("enter_user_id"); } if ($this->isPropertySet("employee_id", "V")) { $Sql .= " AND employee_id=" . $this->getProperty("employee_id"); } if ($this->isPropertySet("iqama_profession", "V")) { $Sql .= " AND iqama_profession=" . $this->getProperty("iqama_profession"); } if ($this->isPropertySet("user_id_not", "V")) { $Sql .= " AND user_id!=" . $this->getProperty("user_id_not"); } if ($this->isPropertySet("search_user", "V")) { $Sql .= " AND (LOWER(user_fname) LIKE '%" . $this->getProperty("search_user") . "%' OR LOWER(user_lname) LIKE '%" . $this->getProperty("search_user") . "%')"; } if ($this->isPropertySet("user_fname", "V")) { $Sql .= " AND user_fname='" . $this->getProperty("user_fname") . "'"; } if ($this->getProperty("user_dob_up", "V")) { $Sql .= " AND DATE_FORMAT(user_dob, '%m-%d') >= '" . $this->getProperty("user_dob_up") . "'"; } if ($this->getProperty("isNot", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isNot") . "'"; } if ($this->getProperty("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } if ($this->getProperty("user_dob", "V")) { $Sql .= " AND user_dob='" . $this->getProperty("user_dob") . "'"; } if ($this->getProperty("passport_no", "V")) { $Sql .= " AND passport_no='" . $this->getProperty("passport_no") . "'"; } if ($this->getProperty("passport_expiry", "V")) { $Sql .= " AND passport_expiry='" . $this->getProperty("passport_expiry") . "'"; } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND passport_expiry BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserLog() { $Sql = "SELECT \xa \x9\x9 log_id,
\x9 \x9 user_id,\xa \x9\x9activity_detail,\xa\x9 \x9 location_id,
\x9\x9 \x9isActive,\xa\x9 \x9\x9 entery_date\xa \x9 FROM
\x9\x9\x9rs_tbl_user_log \xa\x9 \x9WHERE \xa\x9 \x9\x91=1"; if ($this->getProperty("user_id", "V")) { $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; } if ($this->getProperty("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->getProperty("location_id", "V")) { $Sql .= " AND location_id='" . $this->getProperty("location_id") . "'"; } if ($this->isPropertySet("stat_date", "V")) { $Sql .= " AND entery_date >='" . $this->getProperty("stat_date") . "'"; } if ($this->isPropertySet("end_date", "V")) { $Sql .= " AND entery_date <='" . $this->getProperty("end_date") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstMailbox() { $Sql = "SELECT \xa\x9\x9 \x9\x9mail_id,\xa\x9 \x9\x9\x9sender_id,\xa\x9\x9\x9 receiver_id,
\x9 \x9 mail_subject,
\x9mail_detail,\xa\x9\x9 mail_isfile,\xa is_read,
\x9\x9\x9\x9\x9read_date,\xa\x9 sender_del,
\x9\x9\x9receiver_del,
\x9 \x9is_draft,
\x9\x9\x9 entery_date
\x9\x9\x9 FROM
\x9\x9 rs_tbl_mailbox\xa\x9 \x9 WHERE \xa \x9 1=1"; if ($this->isPropertySet("mail_id", "V")) { $Sql .= " AND mail_id=" . $this->getProperty("mail_id"); } if ($this->isPropertySet("sender_id", "V")) { $Sql .= " AND sender_id=" . $this->getProperty("sender_id"); } if ($this->isPropertySet("receiver_id", "V")) { $Sql .= " AND receiver_id=" . $this->getProperty("receiver_id"); } if ($this->isPropertySet("mail_isfile", "V")) { $Sql .= " AND mail_isfile=" . $this->getProperty("mail_isfile"); } if ($this->isPropertySet("is_read", "V")) { $Sql .= " AND is_read=" . $this->getProperty("is_read"); } if ($this->isPropertySet("sender_del", "V")) { $Sql .= " AND sender_del=" . $this->getProperty("sender_del"); } if ($this->isPropertySet("receiver_del", "V")) { $Sql .= " AND receiver_del=" . $this->getProperty("receiver_del"); } if ($this->isPropertySet("is_draft", "V")) { $Sql .= " AND is_draft=" . $this->getProperty("is_draft"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstMailboxFiles() { $Sql = "SELECT \xa\x9\x9 \x9 mail_file_id,\xa \x9mail_id,
\x9\x9\x9 \x9mail_filetype,\xa\x9 \x9\x9\x9mail_filename,\xa\x9 \x9 isActive,
\x9 \x9\x9entery_date\xa \x9 FROM\xa \x9rs_tbl_mailbox_file\xa \x9\x9\x9WHERE \xa \x9\x9 1=1"; if ($this->isPropertySet("mail_file_id", "V")) { $Sql .= " AND mail_file_id=" . $this->getProperty("mail_file_id"); } if ($this->isPropertySet("mail_id", "V")) { $Sql .= " AND mail_id=" . $this->getProperty("mail_id"); } if ($this->isPropertySet("mail_filetype", "V")) { $Sql .= " AND mail_filetype='" . $this->getProperty("mail_filetype") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstMailboxFileType() { $Sql = "SELECT \xa \x9\x9 filetype_id,
\x9\x9 \x9 user_id,\xa type_name,\xa\x9 type_icon,\xa \x9\x9 \x9isActive,
\x9 \x9\x9 entery_date
\x9\x9\x9FROM\xa\x9 \x9 \x9rs_tbl_mailbox_file_type
\x9\x9 WHERE \xa \x9 \x9 1=1"; if ($this->isPropertySet("filetype_id", "V")) { $Sql .= " AND filetype_id=" . $this->getProperty("filetype_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function emailExists() { $Sql = "SELECT \xa\x9\x9\x9\x9\x9user_id,
\x9 \x9 user_email
\x9 \x9FROM
\x9\x9\x9\x9 rs_tbl_users\xa\x9 \x9WHERE \xa\x9\x9\x9 \x91=1"; if ($this->isPropertySet("user_email", "V")) { $Sql .= " AND user_email='" . $this->getProperty("user_email") . "'"; } if ($this->isPropertySet("user_type_id", "V")) { $Sql .= " AND user_type_id=" . $this->getProperty("user_type_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id!=" . $this->getProperty("user_id"); } return $this->dbQuery($Sql); } public function MobileExists() { $Sql = "SELECT \xa\x9 \x9\x9user_id,
\x9\x9\x9 user_mobile
FROM
\x9\x9 \x9rs_tbl_users
\x9\x9\x9\x9WHERE \xa 1=1"; if ($this->isPropertySet("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } if ($this->isPropertySet("user_type_id", "V")) { $Sql .= " AND user_type_id=" . $this->getProperty("user_type_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id!=" . $this->getProperty("user_id"); } return $this->dbQuery($Sql); } public function checkPassword() { $Sql = "SELECT\xa\x9\x9\x9 \x9user_id\xa\x9 \x9\x9FROM\xa \x9\x9 rs_tbl_users
\x9\x9 WHERE
\x9\x9\x9\x9\x91=1"; $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; $Sql .= " AND user_pass='" . $this->getProperty("user_pass") . "'"; $this->dbQuery($Sql); if ($this->totalRecords() >= 1) { return true; } else { return false; } } public function checkSecurityCode() { $Sql = "SELECT
\x9 \x9user_id\xa \x9 \x9FROM\xa \x9\x9\x9 rs_tbl_users
\x9\x9\x9\x9WHERE
\x9 1=1"; $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; $Sql .= " AND user_security_code='" . $this->getProperty("user_security_code") . "'"; $this->dbQuery($Sql); if ($this->totalRecords() >= 1) { return true; } else { return false; } } public function VwTopSellerAgents() { $Sql = "SELECT \xa\x9 \x9\x9\x9user_id,
\x9 \x9user_fname,
\x9\x9\x9 user_lname,\xa \x9 \x9aplic_counter\xa\x9\x9 \x9FROM\xa \x9vw_top_agent_seller_list\xa\x9 \x9WHERE \xa\x9\x9\x9\x9\x91=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstLocation() { $Sql = "SELECT
\x9 loc.location_id,
\x9 \x9loc.user_id,
\x9 \x9 \x9loc.company_id,
\x9 \x9\x9loc.location_name,\xa \x9 loc.location_address,\xa\x9 \x9\x9 loc.location_phone_1,
\x9\x9\x9 \x9loc.location_phone_2,\xa\x9\x9\x9\x9\x9loc.location_phone_3,\xa \x9loc.location_fax,
\x9\x9loc.isActive,
\x9\x9 comp.company_name\xa FROM
\x9\x9 rs_tbl_location as loc
\x9 INNER JOIN rs_tbl_companies as comp\xa \x9 \x9\x9 ON (loc.company_id = comp.company_id)\xa\x9\x9\x9 WHERE
\x9 \x9\x91=1"; if ($this->isPropertySet("location_id", "V")) { $Sql .= " AND loc.location_id=" . $this->getProperty("location_id"); } if ($this->isPropertySet("location_id_not", "V")) { $Sql .= " AND loc.location_id!=" . $this->getProperty("location_id_not"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND loc.user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND loc.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstofCatagoryCount() { $Sql = "SELECT\xa \x9\x9tc.cat_name,
\x9count(ta.asset_id) as catcounter,
\x9 tc.isActive\xa\x9\x9\x9\x9FROM\xa\x9 \x9 rs_tbl_assets as ta\xa\x9\x9 \x9 INNER JOIN rs_tbl_catagories as tc\xa \x9\x9 ON (ta.catagory_id = tc.cat_id)
\x9\x9 WHERE \xa\x9\x9\x9 1=1"; if ($this->isPropertySet("cat_id", "V")) { $Sql .= " AND tc.cat_id=" . $this->getProperty("cat_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND tc.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstofAssetCount() { $Sql = "SELECT
\x9\x9\x9 tc.cat_name,
\x9\x9 count(ta.cat_id) as typecounter,
\x9 \x9tc.isActive
\x9\x9\x9 FROM\xa rs_tbl_assets_type as ta\xa\x9\x9\x9 INNER JOIN rs_tbl_catagories as tc
\x9 \x9\x9\x9\x9ON (ta.cat_id = tc.cat_id)\xa \x9 \x9WHERE
\x9 \x9\x9 1=1"; if ($this->isPropertySet("cat_id", "V")) { $Sql .= " AND tc.cat_id=" . $this->getProperty("cat_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND tc.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserMigration() { $Sql = "SELECT
\x9 migration_id,
\x9 \x9 \x9user_id,
\x9 \x9 migration_user_id,
\x9\x9\x9\x9current_location_id,
\x9\x9\x9 migration_location_id,
\x9 migration_reason,
\x9\x9\x9 migration_date,
\x9\x9\x9 \x9entery_date,\xa\x9\x9\x9\x9 isActive\xa \x9\x9 FROM
\x9\x9rs_tbl_user_migration\xa\x9\x9 \x9WHERE
\x9 \x9\x91=1"; if ($this->isPropertySet("migration_id", "V")) { $Sql .= " AND migration_id=" . $this->getProperty("migration_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("migration_user_id", "V")) { $Sql .= " AND migration_user_id=" . $this->getProperty("migration_user_id"); } if ($this->isPropertySet("current_location_id", "V")) { $Sql .= " AND current_location_id=" . $this->getProperty("current_location_id"); } if ($this->isPropertySet("migration_location_id", "V")) { $Sql .= " AND migration_location_id=" . $this->getProperty("migration_location_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstCompanies() { $Sql = "SELECT \xa \x9 company_id,\xa \x9 user_id,
\x9company_name,
\x9\x9 \x9\x9entery_date,
\x9\x9\x9\x9 isActive
\x9\x9 FROM\xa \x9\x9\x9 rs_tbl_companies
\x9 \x9 WHERE \xa \x9 1=1"; if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstcompanyevents() { $Sql = "SELECT
\x9\x9\x9event_id,
\x9\x9\x9 event_type,
\x9\x9 company_id,
\x9\x9\x9\x9event_name,\xa\x9 \x9\x9 event_description,
\x9 \x9 \x9event_date,
\x9\x9 isActive\xa\x9\x9 FROM\xa \x9\x9tamimi_events
\x9\x9\x9WHERE \xa \x9 \x91=1"; if ($this->isPropertySet("event_id", "V")) { $Sql .= " AND event_id=" . $this->getProperty("event_id"); } if ($this->isPropertySet("event_type", "V")) { $Sql .= " AND event_type=" . $this->getProperty("event_type"); } if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstDepartments() { $Sql = "SELECT
\x9\x9\x9dp.department_id,\xa \x9 dp.user_id,\xa\x9\x9\x9\x9 dp.company_id,
\x9\x9 \x9dp.department_name,\xa\x9 \x9\x9 dp.isActive,
\x9 \x9\x9 cp.company_name\xa \x9\x9FROM\xa\x9\x9 \x9 rs_tbl_department as dp
\x9\x9 INNER JOIN rs_tbl_companies cp
\x9\x9 ON (dp.company_id = cp.company_id)
\x9 WHERE
\x9\x9\x9 1=1"; if ($this->isPropertySet("department_id", "V")) { $Sql .= " AND dp.department_id=" . $this->getProperty("department_id"); } if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND dp.company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND dp.user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND dp.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstJobTitle() { $Sql = "SELECT
\x9 \x9job_title_id,\xa\x9\x9 \x9 user_id,\xa\x9\x9\x9 \x9job_title,\xa \x9 \x9entery_date,
\x9 isActive
\x9 FROM\xa\x9\x9\x9 \x9rs_tbl_job_title
\x9\x9 \x9WHERE \xa\x9 \x9 1=1"; if ($this->isPropertySet("job_title_id", "V")) { $Sql .= " AND job_title_id=" . $this->getProperty("job_title_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssetBrands() { $Sql = "SELECT \xa\x9 \x9\x9\x9asset_brand_id,
user_id,\xa\x9\x9\x9\x9\x9asset_brands,
\x9 \x9\x9 entry_date,
\x9 \x9\x9 isActive\xa \x9 \x9FROM
\x9\x9rs_tbl_asset_brands\xa \x9\x9\x9WHERE
\x9 \x9\x9\x91=1"; if ($this->isPropertySet("asset_brand_id", "V")) { $Sql .= " AND asset_brand_id=" . $this->getProperty("asset_brand_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssetsCat() { $Sql = "SELECT \xa\x9 \x9\x9cat_id ,\xa \x9\x9user_id,\xa\x9 \x9 cat_name,
\x9\x9\x9\x9\x9entry_date,
\x9\x9\x9\x9 isActive
\x9 \x9\x9FROM\xa\x9\x9\x9 rs_tbl_catagories\xa \x9WHERE \xa\x9\x9\x9 1=1"; if ($this->isPropertySet("cat_id", "V")) { $Sql .= " AND cat_id=" . $this->getProperty("cat_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssetsType() { $Sql = "SELECT
\x9 asset_type_id,
\x9 \x9\x9\x9cat_id ,
\x9 \x9 \x9user_id,
\x9 \x9\x9 asset_type,\xa \x9\x9 entry_date,
\x9\x9 isActive\xa \x9\x9\x9FROM
\x9\x9\x9 rs_tbl_assets_type
\x9 \x9WHERE
\x9\x9 1=1"; if ($this->isPropertySet("asset_type_id", "V")) { $Sql .= " AND asset_type_id=" . $this->getProperty("asset_type_id"); } if ($this->isPropertySet("cat_id", "V")) { $Sql .= " AND cat_id=" . $this->getProperty("cat_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("asset_type", "V")) { $Sql .= " AND asset_type=" . $this->getProperty("asset_type"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstprojectimages() { $Sql = "SELECT
\x9\x9 image_id,\xa\x9\x9\x9 project_id,\xa\x9 \x9 \x9project_image,\xa\x9 \x9\x9isActive
\x9\x9 FROM\xa\x9\x9 tamimi_project_images
\x9\x9 WHERE \xa\x9\x9\x9 \x91=1"; if ($this->isPropertySet("image_id", "V")) { $Sql .= " AND image_id=" . $this->getProperty("image_id"); } if ($this->isPropertySet("project_id", "V")) { $Sql .= " AND project_id=" . $this->getProperty("project_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lsteventimages() { $Sql = "SELECT
\x9\x9\x9\x9image_id,\xa\x9\x9\x9\x9\x9event_id,\xa \x9 event_image,
\x9\x9 isActive
\x9\x9\x9 FROM
\x9 \x9tamimi_event_images\xa \x9\x9 WHERE \xa\x9 \x9\x9 1=1"; if ($this->isPropertySet("image_id", "V")) { $Sql .= " AND image_id=" . $this->getProperty("image_id"); } if ($this->isPropertySet("event_id", "V")) { $Sql .= " AND event_id=" . $this->getProperty("event_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstiqprofession() { $Sql = "SELECT
\x9\x9 iqprofession_id,
\x9 \x9\x9user_id,
\x9 \x9 iqprofession,\xa\x9\x9 \x9\x9entery_date,
\x9 \x9 isActive\xa \x9 FROM
\x9rs_tbl_iqprofession\xa \x9 WHERE
\x9 \x9\x9\x91=1"; if ($this->isPropertySet("iqprofession_id", "V")) { $Sql .= " AND iqprofession_id=" . $this->getProperty("iqprofession_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstsubarea() { $Sql = "SELECT
\x9 subarea_id,
\x9\x9\x9\x9user_id,\xa\x9\x9 \x9 subarea,
\x9 entery_date,\xa\x9 isActive
\x9 \x9FROM\xa\x9 \x9\x9rs_tbl_subarea
\x9\x9 WHERE \xa\x9\x9 \x9 1=1"; if ($this->isPropertySet("subarea_id", "V")) { $Sql .= " AND subarea_id=" . $this->getProperty("subarea_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstorigunit() { $Sql = "SELECT \xa \x9\x9 origunit_id,\xa\x9\x9 user_id,
\x9 \x9\x9 origunit,
\x9\x9\x9 entery_date,
\x9\x9\x9\x9 isActive\xa\x9 FROM\xa \x9 rs_tbl_origunit\xa \x9 WHERE
\x9\x9\x9 1=1"; if ($this->isPropertySet("origunit_id", "V")) { $Sql .= " AND origunit_id=" . $this->getProperty("origunit_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstloccode() { $Sql = "SELECT
\x9 loccode_id,\xa \x9 \x9user_id,\xa \x9 \x9\x9loccode,
\x9\x9 \x9entery_date,
\x9\x9 \x9 isActive
\x9 \x9\x9FROM\xa \x9\x9 rs_tbl_loccode
\x9 \x9WHERE
\x9\x9 1=1"; if ($this->isPropertySet("loccode_id", "V")) { $Sql .= " AND loccode_id=" . $this->getProperty("loccode_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstcostcenter() { $Sql = "SELECT
\x9\x9\x9 costcenter_id,
\x9\x9 \x9\x9user_id,\xa \x9 \x9costcenter,
\x9\x9\x9\x9 entery_date,\xa \x9isActive\xa FROM\xa\x9 rs_tbl_costcenter\xa \x9WHERE
\x9\x9 \x91=1"; if ($this->isPropertySet("costcenter_id", "V")) { $Sql .= " AND costcenter_id=" . $this->getProperty("costcenter_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstpayrollarea() { $Sql = "SELECT \xa \x9 payrollarea_id,\xa \x9 user_id,
\x9\x9 \x9payrollarea,
\x9 \x9 entery_date,
\x9\x9\x9 isActive\xa\x9 \x9\x9FROM
\x9\x9\x9\x9rs_tbl_payrollarea\xa\x9 \x9\x9WHERE \xa\x9 \x9 1=1"; if ($this->isPropertySet("payrollarea_id", "V")) { $Sql .= " AND payrollarea_id=" . $this->getProperty("payrollarea_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstempnationality() { $Sql = "SELECT \xa \x9\x9\x9\x9empnationality_id,\xa\x9 \x9 user_id,\xa\x9 \x9 empnationality,\xa \x9\x9 entery_date,\xa \x9isActive
\x9 \x9FROM
\x9 \x9rs_tbl_empnationality\xa\x9\x9 \x9WHERE
1=1"; if ($this->isPropertySet("empnationality_id", "V")) { $Sql .= " AND empnationality_id=" . $this->getProperty("empnationality_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstShifts() { $Sql = "SELECT \xa \x9 \x9shift_id,\xa\x9 \x9 \x9user_id,\xa \x9shift_name,
\x9 \x9\x9shift_st,\xa\x9 \x9 \x9shift_et,\xa \x9 shift_ligt,
\x9 shift_logt,\xa\x9 \x9\x9 shift_eigt,
\x9\x9 \x9shift_eogt,\xa\x9 \x9 shift_bt,\xa\x9\x9 \x9\x9full_late_in,\xa\x9 \x9\x9\x9half_late_in,\xa \x9 qutr_late_in,\xa \x9\x9 full_off_bef,\xa\x9 half_off_bef_start,
\x9 \x9half_off_bef_end,\xa \x9 \x9 qutr_off_bef_start,\xa\x9\x9\x9\x9\x9qutr_off_bef_end,\xa \x9 \x9 ten_off_bef_start,\xa\x9\x9 ten_off_bef_end,
\x9\x9 \x9\x9ligt_status,
\x9\x9 \x9\x9eogt_status,\xa\x9 \x9\x9entery_date,\xa\x9\x9 \x9\x9isActive\xa\x9 \x9 FROM
\x9\x9 \x9rs_tbl_shifts
WHERE
\x9\x9\x9 1=1"; if ($this->isPropertySet("shift_id", "V")) { $Sql .= " AND shift_id=" . $this->getProperty("shift_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstLeaveTypes() { $Sql = "SELECT \xa \x9\x9leave_type_id,\xa\x9 \x9user_id,
\x9\x9\x9\x9\x9leave_name,\xa \x9 \x9\x9entery_date,\xa\x9 \x9\x9isActive
\x9\x9 FROM\xa \x9\x9rs_tbl_leave_type\xa\x9\x9\x9\x9WHERE
1=1"; if ($this->isPropertySet("leave_type_id", "V")) { $Sql .= " AND leave_type_id=" . $this->getProperty("leave_type_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstHolidays() { $Sql = "SELECT \xa \x9 \x9 holiday_id,\xa \x9\x9 \x9user_id,
\x9\x9\x9holiday_name,\xa\x9\x9 \x9holiday_sd,\xa\x9\x9\x9\x9 holiday_ed,
\x9\x9\x9entery_date,
isActive
\x9 FROM\xa\x9 \x9\x9 rs_tbl_holidays
\x9WHERE \xa\x9\x9 \x9\x91=1"; if ($this->isPropertySet("holiday_id", "V")) { $Sql .= " AND holiday_id=" . $this->getProperty("holiday_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND holiday_sd BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->isPropertySet("holiday_sd", "V")) { $Sql .= " AND holiday_sd='" . $this->getProperty("holiday_sd") . "'"; } if ($this->isPropertySet("holiday_sd_up", "V")) { $Sql .= " AND holiday_sd >= '" . $this->getProperty("holiday_sd_up") . "'"; } if ($this->isPropertySet("holiday_ed", "V")) { $Sql .= " AND holiday_ed='" . $this->getProperty("holiday_ed") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstYearlyLeaveType() { $Sql = "SELECT \xa\x9 \x9 yearly_leave_type_id,
\x9\x9 \x9 user_id,
\x9\x9\x9\x9yearly_leave_name,
\x9 number_of_leave,\xa \x9\x9\x9 entery_date,
\x9\x9\x9 \x9isActive,\xa\x9 \x9yearly_leave_type\xa\x9\x9\x9 FROM\xa \x9 \x9\x9rs_tbl_yearly_leave_type\xa\x9\x9\x9\x9WHERE
\x9\x9 \x91=1"; if ($this->isPropertySet("yearly_leave_type_id", "V")) { $Sql .= " AND yearly_leave_type_id=" . $this->getProperty("yearly_leave_type_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("yearly_leave_type", "V")) { $Sql .= " AND yearly_leave_type=" . $this->getProperty("yearly_leave_type"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserLeaveRequest() { $Sql = "SELECT
\x9 \x9\x9\x9ulr.leave_request_id,\xa \x9\x9 \x9ulr.user_id,\xa\x9\x9 ulr.location_id,
ulr.leave_type_id,\xa \x9\x9 ulr.yearly_leave_id,\xa \x9\x9\x9ulr.leave_reason,\xa \x9 ulr.leave_of,
\x9\x9\x9\x9\x9ulr.leave_sd,\xa\x9\x9 ulr.leave_ed,
\x9\x9\x9\x9ulr.forward_director,\xa\x9 ulr.company_id,
\x9 \x9ulr.department_id,\xa \x9\x9\x9\x9ulr.leave_status,\xa \x9\x9\x9\x9ulr.hr_id,\xa \x9 \x9ulr.entery_date,
\x9\x9 \x9ulr.isActive,
\x9\x9 ulr.noofleave,\xa lt.leave_name,\xa\x9 \x9\x9\x9ylt.yearly_leave_name,
\x9\x9\x9\x9\x9ylt.yearly_leave_type\xa\x9\x9 \x9FROM
\x9 \x9\x9 rs_tbl_user_leave_request as ulr
\x9 INNER JOIN rs_tbl_leave_type as lt
\x9 \x9 \x9ON (ulr.leave_type_id = lt.leave_type_id)\xa \x9\x9INNER JOIN rs_tbl_yearly_leave_type as ylt\xa \x9 \x9ON (ulr.yearly_leave_id = ylt.yearly_leave_type_id)\xa \x9\x9 WHERE \xa\x9 \x9 \x91=1"; if ($this->isPropertySet("leave_request_id", "V")) { $Sql .= " AND ulr.leave_request_id=" . $this->getProperty("leave_request_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND ulr.user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("user_id_not", "V")) { $Sql .= " AND ulr.user_id!=" . $this->getProperty("user_id_not"); } if ($this->isPropertySet("leave_sd_up", "V")) { $Sql .= " AND ulr.leave_sd >='" . $this->getProperty("leave_sd_up") . "'"; } if ($this->isPropertySet("leave_ed_dw", "V")) { $Sql .= " AND ulr.leave_ed <='" . $this->getProperty("leave_ed_dw") . "'"; } if ($this->isPropertySet("location_id", "V")) { $Sql .= " AND ulr.location_id=" . $this->getProperty("location_id"); } if ($this->isPropertySet("leave_of", "V")) { $Sql .= " AND ulr.leave_of=" . $this->getProperty("leave_of"); } if ($this->isPropertySet("leave_type_id", "V")) { $Sql .= " AND ulr.leave_type_id=" . $this->getProperty("leave_type_id"); } if ($this->isPropertySet("forward_director", "V")) { $Sql .= " AND ulr.forward_director=" . $this->getProperty("forward_director"); } if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND ulr.company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("department_id", "V")) { $Sql .= " AND ulr.department_id=" . $this->getProperty("department_id"); } if ($this->getProperty("department_id_array", "V")) { $Sql .= " AND ulr.department_id IN (" . $this->getProperty("department_id_array") . ")"; } if ($this->isPropertySet("leave_status", "V")) { $Sql .= " AND ulr.leave_status=" . $this->getProperty("leave_status"); } if ($this->isPropertySet("hr_id", "V")) { $Sql .= " AND ulr.hr_id=" . $this->getProperty("hr_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND ulr.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("isActive_not", "V")) { $Sql .= " AND ulr.isActive!=" . $this->getProperty("isActive_not"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstLeads() { $Sql = "SELECT
\x9leads_id,\xa\x9 \x9\x9 dmm_user_id,\xa\x9\x9\x9 client_name,\xa \x9 client_phone_number,\xa client_email,
\x9\x9\x9 client_message,
\x9 \x9 lead_date,
\x9\x9 \x9lead_from_id,\xa\x9\x9 \x9 entery_datetime,
\x9\x9 rm_user_id,\xa \x9 \x9rm_lead_status,
\x9\x9 rm_lead_view_datetime,\xa \x9 \x9rm_action_datetime,\xa \x9 rm_lead_fwd_status,
\x9\x9\x9 \x9rm_lead_fwd_datetime,\xa\x9\x9 \x9assign_location_id,\xa\x9 \x9 assign_team_lead_id,
\x9\x9\x9 \x9assign_teamlead_datetime,
\x9 \x9assign_agent_status,
\x9 \x9 assign_datetime,\xa\x9 isActive,
\x9 \x9lead_status\xa \x9FROM\xa \x9\x9 rs_tbl_leads\xa\x9 \x9WHERE \xa\x9 1=1"; if ($this->isPropertySet("leads_id", "V")) { $Sql .= " AND leads_id=" . $this->getProperty("leads_id"); } if ($this->isPropertySet("dmm_user_id", "V")) { $Sql .= " AND dmm_user_id=" . $this->getProperty("dmm_user_id"); } if ($this->isPropertySet("lead_from_id", "V")) { $Sql .= " AND lead_from_id=" . $this->getProperty("lead_from_id"); } if ($this->isPropertySet("rm_user_id", "V")) { $Sql .= " AND rm_user_id=" . $this->getProperty("rm_user_id"); } if ($this->isPropertySet("rm_lead_status", "V")) { $Sql .= " AND rm_lead_status=" . $this->getProperty("rm_lead_status"); } if ($this->isPropertySet("rm_lead_status_not", "V")) { $Sql .= " AND rm_lead_status!=" . $this->getProperty("rm_lead_status_not"); } if ($this->isPropertySet("rm_lead_fwd_status", "V")) { $Sql .= " AND rm_lead_fwd_status=" . $this->getProperty("rm_lead_fwd_status"); } if ($this->isPropertySet("assign_location_id", "V")) { $Sql .= " AND assign_location_id=" . $this->getProperty("assign_location_id"); } if ($this->isPropertySet("assign_team_lead_id", "V")) { $Sql .= " AND assign_team_lead_id=" . $this->getProperty("assign_team_lead_id"); } if ($this->isPropertySet("assign_agent_status", "V")) { $Sql .= " AND assign_agent_status=" . $this->getProperty("assign_agent_status"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("lead_status", "V")) { $Sql .= " AND lead_status=" . $this->getProperty("lead_status"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstCountAssigndLeads() { $Sql = "SELECT
\x9 rs_tbl_leads.assign_location_id
\x9\x9 \x9\x9, rs_tbl_leads_assign.assign_action_status
\x9\x9 \x9, rs_tbl_leads.isActive\xa \x9\x9\x9FROM
\x9\x9rs_tbl_leads\xa\x9 \x9INNER JOIN rs_tbl_leads_assign
\x9 \x9 ON (rs_tbl_leads.leads_id = rs_tbl_leads_assign.lead_id)
\x9\x9 \x9WHERE
\x9\x9\x9 \x91=1"; if ($this->isPropertySet("assign_location_id", "V")) { $Sql .= " AND rs_tbl_leads.assign_location_id=" . $this->getProperty("assign_location_id"); } if ($this->isPropertySet("assign_action_status", "V")) { $Sql .= " AND rs_tbl_leads_assign.assign_action_status=" . $this->getProperty("assign_action_status"); } return $this->dbQuery($Sql); } public function lstLeadsAssign() { $Sql = "SELECT\xa\x9 \x9las.assign_lead_id,\xa\x9\x9 las.lead_id,\xa\x9\x9 \x9las.assign_user_id,
\x9 las.assign_from_user_id,
\x9\x9 las.assign_by,
\x9 \x9las.assign_date,\xa\x9\x9 \x9\x9las.assign_time,
\x9\x9las.assign_lead_status,\xa\x9\x9\x9 \x9las.entery_date,\xa \x9 \x9las.isActive,
\x9\x9 las.assign_action_status,
\x9\x9\x9 las.action_date,\xa\x9\x9 \x9\x9las.action_time,
\x9\x9\x9\x9 la.assign_location_id
\x9 FROM
\x9 \x9rs_tbl_leads_assign as las\xa\x9 \x9\x9 INNER JOIN rs_tbl_leads la\xa\x9\x9 \x9ON (las.lead_id = la.leads_id)\xa \x9 WHERE
\x9\x9\x9\x91=1"; if ($this->isPropertySet("assign_lead_id", "V")) { $Sql .= " AND las.assign_lead_id=" . $this->getProperty("assign_lead_id"); } if ($this->isPropertySet("lead_id", "V")) { $Sql .= " AND las.lead_id=" . $this->getProperty("lead_id"); } if ($this->isPropertySet("assign_user_id", "V")) { $Sql .= " AND las.assign_user_id=" . $this->getProperty("assign_user_id"); } if ($this->isPropertySet("assign_lead_status", "V")) { $Sql .= " AND las.assign_lead_status=" . $this->getProperty("assign_lead_status"); } if ($this->isPropertySet("assign_lead_status_not", "V")) { $Sql .= " AND las.assign_lead_status!=" . $this->getProperty("assign_lead_status_not"); } if ($this->isPropertySet("assign_from_user_id", "V")) { $Sql .= " AND las.assign_from_user_id=" . $this->getProperty("assign_from_user_id"); } if ($this->isPropertySet("assign_by", "V")) { $Sql .= " AND las.assign_by=" . $this->getProperty("assign_by"); } if ($this->isPropertySet("assign_date", "V")) { $Sql .= " AND las.assign_date='" . $this->getProperty("assign_date") . "'"; } if ($this->isPropertySet("assign_time", "V")) { $Sql .= " AND las.assign_time='" . $this->getProperty("assign_time") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND las.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("assign_action_status", "V")) { $Sql .= " AND las.assign_action_status=" . $this->getProperty("assign_action_status"); } if ($this->isPropertySet("assign_location_id", "V")) { $Sql .= " AND la.assign_location_id=" . $this->getProperty("assign_location_id"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAssignAssetscomb() { $Sql = "SELECT\xa\x9\x9\x9 lass.assign_asset_id,
\x9 \x9\x9 lass.asset_id,
\x9 \x9 lass.assign_to,
\x9\x9 \x9lass.assign_by,\xa\x9 \x9 \x9lass.current_status,\xa \x9lass.assign_date,
\x9\x9 lass.document_file_name,
\x9 \x9\x9 lass.document_file,\xa \x9\x9\x9 lass.isActive,\xa\x9\x9\x9\x9\x9ad.asset_name,
\x9 \x9 ad.asset_status,
\x9\x9 \x9 ad.manufacturer,
\x9 ad.brand,
\x9 \x9ad.asset_no,
\x9\x9\x9\x9 ad.serial_no,\xa \x9\x9\x9ad.catagory_id,
\x9 ad.asset_type_id,\xa \x9\x9\x9 ad.asset_condition
\x9 \x9FROM\xa\x9\x9\x9 rs_tbl_assets_assign as lass
\x9\x9\x9\x9INNER JOIN rs_tbl_assets ad
\x9 \x9 \x9 ON (lass.asset_id = ad.asset_id)\xa\x9\x9\x9\x9WHERE \xa 1=1"; if ($this->isPropertySet("assign_asset_id", "V")) { $Sql .= " AND lass.assign_asset_id=" . $this->getProperty("assign_asset_id"); } if ($this->isPropertySet("asset_id", "V")) { $Sql .= " AND lass.asset_id=" . $this->getProperty("asset_id"); } if ($this->isPropertySet("assign_to", "V")) { $Sql .= " AND lass.assign_to=" . $this->getProperty("assign_to"); } if ($this->isPropertySet("assign_by", "V")) { $Sql .= " AND lass.assign_by=" . $this->getProperty("assign_by"); } if ($this->isPropertySet("current_status", "V")) { $Sql .= " AND lass.current_status=" . $this->getProperty("current_status"); } if ($this->isPropertySet("assign_date", "V")) { $Sql .= " AND lass.assign_date=" . $this->getProperty("assign_date"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND lass.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("serial_no", "V")) { $Sql .= " AND ad.serial_no=" . $this->getProperty("serial_no"); } if ($this->isPropertySet("catagory_id", "V")) { $Sql .= " AND ad.catagory_id='" . $this->getProperty("catagory_id") . "'"; } if ($this->isPropertySet("asset_type_id", "V")) { $Sql .= " AND ad.asset_type_id=" . $this->getProperty("asset_type_id"); } if ($this->isPropertySet("asset_condition", "V")) { $Sql .= " AND ad.asset_condition=" . $this->getProperty("asset_condition"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstReturnAssetscomb() { $Sql = "SELECT\xa \x9\x9\x9lra.assign_asset_id,
\x9 lra.asset_id,\xa\x9\x9 \x9\x9lra.received_by,\xa \x9 lra.returned_date,\xa\x9\x9 \x9lra.return_reason,\xa\x9\x9\x9 \x9lra.document_file,
\x9 \x9\x9lra.isActive,
\x9\x9 \x9 ad.asset_name,\xa \x9ad.asset_status,
\x9 \x9ad.manufacturer,\xa\x9 \x9ad.brand,\xa\x9\x9 \x9ad.asset_no,
\x9 ad.serial_no,
\x9\x9 \x9ad.catagory_id,\xa\x9\x9\x9 \x9ad.asset_type_id,
\x9\x9\x9ad.asset_condition\xa\x9\x9 \x9FROM
\x9 \x9rs_tbl_return_asset as lra
\x9\x9\x9 INNER JOIN rs_tbl_assets ad
\x9\x9\x9\x9ON (lra.asset_id = ad.asset_id)\xa\x9\x9 \x9WHERE \xa \x9 \x91=1"; if ($this->isPropertySet("assign_asset_id", "V")) { $Sql .= " AND lra.assign_asset_id=" . $this->getProperty("assign_asset_id"); } if ($this->isPropertySet("asset_id", "V")) { $Sql .= " AND lra.asset_id=" . $this->getProperty("asset_id"); } if ($this->isPropertySet("received_by", "V")) { $Sql .= " AND lra.received_by=" . $this->getProperty("received_by"); } if ($this->isPropertySet("returned_date", "V")) { $Sql .= " AND lra.returned_date=" . $this->getProperty("returned_date"); } if ($this->isPropertySet("return_reason", "V")) { $Sql .= " AND lra.return_reason=" . $this->getProperty("return_reason"); } if ($this->isPropertySet("serial_no", "V")) { $Sql .= " AND ad.serial_no=" . $this->getProperty("serial_no"); } if ($this->isPropertySet("catagory_id", "V")) { $Sql .= " AND ad.catagory_id='" . $this->getProperty("catagory_id") . "'"; } if ($this->isPropertySet("asset_type_id", "V")) { $Sql .= " AND ad.asset_type_id=" . $this->getProperty("asset_type_id"); } if ($this->isPropertySet("asset_condition", "V")) { $Sql .= " AND ad.asset_condition=" . $this->getProperty("asset_condition"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstLeadComments() { $Sql = "SELECT
\x9 lead_comment_id,\xa\x9 \x9\x9 leads_id,\xa \x9 \x9\x9assign_lead_id,\xa\x9\x9\x9 \x9user_id,
\x9 \x9lead_comment,\xa \x9\x9entery_date,
assign_lead_status,
\x9 \x9isActive\xa\x9 \x9\x9FROM\xa \x9 rs_tbl_lead_comments\xa \x9\x9 WHERE \xa\x9 1=1"; if ($this->isPropertySet("lead_comment_id", "V")) { $Sql .= " AND lead_comment_id=" . $this->getProperty("lead_comment_id"); } if ($this->isPropertySet("leads_id", "V")) { $Sql .= " AND leads_id=" . $this->getProperty("leads_id"); } if ($this->isPropertySet("assign_lead_id", "V")) { $Sql .= " AND assign_lead_id=" . $this->getProperty("assign_lead_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAgentAssignLeads() { $Sql = "SELECT\xa\x9\x9 \x9 la.assign_lead_id,\xa \x9 la.lead_id,\xa \x9 la.assign_user_id,
\x9\x9 \x9la.assign_from_user_id,
\x9\x9\x9\x9 la.assign_by,
\x9\x9\x9 la.assign_date,
\x9\x9 \x9 la.assign_time,\xa\x9 \x9\x9 la.assign_lead_status,
\x9 \x9la.entery_date,
\x9\x9 la.isActive,
\x9 \x9 la.assign_action_status,\xa\x9\x9\x9 la.action_date,\xa \x9\x9la.action_time,\xa \x9 \x9 l.dmm_user_id,
\x9\x9 \x9\x9l.client_name,
\x9\x9 \x9l.client_phone_number,
\x9 l.client_email,
\x9\x9 \x9 l.client_message,\xa \x9\x9\x9 l.lead_from_id,\xa \x9\x9 l.rm_user_id,\xa\x9 \x9\x9\x9l.rm_lead_status,\xa \x9 l.rm_lead_view_datetime,
\x9\x9 l.rm_action_datetime,\xa l.rm_lead_fwd_status,
\x9 l.rm_lead_fwd_datetime,\xa\x9\x9\x9\x9 l.assign_location_id,\xa \x9l.assign_team_lead_id,
\x9l.assign_agent_status,\xa \x9 \x9 l.assign_datetime,
\x9 \x9l.lead_status
\x9 FROM\xa\x9\x9\x9 \x9rs_tbl_leads_assign as la
\x9\x9INNER JOIN rs_tbl_leads l
\x9 \x9 \x9 ON (la.lead_id = l.leads_id)
\x9\x9\x9WHERE
\x9 \x9\x9\x91=1"; if ($this->isPropertySet("assign_lead_id", "V")) { $Sql .= " AND la.assign_lead_id=" . $this->getProperty("assign_lead_id"); } if ($this->isPropertySet("lead_id", "V")) { $Sql .= " AND la.lead_id=" . $this->getProperty("lead_id"); } if ($this->isPropertySet("assign_user_id", "V")) { $Sql .= " AND la.assign_user_id=" . $this->getProperty("assign_user_id"); } if ($this->isPropertySet("assign_lead_status", "V")) { $Sql .= " AND la.assign_lead_status=" . $this->getProperty("assign_lead_status"); } if ($this->isPropertySet("assign_lead_status_not", "V")) { $Sql .= " AND la.assign_lead_status!=" . $this->getProperty("assign_lead_status_not"); } if ($this->isPropertySet("assign_from_user_id", "V")) { $Sql .= " AND la.assign_from_user_id=" . $this->getProperty("assign_from_user_id"); } if ($this->isPropertySet("assign_by", "V")) { $Sql .= " AND la.assign_by=" . $this->getProperty("assign_by"); } if ($this->isPropertySet("assign_date", "V")) { $Sql .= " AND la.assign_date='" . $this->getProperty("assign_date") . "'"; } if ($this->isPropertySet("assign_time", "V")) { $Sql .= " AND la.assign_time='" . $this->getProperty("assign_time") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND la.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("assign_lead_status", "V")) { $Sql .= " AND la.assign_lead_status=" . $this->getProperty("assign_lead_status"); } if ($this->isPropertySet("assign_action_status", "V")) { $Sql .= " AND la.assign_action_status=" . $this->getProperty("assign_action_status"); } if ($this->isPropertySet("dmm_user_id", "V")) { $Sql .= " AND l.dmm_user_id=" . $this->getProperty("dmm_user_id"); } if ($this->isPropertySet("lead_from_id", "V")) { $Sql .= " AND l.lead_from_id=" . $this->getProperty("lead_from_id"); } if ($this->isPropertySet("rm_user_id", "V")) { $Sql .= " AND l.rm_user_id=" . $this->getProperty("rm_user_id"); } if ($this->isPropertySet("rm_lead_status", "V")) { $Sql .= " AND l.rm_lead_status=" . $this->getProperty("rm_lead_status"); } if ($this->isPropertySet("rm_lead_fwd_status", "V")) { $Sql .= " AND l.rm_lead_fwd_status=" . $this->getProperty("rm_lead_fwd_status"); } if ($this->isPropertySet("assign_location_id", "V")) { $Sql .= " AND l.assign_location_id=" . $this->getProperty("assign_location_id"); } if ($this->isPropertySet("assign_team_lead_id", "V")) { $Sql .= " AND l.assign_team_lead_id=" . $this->getProperty("assign_team_lead_id"); } if ($this->isPropertySet("assign_agent_status", "V")) { $Sql .= " AND l.assign_agent_status=" . $this->getProperty("assign_agent_status"); } if ($this->isPropertySet("lead_status", "V")) { $Sql .= " AND l.lead_status=" . $this->getProperty("lead_status"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstLeadAssignedCom() { $Sql = "SELECT
\x9 \x9\x9ld.rm_lead_status,\xa \x9\x9 ldas.assign_user_id,
\x9\x9 \x9\x9ldas.assign_lead_id,\xa\x9\x9 \x9 ld.client_name,\xa \x9\x9\x9ld.client_phone_number,
\x9\x9 \x9\x9ld.client_email,
\x9\x9\x9 ld.leads_id,
\x9\x9 ld.lead_from_id,\xa\x9\x9 \x9ld.client_message,
\x9\x9\x9\x9ldas.assign_date,\xa\x9\x9\x9 \x9ldas.assign_time,
\x9\x9\x9 ld.assign_datetime,\xa \x9 \x9\x9ldas.assign_lead_status,
\x9 ldas.assign_action_status\xa\x9 FROM
\x9\x9\x9\x9 rs_tbl_leads as ld\xa \x9INNER JOIN rs_tbl_leads_assign as ldas
\x9\x9 \x9 ON (ld.leads_id = ldas.lead_id)
\x9 WHERE \xa \x9\x9 1=1"; if ($this->isPropertySet("rm_lead_status", "V")) { $Sql .= " AND ld.rm_lead_status=" . $this->getProperty("rm_lead_status"); } if ($this->isPropertySet("lead_from_id", "V")) { $Sql .= " AND ld.lead_from_id=" . $this->getProperty("lead_from_id"); } if ($this->isPropertySet("assign_user_id", "V")) { $Sql .= " AND ldas.assign_user_id=" . $this->getProperty("assign_user_id"); } if ($this->isPropertySet("assign_lead_status", "V")) { $Sql .= " AND ldas.assign_lead_status=" . $this->getProperty("assign_lead_status"); } if ($this->isPropertySet("assign_action_status", "V")) { $Sql .= " AND ldas.assign_action_status=" . $this->getProperty("assign_action_status"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstSalary() { $Sql = "SELECT \xa \x9\x9 user_salary_id,
\x9 \x9 \x9user_id,
\x9\x9 \x9 salary_amount,
\x9\x9\x9 food_alowance,
\x9 \x9\x9 housing_alowance,\xa \x9\x9\x9\x9transport_alowance,
\x9\x9\x9security_alowance,
\x9shift_alowance,\xa \x9 \x9\x9hardship_alowance,
\x9 \x9 mobile_alowance,\xa \x9 salary_type,\xa\x9 \x9\x9\x9salary_mode,\xa \x9\x9 apply_from,\xa\x9 \x9cutting_mode,\xa\x9 \x9salary_status,
\x9\x9 \x9entery_date,
\x9\x9 isActive\xa\x9\x9\x9\x9FROM\xa\x9\x9 \x9\x9rs_tbl_user_salary\xa\x9\x9 WHERE
\x9 \x9\x9 1=1"; if ($this->isPropertySet("user_salary_id", "V")) { $Sql .= " AND user_salary_id=" . $this->getProperty("user_salary_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("salary_amount", "V")) { $Sql .= " AND salary_amount='" . $this->getProperty("salary_amount") . "'"; } if ($this->isPropertySet("food_alowance", "V")) { $Sql .= " AND food_alowance='" . $this->getProperty("food_alowance") . "'"; } if ($this->isPropertySet("housing_alowance", "V")) { $Sql .= " AND housing_alowance='" . $this->getProperty("housing_alowance") . "'"; } if ($this->isPropertySet("transport_alowance", "V")) { $Sql .= " AND transport_alowance='" . $this->getProperty("transport_alowance") . "'"; } if ($this->isPropertySet("security_alowance", "V")) { $Sql .= " AND security_alowance='" . $this->getProperty("security_alowance") . "'"; } if ($this->isPropertySet("cutting_mode", "V")) { $Sql .= " AND cutting_mode='" . $this->getProperty("cutting_mode") . "'"; } if ($this->isPropertySet("salary_type", "V")) { $Sql .= " AND salary_type=" . $this->getProperty("salary_type"); } if ($this->isPropertySet("salary_mode", "V")) { $Sql .= " AND salary_mode=" . $this->getProperty("salary_mode"); } if ($this->isPropertySet("salary_status", "V")) { $Sql .= " AND salary_status=" . $this->getProperty("salary_status"); } if ($this->isPropertySet("apply_from", "V")) { $Sql .= " AND apply_from='" . $this->getProperty("apply_from") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstBonus() { $Sql = "SELECT
\x9 user_bonus_id,\xa \x9\x9\x9user_id,
\x9\x9 \x9bonus_amount,\xa\x9 bonus_status,\xa\x9\x9 \x9entery_date,\xa \x9isActive\xa FROM
\x9\x9 \x9rs_tbl_user_salary_bonus
\x9 WHERE \xa \x9\x9 \x91=1"; if ($this->isPropertySet("user_bonus_id", "V")) { $Sql .= " AND user_bonus_id=" . $this->getProperty("user_bonus_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("bonus_amount", "V")) { $Sql .= " AND bonus_amount='" . $this->getProperty("bonus_amount") . "'"; } if ($this->isPropertySet("bonus_status", "V")) { $Sql .= " AND bonus_status=" . $this->getProperty("bonus_status"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstProspectDetail() { $Sql = "SELECT \xa\x9 \x9 \x9prospect_id,\xa \x9 prospect_name,\xa \x9\x9prospect_email,\xa \x9\x9 prospect_phone,\xa \x9 \x9 prospect_msg,\xa\x9\x9\x9 prospect_formid,\xa\x9\x9 entery_date,\xa\x9\x9\x9\x9\x9isActive\xa \x9 FROM
\x9 \x9\x9rs_tbl_prospect_details
\x9\x9\x9\x9WHERE
\x9\x9 1=1"; if ($this->isPropertySet("prospect_id", "V")) { $Sql .= " AND prospect_id=" . $this->getProperty("prospect_id"); } if ($this->isPropertySet("prospect_formid", "V")) { $Sql .= " AND prospect_formid=" . $this->getProperty("prospect_formid"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserAdvanceSalary() { $Sql = "SELECT
\x9\x9 \x9 advance_salary_id,\xa \x9\x9\x9user_id,\xa\x9 \x9\x9 salary_amount,
\x9\x9 \x9\x9paying_date,\xa\x9 \x9 advance_month,\xa \x9 advance_reason,\xa\x9 \x9 payback_option,
\x9\x9payback_in_months,
\x9 \x9 \x9payback_amount,
\x9\x9 advance_salary_status,
\x9\x9 \x9entery_date,\xa \x9 \x9\x9isActive\xa\x9\x9\x9 FROM\xa \x9\x9 rs_tbl_user_advance_salary
\x9 \x9\x9WHERE \xa \x9 1=1"; if ($this->isPropertySet("advance_salary_id", "V")) { $Sql .= " AND advance_salary_id=" . $this->getProperty("advance_salary_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("paying_date", "V")) { $Sql .= " AND paying_date='" . $this->getProperty("paying_date") . "'"; } if ($this->isPropertySet("payback_option", "V")) { $Sql .= " AND payback_option='" . $this->getProperty("payback_option") . "'"; } if ($this->isPropertySet("payback_in_months", "V")) { $Sql .= " AND payback_in_months='" . $this->getProperty("payback_in_months") . "'"; } if ($this->isPropertySet("advance_month", "V")) { $Sql .= " AND advance_month=" . $this->getProperty("advance_month"); } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND paying_date BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->isPropertySet("advance_salary_status", "V")) { $Sql .= " AND advance_salary_status=" . $this->getProperty("advance_salary_status"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("isActive_not", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isActive_not") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserAdvanceSalaryPayBack() { $Sql = "SELECT \xa \x9\x9 \x9payback_monthly_id,\xa \x9 user_id,
\x9 advance_salary_id,\xa\x9\x9\x9 monthly_amount,\xa \x9\x9\x9 payback_status,
\x9 \x9\x9payback_date,\xa \x9\x9 isActive,\xa\x9\x9 \x9 entery_date
FROM
\x9 \x9\x9rs_tbl_user_advance_salary_payback
\x9WHERE
\x9 \x9 1=1"; if ($this->isPropertySet("advance_salary_id", "V")) { $Sql .= " AND advance_salary_id=" . $this->getProperty("advance_salary_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("payback_date", "V")) { $Sql .= " AND payback_date='" . $this->getProperty("payback_date") . "'"; } if ($this->isPropertySet("payback_status", "V")) { $Sql .= " AND payback_status='" . $this->getProperty("payback_status") . "'"; } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND payback_date BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("isActive_not", "V")) { $Sql .= " AND isActive!='" . $this->getProperty("isActive_not") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstAgentLeadsOverView() { $Sql = "SELECT \xa \x9\x9\x9 user_id,\xa\x9 \x9\x9\x9user_type_id,\xa\x9 \x9\x9 location_id,
\x9\x9 \x9 \x9user_fname,\xa\x9 \x9\x9 user_lname,\xa \x9 \x9CONCAT(user_fname,' ',user_lname) AS fullname,\xa\x9 \x9 \x9\x9assign_action_status,\xa \x9\x9 assign_lead_id,
\x9 \x9\x9lead_id,\xa\x9 \x9 pending_leads,\xa\x9 \x9follow_up_leads,
\x9\x9 not_responding_leads,\xa\x9\x9\x9 \x9\x9interested_leads,\xa \x9 \x9 not_interested_leads,
\x9\x9 \x9 converted_leads,
\x9 \x9\x9SUM(pending_leads) as pending_leads_sum,
\x9\x9\x9\x9 SUM(follow_up_leads) as follow_up_leads_sum,\xa \x9\x9\x9\x9SUM(not_responding_leads) as not_responding_leads_sum,\xa\x9\x9\x9\x9 \x9SUM(interested_leads) as interested_leads_sum,
\x9\x9\x9\x9 SUM(not_interested_leads) as not_interested_leads_sum,
\x9 \x9 SUM(converted_leads) as converted_leads_sum
\x9 \x9\x9 FROM\xa\x9 \x9\x9vw_agent_leads_overview
\x9\x9\x9 \x9WHERE
\x9\x9 \x91=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("user_type_id", "V")) { $Sql .= " AND user_type_id=" . $this->getProperty("user_type_id"); } if ($this->isPropertySet("location_id", "V")) { $Sql .= " AND location_id=" . $this->getProperty("location_id"); } if ($this->isPropertySet("assign_lead_id", "V")) { $Sql .= " AND assign_lead_id=" . $this->getProperty("assign_lead_id"); } if ($this->isPropertySet("assign_action_status", "V")) { $Sql .= " AND assign_action_status='" . $this->getProperty("assign_action_status") . "'"; } if ($this->isPropertySet("lead_id", "V")) { $Sql .= " AND lead_id='" . $this->getProperty("lead_id") . "'"; } if ($this->isPropertySet("user_id_not", "V")) { $Sql .= " AND user_id!=" . $this->getProperty("user_id_not"); } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserOverTimeDetail() { $Sql = "SELECT \xa \x9 \x9\x9emp_overtime_id,
\x9\x9 \x9 \x9user_id,\xa\x9\x9\x9\x9 att_id,\xa \x9 att_date,\xa\x9 \x9\x9\x9no_of_hrs,\xa\x9 \x9\x9\x9 rate_per_hr,
\x9\x9 \x9 per_day_salary,\xa \x9\x9entery_date,
\x9 \x9\x9\x9 isActive\xa \x9\x9\x9 FROM
\x9\x9 rs_tbl_user_overtime_detail\xa \x9\x9\x9WHERE
1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("att_id", "V")) { $Sql .= " AND att_id=" . $this->getProperty("att_id"); } if ($this->isPropertySet("DATEFILTER", "V")) { $Sql .= " AND att_date BETWEEN '" . $this->getProperty("STARTDATE") . "' AND '" . $this->getProperty("ENDDATE") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserRequestFlow() { $Sql = "SELECT
\x9\x9 \x9\x9request_flow_id,
\x9 \x9\x9user_id,
\x9 \x9\x9 company_id,
\x9\x9 \x9\x9 department_id,
\x9\x9 \x9request_flow_type,\xa \x9\x9 \x9employee_id,\xa\x9 \x9leave_request_to,\xa \x9\x9 \x9overtime_request_to,\xa \x9 \x9isActive,\xa\x9 \x9 entery_date
\x9\x9 \x9FROM
\x9\x9 \x9\x9rs_tbl_user_request_flow\xa\x9\x9\x9\x9 WHERE
\x9 \x9\x9 1=1"; if ($this->isPropertySet("request_flow_id", "V")) { $Sql .= " AND request_flow_id=" . $this->getProperty("request_flow_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id='" . $this->getProperty("company_id") . "'"; } if ($this->isPropertySet("department_id", "V")) { $Sql .= " AND department_id='" . $this->getProperty("department_id") . "'"; } if ($this->isPropertySet("request_flow_type", "V")) { $Sql .= " AND request_flow_type='" . $this->getProperty("request_flow_type") . "'"; } if ($this->isPropertySet("employee_id", "V")) { $Sql .= " AND employee_id='" . $this->getProperty("employee_id") . "'"; } if ($this->isPropertySet("leave_request_to", "V")) { $Sql .= " AND leave_request_to='" . $this->getProperty("leave_request_to") . "'"; } if ($this->isPropertySet("overtime_request_to", "V")) { $Sql .= " AND overtime_request_to='" . $this->getProperty("overtime_request_to") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserRequestFlowLog() { $Sql = "SELECT
\x9 \x9request_flow_log_id,
\x9 user_id,
\x9 \x9request_flow_id,\xa \x9 \x9activity_detail,\xa \x9 \x9isActive,\xa \x9 \x9entery_date
\x9 FROM
\x9\x9 rs_tbl_user_request_flow_log
\x9 \x9\x9WHERE \xa \x9\x9 \x9 1=1"; if ($this->isPropertySet("request_flow_log_id", "V")) { $Sql .= " AND request_flow_log_id=" . $this->getProperty("request_flow_log_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("request_flow_id", "V")) { $Sql .= " AND request_flow_id='" . $this->getProperty("request_flow_id") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserBankAccountDetail() { $Sql = "SELECT \xa\x9\x9\x9\x9 employee_bank_id,\xa user_id,\xa \x9 \x9\x9bank_id,
\x9 \x9 account_no,
\x9\x9\x9 account_title,\xa \x9 \x9 \x9iban_no,\xa\x9 \x9\x9entery_date,\xa \x9 \x9 isActive\xa\x9\x9\x9 FROM
\x9 \x9\x9rs_tbl_user_bank_account_detail\xa\x9 \x9\x9 WHERE
\x9 \x91=1"; if ($this->isPropertySet("employee_bank_id", "V")) { $Sql .= " AND employee_bank_id=" . $this->getProperty("employee_bank_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("bank_id", "V")) { $Sql .= " AND bank_id='" . $this->getProperty("bank_id") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstEmployeeSalaryDetail() { $Sql = "SELECT
\x9 us.user_id,\xa \x9 us.employee_id,\xa \x9 us.iqama_profession,
\x9\x9\x9 \x9us.user_fname,
\x9us.user_designation,\xa \x9 \x9\x9us.orig_unit,
\x9\x9\x9\x9 us.location_id,
\x9\x9 \x9 us.cost_center,
\x9\x9 \x9 \x9us.payroll_area,\xa\x9\x9 \x9us.iqama_no,\xa\x9 \x9\x9us.payroll_area,\xa\x9 \x9 us.sub_area,\xa \x9 \x9\x9 us.user_nationality,
\x9 \x9 \x9uss.salary_amount,
\x9 \x9\x9 uss.food_alowance,
\x9\x9\x9\x9uss.housing_alowance,\xa \x9 \x9uss.transport_alowance,\xa\x9\x9 \x9 \x9uss.security_alowance,\xa \x9\x9 uss.shift_alowance,
\x9 \x9\x9uss.hardship_alowance,
\x9\x9\x9\x9 uss.mobile_alowance,\xa \x9 \x9\x9 uss.isActive,\xa \x9\x9 \x9ubad.bank_id,
\x9 \x9ubad.account_no,
\x9 \x9 ubad.iban_no,\xa \x9\x9\x9 ubad.account_title,
\x9 ubad.iban_no
\x9 \x9\x9FROM
\x9 \x9 rs_tbl_users as us
\x9\x9 INNER JOIN rs_tbl_user_salary as uss
\x9 \x9\x9 ON (us.user_id = uss.user_id)\xa \x9\x9 LEFT JOIN rs_tbl_user_bank_account_detail as ubad\xa\x9 \x9 \x9\x9ON (us.user_id = ubad.user_id)\xa \x9\x9\x9\xa \x9\x9\x9 WHERE
\x9 \x9 \x91=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND us.user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND uss.isActive=" . $this->getProperty("isActive"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND us.isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function tamimiDetail() { $Sql = "SELECT c.*, p.*, i.*
FROM tamimi_company AS c\xa LEFT JOIN tamimi_projects AS p ON c.company_id = p.company_id
LEFT JOIN tamimi_project_images AS i ON p.project_id = i.project_id
\x9 WHERE 1=1 ORDER BY c.company_id, p.project_id, i.image_id"; if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND us.company_id=" . $this->getProperty("company_id"); } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND us.isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserMonthlyPaidSalary() { $Sql = "SELECT \xa\x9\x9\x9 \x9 monthly_salary_id,\xa\x9\x9 \x9entery_user_id,\xa\x9\x9\x9 \x9 flt_start_date,
\x9\x9\x9\x9 flt_end_date,
\x9 \x9 \x9 entery_date,\xa\x9 isActive\xa \x9\x9FROM\xa \x9 rs_tbl_user_monthly_paid_salary\xa\x9 \x9\x9 WHERE
\x9 \x9 1=1"; if ($this->isPropertySet("monthly_salary_id", "V")) { $Sql .= " AND monthly_salary_id=" . $this->getProperty("monthly_salary_id"); } if ($this->isPropertySet("entery_user_id", "V")) { $Sql .= " AND entery_user_id=" . $this->getProperty("entery_user_id"); } if ($this->isPropertySet("flt_start_date", "V")) { $Sql .= " AND flt_start_date='" . $this->getProperty("flt_start_date") . "'"; } if ($this->isPropertySet("flt_end_date", "V")) { $Sql .= " AND flt_end_date='" . $this->getProperty("flt_end_date") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function lstUserMonthlyPaidSalaryDetail() { $Sql = "SELECT
\x9 \x9\x9\x9 paid_salary_detail_id,
\x9 \x9\x9 monthly_salary_id,\xa\x9\x9\x9\x9 \x9user_id,
\x9\x9 emp_lieo,
\x9\x9\x9 \x9emp_absent,\xa\x9 emp_aprv_leaves,\xa\x9 \x9\x9 emp_adv_amount,\xa\x9\x9\x9\x9 emp_adv_payback_id,\xa\x9\x9\x9\x9 emp_deduction,\xa\x9 \x9\x9 emp_cutting_mode,
\x9\x9 \x9 emp_monthly_salary,\xa\x9 \x9 emp_bonus_id,
\x9 \x9emp_bonus,
\x9 \x9emp_overtime,\xa \x9 \x9 pay_mode,
\x9\x9 \x9transaction_status,\xa \x9\x9\x9 transaction_number,
\x9 \x9entery_date,\xa isActive
\x9\x9\x9\x9\x9FROM
\x9\x9 \x9rs_tbl_user_monthly_paid_salary_detail\xa\x9\x9 WHERE \xa \x9 \x9\x91=1"; if ($this->isPropertySet("paid_salary_detail_id", "V")) { $Sql .= " AND paid_salary_detail_id=" . $this->getProperty("paid_salary_detail_id"); } if ($this->isPropertySet("monthly_salary_id", "V")) { $Sql .= " AND monthly_salary_id=" . $this->getProperty("monthly_salary_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; } if ($this->isPropertySet("pay_mode", "V")) { $Sql .= " AND pay_mode='" . $this->getProperty("pay_mode") . "'"; } if ($this->isPropertySet("isActive", "V")) { $Sql .= " AND isActive='" . $this->getProperty("isActive") . "'"; } if ($this->isPropertySet("transaction_status", "V")) { $Sql .= " AND transaction_status='" . $this->getProperty("transaction_status") . "'"; } if ($this->isPropertySet("transaction_number", "V")) { $Sql .= " AND transaction_number='" . $this->getProperty("transaction_number") . "'"; } if ($this->isPropertySet("ORDERBY", "V")) { $Sql .= " ORDER BY " . $this->getProperty("ORDERBY"); } if ($this->isPropertySet("GROUPBY", "V")) { $Sql .= " GROUP BY " . $this->getProperty("GROUPBY"); } if ($this->isPropertySet("limit", "V")) { $Sql .= $this->appendLimit($this->getProperty("limit")); } return $this->dbQuery($Sql); } public function actUser($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_users(
\x9 user_id,\xa \x9\x9enter_user_id,
\x9 \x9 device_uid,\xa \x9\x9user_email,\xa\x9 \x9 user_mobile,\xa\x9 \x9 user_pass,
\x9 \x9 user_fname,\xa \x9 \x9 user_lname,\xa \x9 \x9 user_address,
\x9\x9 \x9user_phone,\xa \x9\x9 user_cnic,
\x9 user_type_id,\xa\x9\x9 \x9\x9 user_designation,
\x9\x9 \x9user_signature,\xa\x9\x9\x9\x9\x9 user_profile_img,\xa \x9 sms_verification,
\x9 \x9 \x9\x9short_code,
\x9 \x9\x9 location_id,\xa \x9\x9\x9\x9\x9login_required,\xa \x9 \x9 \x9isActive,\xa\x9\x9 \x9 \x9reg_date,\xa \x9\x9 user_code,\xa\x9 \x9\x9 user_gender,
\x9 \x9 user_dob,
\x9 \x9\x9\x9\x9user_marital_status,
\x9\x9 \x9 blood_group,\xa\x9\x9 \x9 cnic_front_side,\xa \x9 \x9\x9cnic_back_side,\xa \x9\x9 user_cv,\xa\x9\x9 \x9 teamlead_status) \xa \x9 VALUES("; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("enter_user_id", "V") ? $this->getProperty("enter_user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("device_uid", "V") ? $this->getProperty("device_uid") : "0"; $Sql .= ","; $Sql .= $this->isPropertySet("user_email", "V") ? "'" . $this->getProperty("user_email") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_mobile", "V") ? "'" . $this->getProperty("user_mobile") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_pass", "V") ? "'" . $this->getProperty("user_pass") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_fname", "V") ? "'" . $this->getProperty("user_fname") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_lname", "V") ? "'" . $this->getProperty("user_lname") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_address", "V") ? "'" . $this->getProperty("user_address") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_phone", "V") ? "'" . $this->getProperty("user_phone") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_cnic", "V") ? "'" . $this->getProperty("user_cnic") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_type_id", "V") ? "'" . $this->getProperty("user_type_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_designation", "V") ? "'" . $this->getProperty("user_designation") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_signature", "V") ? "'" . $this->getProperty("user_signature") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_profile_img", "V") ? "'" . $this->getProperty("user_profile_img") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("sms_verification", "V") ? "'" . $this->getProperty("sms_verification") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("short_code", "V") ? "'" . $this->getProperty("short_code") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_id", "V") ? "'" . $this->getProperty("location_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("login_required", "V") ? "'" . $this->getProperty("login_required") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("reg_date", "V") ? "'" . $this->getProperty("reg_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_code", "V") ? "'" . $this->getProperty("user_code") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_gender", "V") ? "'" . $this->getProperty("user_gender") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("user_dob", "V") ? "'" . $this->getProperty("user_dob") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_marital_status", "V") ? "'" . $this->getProperty("user_marital_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("blood_group", "V") ? "'" . $this->getProperty("blood_group") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cnic_front_side", "V") ? "'" . $this->getProperty("cnic_front_side") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cnic_back_side", "V") ? "'" . $this->getProperty("cnic_back_side") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_cv", "V") ? "'" . $this->getProperty("user_cv") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("teamlead_status", "V") ? "'" . $this->getProperty("teamlead_status") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_users SET "; if ($this->isPropertySet("user_email", "K")) { $Sql .= "{$con} user_email='" . $this->getProperty("user_email") . "'"; $con = ","; } if ($this->isPropertySet("device_uid", "K")) { $Sql .= "{$con} device_uid='" . $this->getProperty("device_uid") . "'"; $con = ","; } if ($this->isPropertySet("user_pass", "K")) { $Sql .= "{$con} user_pass='" . $this->getProperty("user_pass") . "'"; $con = ","; } if ($this->isPropertySet("user_fname", "K")) { $Sql .= "{$con} user_fname='" . $this->getProperty("user_fname") . "'"; $con = ","; } if ($this->isPropertySet("user_lname", "K")) { $Sql .= "{$con} user_lname='" . $this->getProperty("user_lname") . "'"; $con = ","; } if ($this->isPropertySet("user_address", "K")) { $Sql .= "{$con} user_address='" . $this->getProperty("user_address") . "'"; $con = ","; } if ($this->isPropertySet("user_phone", "K")) { $Sql .= "{$con} user_phone='" . $this->getProperty("user_phone") . "'"; $con = ","; } if ($this->isPropertySet("user_cnic", "K")) { $Sql .= "{$con} user_cnic='" . $this->getProperty("user_cnic") . "'"; $con = ","; } if ($this->isPropertySet("user_type_id", "K")) { $Sql .= "{$con} user_type_id='" . $this->getProperty("user_type_id") . "'"; $con = ","; } if ($this->isPropertySet("user_designation", "K")) { $Sql .= "{$con} user_designation='" . $this->getProperty("user_designation") . "'"; $con = ","; } if ($this->isPropertySet("user_signature", "K")) { $Sql .= "{$con} user_signature='" . $this->getProperty("user_signature") . "'"; $con = ","; } if ($this->isPropertySet("user_profile_img", "K")) { $Sql .= "{$con} user_profile_img='" . $this->getProperty("user_profile_img") . "'"; $con = ","; } if ($this->isPropertySet("sms_verification", "K")) { $Sql .= "{$con} sms_verification='" . $this->getProperty("sms_verification") . "'"; $con = ","; } if ($this->isPropertySet("short_code", "K")) { $Sql .= "{$con} short_code='" . $this->getProperty("short_code") . "'"; $con = ","; } if ($this->isPropertySet("location_id", "K")) { $Sql .= "{$con} location_id='" . $this->getProperty("location_id") . "'"; $con = ","; } if ($this->isPropertySet("login_required", "K")) { $Sql .= "{$con} login_required='" . $this->getProperty("login_required") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } if ($this->isPropertySet("user_code", "K")) { $Sql .= "{$con} user_code='" . $this->getProperty("user_code") . "'"; $con = ","; } if ($this->isPropertySet("user_gender", "K")) { $Sql .= "{$con} user_gender='" . $this->getProperty("user_gender") . "'"; $con = ","; } if ($this->isPropertySet("user_dob", "K")) { $Sql .= "{$con} user_dob='" . $this->getProperty("user_dob") . "'"; $con = ","; } if ($this->isPropertySet("user_marital_status", "K")) { $Sql .= "{$con} user_marital_status='" . $this->getProperty("user_marital_status") . "'"; $con = ","; } if ($this->isPropertySet("blood_group", "K")) { $Sql .= "{$con} blood_group='" . $this->getProperty("blood_group") . "'"; $con = ","; } if ($this->isPropertySet("cnic_front_side", "K")) { $Sql .= "{$con} cnic_front_side='" . $this->getProperty("cnic_front_side") . "'"; $con = ","; } if ($this->isPropertySet("cnic_back_side", "K")) { $Sql .= "{$con} cnic_back_side='" . $this->getProperty("cnic_back_side") . "'"; $con = ","; } if ($this->isPropertySet("user_cv", "K")) { $Sql .= "{$con} user_cv='" . $this->getProperty("user_cv") . "'"; $con = ","; } if ($this->isPropertySet("teamlead_status", "K")) { $Sql .= "{$con} teamlead_status='" . $this->getProperty("teamlead_status") . "'"; $con = ","; } if ($this->isPropertySet("teamlead_date", "K")) { $Sql .= "{$con} teamlead_date='" . $this->getProperty("teamlead_date") . "'"; $con = ","; } if ($this->isPropertySet("teamlead_id", "K")) { $Sql .= "{$con} teamlead_id='" . $this->getProperty("teamlead_id") . "'"; $con = ","; } if ($this->isPropertySet("teamlead_id_zero", "K")) { $Sql .= "{$con} teamlead_id='0'"; $con = ","; } if ($this->isPropertySet("user_security_code", "K")) { $Sql .= "{$con} user_security_code='" . $this->getProperty("user_security_code") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_mobile", "V")) { $Sql .= " AND user_mobile='" . $this->getProperty("user_mobile") . "'"; } else { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } break; case "IAU": $Sql = "UPDATE rs_tbl_users SET
\x9\x9\x9\x9\x9 isActive=2\xa\x9 \x9\x9\x9WHERE\xa\x9\x9 \x9 1=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; case "AU": $Sql = "UPDATE rs_tbl_users SET
\x9\x9\x9\x9\x9 isActive=1\xa\x9\x9 \x9 WHERE\xa\x9\x9\x9 \x9\x91=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_users SET \xa \x9\x9 \x9\x9isActive=3
\x9 \x9\x9 WHERE\xa \x9\x9 \x9\x91=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyinfo($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO tamimi_company(\xa \x9\x9\x9\x9 company_id,
\x9\x9 \x9\x9company_name,
\x9\x9 \x9\x9company_description,\xa\x9 \x9 \x9 company_president,\xa \x9\x9\x9\x9 president_info,\xa\x9 \x9 company_chairman,
\x9\x9 \x9chairman_info,\xa \x9 \x9\x9company_gm,\xa \x9\x9 \x9 bord_of_directors,\xa \x9 company_type,\xa\x9\x9 \x9\x9 heirarchy_chart,\xa\x9 \x9\x9 \x9document_file_name,\xa \x9 \x9 document_file,
\x9 \x9 company_policy,\xa\x9\x9\x9 \x9\x9company_terms,\xa \x9\x9 website_link,
\x9\x9 isActive) \xa \x9\x9VALUES("; $Sql .= $this->isPropertySet("company_id", "V") ? $this->getProperty("company_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_name", "V") ? "'" . $this->getProperty("company_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_description", "V") ? "'" . $this->getProperty("company_description") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("company_president", "V") ? "'" . $this->getProperty("company_president") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("president_info", "V") ? "'" . $this->getProperty("president_info") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_chairman", "V") ? "'" . $this->getProperty("company_chairman") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("chairman_info", "V") ? "'" . $this->getProperty("chairman_info") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_gm", "V") ? "'" . $this->getProperty("company_gm") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("bord_of_directors", "V") ? "'" . $this->getProperty("bord_of_directors") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_type", "V") ? "'" . $this->getProperty("company_type") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("heirarchy_chart", "V") ? "'" . $this->getProperty("heirarchy_chart") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_policy", "V") ? "'" . $this->getProperty("company_policy") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_terms", "V") ? "'" . $this->getProperty("company_terms") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("website_link", "V") ? "'" . $this->getProperty("website_link") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE tamimi_company SET "; if ($this->isPropertySet("company_name", "K")) { $Sql .= "{$con} company_name='" . $this->getProperty("company_name") . "'"; $con = ","; } if ($this->isPropertySet("company_description", "K")) { $Sql .= "{$con} company_description='" . $this->getProperty("company_description") . "'"; $con = ","; } if ($this->isPropertySet("company_president", "K")) { $Sql .= "{$con} company_president='" . $this->getProperty("company_president") . "'"; $con = ","; } if ($this->isPropertySet("president_info", "K")) { $Sql .= "{$con} president_info='" . $this->getProperty("president_info") . "'"; $con = ","; } if ($this->isPropertySet("company_chairman", "K")) { $Sql .= "{$con} company_chairman='" . $this->getProperty("company_chairman") . "'"; $con = ","; } if ($this->isPropertySet("chairman_info", "K")) { $Sql .= "{$con} chairman_info='" . $this->getProperty("chairman_info") . "'"; $con = ","; } if ($this->isPropertySet("company_gm", "K")) { $Sql .= "{$con} company_gm='" . $this->getProperty("company_gm") . "'"; $con = ","; } if ($this->isPropertySet("bord_of_directors", "K")) { $Sql .= "{$con} bord_of_directors='" . $this->getProperty("bord_of_directors") . "'"; $con = ","; } if ($this->isPropertySet("company_type", "K")) { $Sql .= "{$con} company_type='" . $this->getProperty("company_type") . "'"; $con = ","; } if ($this->isPropertySet("heirarchy_chart", "K")) { $Sql .= "{$con} heirarchy_chart='" . $this->getProperty("heirarchy_chart") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("company_policy", "K")) { $Sql .= "{$con} company_policy='" . $this->getProperty("company_policy") . "'"; $con = ","; } if ($this->isPropertySet("company_terms", "K")) { $Sql .= "{$con} company_terms='" . $this->getProperty("company_terms") . "'"; $con = ","; } if ($this->isPropertySet("website_link", "K")) { $Sql .= "{$con} website_link='" . $this->getProperty("website_link") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; $Sql .= " AND company_id=" . $this->getProperty("company_id"); break; case "IAU": $Sql = "UPDATE tamimi_company SET \xa\x9\x9 \x9\x9\x9isActive=2\xa\x9\x9\x9 \x9\x9WHERE\xa\x9 \x9 \x9\x9\x91=1"; $Sql .= " AND company_id=" . $this->getProperty("company_id"); break; case "AU": $Sql = "UPDATE tamimi_company SET
\x9 \x9\x9\x9 isActive=1\xa\x9 \x9\x9 WHERE\xa \x9\x9 \x9 1=1"; $Sql .= " AND company_id=" . $this->getProperty("company_id"); break; case "DEL": $Sql = "UPDATE tamimi_company SET \xa\x9 \x9\x9\x9 \x9isActive=3
\x9\x9 \x9\x9 WHERE
\x9\x9 \x9 1=1"; $Sql .= " AND company_id=" . $this->getProperty("company_id"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyevents($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO tamimi_events(
\x9\x9 \x9\x9\x9event_id,
\x9 \x9\x9 event_type,
\x9 \x9 company_id,\xa\x9\x9 \x9\x9 event_name,\xa \x9 \x9event_description,
\x9 \x9\x9event_date,
\x9 \x9 event_image,\xa\x9 \x9 isActive)
\x9 VALUES("; $Sql .= $this->isPropertySet("event_id", "V") ? $this->getProperty("event_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_type", "V") ? "'" . $this->getProperty("event_type") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? "'" . $this->getProperty("company_id") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("event_name", "V") ? "'" . $this->getProperty("event_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_description", "V") ? "'" . $this->getProperty("event_description") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_date", "V") ? "'" . $this->getProperty("event_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_image", "V") ? "'" . $this->getProperty("event_image") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE tamimi_events SET "; if ($this->isPropertySet("event_type", "K")) { $Sql .= "{$con} event_type='" . $this->getProperty("event_type") . "'"; $con = ","; } if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("event_name", "K")) { $Sql .= "{$con} event_name='" . $this->getProperty("event_name") . "'"; $con = ","; } if ($this->isPropertySet("event_description", "K")) { $Sql .= "{$con} event_description='" . $this->getProperty("event_description") . "'"; $con = ","; } if ($this->isPropertySet("event_date", "K")) { $Sql .= "{$con} event_date='" . $this->getProperty("event_date") . "'"; $con = ","; } if ($this->isPropertySet("event_image", "K")) { $Sql .= "{$con} event_image='" . $this->getProperty("event_image") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; $Sql .= " AND event_id=" . $this->getProperty("event_id"); break; case "IAU": $Sql = "UPDATE tamimi_events SET
\x9\x9\x9 \x9 isActive=2\xa \x9 \x9\x9\x9WHERE\xa\x9\x9\x9 \x9 \x91=1"; $Sql .= " AND event_id=" . $this->getProperty("event_id"); break; case "AU": $Sql = "UPDATE tamimi_events SET
\x9\x9 \x9 \x9isActive=1\xa \x9 \x9\x9\x9WHERE\xa \x9 \x9 \x91=1"; $Sql .= " AND event_id=" . $this->getProperty("event_id"); break; case "DEL": $Sql = "UPDATE tamimi_events SET \xa\x9\x9 \x9\x9 \x9isActive=3
\x9 \x9WHERE
\x9\x9\x9 1=1"; $Sql .= " AND event_id=" . $this->getProperty("event_id"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyprojects($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO tamimi_projects(
\x9 \x9\x9project_id,
\x9\x9\x9\x9\x9\x9company_id,
\x9\x9 project_name,
\x9\x9\x9 \x9 project_description,\xa \x9\x9\x9 project_type,\xa \x9\x9start_date,
\x9 \x9\x9 end_date,
\x9\x9 \x9completion_percentage,\xa\x9 \x9\x9 proect_manager,
\x9 core_team,
\x9 \x9project_status,\xa\x9\x9\x9\x9\x9\x9isActive)
\x9\x9\x9\x9\x9VALUES("; $Sql .= $this->isPropertySet("project_id", "V") ? $this->getProperty("project_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? "'" . $this->getProperty("company_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("project_name", "V") ? "'" . $this->getProperty("project_name") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("project_description", "V") ? "'" . $this->getProperty("project_description") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("project_type", "V") ? "'" . $this->getProperty("project_type") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("start_date", "V") ? "'" . $this->getProperty("start_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("end_date", "V") ? "'" . $this->getProperty("end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("completion_percentage", "V") ? "'" . $this->getProperty("completion_percentage") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("proect_manager", "V") ? "'" . $this->getProperty("proect_manager") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("core_team", "V") ? "'" . $this->getProperty("core_team") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("project_status", "V") ? "'" . $this->getProperty("project_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE tamimi_projects SET "; if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("project_name", "K")) { $Sql .= "{$con} project_name='" . $this->getProperty("project_name") . "'"; $con = ","; } if ($this->isPropertySet("project_description", "K")) { $Sql .= "{$con} project_description='" . $this->getProperty("project_description") . "'"; $con = ","; } if ($this->isPropertySet("project_type", "K")) { $Sql .= "{$con} project_type='" . $this->getProperty("project_type") . "'"; $con = ","; } if ($this->isPropertySet("start_date", "K")) { $Sql .= "{$con} start_date='" . $this->getProperty("start_date") . "'"; $con = ","; } if ($this->isPropertySet("end_date", "K")) { $Sql .= "{$con} end_date='" . $this->getProperty("end_date") . "'"; $con = ","; } if ($this->isPropertySet("completion_percentage", "K")) { $Sql .= "{$con} completion_percentage='" . $this->getProperty("completion_percentage") . "'"; $con = ","; } if ($this->isPropertySet("proect_manager", "K")) { $Sql .= "{$con} proect_manager='" . $this->getProperty("proect_manager") . "'"; $con = ","; } if ($this->isPropertySet("core_team", "K")) { $Sql .= "{$con} core_team='" . $this->getProperty("core_team") . "'"; $con = ","; } if ($this->isPropertySet("project_status", "K")) { $Sql .= "{$con} project_status='" . $this->getProperty("project_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; $Sql .= " AND project_id=" . $this->getProperty("project_id"); break; case "IAU": $Sql = "UPDATE tamimi_projects SET
\x9\x9\x9\x9isActive=2
\x9\x9 \x9 WHERE\xa\x9 \x9\x9\x9 \x91=1"; $Sql .= " AND project_id=" . $this->getProperty("project_id"); break; case "AU": $Sql = "UPDATE tamimi_projects SET
\x9 \x9\x9isActive=1
\x9 \x9\x9 WHERE\xa \x9 1=1"; $Sql .= " AND project_id=" . $this->getProperty("project_id"); break; case "DEL": $Sql = "UPDATE tamimi_projects SET \xa \x9\x9\x9 \x9isActive=3
\x9\x9 \x9 WHERE\xa \x9\x9\x9\x9\x9 1=1"; $Sql .= " AND project_id=" . $this->getProperty("project_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAssets($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_assets(\xa\x9 \x9 \x9asset_id,
\x9 \x9\x9 \x9asset_name,\xa\x9\x9\x9 \x9 asset_status,\xa\x9 \x9 \x9 manufacturer,
\x9 brand,
\x9\x9\x9\x9 asset_no,
\x9\x9\x9 modal_no,\xa \x9 \x9serial_no,
\x9\x9 \x9\x9\x9assset_img,
\x9 comments,
\x9 \x9 \x9\x9entery_id,\xa\x9\x9\x9 catagory_id,
\x9 \x9 \x9\x9asset_type_id,\xa\x9 \x9 asset_condition,
\x9 \x9 \x9 entry_date,
\x9 \x9\x9\x9document_file_name,\xa\x9\x9 \x9 \x9document_file,\xa \x9\x9\x9 \x9isActive) \xa\x9\x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("asset_id", "V") ? $this->getProperty("asset_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_name", "V") ? "'" . $this->getProperty("asset_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_status", "V") ? "'" . $this->getProperty("asset_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("manufacturer", "V") ? "'" . $this->getProperty("manufacturer") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("brand", "V") ? "'" . $this->getProperty("brand") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_no", "V") ? "'" . $this->getProperty("asset_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("serial_no", "V") ? "'" . $this->getProperty("serial_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("modal_no", "V") ? "'" . $this->getProperty("modal_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assset_img", "V") ? "'" . $this->getProperty("assset_img") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("comments", "V") ? "'" . $this->getProperty("comments") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_id", "V") ? "'" . $this->getProperty("entery_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("catagory_id", "V") ? "'" . $this->getProperty("catagory_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_type_id", "V") ? "'" . $this->getProperty("asset_type_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_condition", "V") ? "'" . $this->getProperty("asset_condition") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entry_date", "V") ? "'" . $this->getProperty("entry_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_assets SET "; if ($this->isPropertySet("asset_name", "K")) { $Sql .= "{$con} asset_name='" . $this->getProperty("asset_name") . "'"; $con = ","; } if ($this->isPropertySet("asset_status", "K")) { $Sql .= "{$con} asset_status='" . $this->getProperty("asset_status") . "'"; $con = ","; } if ($this->isPropertySet("manufacturer", "K")) { $Sql .= "{$con} manufacturer='" . $this->getProperty("manufacturer") . "'"; $con = ","; } if ($this->isPropertySet("brand", "K")) { $Sql .= "{$con} brand='" . $this->getProperty("brand") . "'"; $con = ","; } if ($this->isPropertySet("asset_no", "K")) { $Sql .= "{$con} asset_no='" . $this->getProperty("asset_no") . "'"; $con = ","; } if ($this->isPropertySet("modal_no", "K")) { $Sql .= "{$con} modal_no='" . $this->getProperty("modal_no") . "'"; $con = ","; } if ($this->isPropertySet("serial_no", "K")) { $Sql .= "{$con} serial_no='" . $this->getProperty("serial_no") . "'"; $con = ","; } if ($this->isPropertySet("assset_img", "K")) { $Sql .= "{$con} assset_img='" . $this->getProperty("assset_img") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("comments", "K")) { $Sql .= "{$con} comments='" . $this->getProperty("comments") . "'"; $con = ","; } if ($this->isPropertySet("entery_id", "K")) { $Sql .= "{$con} entery_id='" . $this->getProperty("entery_id") . "'"; $con = ","; } if ($this->isPropertySet("catagory_id", "K")) { $Sql .= "{$con} catagory_id='" . $this->getProperty("catagory_id") . "'"; $con = ","; } if ($this->isPropertySet("asset_type_id", "K")) { $Sql .= "{$con} asset_type_id='" . $this->getProperty("asset_type_id") . "'"; $con = ","; } if ($this->isPropertySet("asset_condition", "K")) { $Sql .= "{$con} asset_condition='" . $this->getProperty("asset_condition") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); break; case "IAU": $Sql = "UPDATE rs_tbl_assets SET
\x9\x9\x9 \x9isActive=2\xa\x9\x9\x9\x9 WHERE\xa \x9\x91=1"; $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); break; case "AU": $Sql = "UPDATE rs_tbl_assets SET \xa\x9 \x9\x9 isActive=1\xa \x9\x9\x9 WHERE
\x9 \x9\x9 1=1"; $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_assets SET
\x9\x9\x9isActive=3
\x9 \x9 WHERE\xa \x9 \x9\x9\x91=1"; $Sql .= " AND asset_id=" . $this->getProperty("asset_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAssignAssets($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_assets_assign(
\x9\x9\x9\x9 assign_asset_id,\xa\x9\x9\x9 \x9\x9asset_id,\xa \x9\x9assign_to,\xa \x9\x9\x9 assign_by,\xa\x9 \x9\x9current_status,\xa\x9\x9\x9\x9 \x9assign_date,
\x9 assign_time,\xa \x9 \x9 document_file_name,
\x9\x9 \x9document_file,\xa \x9\x9\x9\x9 isActive)
\x9 \x9\x9\x9\x9VALUES("; $Sql .= $this->isPropertySet("assign_asset_id", "V") ? $this->getProperty("assign_asset_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_id", "V") ? "'" . $this->getProperty("asset_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_to", "V") ? "'" . $this->getProperty("assign_to") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_by", "V") ? "'" . $this->getProperty("assign_by") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("current_status", "V") ? "'" . $this->getProperty("current_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_date", "V") ? "'" . $this->getProperty("assign_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_time", "V") ? "'" . $this->getProperty("assign_time") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_assets_assign SET "; if ($this->isPropertySet("asset_id", "K")) { $Sql .= "{$con} asset_id='" . $this->getProperty("asset_id") . "'"; $con = ","; } if ($this->isPropertySet("assign_to", "K")) { $Sql .= "{$con} assign_to='" . $this->getProperty("assign_to") . "'"; $con = ","; } if ($this->isPropertySet("assign_by", "K")) { $Sql .= "{$con} assign_by='" . $this->getProperty("assign_by") . "'"; $con = ","; } if ($this->isPropertySet("current_status", "K")) { $Sql .= "{$con} current_status='" . $this->getProperty("current_status") . "'"; $con = ","; } if ($this->isPropertySet("assign_date", "K")) { $Sql .= "{$con} assign_date='" . $this->getProperty("assign_date") . "'"; $con = ","; } if ($this->isPropertySet("assign_time", "K")) { $Sql .= "{$con} assign_time='" . $this->getProperty("assign_time") . "'"; $con = ","; } if ($this->isPropertySet("document_file_name", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("assign_asset_id", "V")) { $Sql .= " AND assign_asset_id='" . $this->getProperty("assign_asset_id") . "'"; } else { $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); } break; case "IAU": $Sql = "UPDATE rs_tbl_assets_assign SET \xa\x9\x9 isActive=2\xa\x9 \x9 \x9WHERE\xa\x9 \x9\x9 \x91=1"; $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); break; case "AU": $Sql = "UPDATE rs_tbl_assets_assign SET \xa\x9\x9\x9\x9\x9 \x9isActive=1
\x9 \x9\x9\x9\x9WHERE
\x91=1"; $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_assets_assign SET \xa\x9 \x9isActive=3
\x9 \x9WHERE
\x9 \x9\x9\x9\x91=1"; $Sql .= " AND assign_asset_id=" . $this->getProperty("assign_asset_id"); break; default: break; } return $this->dbQuery($Sql); } public function actReturnAssets($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_return_asset(\xa \x9 \x9\x9 return_asset_id,\xa\x9\x9\x9 \x9 assign_asset_id,\xa \x9 asset_id,
\x9\x9 \x9 received_by,
\x9 \x9 current_status,
\x9\x9 \x9 returned_date,\xa\x9 \x9\x9 returned_condition,\xa \x9 return_reason,
\x9 \x9\x9 document_file_name,
\x9 \x9\x9\x9\x9document_file,
\x9 \x9\x9isActive)
\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("return_asset_id", "V") ? $this->getProperty("return_asset_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_asset_id", "V") ? "'" . $this->getProperty("assign_asset_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_id", "V") ? "'" . $this->getProperty("asset_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("received_by", "V") ? "'" . $this->getProperty("received_by") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("current_status", "V") ? "'" . $this->getProperty("current_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("returned_date", "V") ? "'" . $this->getProperty("returned_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("returned_condition", "V") ? "'" . $this->getProperty("returned_condition") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("return_reason", "V") ? "'" . $this->getProperty("return_reason") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_return_asset SET "; if ($this->isPropertySet("received_by", "K")) { $Sql .= "{$con} received_by='" . $this->getProperty("received_by") . "'"; $con = ","; } if ($this->isPropertySet("current_status", "K")) { $Sql .= "{$con} current_status='" . $this->getProperty("current_status") . "'"; $con = ","; } if ($this->isPropertySet("returned_date", "K")) { $Sql .= "{$con} returned_date='" . $this->getProperty("returned_date") . "'"; $con = ","; } if ($this->isPropertySet("returned_condition", "K")) { $Sql .= "{$con} returned_condition='" . $this->getProperty("returned_condition") . "'"; $con = ","; } if ($this->isPropertySet("return_reason", "K")) { $Sql .= "{$con} return_reason='" . $this->getProperty("return_reason") . "'"; $con = ","; } if ($this->isPropertySet("document_file_name", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("return_asset_id", "V")) { $Sql .= " AND return_asset_id='" . $this->getProperty("return_asset_id") . "'"; } else { $Sql .= " AND return_asset_id=" . $this->getProperty("return_asset_id"); } break; case "IAU": $Sql = "UPDATE rs_tbl_return_asset SET \xa\x9 \x9\x9\x9 isActive=2
\x9\x9 \x9\x9 WHERE
\x9 \x9\x9 \x9\x91=1"; $Sql .= " AND return_asset_id=" . $this->getProperty("return_asset_id"); break; case "AU": $Sql = "UPDATE rs_tbl_return_asset SET
\x9\x9\x9 isActive=1\xa\x9\x9 \x9\x9\x9WHERE
\x9 1=1"; $Sql .= " AND return_asset_id=" . $this->getProperty("return_asset_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_return_asset SET
\x9 isActive=3\xa \x9 WHERE
\x9 \x9\x9\x9 1=1"; $Sql .= " AND return_asset_id=" . $this->getProperty("return_asset_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUser_HR($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_users(\xa\x9\x9\x9 \x9 user_id,
\x9 \x9\x9 enter_user_id,
\x9\x9 \x9 employee_id,
\x9\x9\x9 \x9iqama_profession,\xa\x9\x9 \x9 user_fname,\xa\x9 \x9 user_designation,\xa \x9 \x9orig_unit,
\x9 \x9 location_id,
\x9 \x9 cost_center,\xa \x9\x9\x9 payroll_area,\xa\x9\x9\x9\x9\x9 sub_area,
\x9 \x9user_type_id,\xa\x9\x9 user_gender,\xa user_nationality,
\x9 \x9\x9 user_religion,
\x9 \x9\x9 \x9user_mobile,\xa\x9\x9\x9\x9 user_dob,
\x9 \x9\x9iqama_no,
\x9 \x9\x9\x9iqama_expiry,\xa \x9 \x9\x9\x9passport_no,\xa \x9 \x9\x9 passport_expiry,
\x9\x9\x9\x9reg_date,
\x9\x9\x9 \x9 user_insurance,
\x9 \x9user_email,\xa \x9\x9 licence_no,
\x9 \x9 gosi_no,\xa \x9\x9contract_type,
\x9 \x9\x9jobStatus,\xa\x9\x9 \x9hire_date,
\x9 \x9\x9 user_profile_img,
\x9\x9 \x9cnic_front_side,
\x9\x9\x9 user_cv,
\x9\x9 \x9\x9 isActive) \xa \x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("enter_user_id", "V") ? $this->getProperty("enter_user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("employee_id", "V") ? "'" . $this->getProperty("employee_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("iqama_profession", "V") ? "'" . $this->getProperty("iqama_profession") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_fname", "V") ? "'" . $this->getProperty("user_fname") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_designation", "V") ? "'" . $this->getProperty("user_designation") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("orig_unit", "V") ? "'" . $this->getProperty("orig_unit") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_id", "V") ? "'" . $this->getProperty("location_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cost_center", "V") ? "'" . $this->getProperty("cost_center") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("payroll_area", "V") ? "'" . $this->getProperty("payroll_area") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("sub_area", "V") ? "'" . $this->getProperty("sub_area") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_type_id", "V") ? "'" . $this->getProperty("user_type_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_gender", "V") ? "'" . $this->getProperty("user_gender") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_nationality", "V") ? "'" . $this->getProperty("user_nationality") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_religion", "V") ? "'" . $this->getProperty("user_religion") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_mobile", "V") ? "'" . $this->getProperty("user_mobile") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_dob", "V") ? "'" . $this->getProperty("user_dob") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("iqama_no", "V") ? "'" . $this->getProperty("iqama_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("iqama_expiry", "V") ? "'" . $this->getProperty("iqama_expiry") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("passport_no", "V") ? "'" . $this->getProperty("passport_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("passport_expiry", "V") ? "'" . $this->getProperty("passport_expiry") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("reg_date", "V") ? "'" . $this->getProperty("reg_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_insurance", "V") ? "'" . $this->getProperty("user_insurance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_email", "V") ? "'" . $this->getProperty("user_email") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("licence_no", "V") ? "'" . $this->getProperty("licence_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("gosi_no", "V") ? "'" . $this->getProperty("gosi_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("contract_type", "V") ? "'" . $this->getProperty("contract_type") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("jobStatus", "V") ? "'" . $this->getProperty("jobStatus") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("hire_date", "V") ? "'" . $this->getProperty("hire_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_profile_img", "V") ? "'" . $this->getProperty("user_profile_img") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cnic_front_side,", "V") ? "'" . $this->getProperty("cnic_front_side,") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_cv", "V") ? "'" . $this->getProperty("user_cv") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_users SET "; if ($this->isPropertySet("employee_id", "K")) { $Sql .= "{$con} employee_id='" . $this->getProperty("employee_id") . "'"; $con = ","; } if ($this->isPropertySet("iqama_profession", "K")) { $Sql .= "{$con} iqama_profession='" . $this->getProperty("iqama_profession") . "'"; $con = ","; } if ($this->isPropertySet("user_fname", "K")) { $Sql .= "{$con} user_fname='" . $this->getProperty("user_fname") . "'"; $con = ","; } if ($this->isPropertySet("user_designation", "K")) { $Sql .= "{$con} user_designation='" . $this->getProperty("user_designation") . "'"; $con = ","; } if ($this->isPropertySet("orig_unit", "K")) { $Sql .= "{$con} orig_unit='" . $this->getProperty("orig_unit") . "'"; $con = ","; } if ($this->isPropertySet("location_id", "K")) { $Sql .= "{$con} location_id='" . $this->getProperty("location_id") . "'"; $con = ","; } if ($this->isPropertySet("cost_center", "K")) { $Sql .= "{$con} cost_center='" . $this->getProperty("cost_center") . "'"; $con = ","; } if ($this->isPropertySet("payroll_area", "K")) { $Sql .= "{$con} payroll_area='" . $this->getProperty("payroll_area") . "'"; $con = ","; } if ($this->isPropertySet("sub_area", "K")) { $Sql .= "{$con} sub_area='" . $this->getProperty("sub_area") . "'"; $con = ","; } if ($this->isPropertySet("user_gender", "K")) { $Sql .= "{$con} user_gender='" . $this->getProperty("user_gender") . "'"; $con = ","; } if ($this->isPropertySet("user_nationality", "K")) { $Sql .= "{$con} user_nationality='" . $this->getProperty("user_nationality") . "'"; $con = ","; } if ($this->isPropertySet("user_religion", "K")) { $Sql .= "{$con} user_religion='" . $this->getProperty("user_religion") . "'"; $con = ","; } if ($this->isPropertySet("user_mobile", "K")) { $Sql .= "{$con} user_mobile='" . $this->getProperty("user_mobile") . "'"; $con = ","; } if ($this->isPropertySet("user_dob", "K")) { $Sql .= "{$con} user_dob='" . $this->getProperty("user_dob") . "'"; $con = ","; } if ($this->isPropertySet("iqama_no", "K")) { $Sql .= "{$con} iqama_no='" . $this->getProperty("iqama_no") . "'"; $con = ","; } if ($this->isPropertySet("iqama_expiry", "K")) { $Sql .= "{$con} iqama_expiry='" . $this->getProperty("iqama_expiry") . "'"; $con = ","; } if ($this->isPropertySet("passport_no", "K")) { $Sql .= "{$con} passport_no='" . $this->getProperty("passport_no") . "'"; $con = ","; } if ($this->isPropertySet("passport_expiry", "K")) { $Sql .= "{$con} passport_expiry='" . $this->getProperty("passport_expiry") . "'"; $con = ","; } if ($this->isPropertySet("user_insurance", "K")) { $Sql .= "{$con} user_insurance='" . $this->getProperty("user_insurance") . "'"; $con = ","; } if ($this->isPropertySet("user_email", "K")) { $Sql .= "{$con} user_email='" . $this->getProperty("user_email") . "'"; $con = ","; } if ($this->isPropertySet("licence_no", "K")) { $Sql .= "{$con} licence_no='" . $this->getProperty("licence_no") . "'"; $con = ","; } if ($this->isPropertySet("gosi_no", "K")) { $Sql .= "{$con} gosi_no='" . $this->getProperty("gosi_no") . "'"; $con = ","; } if ($this->isPropertySet("contract_type", "K")) { $Sql .= "{$con} contract_type='" . $this->getProperty("contract_type") . "'"; $con = ","; } if ($this->isPropertySet("jobStatus", "K")) { $Sql .= "{$con} jobStatus='" . $this->getProperty("jobStatus") . "'"; $con = ","; } if ($this->isPropertySet("hire_date", "K")) { $Sql .= "{$con} hire_date='" . $this->getProperty("hire_date") . "'"; $con = ","; } if ($this->isPropertySet("user_profile_img", "K")) { $Sql .= "{$con} user_profile_img='" . $this->getProperty("user_profile_img") . "'"; $con = ","; } if ($this->isPropertySet("cnic_front_side", "K")) { $Sql .= "{$con} cnic_front_side='" . $this->getProperty("cnic_front_side") . "'"; $con = ","; } if ($this->isPropertySet("user_cv", "K")) { $Sql .= "{$con} user_cv='" . $this->getProperty("user_cv") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; } else { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } break; case "IAU": $Sql = "UPDATE rs_tbl_users SET \xa \x9\x9 \x9isActive=2
\x9\x9 \x9WHERE
\x9 \x9\x9 1=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; case "AU": $Sql = "UPDATE rs_tbl_users SET \xa\x9\x9\x9\x9\x9 \x9isActive=1
\x9\x9\x9 WHERE
\x9 \x9\x9 \x91=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_users SET \xa\x9\x9\x9 \x9\x9 isActive=3
\x9 \x9\x9\x9WHERE\xa\x9\x9\x9\x9\x9\x9 1=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserLog($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_log(\xa \x9\x9 user_id,\xa\x9 activity_detail,\xa\x9 \x9 \x9isActive,\xa\x9\x9\x9\x9 entery_date,\xa\x9 \x9\x9 \x9location_id) \xa\x9\x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("activity_detail", "V") ? "'" . $this->getProperty("activity_detail") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_id", "V") ? "'" . $this->getProperty("location_id") . "'" : "NULL"; $Sql .= ")"; break; case "AU": $Sql = "UPDATE rs_tbl_user_log SET
\x9 \x9\x9isActive=2\xa\x9 \x9 \x9WHERE\xa \x9 \x9\x9\x91=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; case "DEL": $Sql = "UPDATE rs_tbl_user_log SET
\x9 \x9 \x9 \x9isActive=3
\x9\x9 \x9 WHERE
\x9\x9\x9 \x9 1=1"; $Sql .= " AND user_id=" . $this->getProperty("user_id"); break; default: break; } return $this->dbQuery($Sql); } public function actMailBox($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_mailbox(
\x9\x9 mail_id,
\x9 sender_id,
\x9 \x9 receiver_id,\xa \x9\x9\x9\x9\x9mail_subject,
\x9 \x9\x9mail_detail,
\x9 mail_isfile,
\x9\x9 is_read,\xa\x9 \x9 read_date,
\x9 \x9\x9 sender_del,\xa\x9\x9\x9\x9\x9 receiver_del,
\x9\x9\x9 \x9\x9is_draft,\xa\x9 \x9\x9\x9entery_date)
\x9\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("mail_id", "V") ? $this->getProperty("mail_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("sender_id", "V") ? $this->getProperty("sender_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("receiver_id", "V") ? $this->getProperty("receiver_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_subject", "V") ? "'" . $this->getProperty("mail_subject") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_detail", "V") ? "'" . $this->getProperty("mail_detail") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_isfile", "V") ? $this->getProperty("mail_isfile") : "2"; $Sql .= ","; $Sql .= $this->isPropertySet("is_read", "V") ? $this->getProperty("is_read") : "2"; $Sql .= ","; $Sql .= $this->isPropertySet("read_date", "V") ? "'" . $this->getProperty("read_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("sender_del", "V") ? $this->getProperty("sender_del") : "2"; $Sql .= ","; $Sql .= $this->isPropertySet("receiver_del", "V") ? $this->getProperty("receiver_del") : "2"; $Sql .= ","; $Sql .= $this->isPropertySet("is_draft", "V") ? $this->getProperty("is_draft") : "2"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_mailbox SET "; if ($this->isPropertySet("is_read", "K")) { $Sql .= "{$con} is_read='" . $this->getProperty("is_read") . "'"; $con = ","; } if ($this->isPropertySet("read_date", "K")) { $Sql .= "{$con} read_date='" . $this->getProperty("read_date") . "'"; $con = ","; } if ($this->isPropertySet("sender_del", "K")) { $Sql .= "{$con} sender_del=" . $this->getProperty("sender_del"); $con = ","; } if ($this->isPropertySet("receiver_del", "K")) { $Sql .= "{$con} receiver_del=" . $this->getProperty("receiver_del"); $con = ","; } if ($this->isPropertySet("is_draft", "K")) { $Sql .= "{$con} is_draft=" . $this->getProperty("is_draft"); $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("mail_id", "V")) { $Sql .= " AND mail_id=" . $this->getProperty("mail_id"); } break; default: break; } return $this->dbQuery($Sql); } public function actMailBoxFile($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_mailbox_file(
\x9\x9 \x9\x9mail_file_id,
\x9 \x9 mail_id,\xa \x9\x9 \x9mail_filetype,\xa \x9\x9\x9 mail_filename,
\x9\x9 \x9isActive,
\x9 entery_date)
\x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("mail_file_id", "V") ? $this->getProperty("mail_file_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_id", "V") ? $this->getProperty("mail_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_filetype", "V") ? $this->getProperty("mail_filetype") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mail_filename", "V") ? "'" . $this->getProperty("mail_filename") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_mailbox_file SET "; if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive=" . $this->getProperty("isActive"); $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("mail_id", "V")) { $Sql .= " AND mail_id=" . $this->getProperty("mail_id"); } if ($this->isPropertySet("mail_file_id", "V")) { $Sql .= " AND mail_file_id=" . $this->getProperty("mail_file_id"); } break; default: break; } return $this->dbQuery($Sql); } public function actMailBoxFileType($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_mailbox_file_type(
\x9 \x9\x9 filetype_id,
\x9 \x9\x9 \x9user_id,\xa\x9 \x9type_name,\xa\x9 \x9 type_icon,\xa \x9 \x9 isActive,\xa\x9 \x9 entery_date)
\x9\x9 \x9 VALUES("; $Sql .= $this->isPropertySet("filetype_id", "V") ? $this->getProperty("filetype_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("type_name", "V") ? "'" . $this->getProperty("type_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("type_icon", "V") ? "'" . $this->getProperty("type_icon") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? $this->getProperty("isActive") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_mailbox_file_type SET "; if ($this->isPropertySet("type_name", "K")) { $Sql .= "{$con} type_name='" . $this->getProperty("type_name") . "'"; $con = ","; } if ($this->isPropertySet("type_icon", "K")) { $Sql .= "{$con} type_icon='" . $this->getProperty("type_icon") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("filetype_id", "V")) { $Sql .= " AND filetype_id=" . $this->getProperty("filetype_id"); } break; case "D": break; default: break; } return $this->dbQuery($Sql); } public function actLocation($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_location(
\x9 \x9\x9\x9location_id,\xa\x9 \x9\x9\x9user_id,\xa \x9 \x9\x9\x9company_id,
\x9\x9 \x9\x9location_name,
\x9 \x9 location_address,
\x9 location_phone_1,\xa \x9 \x9location_phone_2,
\x9\x9\x9 \x9location_phone_3,\xa\x9\x9 \x9 \x9location_fax,
\x9 \x9 entery_date,\xa\x9\x9\x9 \x9 isActive)\xa \x9 VALUES("; $Sql .= $this->isPropertySet("location_id", "V") ? $this->getProperty("location_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? $this->getProperty("company_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_name", "V") ? "'" . $this->getProperty("location_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_address", "V") ? "'" . $this->getProperty("location_address") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_phone_1", "V") ? "'" . $this->getProperty("location_phone_1") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_phone_2", "V") ? "'" . $this->getProperty("location_phone_2") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_phone_3", "V") ? "'" . $this->getProperty("location_phone_3") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_fax", "V") ? "'" . $this->getProperty("location_fax") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_location SET "; if ($this->isPropertySet("location_name", "K")) { $Sql .= "{$con} location_name='" . $this->getProperty("location_name") . "'"; $con = ","; } if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("location_address", "K")) { $Sql .= "{$con} location_address='" . $this->getProperty("location_address") . "'"; $con = ","; } if ($this->isPropertySet("location_phone_1", "K")) { $Sql .= "{$con} location_phone_1='" . $this->getProperty("location_phone_1") . "'"; $con = ","; } if ($this->isPropertySet("location_phone_2", "K")) { $Sql .= "{$con} location_phone_2='" . $this->getProperty("location_phone_2") . "'"; $con = ","; } if ($this->isPropertySet("location_phone_3", "K")) { $Sql .= "{$con} location_phone_3='" . $this->getProperty("location_phone_3") . "'"; $con = ","; } if ($this->isPropertySet("location_fax", "K")) { $Sql .= "{$con} location_fax='" . $this->getProperty("location_fax") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("location_id", "V")) { $Sql .= " AND location_id=" . $this->getProperty("location_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_location SET \xa\x9 isActive=3
\x9\x9\x9 \x9 WHERE\xa \x9 1=1"; $Sql .= " AND location_id=" . $this->getProperty("location_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserMigration($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_migration (
\x9\x9 migration_id,
\x9\x9 \x9 user_id,
\x9\x9\x9\x9 \x9migration_user_id,
\x9\x9\x9 \x9 current_location_id,
\x9\x9\x9 \x9 migration_location_id,\xa\x9\x9 \x9\x9\x9migration_reason,\xa\x9\x9 \x9\x9\x9migration_date,
\x9\x9\x9\x9 entery_date,\xa \x9 isActive)
\x9\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("migration_id", "V") ? $this->getProperty("migration_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("migration_user_id", "V") ? "'" . $this->getProperty("migration_user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("current_location_id", "V") ? "'" . $this->getProperty("current_location_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("migration_location_id", "V") ? "'" . $this->getProperty("migration_location_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("migration_reason", "V") ? "'" . $this->getProperty("migration_reason") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("migration_date", "V") ? "'" . $this->getProperty("migration_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": break; case "DEL": $Sql = "UPDATE rs_tbl_user_migration SET
\x9 \x9\x9\x9\x9\x9isActive=3
\x9 \x9WHERE
\x9 1=1"; $Sql .= " AND migration_id=" . $this->getProperty("migration_id"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanies($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_companies(
\x9 \x9\x9company_id,
\x9 \x9\x9\x9 user_id,\xa \x9\x9company_name,\xa\x9\x9\x9 \x9 entery_date,
\x9 \x9 \x9isActive)\xa \x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("company_id", "V") ? $this->getProperty("company_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_name", "V") ? "'" . $this->getProperty("company_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_companies SET "; if ($this->isPropertySet("company_name", "K")) { $Sql .= "{$con} company_name='" . $this->getProperty("company_name") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("company_id", "V")) { $Sql .= " AND company_id=" . $this->getProperty("company_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_companies SET \xa\x9 \x9 \x9 isActive=3\xa WHERE\xa\x9\x9 \x9 \x91=1"; $Sql .= " AND company_id=" . $this->getProperty("company_id"); break; default: break; } return $this->dbQuery($Sql); } public function actDepartments($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_department(
\x9\x9 \x9 department_id,
\x9\x9\x9 user_id,\xa \x9\x9 company_id,
\x9 \x9\x9\x9department_name,
\x9 \x9\x9 entery_date,
\x9 \x9 isActive)\xa\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("department_id", "V") ? $this->getProperty("department_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? $this->getProperty("company_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("department_name", "V") ? "'" . $this->getProperty("department_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_department SET "; if ($this->isPropertySet("department_name", "K")) { $Sql .= "{$con} department_name='" . $this->getProperty("department_name") . "'"; $con = ","; } if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("department_id", "V")) { $Sql .= " AND department_id=" . $this->getProperty("department_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_department SET \xa \x9\x9 \x9\x9\x9isActive=3
\x9\x9\x9 WHERE\xa \x9 1=1"; $Sql .= " AND department_id=" . $this->getProperty("department_id"); break; default: break; } return $this->dbQuery($Sql); } public function actJobTitle($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_job_title(
\x9 \x9\x9 job_title_id,\xa \x9\x9\x9\x9\x9user_id,
\x9 \x9 job_title,
\x9 \x9\x9\x9entery_date,\xa \x9\x9\x9\x9isActive)
\x9\x9 VALUES("; $Sql .= $this->isPropertySet("job_title_id", "V") ? $this->getProperty("job_title_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("job_title", "V") ? "'" . $this->getProperty("job_title") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_job_title SET "; if ($this->isPropertySet("job_title", "K")) { $Sql .= "{$con} job_title='" . $this->getProperty("job_title") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("job_title_id", "V")) { $Sql .= " AND job_title_id=" . $this->getProperty("job_title_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_job_title SET \xa\x9 \x9 \x9 isActive=3
\x9\x9 \x9WHERE
\x9 \x9 1=1"; $Sql .= " AND job_title_id=" . $this->getProperty("job_title_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAssetBrand($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_asset_brands(\xa\x9\x9 \x9 \x9asset_brand_id,\xa \x9 \x9\x9 user_id,
\x9 \x9\x9asset_brands,\xa\x9\x9\x9\x9 entry_date,
\x9\x9 \x9\x9 isActive)\xa \x9 \x9 VALUES("; $Sql .= $this->isPropertySet("asset_brand_id", "V") ? $this->getProperty("asset_brand_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_brands", "V") ? "'" . $this->getProperty("asset_brands") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entry_date", "V") ? "'" . $this->getProperty("entry_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_asset_brands SET "; if ($this->isPropertySet("asset_brands", "K")) { $Sql .= "{$con} asset_brands='" . $this->getProperty("asset_brands") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("asset_brand_id", "V")) { $Sql .= " AND asset_brand_id=" . $this->getProperty("asset_brand_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_asset_brands SET \xa \x9 \x9 isActive=3
\x9 \x9 \x9WHERE
\x9 \x9 1=1"; $Sql .= " AND asset_brand_id=" . $this->getProperty("asset_brand_id"); break; default: break; } return $this->dbQuery($Sql); } public function actCatagories($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_catagories(\xa\x9\x9\x9\x9\x9 cat_id,
\x9\x9\x9 user_id,
\x9 cat_name,
\x9 \x9entry_date,
\x9\x9\x9 \x9\x9isActive)
\x9 \x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("cat_id", "V") ? $this->getProperty("cat_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cat_name", "V") ? "'" . $this->getProperty("cat_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entry_date", "V") ? "'" . $this->getProperty("entry_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_catagories SET "; if ($this->isPropertySet("cat_name", "K")) { $Sql .= "{$con} cat_name='" . $this->getProperty("cat_name") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("cat_id", "V")) { $Sql .= " AND cat_id=" . $this->getProperty("cat_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_catagories SET \xa\x9 \x9 \x9isActive=3
\x9 \x9\x9WHERE
\x9 1=1"; $Sql .= " AND cat_id=" . $this->getProperty("cat_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAssetType($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_assets_type(\xa \x9\x9\x9asset_type_id,\xa \x9\x9\x9 \x9cat_id,\xa \x9\x9 \x9user_id,
\x9 \x9asset_type,
\x9\x9\x9\x9\x9 entry_date,\xa\x9 \x9 isActive)\xa\x9\x9\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("asset_type_id", "V") ? $this->getProperty("asset_type_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("cat_id", "V") ? $this->getProperty("cat_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("asset_type", "V") ? "'" . $this->getProperty("asset_type") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entry_date", "V") ? "'" . $this->getProperty("entry_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_assets_type SET "; if ($this->isPropertySet("asset_type", "K")) { $Sql .= "{$con} asset_type='" . $this->getProperty("asset_type") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("asset_type_id", "V")) { $Sql .= " AND asset_type_id=" . $this->getProperty("asset_type_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_assets_type SET \xa\x9\x9 \x9\x9isActive=3
\x9 \x9 \x9WHERE\xa\x9\x9\x9\x9 \x9 1=1"; $Sql .= " AND asset_type_id=" . $this->getProperty("asset_type_id"); break; default: break; } return $this->dbQuery($Sql); } public function actprojectimage($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO tamimi_project_images(\xa\x9\x9\x9\x9 \x9image_id,
\x9\x9 project_id,\xa\x9\x9 \x9 project_image,\xa\x9 \x9 \x9isActive)\xa \x9 VALUES("; $Sql .= $this->isPropertySet("image_id", "V") ? $this->getProperty("image_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("project_id", "V") ? $this->getProperty("project_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("project_image", "V") ? $this->getProperty("project_image") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE tamimi_project_images SET "; if ($this->isPropertySet("project_id", "K")) { $Sql .= "{$con} project_id='" . $this->getProperty("project_id") . "'"; $con = ","; } if ($this->isPropertySet("project_image", "K")) { $Sql .= "{$con} project_image='" . $this->getProperty("project_image") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("image_id", "V")) { $Sql .= " AND image_id=" . $this->getProperty("image_id"); } break; case "DEL": $Sql = "UPDATE tamimi_project_images SET \xa\x9\x9 \x9 isActive=3
\x9\x9\x9\x9 WHERE
\x9\x9\x9 1=1"; $Sql .= " AND image_id=" . $this->getProperty("image_id"); break; default: break; } return $this->dbQuery($Sql); } public function acteventimage($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO tamimi_event_images(\xa \x9\x9\x9\x9image_id,
\x9 \x9\x9\x9event_id,
\x9\x9\x9 \x9event_image,\xa\x9\x9\x9 isActive)
\x9 \x9VALUES("; $Sql .= $this->isPropertySet("image_id", "V") ? $this->getProperty("image_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_id", "V") ? $this->getProperty("event_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("event_image", "V") ? $this->getProperty("event_image") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE tamimi_event_images SET "; if ($this->isPropertySet("event_id", "K")) { $Sql .= "{$con} event_id='" . $this->getProperty("event_id") . "'"; $con = ","; } if ($this->isPropertySet("event_image", "K")) { $Sql .= "{$con} event_image='" . $this->getProperty("event_image") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("image_id", "V")) { $Sql .= " AND image_id=" . $this->getProperty("image_id"); } break; case "DEL": $Sql = "UPDATE tamimi_event_images SET
\x9\x9 \x9isActive=3\xa \x9\x9 \x9WHERE
\x9\x9\x9\x9 1=1"; $Sql .= " AND image_id=" . $this->getProperty("image_id"); break; default: break; } return $this->dbQuery($Sql); } public function actiqprofession($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_iqprofession(
\x9\x9 \x9\x9\x9iqprofession_id,
\x9\x9 \x9\x9user_id,
\x9\x9 \x9\x9 iqprofession,
\x9\x9\x9 entery_date,
\x9\x9 \x9 isActive)\xa \x9 VALUES("; $Sql .= $this->isPropertySet("iqprofession_id", "V") ? $this->getProperty("iqprofession_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("iqprofession", "V") ? "'" . $this->getProperty("iqprofession") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_iqprofession SET "; if ($this->isPropertySet("iqprofession", "K")) { $Sql .= "{$con} iqprofession='" . $this->getProperty("iqprofession") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("iqprofession_id", "V")) { $Sql .= " AND iqprofession_id=" . $this->getProperty("iqprofession_id"); } break; case "DEL": $Sql = "UPDATE iqprofession_title SET \xa\x9\x9\x9\x9\x9\x9\x9isActive=3
\x9\x9WHERE\xa\x9 \x9\x9\x91=1"; $Sql .= " AND iqprofession_id=" . $this->getProperty("iqprofession_id"); break; default: break; } return $this->dbQuery($Sql); } public function actsubarea($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_subarea(\xa\x9 \x9\x9 \x9subarea_id,\xa\x9 \x9 user_id,\xa\x9\x9 \x9 subarea,
\x9\x9\x9\x9 entery_date,\xa\x9\x9\x9 isActive)\xa\x9 \x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("subarea_id", "V") ? $this->getProperty("subarea_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("subarea", "V") ? "'" . $this->getProperty("subarea") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_subarea SET "; if ($this->isPropertySet("subarea", "K")) { $Sql .= "{$con} subarea='" . $this->getProperty("subarea") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("subarea_id", "V")) { $Sql .= " AND subarea_id=" . $this->getProperty("subarea_id"); } break; case "DEL": $Sql = "UPDATE subarea SET \xa\x9 \x9\x9\x9 \x9isActive=3\xa \x9 WHERE\xa \x9 \x9\x9\x9\x91=1"; $Sql .= " AND subarea_id=" . $this->getProperty("subarea_id"); break; default: break; } return $this->dbQuery($Sql); } public function actorigunit($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_origunit(
\x9 \x9 origunit_id,
\x9 \x9\x9user_id,\xa\x9\x9\x9 \x9\x9origunit,\xa\x9 \x9 entery_date,
\x9\x9\x9\x9 \x9isActive)
\x9\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("origunit_id", "V") ? $this->getProperty("origunit_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("origunit", "V") ? "'" . $this->getProperty("origunit") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_origunit SET "; if ($this->isPropertySet("origunit", "K")) { $Sql .= "{$con} origunit='" . $this->getProperty("origunit") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("origunit_id", "V")) { $Sql .= " AND origunit_id=" . $this->getProperty("origunit_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_origunit SET \xa \x9\x9\x9 \x9isActive=3
\x9 \x9\x9WHERE\xa \x9\x9 \x9 1=1"; $Sql .= " AND origunit_id=" . $this->getProperty("origunit_id"); break; default: break; } return $this->dbQuery($Sql); } public function actloccode($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_loccode(\xa \x9 \x9 loccode_id,\xa\x9 \x9 user_id,
\x9\x9\x9\x9 loccode,
\x9\x9\x9entery_date,\xa \x9 \x9\x9isActive)\xa\x9\x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("loccode_id", "V") ? $this->getProperty("loccode_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("loccode", "V") ? "'" . $this->getProperty("loccode") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_loccode SET "; if ($this->isPropertySet("loccode", "K")) { $Sql .= "{$con} loccode='" . $this->getProperty("loccode") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("loccode_id", "V")) { $Sql .= " AND loccode_id=" . $this->getProperty("loccode_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_loccode SET \xa\x9 \x9\x9 \x9isActive=3\xa \x9WHERE
\x9\x9\x9 1=1"; $Sql .= " AND loccode_id=" . $this->getProperty("loccode_id"); break; default: break; } return $this->dbQuery($Sql); } public function actcostcenter($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_costcenter(
\x9\x9\x9\x9 \x9costcenter_id,
\x9 \x9 user_id,
\x9 \x9 \x9costcenter,
\x9 entery_date,
\x9 \x9\x9 isActive)\xa \x9 \x9 VALUES("; $Sql .= $this->isPropertySet("costcenter_id", "V") ? $this->getProperty("costcenter_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("costcenter", "V") ? "'" . $this->getProperty("costcenter") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_costcenter SET "; if ($this->isPropertySet("costcenter", "K")) { $Sql .= "{$con} costcenter='" . $this->getProperty("costcenter") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("costcenter_id", "V")) { $Sql .= " AND costcenter_id=" . $this->getProperty("costcenter_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_costcenter SET \xa\x9\x9 \x9 \x9 isActive=3
\x9\x9\x9\x9\x9WHERE\xa \x9\x9\x9 \x91=1"; $Sql .= " AND costcenter_id=" . $this->getProperty("costcenter_id"); break; default: break; } return $this->dbQuery($Sql); } public function actpayrollarea($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_payrollarea(\xa \x9 payrollarea_id,\xa\x9\x9 \x9user_id,\xa\x9 \x9payrollarea,
\x9\x9\x9 \x9 entery_date,
\x9isActive)
\x9\x9 VALUES("; $Sql .= $this->isPropertySet("payrollarea_id", "V") ? $this->getProperty("payrollarea_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("payrollarea", "V") ? "'" . $this->getProperty("payrollarea") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_payrollarea SET "; if ($this->isPropertySet("payrollarea", "K")) { $Sql .= "{$con} payrollarea='" . $this->getProperty("payrollarea") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("payrollarea_id", "V")) { $Sql .= " AND payrollarea_id=" . $this->getProperty("payrollarea_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_payrollarea SET \xa\x9\x9 \x9\x9isActive=3\xa\x9\x9 WHERE
\x9\x9 \x9 \x91=1"; $Sql .= " AND payrollarea_id=" . $this->getProperty("payrollarea_id"); break; default: break; } return $this->dbQuery($Sql); } public function actempnationality($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_empnationality(\xa\x9 \x9 empnationality_id,\xa \x9\x9\x9\x9 user_id,\xa\x9\x9\x9 \x9empnationality,\xa \x9 \x9entery_date,
\x9 \x9\x9 \x9isActive)\xa \x9 \x9VALUES("; $Sql .= $this->isPropertySet("empnationality_id", "V") ? $this->getProperty("empnationality_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("empnationality", "V") ? "'" . $this->getProperty("empnationality") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_empnationality SET "; if ($this->isPropertySet("empnationality", "K")) { $Sql .= "{$con} empnationality='" . $this->getProperty("empnationality") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("empnationality_id", "V")) { $Sql .= " AND empnationality_id=" . $this->getProperty("empnationality_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_empnationality SET
\x9\x9 isActive=3
\x9\x9 \x9 WHERE\xa \x9 1=1"; $Sql .= " AND empnationality_id=" . $this->getProperty("empnationality_id"); break; default: break; } return $this->dbQuery($Sql); } public function actShifts($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_shifts(
\x9 shift_id,
\x9\x9 user_id,\xa \x9shift_name,\xa \x9\x9shift_st,\xa \x9\x9\x9\x9\x9shift_et,\xa \x9\x9 \x9shift_ligt,
\x9\x9 shift_logt,
\x9\x9\x9\x9\x9shift_eigt,\xa\x9\x9\x9 \x9\x9shift_eogt,\xa \x9\x9 \x9\x9shift_bt,\xa \x9 \x9 full_late_in,
\x9\x9\x9 half_late_in,
\x9 \x9 \x9 qutr_late_in,\xa \x9\x9\x9\x9\x9full_off_bef,\xa\x9 \x9\x9 half_off_bef_start,\xa \x9\x9 \x9half_off_bef_end,\xa\x9\x9\x9\x9\x9\x9qutr_off_bef_start,
\x9\x9qutr_off_bef_end,
\x9 \x9\x9 \x9ten_off_bef_start,
\x9 \x9 ten_off_bef_end,\xa\x9\x9\x9 \x9 ligt_status,
\x9 \x9 eogt_status,\xa\x9 \x9\x9 \x9entery_date,
\x9 \x9\x9isActive)
\x9 VALUES("; $Sql .= $this->isPropertySet("shift_id", "V") ? $this->getProperty("shift_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_name", "V") ? "'" . $this->getProperty("shift_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_st", "V") ? "'" . $this->getProperty("shift_st") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_et", "V") ? "'" . $this->getProperty("shift_et") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_ligt", "V") ? "'" . $this->getProperty("shift_ligt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_logt", "V") ? "'" . $this->getProperty("shift_logt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_eigt", "V") ? "'" . $this->getProperty("shift_eigt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_eogt", "V") ? "'" . $this->getProperty("shift_eogt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_bt", "V") ? "'" . $this->getProperty("shift_bt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("full_late_in", "V") ? "'" . $this->getProperty("full_late_in") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("half_late_in", "V") ? "'" . $this->getProperty("half_late_in") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("qutr_late_in", "V") ? "'" . $this->getProperty("qutr_late_in") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("full_off_bef", "V") ? "'" . $this->getProperty("full_off_bef") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("half_off_bef_start", "V") ? "'" . $this->getProperty("half_off_bef_start") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("half_off_bef_end", "V") ? "'" . $this->getProperty("half_off_bef_end") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("qutr_off_bef_start", "V") ? "'" . $this->getProperty("qutr_off_bef_start") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("qutr_off_bef_end", "V") ? "'" . $this->getProperty("qutr_off_bef_end") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("ten_off_bef_start", "V") ? "'" . $this->getProperty("ten_off_bef_start") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("ten_off_bef_end", "V") ? "'" . $this->getProperty("ten_off_bef_end") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("ligt_status", "V") ? "'" . $this->getProperty("ligt_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("eogt_status", "V") ? "'" . $this->getProperty("eogt_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_shifts SET "; if ($this->isPropertySet("shift_name", "K")) { $Sql .= "{$con} shift_name='" . $this->getProperty("shift_name") . "'"; $con = ","; } if ($this->isPropertySet("job_title", "K")) { $Sql .= "{$con} job_title='" . $this->getProperty("job_title") . "'"; $con = ","; } if ($this->isPropertySet("shift_st", "K")) { $Sql .= "{$con} shift_st='" . $this->getProperty("shift_st") . "'"; $con = ","; } if ($this->isPropertySet("shift_et", "K")) { $Sql .= "{$con} shift_et='" . $this->getProperty("shift_et") . "'"; $con = ","; } if ($this->isPropertySet("shift_ligt", "K")) { $Sql .= "{$con} shift_ligt='" . $this->getProperty("shift_ligt") . "'"; $con = ","; } if ($this->isPropertySet("shift_logt", "K")) { $Sql .= "{$con} shift_logt='" . $this->getProperty("shift_logt") . "'"; $con = ","; } if ($this->isPropertySet("shift_eigt", "K")) { $Sql .= "{$con} shift_eigt='" . $this->getProperty("shift_eigt") . "'"; $con = ","; } if ($this->isPropertySet("shift_eogt", "K")) { $Sql .= "{$con} shift_eogt='" . $this->getProperty("shift_eogt") . "'"; $con = ","; } if ($this->isPropertySet("shift_bt", "K")) { $Sql .= "{$con} shift_bt='" . $this->getProperty("shift_bt") . "'"; $con = ","; } if ($this->isPropertySet("full_late_in", "K")) { $Sql .= "{$con} full_late_in='" . $this->getProperty("full_late_in") . "'"; $con = ","; } if ($this->isPropertySet("half_late_in", "K")) { $Sql .= "{$con} half_late_in='" . $this->getProperty("half_late_in") . "'"; $con = ","; } if ($this->isPropertySet("qutr_late_in", "K")) { $Sql .= "{$con} qutr_late_in='" . $this->getProperty("qutr_late_in") . "'"; $con = ","; } if ($this->isPropertySet("full_off_bef", "K")) { $Sql .= "{$con} full_off_bef='" . $this->getProperty("full_off_bef") . "'"; $con = ","; } if ($this->isPropertySet("half_off_bef_start", "K")) { $Sql .= "{$con} half_off_bef_start='" . $this->getProperty("half_off_bef_start") . "'"; $con = ","; } if ($this->isPropertySet("half_off_bef_end", "K")) { $Sql .= "{$con} half_off_bef_end='" . $this->getProperty("half_off_bef_end") . "'"; $con = ","; } if ($this->isPropertySet("qutr_off_bef_start", "K")) { $Sql .= "{$con} qutr_off_bef_start='" . $this->getProperty("qutr_off_bef_start") . "'"; $con = ","; } if ($this->isPropertySet("qutr_off_bef_end", "K")) { $Sql .= "{$con} qutr_off_bef_end='" . $this->getProperty("qutr_off_bef_end") . "'"; $con = ","; } if ($this->isPropertySet("ten_off_bef_start", "K")) { $Sql .= "{$con} ten_off_bef_start='" . $this->getProperty("ten_off_bef_start") . "'"; $con = ","; } if ($this->isPropertySet("ten_off_bef_end", "K")) { $Sql .= "{$con} ten_off_bef_end='" . $this->getProperty("ten_off_bef_end") . "'"; $con = ","; } if ($this->isPropertySet("ligt_status", "K")) { $Sql .= "{$con} ligt_status='" . $this->getProperty("ligt_status") . "'"; $con = ","; } if ($this->isPropertySet("eogt_status", "K")) { $Sql .= "{$con} eogt_status='" . $this->getProperty("eogt_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("shift_id", "V")) { $Sql .= " AND shift_id=" . $this->getProperty("shift_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_shifts SET \xa\x9\x9 \x9 isActive=3\xa \x9 \x9 WHERE\xa \x9 \x9 1=1"; $Sql .= " AND shift_id=" . $this->getProperty("shift_id"); break; default: break; } return $this->dbQuery($Sql); } public function actLeaveType($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_leave_type(
leave_type_id,
\x9 \x9user_id,
\x9\x9\x9\x9\x9leave_name,
\x9 \x9\x9 entery_date,\xa\x9\x9 \x9\x9\x9isActive)
\x9 \x9 VALUES("; $Sql .= $this->isPropertySet("leave_type_id", "V") ? $this->getProperty("leave_type_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_name", "V") ? "'" . $this->getProperty("leave_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_leave_type SET "; if ($this->isPropertySet("leave_name", "K")) { $Sql .= "{$con} leave_name='" . $this->getProperty("leave_name") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("leave_type_id", "V")) { $Sql .= " AND leave_type_id=" . $this->getProperty("leave_type_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_leave_type SET
\x9\x9 \x9\x9isActive=3
\x9\x9 WHERE
\x9 \x9\x9 1=1"; $Sql .= " AND leave_type_id=" . $this->getProperty("leave_type_id"); break; default: break; } return $this->dbQuery($Sql); } public function actHolidays($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_holidays(\xa \x9 \x9 \x9holiday_id,
\x9 \x9user_id,\xa\x9 \x9 \x9 holiday_name,\xa\x9 \x9 \x9 holiday_sd,
\x9\x9\x9 holiday_ed,
\x9\x9 \x9entery_date,
\x9 \x9\x9isActive)\xa\x9\x9\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("holiday_id", "V") ? $this->getProperty("holiday_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("holiday_name", "V") ? "'" . $this->getProperty("holiday_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("holiday_sd", "V") ? "'" . $this->getProperty("holiday_sd") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("holiday_ed", "V") ? "'" . $this->getProperty("holiday_ed") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_holidays SET "; if ($this->isPropertySet("holiday_name", "K")) { $Sql .= "{$con} holiday_name='" . $this->getProperty("holiday_name") . "'"; $con = ","; } if ($this->isPropertySet("holiday_sd", "K")) { $Sql .= "{$con} holiday_sd='" . $this->getProperty("holiday_sd") . "'"; $con = ","; } if ($this->isPropertySet("holiday_ed", "K")) { $Sql .= "{$con} holiday_ed='" . $this->getProperty("holiday_ed") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("holiday_id", "V")) { $Sql .= " AND holiday_id=" . $this->getProperty("holiday_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_holidays SET \xa\x9 \x9\x9isActive=3
\x9 WHERE\xa\x9 \x9\x9\x9 1=1"; $Sql .= " AND holiday_id=" . $this->getProperty("holiday_id"); break; default: break; } return $this->dbQuery($Sql); } public function actYearlyLeaveType($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_yearly_leave_type(\xa\x9 \x9 \x9yearly_leave_type_id,
\x9\x9\x9 \x9\x9user_id,
\x9 \x9\x9yearly_leave_name,\xa\x9 \x9 \x9number_of_leave,
\x9 \x9\x9 \x9entery_date,
\x9\x9 \x9 isActive,\xa\x9\x9 \x9yearly_leave_type)
\x9 \x9 VALUES("; $Sql .= $this->isPropertySet("yearly_leave_type_id", "V") ? $this->getProperty("yearly_leave_type_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("yearly_leave_name", "V") ? "'" . $this->getProperty("yearly_leave_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("number_of_leave", "V") ? "'" . $this->getProperty("number_of_leave") . "'" : "0"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("yearly_leave_type", "V") ? "'" . $this->getProperty("yearly_leave_type") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_yearly_leave_type SET "; if ($this->isPropertySet("yearly_leave_name", "K")) { $Sql .= "{$con} yearly_leave_name='" . $this->getProperty("yearly_leave_name") . "'"; $con = ","; } if ($this->isPropertySet("number_of_leave", "K")) { $Sql .= "{$con} number_of_leave='" . $this->getProperty("number_of_leave") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("yearly_leave_type", "K")) { $Sql .= "{$con} yearly_leave_type='" . $this->getProperty("yearly_leave_type") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("yearly_leave_type_id", "V")) { $Sql .= " AND yearly_leave_type_id=" . $this->getProperty("yearly_leave_type_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_yearly_leave_type SET \xa \x9\x9 \x9isActive=3
\x9 \x9 \x9WHERE
\x9 \x9\x91=1"; $Sql .= " AND yearly_leave_type_id=" . $this->getProperty("yearly_leave_type_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserLeaveRequest($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_leave_request(
\x9 \x9 leave_request_id,\xa\x9 \x9\x9 \x9user_id,\xa \x9\x9\x9 location_id,\xa\x9 \x9 leave_type_id,
\x9\x9 \x9\x9 yearly_leave_id,
\x9\x9\x9 \x9\x9leave_reason,\xa\x9 \x9\x9leave_of,
\x9 \x9 \x9leave_sd,\xa\x9\x9\x9\x9\x9\x9leave_ed,
\x9 \x9\x9 \x9forward_director,
\x9\x9\x9\x9\x9 company_id,
\x9 \x9 department_id,
\x9\x9\x9 leave_status,\xa \x9\x9 \x9 hr_id,
\x9\x9 entery_date,
\x9\x9 isActive)
\x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("leave_request_id", "V") ? $this->getProperty("leave_request_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("location_id", "V") ? $this->getProperty("location_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_type_id", "V") ? $this->getProperty("leave_type_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("yearly_leave_id", "V") ? $this->getProperty("yearly_leave_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_reason", "V") ? "'" . $this->getProperty("leave_reason") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_of", "V") ? "'" . $this->getProperty("leave_of") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_sd", "V") ? "'" . $this->getProperty("leave_sd") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_ed", "V") ? "'" . $this->getProperty("leave_ed") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("forward_director", "V") ? "'" . $this->getProperty("forward_director") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? $this->getProperty("company_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("department_id", "V") ? $this->getProperty("department_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_status", "V") ? "'" . $this->getProperty("leave_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("hr_id", "V") ? $this->getProperty("hr_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_leave_request SET "; if ($this->isPropertySet("forward_director", "K")) { $Sql .= "{$con} forward_director='" . $this->getProperty("forward_director") . "'"; $con = ","; } if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("leave_sd", "K")) { $Sql .= "{$con} leave_sd='" . $this->getProperty("leave_sd") . "'"; $con = ","; } if ($this->isPropertySet("leave_ed", "K")) { $Sql .= "{$con} leave_ed='" . $this->getProperty("leave_ed") . "'"; $con = ","; } if ($this->isPropertySet("leave_status", "K")) { $Sql .= "{$con} leave_status='" . $this->getProperty("leave_status") . "'"; $con = ","; } if ($this->isPropertySet("hr_id", "K")) { $Sql .= "{$con} hr_id='" . $this->getProperty("hr_id") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("leave_of", "K")) { $Sql .= "{$con} leave_of='" . $this->getProperty("leave_of") . "'"; $con = ","; } if ($this->isPropertySet("noofleave", "K")) { $Sql .= "{$con} noofleave='" . $this->getProperty("noofleave") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("leave_request_id", "V")) { $Sql .= " AND leave_request_id=" . $this->getProperty("leave_request_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_leave_request SET
\x9 \x9 isActive=3
\x9 \x9WHERE
\x9\x9 \x9 1=1"; $Sql .= " AND leave_request_id=" . $this->getProperty("leave_request_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserEmergencyNumber($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_emergency(
\x9\x9 \x9 user_emergency_id,
\x9\x9 user_id,
\x9 person_name,
\x9 contact_number,
\x9\x9isActive)
\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("user_emergency_id", "V") ? $this->getProperty("user_emergency_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("person_name", "V") ? "'" . $this->getProperty("person_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("contact_number", "V") ? "'" . $this->getProperty("contact_number") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_emergency SET "; if ($this->isPropertySet("person_name", "K")) { $Sql .= "{$con} person_name='" . $this->getProperty("person_name") . "'"; $con = ","; } if ($this->isPropertySet("contact_number", "K")) { $Sql .= "{$con} contact_number='" . $this->getProperty("contact_number") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_emergency_id", "V")) { $Sql .= " AND user_emergency_id=" . $this->getProperty("user_emergency_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_emergency SET
\x9\x9 \x9\x9isActive=3
\x9\x9 \x9WHERE
\x9 \x9\x91=1"; $Sql .= " AND user_emergency_id=" . $this->getProperty("user_emergency_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserJobDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_job_detail(\xa \x9\x9 user_job_detail_id,\xa \x9\x9 \x9\x9user_id,\xa\x9 \x9\x9\x9 job_title_id,
\x9\x9\x9\x9 job_description,
\x9 company_id,
\x9 \x9\x9\x9\x9department_id,
\x9joined_date,\xa\x9 \x9\x9 service_end_date,
\x9\x9 \x9\x9job_type,
\x9 \x9\x9\x9 probation_period_end_date,\xa \x9 \x9 probation_period_status,\xa \x9 \x9 dummy_shift_id)
\x9\x9 VALUES("; $Sql .= $this->isPropertySet("user_job_detail_id", "V") ? $this->getProperty("user_job_detail_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("job_title_id", "V") ? "'" . $this->getProperty("job_title_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("job_description", "V") ? "'" . $this->getProperty("job_description") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? "'" . $this->getProperty("company_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("department_id", "V") ? "'" . $this->getProperty("department_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("joined_date", "V") ? "'" . $this->getProperty("joined_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("service_end_date", "V") ? "'" . $this->getProperty("service_end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("job_type", "V") ? "'" . $this->getProperty("job_type") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("probation_period_end_date", "V") ? "'" . $this->getProperty("probation_period_end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("probation_period_status", "V") ? "'" . $this->getProperty("probation_period_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("dummy_shift_id", "V") ? "'" . $this->getProperty("dummy_shift_id") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_job_detail SET "; if ($this->isPropertySet("job_title_id", "K")) { $Sql .= "{$con} job_title_id='" . $this->getProperty("job_title_id") . "'"; $con = ","; } if ($this->isPropertySet("company_id", "K")) { $Sql .= "{$con} company_id='" . $this->getProperty("company_id") . "'"; $con = ","; } if ($this->isPropertySet("department_id", "K")) { $Sql .= "{$con} department_id='" . $this->getProperty("department_id") . "'"; $con = ","; } if ($this->isPropertySet("job_description", "K")) { $Sql .= "{$con} job_description='" . $this->getProperty("job_description") . "'"; $con = ","; } if ($this->isPropertySet("joined_date", "K")) { $Sql .= "{$con} joined_date='" . $this->getProperty("joined_date") . "'"; $con = ","; } if ($this->isPropertySet("service_end_date", "K")) { $Sql .= "{$con} service_end_date='" . $this->getProperty("service_end_date") . "'"; $con = ","; } if ($this->isPropertySet("probation_period_status", "K")) { $Sql .= "{$con} probation_period_status='" . $this->getProperty("probation_period_status") . "'"; $con = ","; } if ($this->isPropertySet("job_type", "K")) { $Sql .= "{$con} job_type='" . $this->getProperty("job_type") . "'"; $con = ","; } if ($this->isPropertySet("probation_period_end_date", "K")) { $Sql .= "{$con} probation_period_end_date='" . $this->getProperty("probation_period_end_date") . "'"; $con = ","; } if ($this->isPropertySet("dummy_shift_id", "K")) { $Sql .= "{$con} dummy_shift_id='" . $this->getProperty("dummy_shift_id") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_job_detail_id", "V")) { $Sql .= " AND user_job_detail_id=" . $this->getProperty("user_job_detail_id"); } break; case "DEL": default: break; } return $this->dbQuery($Sql); } public function actUserLeaves($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_leaves(\xa\x9\x9\x9\x9\x9\x9user_leave_id,\xa \x9 \x9user_id,\xa \x9 \x9leave_type_id,\xa \x9\x9 leave_days,
\x9 \x9\x9\x9\x9leave_attempt,\xa\x9 \x9 \x9remaining_leave,\xa \x9 \x9\x9 isActive)\xa \x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("user_leave_id", "V") ? $this->getProperty("user_leave_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_type_id", "V") ? "'" . $this->getProperty("leave_type_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_days", "V") ? "'" . $this->getProperty("leave_days") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_attempt", "V") ? "'" . $this->getProperty("leave_attempt") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("remaining_leave", "V") ? "'" . $this->getProperty("remaining_leave") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_leaves SET "; if ($this->isPropertySet("leave_days", "K")) { $Sql .= "{$con} leave_days='" . $this->getProperty("leave_days") . "'"; $con = ","; } if ($this->isPropertySet("leave_attempt", "K")) { $Sql .= "{$con} leave_attempt='" . $this->getProperty("leave_attempt") . "'"; $con = ","; } if ($this->isPropertySet("remaining_leave", "K")) { $Sql .= "{$con} remaining_leave='" . $this->getProperty("remaining_leave") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_leave_id", "V")) { $Sql .= " AND user_leave_id=" . $this->getProperty("user_leave_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_leaves SET
\x9 \x9\x9\x9\x9 isActive=3
\x9\x9 \x9WHERE\xa\x9 \x9 \x9 \x91=1"; $Sql .= " AND user_leave_id=" . $this->getProperty("user_leave_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserReference($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_reference(
\x9\x9 \x9 user_reference_id,
\x9\x9user_id,\xa\x9\x9\x9\x9\x9 person_name,\xa \x9 contact_no,\xa \x9\x9 company_name,\xa\x9 \x9 \x9 isActive)
\x9\x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("user_reference_id", "V") ? $this->getProperty("user_reference_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("person_name", "V") ? "'" . $this->getProperty("person_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("contact_no", "V") ? "'" . $this->getProperty("contact_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_name", "V") ? "'" . $this->getProperty("company_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_reference SET "; if ($this->isPropertySet("person_name", "K")) { $Sql .= "{$con} person_name='" . $this->getProperty("person_name") . "'"; $con = ","; } if ($this->isPropertySet("contact_no", "K")) { $Sql .= "{$con} contact_no='" . $this->getProperty("contact_no") . "'"; $con = ","; } if ($this->isPropertySet("company_name", "K")) { $Sql .= "{$con} company_name='" . $this->getProperty("company_name") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_reference_id", "V")) { $Sql .= " AND user_reference_id=" . $this->getProperty("user_reference_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_reference SET
\x9 \x9isActive=3\xa \x9\x9\x9 WHERE
\x9\x9 1=1"; $Sql .= " AND user_reference_id=" . $this->getProperty("user_reference_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserSkills($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_skills(\xa \x9\x9 \x9user_skills_id,\xa\x9\x9 \x9\x9user_id,\xa \x9\x9\x9\x9 skills)\xa\x9\x9\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("user_skills_id", "V") ? $this->getProperty("user_skills_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("skills", "V") ? "'" . $this->getProperty("skills") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_skills SET "; if ($this->isPropertySet("skills", "K")) { $Sql .= "{$con} skills='" . $this->getProperty("skills") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_skills_id", "V")) { $Sql .= " AND user_skills_id=" . $this->getProperty("user_skills_id"); } break; case "DEL": break; default: break; } return $this->dbQuery($Sql); } public function actUserShifts($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_shifts(
\x9 \x9\x9\x9 user_shift_id,
\x9 \x9user_id,\xa\x9 shift_id,\xa\x9 \x9 \x9\x9day_id,
\x9 \x9day_status,
\x9 isActive)
\x9\x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("user_shift_id", "V") ? $this->getProperty("user_shift_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_id", "V") ? "'" . $this->getProperty("shift_id") . "'" : "0"; $Sql .= ","; $Sql .= $this->isPropertySet("day_id", "V") ? "'" . $this->getProperty("day_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("day_status", "V") ? "'" . $this->getProperty("day_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_shifts SET "; if ($this->isPropertySet("shift_id", "K")) { $Sql .= "{$con} shift_id='" . $this->getProperty("shift_id") . "'"; $con = ","; } if ($this->isPropertySet("day_id", "K")) { $Sql .= "{$con} day_id='" . $this->getProperty("day_id") . "'"; $con = ","; } if ($this->isPropertySet("day_status", "K")) { $Sql .= "{$con} day_status='" . $this->getProperty("day_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_shift_id", "V")) { $Sql .= " AND user_shift_id=" . $this->getProperty("user_shift_id"); } break; case "DEL": break; default: break; } return $this->dbQuery($Sql); } public function actUserEducation($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_education(\xa\x9 \x9\x9\x9 user_education_id,\xa \x9\x9\x9user_id,\xa \x9\x9 \x9 institute_name,
\x9major,\xa\x9\x9 \x9\x9\x9start_date,
\x9\x9 \x9 end_date,
\x9 \x9 \x9document_file_name,\xa \x9 \x9 document_file,\xa other_note,\xa \x9 \x9\x9\x9isActive)
\x9 \x9 VALUES("; $Sql .= $this->isPropertySet("user_education_id", "V") ? $this->getProperty("user_education_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("institute_name", "V") ? "'" . $this->getProperty("institute_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("major", "V") ? "'" . $this->getProperty("major") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("start_date", "V") ? "'" . $this->getProperty("start_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("end_date", "V") ? "'" . $this->getProperty("end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("other_note", "V") ? "'" . $this->getProperty("other_note") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_education SET "; if ($this->isPropertySet("institute_name", "K")) { $Sql .= "{$con} institute_name='" . $this->getProperty("institute_name") . "'"; $con = ","; } if ($this->isPropertySet("major", "K")) { $Sql .= "{$con} major='" . $this->getProperty("major") . "'"; $con = ","; } if ($this->isPropertySet("start_date", "K")) { $Sql .= "{$con} start_date='" . $this->getProperty("start_date") . "'"; $con = ","; } if ($this->isPropertySet("end_date", "K")) { $Sql .= "{$con} end_date='" . $this->getProperty("end_date") . "'"; $con = ","; } if ($this->isPropertySet("document_file_name", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_education_id", "V")) { $Sql .= " AND user_education_id=" . $this->getProperty("user_education_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_education SET \xa\x9\x9 \x9 \x9 isActive=3
\x9 \x9\x9\x9WHERE
\x9 \x9 \x9\x9\x91=1"; $Sql .= " AND user_education_id=" . $this->getProperty("user_education_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserContract($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_contract(\xa\x9\x9\x9\x9 \x9user_contract_id,\xa\x9\x9\x9\x9 \x9user_id,\xa \x9 \x9start_date,\xa \x9 end_date,\xa \x9 \x9\x9 document_file_name,\xa\x9 \x9\x9\x9 document_file,
\x9\x9\x9\x9 \x9isActive)
\x9 \x9\x9 VALUES("; $Sql .= $this->isPropertySet("user_contract_id", "V") ? $this->getProperty("user_contract_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("start_date", "V") ? "'" . $this->getProperty("start_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("end_date", "V") ? "'" . $this->getProperty("end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file_name", "V") ? "'" . $this->getProperty("document_file_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("document_file", "V") ? "'" . $this->getProperty("document_file") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_contract SET "; if ($this->isPropertySet("start_date", "K")) { $Sql .= "{$con} start_date='" . $this->getProperty("start_date") . "'"; $con = ","; } if ($this->isPropertySet("end_date", "K")) { $Sql .= "{$con} end_date='" . $this->getProperty("end_date") . "'"; $con = ","; } if ($this->isPropertySet("document_file_name", "K")) { $Sql .= "{$con} document_file_name='" . $this->getProperty("document_file_name") . "'"; $con = ","; } if ($this->isPropertySet("document_file", "K")) { $Sql .= "{$con} document_file='" . $this->getProperty("document_file") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_contract_id", "V")) { $Sql .= " AND user_contract_id=" . $this->getProperty("user_contract_id"); } break; case "DEL": $Sql = "UPDATE user_contract_id SET \xa \x9 \x9\x9 \x9isActive=3\xa\x9 \x9 \x9WHERE\xa\x9 \x9 1=1"; $Sql .= " AND user_contract_id=" . $this->getProperty("user_contract_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserVacation($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_vacations(\xa\x9\x9\x9 \x9user_vacation_id,
\x9 \x9 user_id,\xa \x9 \x9vacation_type,
\x9\x9 vacation_reason,
\x9\x9\x9\x9start_date,
\x9\x9 \x9 \x9end_date,\xa \x9\x9\x9 rejoin_date,\xa\x9 \x9\x9 vacation_status ,
\x9\x9\x9 \x9entery_date,
\x9 \x9 isActive)\xa\x9\x9\x9\x9 VALUES("; $Sql .= $this->isPropertySet("user_vacation_id", "V") ? $this->getProperty("user_vacation_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("vacation_type", "V") ? $this->getProperty("vacation_type") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("vacation_reason", "V") ? "'" . $this->getProperty("vacation_reason") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("start_date", "V") ? "'" . $this->getProperty("start_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("end_date", "V") ? "'" . $this->getProperty("end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rejoin_date", "V") ? "'" . $this->getProperty("rejoin_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("vacation_status", "V") ? "'" . $this->getProperty("vacation_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_vacations SET "; if ($this->isPropertySet("vacation_type", "K")) { $Sql .= "{$con} vacation_type='" . $this->getProperty("vacation_type") . "'"; $con = ","; } if ($this->isPropertySet("vacation_reason", "K")) { $Sql .= "{$con} vacation_reason='" . $this->getProperty("vacation_reason") . "'"; $con = ","; } if ($this->isPropertySet("start_date", "K")) { $Sql .= "{$con} start_date='" . $this->getProperty("start_date") . "'"; $con = ","; } if ($this->isPropertySet("end_date", "K")) { $Sql .= "{$con} end_date='" . $this->getProperty("end_date") . "'"; $con = ","; } if ($this->isPropertySet("rejoin_date", "K")) { $Sql .= "{$con} rejoin_date='" . $this->getProperty("rejoin_date") . "'"; $con = ","; } if ($this->isPropertySet("vacation_status", "K")) { $Sql .= "{$con} vacation_status='" . $this->getProperty("vacation_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_vacation_id", "V")) { $Sql .= " AND user_vacation_id=" . $this->getProperty("user_vacation_id"); } break; case "DEL": $Sql = "UPDATE user_vacation_id SET
\x9 \x9\x9 isActive=3
\x9 \x9WHERE\xa \x9\x9\x91=1"; $Sql .= " AND user_vacation_id=" . $this->getProperty("user_vacation_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserEmployment($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_employment(
\x9\x9\x9 user_employment_id,
\x9\x9 \x9 user_id,\xa\x9\x9 \x9\x9 company_name,\xa\x9\x9 \x9\x9 job_title,\xa\x9\x9\x9 \x9 from_date,
\x9 \x9\x9end_date,
\x9\x9\x9 \x9\x9isActive)
\x9\x9 VALUES("; $Sql .= $this->isPropertySet("user_employment_id", "V") ? $this->getProperty("user_employment_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_name", "V") ? "'" . $this->getProperty("company_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("job_title", "V") ? "'" . $this->getProperty("job_title") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("from_date", "V") ? "'" . $this->getProperty("from_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("end_date", "V") ? "'" . $this->getProperty("end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_employment SET "; if ($this->isPropertySet("company_name", "K")) { $Sql .= "{$con} company_name='" . $this->getProperty("company_name") . "'"; $con = ","; } if ($this->isPropertySet("job_title", "K")) { $Sql .= "{$con} job_title='" . $this->getProperty("job_title") . "'"; $con = ","; } if ($this->isPropertySet("from_date", "K")) { $Sql .= "{$con} from_date='" . $this->getProperty("from_date") . "'"; $con = ","; } if ($this->isPropertySet("end_date", "K")) { $Sql .= "{$con} end_date='" . $this->getProperty("end_date") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_employment_id", "V")) { $Sql .= " AND user_employment_id=" . $this->getProperty("user_employment_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_employment SET \xa \x9 isActive=3\xa \x9\x9\x9WHERE
\x9 \x9 1=1"; $Sql .= " AND user_employment_id=" . $this->getProperty("user_employment_id"); break; default: break; } return $this->dbQuery($Sql); } public function actLeads($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_leads(\xa \x9\x9leads_id,
\x9\x9\x9 \x9 dmm_user_id,
\x9\x9\x9\x9\x9\x9\x9client_name,
\x9\x9 \x9 client_phone_number,\xa \x9\x9 client_email,
\x9 \x9\x9\x9\x9 client_message,\xa\x9 \x9 lead_date,
\x9 \x9 \x9 lead_from_id,\xa\x9 \x9 \x9entery_datetime,
\x9 rm_user_id,\xa \x9\x9 \x9rm_lead_status,\xa\x9 \x9 \x9 \x9rm_lead_view_datetime,\xa\x9\x9\x9\x9\x9 rm_action_datetime,
\x9\x9\x9\x9\x9rm_lead_fwd_status,
\x9 \x9\x9 \x9rm_lead_fwd_datetime,
\x9 assign_location_id,\xa\x9\x9 \x9 \x9\x9assign_team_lead_id,
\x9\x9 \x9\x9assign_teamlead_datetime,\xa \x9\x9\x9\x9\x9assign_agent_status,\xa \x9\x9\x9 \x9 assign_datetime,
\x9\x9 \x9 isActive,
\x9\x9 \x9\x9\x9 lead_status)\xa \x9 \x9\x9\x9VALUES("; $Sql .= $this->isPropertySet("leads_id", "V") ? $this->getProperty("leads_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("dmm_user_id", "V") ? $this->getProperty("dmm_user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("client_name", "V") ? "'" . $this->getProperty("client_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("client_phone_number", "V") ? "'" . $this->getProperty("client_phone_number") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("client_email", "V") ? "'" . $this->getProperty("client_email") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("client_message", "V") ? "'" . $this->getProperty("client_message") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("lead_date", "V") ? "'" . $this->getProperty("lead_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("lead_from_id", "V") ? "'" . $this->getProperty("lead_from_id") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_datetime", "V") ? "'" . $this->getProperty("entery_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_user_id", "V") ? "'" . $this->getProperty("rm_user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_lead_status", "V") ? "'" . $this->getProperty("rm_lead_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_lead_view_datetime", "V") ? "'" . $this->getProperty("rm_lead_view_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_action_datetime", "V") ? "'" . $this->getProperty("rm_action_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_lead_fwd_status", "V") ? "'" . $this->getProperty("rm_lead_fwd_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("rm_lead_fwd_datetime", "V") ? "'" . $this->getProperty("rm_lead_fwd_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_location_id", "V") ? "'" . $this->getProperty("assign_location_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_team_lead_id", "V") ? "'" . $this->getProperty("assign_team_lead_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_teamlead_datetime", "V") ? "'" . $this->getProperty("assign_teamlead_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_agent_status", "V") ? "'" . $this->getProperty("assign_agent_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_datetime", "V") ? "'" . $this->getProperty("assign_datetime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("lead_status", "V") ? "'" . $this->getProperty("lead_status") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_leads SET "; if ($this->isPropertySet("rm_user_id", "K")) { $Sql .= "{$con} rm_user_id='" . $this->getProperty("rm_user_id") . "'"; $con = ","; } if ($this->isPropertySet("rm_lead_status", "K")) { $Sql .= "{$con} rm_lead_status='" . $this->getProperty("rm_lead_status") . "'"; $con = ","; } if ($this->isPropertySet("rm_lead_view_datetime", "K")) { $Sql .= "{$con} rm_lead_view_datetime='" . $this->getProperty("rm_lead_view_datetime") . "'"; $con = ","; } if ($this->isPropertySet("rm_action_datetime", "K")) { $Sql .= "{$con} rm_action_datetime='" . $this->getProperty("rm_action_datetime") . "'"; $con = ","; } if ($this->isPropertySet("rm_lead_fwd_status", "K")) { $Sql .= "{$con} rm_lead_fwd_status='" . $this->getProperty("rm_lead_fwd_status") . "'"; $con = ","; } if ($this->isPropertySet("rm_lead_fwd_datetime", "K")) { $Sql .= "{$con} rm_lead_fwd_datetime='" . $this->getProperty("rm_lead_fwd_datetime") . "'"; $con = ","; } if ($this->isPropertySet("assign_location_id", "K")) { $Sql .= "{$con} assign_location_id='" . $this->getProperty("assign_location_id") . "'"; $con = ","; } if ($this->isPropertySet("assign_team_lead_id", "K")) { $Sql .= "{$con} assign_team_lead_id='" . $this->getProperty("assign_team_lead_id") . "'"; $con = ","; } if ($this->isPropertySet("assign_teamlead_datetime", "K")) { $Sql .= "{$con} assign_teamlead_datetime='" . $this->getProperty("assign_teamlead_datetime") . "'"; $con = ","; } if ($this->isPropertySet("assign_datetime", "K")) { $Sql .= "{$con} assign_datetime='" . $this->getProperty("assign_datetime") . "'"; $con = ","; } if ($this->isPropertySet("assign_agent_status", "K")) { $Sql .= "{$con} assign_agent_status='" . $this->getProperty("assign_agent_status") . "'"; $con = ","; } if ($this->isPropertySet("lead_status", "K")) { $Sql .= "{$con} lead_status='" . $this->getProperty("lead_status") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("leads_id", "V")) { $Sql .= " AND leads_id=" . $this->getProperty("leads_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_leads SET \xa \x9\x9 \x9isActive=3
\x9\x9 \x9 WHERE
\x9 \x9 \x9 1=1"; $Sql .= " AND leads_id=" . $this->getProperty("leads_id"); break; default: break; } return $this->dbQuery($Sql); } public function actLeadsAssign($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_leads_assign(\xa\x9 \x9 \x9 assign_lead_id,
\x9 \x9lead_id,
\x9 \x9\x9\x9\x9\x9assign_user_id,
\x9\x9\x9\x9\x9 assign_from_user_id,
\x9 \x9 assign_by,
\x9 \x9\x9 \x9assign_date,\xa\x9\x9\x9\x9\x9 assign_time,\xa \x9 assign_lead_status,\xa \x9 entery_date,
\x9 \x9 isActive,
\x9\x9 \x9\x9assign_action_status,\xa\x9\x9\x9 action_date,\xa \x9\x9 \x9 \x9action_time)\xa\x9\x9\x9\x9\x9\x9VALUES("; $Sql .= $this->isPropertySet("assign_lead_id", "V") ? $this->getProperty("assign_lead_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("lead_id", "V") ? $this->getProperty("lead_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_user_id", "V") ? "'" . $this->getProperty("assign_user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_from_user_id", "V") ? "'" . $this->getProperty("assign_from_user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_by", "V") ? "'" . $this->getProperty("assign_by") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_date", "V") ? "'" . $this->getProperty("assign_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_time", "V") ? "'" . $this->getProperty("assign_time") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_lead_status", "V") ? "'" . $this->getProperty("assign_lead_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_action_status", "V") ? "'" . $this->getProperty("assign_action_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("action_date", "V") ? "'" . $this->getProperty("action_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("action_time", "V") ? "'" . $this->getProperty("action_time") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_leads_assign SET "; if ($this->isPropertySet("assign_lead_status", "K")) { $Sql .= "{$con} assign_lead_status='" . $this->getProperty("assign_lead_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("assign_action_status", "K")) { $Sql .= "{$con} assign_action_status='" . $this->getProperty("assign_action_status") . "'"; $con = ","; } if ($this->isPropertySet("action_date", "K")) { $Sql .= "{$con} action_date='" . $this->getProperty("action_date") . "'"; $con = ","; } if ($this->isPropertySet("action_time", "K")) { $Sql .= "{$con} action_time='" . $this->getProperty("action_time") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("assign_lead_id", "V")) { $Sql .= " AND assign_lead_id=" . $this->getProperty("assign_lead_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_leads_assign SET \xa\x9 \x9\x9\x9 isActive=3
\x9\x9\x9 \x9\x9WHERE
\x9 \x91=1"; $Sql .= " AND assign_lead_id=" . $this->getProperty("assign_lead_id"); break; default: break; } return $this->dbQuery($Sql); } public function actLeadComments($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_lead_comments(
\x9\x9 \x9\x9\x9 lead_comment_id,
\x9 leads_id,
\x9 \x9assign_lead_id,\xa\x9\x9 \x9\x9\x9 user_id,\xa\x9 \x9\x9 \x9lead_comment,\xa\x9 \x9 \x9assign_lead_status,
\x9 \x9 entery_date,
\x9 \x9 isActive)\xa\x9 \x9 \x9 VALUES("; $Sql .= $this->isPropertySet("lead_comment_id", "V") ? $this->getProperty("lead_comment_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leads_id", "V") ? $this->getProperty("leads_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_lead_id", "V") ? "'" . $this->getProperty("assign_lead_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("lead_comment", "V") ? "'" . $this->getProperty("lead_comment") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("assign_lead_status", "V") ? "'" . $this->getProperty("assign_lead_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "NULL"; $Sql .= ")"; break; case "U": break; case "DEL": $Sql = "UPDATE rs_tbl_lead_comments SET
\x9 \x9 \x9 isActive=3
\x9 \x9\x9WHERE
\x9\x9\x9\x9 \x91=1"; $Sql .= " AND lead_comment_id=" . $this->getProperty("lead_comment_id"); break; default: break; } return $this->dbQuery($Sql); } public function actSalary($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_salary(
\x9\x9 \x9 \x9user_salary_id,
\x9 \x9\x9 user_id,\xa \x9\x9\x9\x9\x9\x9salary_amount,\xa\x9\x9 \x9 \x9 food_alowance,
\x9\x9 housing_alowance,\xa \x9\x9transport_alowance,\xa \x9\x9\x9security_alowance,
\x9 shift_alowance,\xa\x9\x9\x9 \x9 hardship_alowance,
\x9\x9 \x9 mobile_alowance,\xa\x9\x9\x9\x9\x9\x9 apply_from,
\x9\x9 \x9salary_status,
\x9 \x9 entery_date,
\x9 \x9 isActive)
\x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("user_salary_id", "V") ? $this->getProperty("user_salary_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("salary_amount", "V") ? "'" . $this->getProperty("salary_amount") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("food_alowance", "V") ? "'" . $this->getProperty("food_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("housing_alowance", "V") ? "'" . $this->getProperty("housing_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("transport_alowance", "V") ? "'" . $this->getProperty("transport_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("security_alowance", "V") ? "'" . $this->getProperty("security_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("shift_alowance", "V") ? "'" . $this->getProperty("shift_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("hardship_alowance", "V") ? "'" . $this->getProperty("hardship_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("mobile_alowance", "V") ? "'" . $this->getProperty("mobile_alowance") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("apply_from", "V") ? "'" . $this->getProperty("apply_from") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("salary_status", "V") ? "'" . $this->getProperty("salary_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_salary SET "; if ($this->isPropertySet("salary_amount", "K")) { $Sql .= "{$con} salary_amount='" . $this->getProperty("salary_amount") . "'"; $con = ","; } if ($this->isPropertySet("salary_amount", "K")) { $Sql .= "{$con} salary_amount='" . $this->getProperty("salary_amount") . "'"; $con = ","; } if ($this->isPropertySet("food_alowance", "K")) { $Sql .= "{$con} food_alowance='" . $this->getProperty("food_alowance") . "'"; $con = ","; } if ($this->isPropertySet("housing_alowance", "K")) { $Sql .= "{$con} housing_alowance='" . $this->getProperty("housing_alowance") . "'"; $con = ","; } if ($this->isPropertySet("transport_alowance", "K")) { $Sql .= "{$con} transport_alowance='" . $this->getProperty("transport_alowance") . "'"; $con = ","; } if ($this->isPropertySet("security_alowance", "K")) { $Sql .= "{$con} security_alowance='" . $this->getProperty("security_alowance") . "'"; $con = ","; } if ($this->isPropertySet("shift_alowance", "K")) { $Sql .= "{$con} shift_alowance='" . $this->getProperty("shift_alowance") . "'"; $con = ","; } if ($this->isPropertySet("hardship_alowance", "K")) { $Sql .= "{$con} hardship_alowance='" . $this->getProperty("hardship_alowance") . "'"; $con = ","; } if ($this->isPropertySet("mobile_alowance", "K")) { $Sql .= "{$con} mobile_alowance='" . $this->getProperty("mobile_alowance") . "'"; $con = ","; } if ($this->isPropertySet("apply_from", "K")) { $Sql .= "{$con} apply_from='" . $this->getProperty("apply_from") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("salary_status", "K")) { $Sql .= "{$con} salary_status='" . $this->getProperty("salary_status") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("user_salary_id", "V")) { $Sql .= " AND user_salary_id=" . $this->getProperty("user_salary_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_salary SET
\x9\x9 \x9\x9\x9isActive=3\xa \x9\x9\x9\x9\x9WHERE\xa\x9 \x9 \x91=1"; $Sql .= " AND user_salary_id=" . $this->getProperty("user_salary_id"); break; default: break; } return $this->dbQuery($Sql); } public function actSalaryBonus($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_salary_bonus(\xa\x9 \x9\x9 \x9 user_bonus_id,
\x9\x9 \x9 user_id,
\x9\x9\x9 bonus_amount,
\x9\x9 bonus_status,\xa \x9\x9 \x9\x9 entery_date,\xa\x9 \x9 isActive)\xa \x9\x9 \x9 VALUES("; $Sql .= $this->isPropertySet("user_bonus_id", "V") ? $this->getProperty("user_bonus_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? $this->getProperty("user_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("bonus_amount", "V") ? "'" . $this->getProperty("bonus_amount") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("bonus_status", "V") ? "'" . $this->getProperty("bonus_status") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_salary_bonus SET "; if ($this->isPropertySet("bonus_amount", "K")) { $Sql .= "{$con} bonus_amount='" . $this->getProperty("bonus_amount") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("bonus_status", "K")) { $Sql .= "{$con} bonus_status='" . $this->getProperty("bonus_status") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("user_bonus_id", "V")) { $Sql .= " AND user_bonus_id=" . $this->getProperty("user_bonus_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_salary_bonus SET
\x9 \x9 isActive=3\xa\x9\x9 \x9WHERE
\x9\x9\x9 \x91=1"; $Sql .= " AND user_bonus_id=" . $this->getProperty("user_bonus_id"); break; default: break; } return $this->dbQuery($Sql); } public function actProspectDetails($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_prospect_details(
\x9 prospect_id,\xa\x9\x9\x9 \x9\x9prospect_name,
\x9\x9 \x9 \x9prospect_email,\xa \x9\x9prospect_phone,\xa \x9\x9 prospect_msg,
\x9\x9 \x9\x9 prospect_formid,
\x9\x9 \x9\x9\x9isActive)
\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("prospect_id", "V") ? $this->getProperty("prospect_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("prospect_name", "V") ? "'" . $this->getProperty("prospect_name") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("prospect_email", "V") ? "'" . $this->getProperty("prospect_email") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("prospect_phone", "V") ? "'" . $this->getProperty("prospect_phone") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("prospect_msg", "V") ? "'" . $this->getProperty("prospect_msg") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("prospect_formid", "V") ? "'" . $this->getProperty("prospect_formid") . "'" : "4"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_prospect_details SET "; if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("prospect_id", "V")) { $Sql .= " AND prospect_id=" . $this->getProperty("prospect_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_prospect_details SET \xa\x9 \x9\x9 \x9 isActive=3\xa \x9 \x9 WHERE\xa \x9\x9\x9 1=1"; $Sql .= " AND prospect_id=" . $this->getProperty("prospect_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAdvanceSalaryDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_advance_salary(\xa\x9 \x9 \x9\x9 advance_salary_id,\xa\x9 \x9 \x9\x9user_id,\xa \x9 \x9\x9 salary_amount,\xa \x9\x9 \x9 paying_date,
\x9 \x9advance_month,\xa \x9\x9\x9 \x9advance_reason,\xa \x9 \x9 \x9 payback_option,\xa \x9\x9\x9\x9\x9\x9payback_in_months,\xa \x9\x9 \x9 advance_salary_status,
\x9 \x9 entery_date,
\x9\x9 \x9\x9\x9\x9isActive)
\x9\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("advance_salary_id", "V") ? $this->getProperty("advance_salary_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("salary_amount", "V") ? "'" . $this->getProperty("salary_amount") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("paying_date", "V") ? "'" . $this->getProperty("paying_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("advance_month", "V") ? "'" . $this->getProperty("advance_month") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("advance_reason", "V") ? "'" . $this->getProperty("advance_reason") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("payback_option", "V") ? "'" . $this->getProperty("payback_option") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("payback_in_months", "V") ? "'" . $this->getProperty("payback_in_months") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("advance_salary_status", "V") ? "'" . $this->getProperty("advance_salary_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_advance_salary SET "; if ($this->isPropertySet("advance_salary_status", "K")) { $Sql .= "{$con} advance_salary_status='" . $this->getProperty("advance_salary_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("payback_option", "K")) { $Sql .= "{$con} payback_option='" . $this->getProperty("payback_option") . "'"; $con = ","; } if ($this->isPropertySet("payback_amount", "K")) { $Sql .= "{$con} payback_amount='" . $this->getProperty("payback_amount") . "'"; $con = ","; } if ($this->isPropertySet("payback_in_months", "K")) { $Sql .= "{$con} payback_in_months='" . $this->getProperty("payback_in_months") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("advance_salary_id", "V")) { $Sql .= " AND advance_salary_id=" . $this->getProperty("advance_salary_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_advance_salary SET \xa\x9\x9 \x9\x9isActive=3\xa\x9\x9 \x9 \x9WHERE
\x9\x9 \x9\x91=1"; $Sql .= " AND advance_salary_id=" . $this->getProperty("advance_salary_id"); break; default: break; } return $this->dbQuery($Sql); } public function actAdvanceSalaryPayBackDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_advance_salary_payback(\xa\x9\x9\x9 \x9 payback_monthly_id,
\x9 \x9\x9 user_id,\xa \x9\x9 \x9 \x9advance_salary_id,
\x9 \x9 monthly_amount,\xa \x9 \x9 \x9payback_status,\xa \x9 \x9\x9payback_date,\xa \x9\x9\x9 \x9\x9isActive,\xa \x9\x9 entery_date)\xa \x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("payback_monthly_id", "V") ? $this->getProperty("payback_monthly_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("advance_salary_id", "V") ? "'" . $this->getProperty("advance_salary_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("monthly_amount", "V") ? "'" . $this->getProperty("monthly_amount") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("payback_status", "V") ? "'" . $this->getProperty("payback_status") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("payback_date", "V") ? "'" . $this->getProperty("payback_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_advance_salary_payback SET "; if ($this->isPropertySet("payback_status", "K")) { $Sql .= "{$con} payback_status='" . $this->getProperty("payback_status") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("payback_monthly_id", "V")) { $Sql .= " AND payback_monthly_id=" . $this->getProperty("payback_monthly_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_advance_salary_payback SET \xa\x9\x9\x9\x9\x9 \x9isActive=3
\x9\x9 \x9\x9WHERE\xa \x9\x9\x9\x9\x91=1"; $Sql .= " AND payback_monthly_id=" . $this->getProperty("payback_monthly_id"); break; default: break; } return $this->dbQuery($Sql); } public function actEmployeeOverTimeDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_overtime_detail(\xa \x9\x9\x9 emp_overtime_id,\xa \x9\x9 \x9user_id,\xa \x9\x9\x9\x9\x9 att_id,
\x9 \x9\x9att_date,
\x9 \x9 \x9 no_of_hrs,\xa \x9 rate_per_hr,
\x9 \x9 \x9 per_day_salary,
\x9entery_date,
\x9 \x9 \x9 isActive)\xa \x9 \x9VALUES("; $Sql .= $this->isPropertySet("emp_overtime_id", "V") ? $this->getProperty("emp_overtime_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("att_id", "V") ? "'" . $this->getProperty("att_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("att_date", "V") ? "'" . $this->getProperty("att_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("no_of_hrs", "V") ? "'" . $this->getProperty("no_of_hrs") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("rate_per_hr", "V") ? "'" . $this->getProperty("rate_per_hr") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("per_day_salary", "V") ? "'" . $this->getProperty("per_day_salary") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_overtime_detail SET "; if ($this->isPropertySet("per_day_salary", "K")) { $Sql .= "{$con} per_day_salary='" . $this->getProperty("per_day_salary") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } if ($this->isPropertySet("overtime_approved", "K")) { $Sql .= "{$con} overtime_approved='" . $this->getProperty("overtime_approved") . "'"; $con = ","; } if ($this->isPropertySet("overtime_pay", "K")) { $Sql .= "{$con} overtime_pay='" . $this->getProperty("overtime_pay") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("emp_overtime_id", "V")) { $Sql .= " AND emp_overtime_id=" . $this->getProperty("emp_overtime_id"); } if ($this->isPropertySet("user_id", "V")) { $Sql .= " AND user_id=" . $this->getProperty("user_id"); } if ($this->isPropertySet("att_id", "V")) { $Sql .= " AND att_id=" . $this->getProperty("att_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_overtime_detail SET \xa \x9 \x9\x9\x9isActive=3
\x9 \x9 \x9WHERE\xa \x9 \x91=1"; $Sql .= " AND emp_overtime_id=" . $this->getProperty("emp_overtime_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserRequestFlow($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_request_flow(\xa\x9 \x9\x9 request_flow_id,\xa\x9\x9 \x9\x9 \x9user_id,
\x9 \x9\x9company_id,
\x9 \x9\x9\x9\x9department_id,
\x9 \x9 request_flow_type,\xa \x9\x9\x9 employee_id,
\x9\x9 \x9 leave_request_to,
\x9\x9\x9\x9 overtime_request_to,\xa \x9\x9 \x9\x9isActive,\xa\x9 \x9\x9 entery_date)\xa \x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("request_flow_id", "V") ? $this->getProperty("request_flow_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("company_id", "V") ? "'" . $this->getProperty("company_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("department_id", "V") ? "'" . $this->getProperty("department_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("request_flow_type", "V") ? "'" . $this->getProperty("request_flow_type") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("employee_id", "V") ? "'" . $this->getProperty("employee_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("leave_request_to", "V") ? "'" . $this->getProperty("leave_request_to") . "'" : "0"; $Sql .= ","; $Sql .= $this->isPropertySet("overtime_request_to", "V") ? "'" . $this->getProperty("overtime_request_to") . "'" : "0"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_request_flow SET "; if ($this->isPropertySet("leave_request_to", "K")) { $Sql .= "{$con} leave_request_to='" . $this->getProperty("leave_request_to") . "'"; $con = ","; } if ($this->isPropertySet("overtime_request_to", "K")) { $Sql .= "{$con} overtime_request_to='" . $this->getProperty("overtime_request_to") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("request_flow_id", "V")) { $Sql .= " AND request_flow_id=" . $this->getProperty("request_flow_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_request_flow SET \xa\x9 \x9\x9\x9 isActive=3
\x9 WHERE\xa \x9 \x9 1=1"; $Sql .= " AND request_flow_id=" . $this->getProperty("request_flow_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserRequestFlowLog($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_request_flow_log(\xa \x9 \x9 \x9request_flow_log_id,
user_id,\xa \x9\x9 \x9\x9request_flow_id,\xa \x9 \x9 \x9activity_detail,
\x9 \x9 isActive,
\x9 entery_date)\xa\x9 \x9 \x9VALUES("; $Sql .= $this->isPropertySet("request_flow_log_id", "V") ? $this->getProperty("request_flow_log_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("request_flow_id", "V") ? "'" . $this->getProperty("request_flow_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("activity_detail", "V") ? "'" . $this->getProperty("activity_detail") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ")"; break; case "U": break; case "DEL": $Sql = "UPDATE rs_tbl_user_request_flow_log SET
\x9 \x9\x9\x9\x9\x9isActive=3
\x9\x9\x9WHERE\xa\x9 \x9 1=1"; $Sql .= " AND request_flow_log_id=" . $this->getProperty("request_flow_log_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserBankDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_bank_account_detail(
\x9 employee_bank_id,
\x9\x9\x9 \x9\x9\x9user_id,
\x9 \x9 bank_id,\xa \x9\x9\x9 \x9\x9account_no,\xa\x9 \x9 account_title,\xa\x9\x9 \x9 iban_no,
\x9\x9\x9\x9\x9\x9\x9entery_date,
\x9 \x9\x9isActive)
\x9\x9 \x9VALUES("; $Sql .= $this->isPropertySet("employee_bank_id", "V") ? $this->getProperty("employee_bank_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("bank_id", "V") ? "'" . $this->getProperty("bank_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("account_no", "V") ? "'" . $this->getProperty("account_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("account_title", "V") ? "'" . $this->getProperty("account_title") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("iban_no", "V") ? "'" . $this->getProperty("iban_no") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_bank_account_detail SET "; if ($this->isPropertySet("account_no", "K")) { $Sql .= "{$con} account_no='" . $this->getProperty("account_no") . "'"; $con = ","; } if ($this->isPropertySet("account_title", "K")) { $Sql .= "{$con} account_title='" . $this->getProperty("account_title") . "'"; $con = ","; } if ($this->isPropertySet("iban_no", "K")) { $Sql .= "{$con} iban_no='" . $this->getProperty("iban_no") . "'"; $con = ","; } if ($this->isPropertySet("isActive", "K")) { $Sql .= "{$con} isActive='" . $this->getProperty("isActive") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("employee_bank_id", "V")) { $Sql .= " AND employee_bank_id=" . $this->getProperty("employee_bank_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_bank_account_detail SET \xa \x9\x9\x9 \x9isActive=3\xa \x9WHERE\xa \x9 \x9 1=1"; $Sql .= " AND employee_bank_id=" . $this->getProperty("employee_bank_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserMonthlyPaidSalary($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_monthly_paid_salary(
\x9 \x9 \x9\x9monthly_salary_id,
\x9 \x9\x9 entery_user_id,
\x9 flt_start_date,\xa \x9 \x9 flt_end_date,
\x9\x9\x9 \x9entery_date,
\x9 \x9\x9 isActive)\xa \x9\x9 \x9\x9VALUES("; $Sql .= $this->isPropertySet("monthly_salary_id", "V") ? $this->getProperty("monthly_salary_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_user_id", "V") ? "'" . $this->getProperty("entery_user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("flt_start_date", "V") ? "'" . $this->getProperty("flt_start_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("flt_end_date", "V") ? "'" . $this->getProperty("flt_end_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": break; case "DEL": $Sql = "UPDATE rs_tbl_user_monthly_paid_salary SET
\x9 \x9\x9 \x9isActive=3\xa\x9\x9 \x9 WHERE
\x9 \x9 \x9\x9\x91=1"; $Sql .= " AND monthly_salary_id=" . $this->getProperty("monthly_salary_id"); break; default: break; } return $this->dbQuery($Sql); } public function actUserMonthlyPaidSalaryDetail($mode = "I") { $mode = strtoupper($mode); switch ($mode) { case "I": $Sql = "INSERT INTO rs_tbl_user_monthly_paid_salary_detail(
\x9 paid_salary_detail_id,\xa\x9 \x9\x9 \x9 monthly_salary_id,\xa \x9 \x9\x9user_id,\xa \x9 \x9\x9 emp_lieo,\xa\x9\x9 \x9\x9\x9emp_absent,\xa\x9 \x9\x9 \x9emp_aprv_leaves,\xa\x9 \x9 \x9\x9emp_adv_amount,\xa \x9\x9 \x9 \x9emp_adv_payback_id,\xa \x9 \x9 emp_deduction,
\x9\x9 \x9emp_cutting_mode,\xa \x9\x9\x9\x9\x9emp_monthly_salary,\xa\x9\x9\x9 emp_bonus_id,\xa \x9 emp_bonus,\xa \x9\x9\x9\x9 \x9emp_overtime,
\x9 \x9\x9\x9 pay_mode,
\x9\x9\x9\x9 \x9 entery_date,\xa\x9 \x9\x9 isActive)
\x9 \x9 \x9 VALUES("; $Sql .= $this->isPropertySet("paid_salary_detail_id", "V") ? $this->getProperty("paid_salary_detail_id") : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("monthly_salary_id", "V") ? "'" . $this->getProperty("monthly_salary_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("user_id", "V") ? "'" . $this->getProperty("user_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_lieo", "V") ? "'" . $this->getProperty("emp_lieo") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_absent", "V") ? "'" . $this->getProperty("emp_absent") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_aprv_leaves", "V") ? "'" . $this->getProperty("emp_aprv_leaves") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_adv_amount", "V") ? "'" . $this->getProperty("emp_adv_amount") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_adv_payback_id", "V") ? "'" . $this->getProperty("emp_adv_payback_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_deduction", "V") ? "'" . $this->getProperty("emp_deduction") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_cutting_mode", "V") ? "'" . $this->getProperty("emp_cutting_mode") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_monthly_salary", "V") ? "'" . $this->getProperty("emp_monthly_salary") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_bonus_id", "V") ? "'" . $this->getProperty("emp_bonus_id") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_bonus", "V") ? "'" . $this->getProperty("emp_bonus") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("emp_overtime", "V") ? "'" . $this->getProperty("emp_overtime") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("pay_mode", "V") ? "'" . $this->getProperty("pay_mode") . "'" : "1"; $Sql .= ","; $Sql .= $this->isPropertySet("entery_date", "V") ? "'" . $this->getProperty("entery_date") . "'" : "NULL"; $Sql .= ","; $Sql .= $this->isPropertySet("isActive", "V") ? "'" . $this->getProperty("isActive") . "'" : "1"; $Sql .= ")"; break; case "U": $Sql = "UPDATE rs_tbl_user_monthly_paid_salary_detail SET "; if ($this->isPropertySet("transaction_status", "K")) { $Sql .= "{$con} transaction_status='" . $this->getProperty("transaction_status") . "'"; $con = ","; } if ($this->isPropertySet("transaction_number", "K")) { $Sql .= "{$con} transaction_number='" . $this->getProperty("transaction_number") . "'"; $con = ","; } $Sql .= " WHERE 1=1"; if ($this->isPropertySet("paid_salary_detail_id", "V")) { $Sql .= " AND paid_salary_detail_id=" . $this->getProperty("paid_salary_detail_id"); } break; case "DEL": $Sql = "UPDATE rs_tbl_user_monthly_paid_salary_detail SET \xa \x9 isActive=3\xa\x9\x9\x9 WHERE
\x9\x9 \x9\x9\x9 1=1"; if ($this->isPropertySet("paid_salary_detail_id", "K")) { $Sql .= " AND paid_salary_detail_id='" . $this->getProperty("paid_salary_detail_id") . "'"; } if ($this->isPropertySet("monthly_salary_id", "K")) { $Sql .= " AND monthly_salary_id='" . $this->getProperty("monthly_salary_id") . "'"; } break; default: break; } return $this->dbQuery($Sql); } public function changePassword() { $Sql = "UPDATE rs_tbl_users SET\xa\x9 user_pass='" . $this->getProperty("user_pass") . "'
\x9\x9WHERE
\x9\x9\x91=1"; $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; return $this->dbQuery($Sql); } public function changeSecurityCode() { $Sql = "UPDATE rs_tbl_users SET
\x9\x9 \x9\x9user_security_code='" . $this->getProperty("user_security_code") . "' \xa \x9\x9 WHERE
\x9 \x9 1=1"; $Sql .= " AND user_id='" . $this->getProperty("user_id") . "'"; return $this->dbQuery($Sql); } public function genCode($table, $field) { $Sql = "SELECT
\x9\x9 \x9 MAX(" . $field . ") + 1 AS MaxValueR
\x9 \x9 FROM
\x9\x9 \x9\x9" . $table . "
\x9WHERE\xa\x9\x9 \x9\x91=1"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); if ($rows["MaxValueR"] != NULL && $rows["MaxValueR"] != '') { return $rows["MaxValueR"]; } else { return 1; } } } ?>
Did this file decode correctly?
Original Code
<?php
class Albariuser extends Database { public $user_login; public $user_id; public $user_mobile; public $fullname; public $user_fname; public $login_time; public $ProTmpID; public $user_type; public $profile_img; public $location_id; public $sd_panel; public $sd_code; public function __construct() { parent::__construct(); if ($_SESSION["\x75\x73\x65\162\x5f\154\x6f\147\x69\x6e"]) { $this->gen_fir = $_SESSION["\147\x65\x6e\137\x66\x69\x72"]; $this->user_login = $_SESSION["\165\x73\145\162\137\154\157\x67\x69\x6e"]; $this->user_id = $_SESSION["\x75\163\x65\x72\137\x69\144"]; $this->user_mobile = $_SESSION["\165\163\x65\162\137\x6d\157\x62\x69\154\145"]; $this->fullname = $_SESSION["\x66\x75\x6c\x6c\156\x61\x6d\145"]; $this->login_time = $_SESSION["\x6c\157\x67\151\156\137\164\151\155\x65"]; $this->user_fname = $_SESSION["\165\163\145\162\x5f\146\156\141\155\145"]; $this->user_type = $_SESSION["\x75\163\x65\x72\137\164\171\160\145"]; $this->profile_img = $_SESSION["\x70\162\157\146\x69\154\x65\x5f\x69\x6d\147"]; $this->location_id = $_SESSION["\154\x6f\x63\x61\x74\151\157\x6e\x5f\x69\144"]; $this->sd_panel = $_SESSION["\163\144\x5f\x70\x61\x6e\x65\x6c"]; $this->sd_code = $_SESSION["\163\x64\x5f\143\157\144\145"]; } if ($_SESSION["\120\x72\x6f\124\155\x70\111\104"]) { $this->ProTmpID = $_SESSION["\x50\x72\157\124\155\160\111\x44"]; } } function generate_fingerprint() { foreach (array("\x48\x54\124\x50\x5f\x48\x4f\x53\x54", "\110\x54\124\x50\x5f\x41\103\103\105\x50\x54", "\122\105\115\117\x54\105\x5f\101\104\104\x52", "\x53\x45\122\126\105\x52\x5f\116\101\x4d\105", "\x48\124\124\120\x5f\125\x53\105\x52\137\101\x47\105\x4e\124") as $name) { $key[] = empty($_SERVER[$name]) ? NULL : $_SERVER[$name]; } $key[] = "\x2f" . SITE_NAME . "\x2f" . SITE_URL . "\x2f" . session_id(); return md5(implode("\x0", $key)); } public function setLogin() { $_SESSION["\x67\x65\156\137\x66\151\x72"] = $this->generate_fingerprint(); $_SESSION["\x75\163\x65\x72\x5f\154\x6f\x67\151\x6e"] = true; if ($this->isPropertySet("\165\163\x65\x72\x5f\151\144", "\126")) { $_SESSION["\165\163\x65\x72\x5f\x69\x64"] = $this->getProperty("\165\x73\145\x72\137\x69\x64"); } if ($this->isPropertySet("\x75\163\x65\x72\137\x6d\x6f\x62\x69\154\x65", "\126")) { $_SESSION["\x75\x73\145\162\x5f\155\x6f\142\x69\x6c\145"] = $this->getProperty("\x75\163\145\162\137\x6d\x6f\142\x69\x6c\145"); } if ($this->isPropertySet("\154\x6f\147\151\156\137\x74\x69\155\145", "\x56")) { $_SESSION["\154\x6f\x67\151\156\x5f\x74\x69\x6d\x65"] = $this->getProperty("\154\157\x67\151\x6e\137\x74\151\x6d\145"); } if ($this->isPropertySet("\x66\165\x6c\x6c\x6e\x61\x6d\145", "\126")) { $_SESSION["\146\x75\x6c\x6c\156\141\x6d\145"] = $this->getProperty("\x66\x75\154\x6c\156\141\155\x65"); } if ($this->isPropertySet("\165\x73\145\x72\137\x66\x6e\141\x6d\145", "\x56")) { $_SESSION["\165\x73\145\162\137\146\x6e\x61\x6d\145"] = $this->getProperty("\165\x73\145\x72\137\146\x6e\141\x6d\x65"); } if ($this->isPropertySet("\165\x73\145\x72\137\164\x79\160\x65", "\126")) { $_SESSION["\165\163\x65\x72\137\164\x79\x70\x65"] = $this->getProperty("\x75\163\x65\162\x5f\x74\171\160\145"); } if ($this->isPropertySet("\160\x72\x6f\146\x69\x6c\145\x5f\x69\155\x67", "\126")) { $_SESSION["\160\162\x6f\146\x69\154\145\x5f\x69\x6d\147"] = $this->getProperty("\x70\x72\x6f\x66\151\x6c\145\137\x69\155\147"); } if ($this->isPropertySet("\154\x6f\143\x61\x74\151\157\x6e\x5f\x69\144", "\126")) { $_SESSION["\154\157\x63\141\164\x69\x6f\x6e\137\x69\144"] = $this->getProperty("\154\x6f\x63\141\164\151\157\x6e\137\x69\144"); } if ($this->isPropertySet("\163\144\x5f\x63\157\144\x65", "\x56")) { $_SESSION["\x73\x64\x5f\143\x6f\x64\145"] = $this->getProperty("\x73\x64\137\x63\157\x64\x65"); } $_SESSION["\x73\144\x5f\160\x61\x6e\x65\154"] = "\146\x61\154\x73\x65"; } public function setSecurityCode() { $_SESSION["\x73\144\137\x70\x61\156\145\154"] = "\164\x72\x75\x65"; if ($this->isPropertySet("\x73\144\x5f\x63\x6f\x64\x65", "\126")) { $_SESSION["\163\x64\x5f\x63\x6f\x64\x65"] = $this->getProperty("\163\144\x5f\143\157\144\x65"); } } public function checkLogin() { if ($this->user_login && $this->gen_fir == $this->generate_fingerprint()) { return true; } else { return false; } } function getExtention($type) { if ($type == "\151\155\x61\147\145\x2f\x6a\160\145\147" || $type == "\x69\x6d\141\x67\x65\x2f\x6a\160\x67" || $type == "\x69\155\141\x67\145\57\x70\x6a\160\x65\147") { return "\152\160\147"; } elseif ($type == "\151\155\x61\147\145\x2f\160\x6e\x67") { return "\x70\x6e\147"; } elseif ($type == "\151\155\x61\147\145\x2f\x67\151\x66") { return "\x67\151\x66"; } } public function getImagename($type, $user_id = '') { $md5 = md5(time()); $filename = substr($md5, rand(5, 25), 5); if ($user_id != '') { $filename = $filename . "\x2d" . $user_id . "\56" . $this->getExtention($type); } else { $filename = $filename . "\x2e" . $this->getExtention($type); } return $filename; } public function getDocumentName($filanname, $user_id = '') { $md5 = md5(time()); $filename = substr($md5, rand(5, 25), 5); if ($user_id != '') { $filename = $filename . "\55" . $user_id . "\56" . end(explode("\56", $filanname)); } else { $filename = $filename . "\x2e" . end(explode("\56", $filanname)); } return $filename; } public function getExtentionValidate($type) { if ($type == "\151\155\x61\x67\x65\57\152\160\x65\x67" || $type == "\x69\x6d\x61\147\x65\57\x6a\x70\x67" || $type == "\151\x6d\141\147\145\x2f\160\x6a\x70\x65\x67" || $type == "\x69\x6d\x61\x67\145\x2f\x70\156\x67" || $type == "\x69\x6d\x61\147\x65\57\x67\x69\146") { return 1; } else { return 0; } } public function MonthList($Month_id) { $MonthList = ''; if ($Month_id == 1) { $MonthList .= "\74\157\x70\x74\x69\157\x6e\x20\166\x61\154\x75\145\75\42\61\42\x20\x73\x65\x6c\145\x63\164\145\144\76\x4a\141\x6e\x3c\x2f\x6f\160\x74\151\x6f\156\x3e"; } else { $MonthList .= "\74\x6f\160\164\151\x6f\156\x20\x76\141\154\165\145\75\x22\61\x22\76\x4a\141\x6e\74\57\157\160\164\151\157\x6e\76"; } if ($Month_id == 2) { $MonthList .= "\x3c\x6f\160\x74\x69\157\x6e\x20\x76\141\154\x75\x65\75\x22\62\42\x20\x73\145\x6c\145\x63\164\145\144\76\x46\145\142\74\x2f\157\x70\164\151\x6f\x6e\76"; } else { $MonthList .= "\74\157\160\x74\151\157\156\40\x76\141\154\x75\145\75\42\62\x22\x3e\106\145\x62\x3c\x2f\157\160\164\x69\157\x6e\x3e"; } if ($Month_id == 3) { $MonthList .= "\74\157\160\164\151\x6f\156\40\x76\x61\x6c\165\x65\x3d\42\63\42\40\163\145\x6c\x65\x63\x74\x65\x64\76\115\141\162\x3c\57\x6f\x70\x74\x69\157\x6e\x3e"; } else { $MonthList .= "\x3c\157\160\x74\151\157\156\40\x76\141\154\165\145\75\42\63\42\76\115\141\162\74\57\157\160\164\151\157\156\76"; } if ($Month_id == 4) { $MonthList .= "\x3c\x6f\x70\x74\151\x6f\x6e\40\x76\x61\154\165\145\75\42\x34\42\40\163\x65\154\x65\x63\x74\145\x64\x3e\x41\160\162\x3c\57\x6f\x70\164\151\157\x6e\x3e"; } else { $MonthList .= "\x3c\157\x70\164\x69\x6f\x6e\40\166\141\x6c\165\x65\75\42\x34\x22\76\101\x70\x72\x3c\x2f\x6f\x70\x74\151\x6f\156\x3e"; } if ($Month_id == 5) { $MonthList .= "\x3c\157\x70\164\151\157\156\40\166\141\154\x75\x65\75\x22\x35\42\40\163\x65\154\x65\x63\x74\145\144\x3e\x4d\x61\171\74\x2f\157\160\164\151\157\x6e\76"; } else { $MonthList .= "\74\157\160\164\x69\x6f\156\40\166\141\x6c\x75\145\x3d\42\65\x22\x3e\115\x61\171\x3c\57\x6f\x70\x74\151\x6f\x6e\x3e"; } if ($Month_id == 6) { $MonthList .= "\x3c\x6f\x70\x74\x69\x6f\156\x20\166\x61\154\x75\145\75\x22\66\42\x20\163\x65\x6c\x65\x63\x74\145\144\x3e\112\165\156\74\x2f\157\160\x74\x69\157\x6e\76"; } else { $MonthList .= "\74\157\x70\x74\x69\x6f\156\x20\166\x61\x6c\165\145\75\x22\x36\x22\x3e\x4a\x75\x6e\74\57\157\x70\x74\151\157\156\76"; } if ($Month_id == 7) { $MonthList .= "\x3c\x6f\160\164\x69\157\x6e\40\166\141\x6c\x75\145\75\x22\x37\42\40\x73\145\x6c\145\143\x74\x65\144\x3e\112\x75\x6c\x3c\57\157\x70\x74\151\157\156\76"; } else { $MonthList .= "\x3c\157\160\164\x69\x6f\x6e\40\x76\x61\154\x75\x65\x3d\42\67\42\76\112\x75\154\74\57\157\x70\164\151\157\x6e\76"; } if ($Month_id == 8) { $MonthList .= "\x3c\x6f\160\x74\151\x6f\x6e\40\x76\x61\x6c\165\145\x3d\x22\x38\42\40\163\x65\x6c\145\143\x74\145\x64\76\101\x75\x67\x3c\x2f\x6f\x70\x74\151\157\156\76"; } else { $MonthList .= "\x3c\157\x70\164\x69\x6f\x6e\40\166\141\154\165\145\75\x22\x38\x22\76\x41\x75\x67\x3c\57\x6f\x70\x74\x69\157\156\x3e"; } if ($Month_id == 9) { $MonthList .= "\x3c\x6f\x70\164\151\157\x6e\x20\x76\x61\154\165\x65\x3d\42\71\x22\x20\163\145\x6c\145\x63\x74\x65\x64\x3e\x53\x65\160\x3c\x2f\x6f\160\x74\x69\157\x6e\x3e"; } else { $MonthList .= "\x3c\x6f\x70\164\x69\x6f\156\40\x76\x61\x6c\x75\x65\75\x22\x39\42\x3e\123\145\x70\74\57\x6f\160\164\x69\x6f\x6e\76"; } if ($Month_id == 10) { $MonthList .= "\74\x6f\x70\x74\151\x6f\x6e\x20\x76\141\154\x75\x65\x3d\42\x31\x30\42\x20\x73\x65\x6c\145\x63\x74\145\144\x3e\x4f\143\x74\x3c\x2f\x6f\160\164\x69\x6f\156\76"; } else { $MonthList .= "\74\157\x70\x74\151\157\x6e\x20\166\x61\x6c\165\x65\x3d\42\61\60\x22\76\x4f\x63\x74\x3c\x2f\x6f\x70\x74\151\x6f\x6e\x3e"; } if ($Month_id == 11) { $MonthList .= "\74\157\x70\x74\x69\157\x6e\40\x76\141\x6c\165\x65\x3d\42\61\x31\x22\40\x73\145\x6c\x65\143\164\x65\144\76\116\x6f\x76\74\57\x6f\160\164\x69\x6f\x6e\x3e"; } else { $MonthList .= "\x3c\157\x70\164\x69\x6f\156\40\x76\x61\x6c\x75\x65\x3d\x22\61\x31\x22\76\x4e\x6f\166\74\x2f\157\x70\164\x69\157\156\76"; } if ($Month_id == 12) { $MonthList .= "\74\x6f\x70\x74\x69\157\x6e\x20\x76\x61\x6c\x75\145\75\42\61\62\42\40\x73\x65\154\145\x63\x74\145\144\76\104\145\x63\x3c\57\x6f\x70\x74\151\x6f\x6e\76"; } else { $MonthList .= "\x3c\x6f\x70\164\x69\x6f\x6e\40\166\141\154\x75\145\x3d\42\x31\62\x22\x3e\104\x65\x63\74\57\157\x70\x74\x69\x6f\x6e\x3e"; } return $MonthList; } public function DayList($Day_id) { $Day_list = ''; for ($i = 1; $i <= 31; $i++) { if ($i == $Day_id) { $Day_list .= "\74\x6f\x70\x74\151\x6f\x6e\x20\166\x61\154\x75\145\x3d\x22" . $i . "\42\40\163\145\x6c\145\x63\164\145\x64\x3e" . $i . "\x3c\x2f\157\160\164\151\x6f\156\x3e"; } else { $Day_list .= "\x3c\157\x70\164\151\157\156\40\x76\x61\x6c\165\145\x3d\x22" . $i . "\x22\76" . $i . "\74\x2f\157\x70\164\151\x6f\156\76"; } } return $Day_list; } public function YearList($Year_id) { $Year_list = ''; for ($y = 1905; $y <= 2011; $y++) { if ($y == $Year_id) { $Year_list .= "\x3c\x6f\x70\164\x69\157\x6e\x20\x76\x61\x6c\x75\x65\x3d\42" . $y . "\x22\40\163\145\x6c\x65\x63\x74\x65\144\x3e" . $y . "\74\x2f\x6f\160\x74\x69\157\156\x3e"; } else { $Year_list .= "\74\x6f\160\164\x69\157\156\x20\x76\141\154\165\x65\75\x22" . $y . "\42\x3e" . $y . "\x3c\57\157\x70\164\151\x6f\156\x3e"; } } return $Year_list; } public function settmpReg() { if ($this->isPropertySet("\120\162\157\x54\x6d\x70\x49\104", "\126")) { $_SESSION["\120\x72\x6f\x54\x6d\160\111\104"] = $this->getProperty("\x50\162\157\124\x6d\x70\111\104"); } } public function UnRegTmp() { unset($_SESSION["\x50\x72\x6f\x54\155\x70\x49\x44"]); } public function CheckUserEmail() { $Sql = "\x53\x45\x4c\x45\x43\124\x20\xa\11\11\x9\11\11\165\163\x65\162\137\151\144\54\12\x9\11\11\x9\11\165\x73\x65\x72\x5f\145\155\141\151\x6c\12\11\x9\11\x9\x46\122\117\x4d\xa\x9\x9\11\x9\x9\162\x73\137\x74\142\154\x5f\x75\163\145\x72\x73\12\x9\x9\11\11\x57\x48\x45\122\x45\x20\xa\x9\11\11\x9\x9\x31\x3d\x31"; if ($this->isPropertySet("\x75\163\x65\162\137\145\x6d\141\151\x6c", "\126")) { $Sql .= "\40\101\116\x44\x20\x75\163\x65\x72\x5f\x65\155\141\x69\154\75\x27" . $this->getProperty("\x75\163\x65\x72\137\x65\x6d\141\x69\154") . "\47"; } return $this->dbQuery($Sql); } public function CheckUserMobile() { $Sql = "\123\105\x4c\105\103\x54\x20\xa\x9\x9\x9\11\11\x75\x73\145\x72\137\151\144\x2c\12\x9\11\11\x9\x9\165\x73\x65\x72\x5f\155\x6f\x62\x69\154\145\12\x9\x9\x9\x9\106\122\x4f\x4d\xa\11\11\x9\x9\x9\x72\163\137\x74\142\x6c\137\x75\163\145\x72\163\xa\11\x9\x9\11\x57\110\105\x52\x45\x20\xa\11\x9\11\11\x9\x31\75\x31"; if ($this->isPropertySet("\x75\163\x65\x72\137\x6d\x6f\142\x69\x6c\x65", "\126")) { $Sql .= "\x20\x41\x4e\104\40\x75\x73\x65\162\137\x6d\157\142\151\154\145\x3d\x27" . $this->getProperty("\165\163\x65\x72\137\155\x6f\142\151\x6c\x65") . "\x27"; } return $this->dbQuery($Sql); } public function CheckLeadPhone() { $Sql = "\123\x45\114\x45\x43\124\40\12\x9\x9\x9\11\x9\x6c\x65\x61\144\x73\137\x69\144\x2c\xa\x9\11\x9\11\11\143\154\151\x65\156\164\137\160\150\157\156\x65\137\156\x75\155\x62\145\x72\12\11\x9\x9\11\x46\x52\117\x4d\xa\11\x9\x9\11\11\x72\x73\x5f\x74\x62\x6c\137\x6c\145\x61\x64\x73\12\11\x9\11\x9\127\x48\105\x52\x45\x20\xa\11\11\x9\x9\x9\61\75\61"; if ($this->isPropertySet("\x63\154\x69\145\x6e\164\137\x70\150\x6f\x6e\x65\x5f\x6e\x75\155\142\145\162", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\x63\x6c\151\145\x6e\164\137\x70\150\x6f\156\145\x5f\156\x75\155\x62\x65\x72\x3d\x27" . $this->getProperty("\143\x6c\x69\145\156\164\137\x70\150\157\156\145\x5f\x6e\165\155\142\x65\162") . "\47"; } return $this->dbQuery($Sql); } public function checkUserLogin() { $Sql = "\123\x45\114\105\x43\x54\x20\xa\x9\x9\x9\11\11\165\x73\x65\x72\x5f\x69\144\54\12\11\x9\x9\x9\x9\165\163\145\162\137\x65\x6d\x61\151\x6c\54\xa\11\x9\x9\x9\x9\165\163\x65\162\x5f\x6d\157\142\151\154\145\54\12\11\11\x9\x9\x9\x75\x73\x65\162\137\160\x61\163\x73\x2c\12\x9\11\x9\x9\x9\x75\163\x65\162\137\x66\x6e\141\155\145\54\12\11\11\11\x9\x9\165\x73\145\x72\x5f\x6c\x6e\141\x6d\145\x2c\12\11\x9\x9\x9\11\x43\117\x4e\103\x41\x54\x28\165\x73\145\x72\x5f\146\156\x61\155\145\x2c\47\40\47\54\x75\163\x65\x72\137\154\156\141\155\145\51\x20\x41\x53\x20\x66\x75\x6c\x6c\x6e\x61\x6d\x65\54\12\x9\11\11\11\11\x75\163\145\x72\x5f\x74\171\160\x65\x5f\x69\x64\54\12\11\11\11\x9\x9\151\163\101\143\x74\x69\x76\x65\x2c\12\x9\11\11\x9\x9\x6c\x6f\x67\x69\156\x5f\x72\x65\x71\x75\x69\162\x65\144\x2c\xa\11\x9\x9\x9\11\x75\163\145\x72\137\x70\162\157\x66\151\x6c\145\x5f\151\155\x67\54\12\11\11\11\x9\x9\163\x6d\x73\x5f\x76\145\x72\151\146\x69\x63\x61\x74\151\x6f\156\54\12\11\x9\x9\11\11\163\150\x6f\x72\x74\x5f\143\x6f\144\145\54\12\11\11\x9\x9\11\x6c\x6f\143\x61\164\x69\157\x6e\137\x69\x64\xa\x9\x9\11\11\x46\122\117\115\12\11\x9\x9\11\x9\x72\163\x5f\x74\x62\x6c\x5f\165\163\145\x72\163\xa\x9\x9\x9\11\x57\x48\x45\122\105\40\xa\x9\11\x9\x9\x9\x31\75\x31"; if ($this->isPropertySet("\165\x73\145\162\137\x65\155\141\151\x6c", "\126")) { $Sql .= "\x20\x41\116\104\40\165\163\145\x72\137\145\x6d\141\151\x6c\75\x27" . $this->getProperty("\165\x73\145\162\x5f\145\x6d\141\x69\154") . "\x27"; } if ($this->isPropertySet("\x75\163\x65\x72\137\x6d\157\142\151\x6c\x65", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\x75\x73\145\x72\137\155\157\x62\x69\x6c\x65\x3d\47" . $this->getProperty("\165\x73\145\162\137\x6d\x6f\x62\151\154\145") . "\x27"; } if ($this->isPropertySet("\x73\x68\x6f\x72\x74\x5f\143\157\144\145", "\126")) { $Sql .= "\x20\x41\x4e\104\40\x73\150\x6f\162\164\x5f\143\x6f\144\x65\75\47" . $this->getProperty("\x73\x68\x6f\162\164\x5f\x63\157\x64\x65") . "\x27"; } if ($this->isPropertySet("\154\157\x67\151\156\x5f\x72\145\161\165\151\162\x65\144", "\126")) { $Sql .= "\x20\x41\116\x44\x20\154\157\x67\151\x6e\137\x72\145\161\x75\x69\162\145\x64\75\x27" . $this->getProperty("\154\x6f\147\151\x6e\x5f\x72\145\161\165\151\x72\145\x64") . "\47"; } if ($this->isPropertySet("\x75\163\145\x72\137\164\x79\x70\x65\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\116\104\x20\x75\x73\145\x72\137\x74\x79\x70\145\x5f\151\x64\75" . $this->getProperty("\165\x73\145\162\x5f\164\171\x70\145\137\x69\144"); } if ($this->isPropertySet("\165\x73\145\162\137\160\x61\163\163", "\126")) { $Sql .= "\40\x41\x4e\x44\40\165\x73\145\162\137\x70\x61\163\163\75\x27" . $this->getProperty("\x75\163\145\x72\137\x70\141\x73\x73") . "\47"; } return $this->dbQuery($Sql); } public function checkUserSecurityCode() { $Sql = "\123\x45\114\105\103\x54\x20\12\11\11\x9\11\x9\x75\163\145\162\x5f\x69\144\54\12\x9\x9\11\11\11\165\163\x65\x72\x5f\163\145\x63\x75\x72\x69\x74\171\137\x63\157\144\145\12\11\11\11\x9\106\122\x4f\x4d\xa\11\11\x9\11\11\162\163\137\164\x62\x6c\137\x75\163\145\x72\163\12\11\11\x9\11\x57\110\x45\x52\x45\40\xa\x9\x9\11\11\11\x31\75\61"; if ($this->isPropertySet("\x75\163\x65\x72\x5f\x69\144", "\126")) { $Sql .= "\40\x41\x4e\x44\40\x75\x73\x65\162\137\151\x64\75\x27" . $this->getProperty("\165\x73\x65\162\137\x69\x64") . "\47"; } if ($this->isPropertySet("\165\163\145\162\137\163\x65\x63\165\162\x69\x74\171\137\x63\157\x64\x65", "\126")) { $Sql .= "\40\101\x4e\x44\x20\165\163\x65\162\x5f\163\145\x63\165\x72\151\164\171\137\143\157\144\145\x3d\x27" . $this->getProperty("\x75\x73\145\x72\137\x73\x65\x63\x75\x72\151\x74\x79\137\x63\x6f\x64\145") . "\47"; } return $this->dbQuery($Sql); } public function UserActivate() { $Sql = "\x55\x50\x44\x41\124\105\40\x72\x73\137\164\x62\154\x5f\165\163\x65\x72\163\40\123\105\x54\xa\11\x9\x9\11\x9\x69\x73\x41\143\x74\x69\x76\145\x3d\x31\xa\11\11\x9\11\127\x48\x45\122\105\40\12\11\x9\x9\11\11\61\75\x31"; if ($this->isPropertySet("\x75\x73\x65\x72\x5f\151\x64", "\126")) { $Sql .= "\40\x41\116\104\x20\x75\x73\145\162\137\151\x64\x3d" . $this->getProperty("\165\x73\x65\162\x5f\151\144"); } return $this->dbQuery($Sql); } public function customerCombo($sel = '') { $opt = ''; $Sql = "\123\x45\x4c\105\x43\x54\x20\12\11\11\x9\x9\x9\165\163\145\x72\137\x69\x64\x2c\xa\x9\x9\x9\11\11\103\117\x4e\x43\101\x54\x28\x75\163\x65\x72\137\146\x6e\141\x6d\145\54\x20\47\40\x27\x2c\x20\x75\163\145\162\x5f\154\156\141\155\x65\x29\40\141\163\40\146\x75\154\x6c\156\x61\x6d\x65\xa\11\11\x9\11\x46\x52\117\x4d\12\x9\11\11\11\11\x72\x73\x5f\x74\142\154\x5f\x75\x73\x65\162\163\12\x9\x9\11\x9\127\110\105\x52\105\xa\11\11\x9\11\11\x31\x3d\61\x20\12\11\11\11\11\x9\x41\116\104\x20\151\163\x41\x63\x74\x69\166\145\x3d\61\x20\x4f\122\x44\x45\122\40\102\131\x20\165\163\145\162\x5f\146\x6e\x61\155\x65"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\165\163\x65\162\x5f\x69\x64"] == $sel) { $opt .= "\74\157\x70\164\151\157\x6e\x20\x76\x61\154\165\145\75\42" . $rows["\x75\163\145\x72\137\151\144"] . "\x22\40\163\145\154\x65\143\x74\x65\144\x3e" . $rows["\x66\165\154\154\x6e\x61\x6d\145"] . "\x3c\57\157\160\x74\151\157\156\76\12"; } else { $opt .= "\x3c\157\160\164\x69\157\x6e\x20\166\x61\x6c\165\x65\75\42" . $rows["\165\163\x65\162\137\x69\x64"] . "\x22\x3e" . $rows["\x66\x75\x6c\x6c\156\x61\x6d\145"] . "\74\x2f\x6f\160\x74\x69\157\156\76\12"; } } return $opt; } public function LeaveTypeCombo($sel = '') { $opt = ''; $Sql = "\123\x45\x4c\105\103\x54\40\xa\11\x9\11\11\11\154\145\141\x76\x65\x5f\164\x79\x70\145\x5f\x69\144\54\xa\11\11\11\x9\11\154\145\x61\166\145\x5f\x6e\x61\x6d\145\12\11\x9\11\11\x46\122\117\115\xa\x9\11\x9\x9\x9\162\163\x5f\x74\x62\x6c\x5f\154\x65\141\x76\145\x5f\164\x79\160\145\xa\x9\11\11\11\x57\110\105\x52\x45\xa\11\11\11\x9\x9\61\75\x31\40\xa\11\11\x9\11\11\101\116\104\x20\x69\x73\101\x63\x74\151\x76\x65\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x6c\145\141\x76\145\137\x74\x79\x70\x65\x5f\151\144"] == $sel) { $opt .= "\74\x6f\x70\164\151\x6f\156\x20\166\x61\154\165\x65\x3d\42" . $rows["\x6c\x65\141\x76\x65\137\164\171\x70\145\137\x69\144"] . "\42\40\163\x65\x6c\145\143\164\145\144\76" . $rows["\154\145\x61\166\x65\137\156\141\155\x65"] . "\74\57\157\160\164\151\x6f\156\x3e\12"; } else { $opt .= "\74\157\x70\x74\x69\157\x6e\40\x76\x61\154\165\x65\75\x22" . $rows["\154\145\141\166\145\x5f\x74\171\x70\x65\137\x69\144"] . "\42\76" . $rows["\x6c\145\141\166\145\137\x6e\141\155\145"] . "\x3c\x2f\x6f\160\164\x69\157\x6e\76\12"; } } return $opt; } public function YearlyLeaveTypeCombo($sel = '') { $opt = ''; $Sql = "\x53\105\114\x45\x43\124\x20\xa\11\x9\11\11\11\171\x65\141\162\x6c\171\137\154\145\141\166\x65\137\164\x79\x70\145\x5f\151\x64\54\xa\x9\x9\x9\11\11\171\145\141\x72\x6c\x79\x5f\154\x65\x61\x76\x65\137\x6e\141\x6d\x65\xa\x9\11\x9\x9\x46\122\117\115\xa\11\x9\11\11\x9\162\163\137\164\x62\x6c\x5f\x79\x65\x61\x72\x6c\x79\x5f\x6c\145\x61\x76\145\x5f\x74\171\x70\145\12\x9\x9\x9\11\127\x48\x45\122\x45\xa\x9\11\11\x9\11\61\x3d\x31\40\12\11\11\x9\x9\11\x41\116\x44\40\x69\163\x41\143\164\x69\x76\x65\x3d\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x79\145\141\x72\x6c\x79\x5f\154\x65\141\x76\145\137\164\x79\x70\145\x5f\151\144"] == $sel) { $opt .= "\74\x6f\160\164\151\157\156\x20\x76\x61\x6c\x75\x65\75\42" . $rows["\x79\145\141\x72\x6c\171\x5f\x6c\145\x61\166\x65\x5f\164\171\x70\145\137\151\x64"] . "\x22\40\x73\145\154\145\143\164\x65\x64\76" . $rows["\x79\x65\x61\x72\x6c\x79\137\154\145\x61\x76\x65\x5f\x6e\x61\x6d\x65"] . "\74\x2f\x6f\x70\164\x69\x6f\x6e\x3e\12"; } else { $opt .= "\74\157\160\164\151\157\x6e\x20\x76\x61\x6c\165\145\75\42" . $rows["\171\145\141\162\154\171\137\154\x65\141\166\145\x5f\x74\171\x70\145\x5f\x69\x64"] . "\42\x3e" . $rows["\x79\x65\141\x72\154\x79\137\x6c\x65\141\166\x65\x5f\x6e\x61\x6d\145"] . "\74\57\157\160\x74\151\x6f\x6e\76\12"; } } return $opt; } public function EmployeeCombo($sel = '') { $opt = ''; $Sql = "\x53\105\x4c\x45\103\124\x20\xa\11\x9\x9\11\11\x75\x73\x65\162\x5f\x69\x64\x2c\12\x9\11\x9\11\11\x43\x4f\116\103\x41\x54\x28\165\163\x65\x72\137\146\156\x61\155\x65\54\40\47\x20\x27\54\x20\x75\x73\145\162\137\x6c\156\141\x6d\x65\51\x20\x61\163\40\x66\165\154\x6c\x6e\141\x6d\x65\12\x9\11\11\11\x46\x52\x4f\115\xa\11\x9\11\11\x9\162\163\137\164\142\x6c\x5f\x75\x73\145\x72\x73\12\x9\x9\11\11\127\x48\105\x52\105\12\11\11\x9\x9\11\61\75\x31\x20\xa\x9\x9\11\x9\x9\101\x4e\x44\40\151\163\x41\143\164\x69\166\x65\75\61\x20\x41\116\104\x20\x75\163\x65\x72\x5f\x74\171\x70\x65\x5f\x69\x64\41\75\x31\40\x41\x4e\x44\x20\x64\x65\166\151\x63\x65\137\x75\151\x64\41\x3d\x30\40\x4f\x52\x44\105\122\40\102\x59\40\165\163\145\162\x5f\146\156\x61\155\145"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x75\x73\145\x72\x5f\151\x64"] == $sel) { $opt .= "\x3c\x6f\x70\x74\151\157\x6e\40\166\x61\x6c\x75\x65\x3d\x22" . $rows["\165\163\x65\162\137\151\144"] . "\x22\40\163\x65\x6c\x65\143\164\145\144\x3e" . $rows["\x66\165\x6c\154\156\x61\155\x65"] . "\x3c\x2f\x6f\160\164\x69\157\x6e\x3e\xa"; } else { $opt .= "\74\157\x70\164\x69\x6f\x6e\x20\x76\x61\154\x75\x65\75\42" . $rows["\165\x73\x65\x72\137\151\x64"] . "\42\76" . $rows["\x66\165\x6c\154\156\x61\x6d\x65"] . "\74\x2f\x6f\160\164\x69\157\x6e\x3e\12"; } } return $opt; } public function EmployeeComboDeviceId($sel = '') { $opt = ''; $Sql = "\x53\x45\x4c\105\x43\x54\x20\xa\11\x9\x9\11\x9\x75\x73\145\162\137\x69\144\x2c\12\x9\x9\11\11\11\x64\145\166\151\143\145\x5f\165\x69\x64\x2c\xa\x9\11\x9\11\11\103\117\x4e\103\x41\x54\50\x75\x73\145\162\x5f\146\x6e\141\155\145\54\x20\x27\x20\x27\x2c\x20\x75\163\145\162\x5f\x6c\156\x61\x6d\x65\51\40\x61\163\40\146\165\154\x6c\156\141\155\145\12\x9\11\11\x9\106\122\x4f\x4d\xa\x9\11\x9\11\x9\x72\163\x5f\x74\x62\154\x5f\x75\163\145\162\x73\xa\x9\11\x9\11\x57\110\x45\122\x45\xa\x9\x9\x9\x9\x9\x31\x3d\x31\x20\xa\x9\x9\11\x9\11\101\x4e\x44\40\x69\163\101\x63\164\x69\166\145\x3d\x31\40\101\x4e\104\x20\165\x73\x65\x72\x5f\164\171\x70\145\x5f\x69\x64\41\75\x31\40\x41\x4e\104\40\144\x65\166\151\143\x65\137\165\x69\144\x21\x3d\x30"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x64\x65\x76\151\x63\x65\137\x75\151\144"] == $sel) { $opt .= "\x3c\157\x70\x74\151\157\x6e\x20\x76\x61\154\165\x65\75\x22" . $rows["\x64\145\166\x69\x63\145\x5f\x75\x69\x64"] . "\42\x20\x73\x65\x6c\145\x63\x74\x65\x64\x3e" . $rows["\146\x75\x6c\x6c\156\x61\155\x65"] . "\x3c\57\x6f\x70\164\151\157\x6e\x3e\12"; } else { $opt .= "\74\x6f\x70\164\x69\x6f\x6e\x20\166\141\x6c\165\x65\75\42" . $rows["\x64\x65\x76\x69\143\145\x5f\165\x69\x64"] . "\x22\x3e" . $rows["\146\165\154\154\156\x61\x6d\x65"] . "\74\57\x6f\x70\164\151\x6f\156\x3e\12"; } } return $opt; } public function ShiftCombo($sel = '') { $opt = ''; $Sql = "\x53\x45\114\105\x43\x54\40\xa\11\x9\11\x9\11\163\150\151\146\x74\x5f\x69\144\x2c\12\11\x9\x9\x9\11\163\150\x69\x66\x74\137\156\x61\155\x65\12\11\x9\11\11\x46\122\117\115\xa\11\11\x9\x9\11\162\x73\x5f\164\x62\x6c\137\163\x68\151\146\x74\x73\12\11\11\x9\11\x57\110\105\122\x45\xa\x9\11\x9\11\11\61\75\61\x20\12\11\11\11\11\11\101\116\x44\40\x69\163\x41\143\x74\x69\166\145\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\163\x68\151\x66\x74\137\x69\x64"] == $sel) { $opt .= "\74\157\x70\164\x69\157\156\x20\166\x61\154\x75\x65\75\x22" . $rows["\163\150\151\146\164\x5f\151\x64"] . "\x22\x20\x73\x65\x6c\x65\x63\164\145\144\76" . $rows["\163\150\151\x66\164\x5f\156\x61\x6d\145"] . "\x3c\x2f\x6f\x70\164\151\x6f\156\76\12"; } else { $opt .= "\74\x6f\x70\164\x69\x6f\156\x20\x76\x61\x6c\165\x65\75\x22" . $rows["\163\x68\x69\x66\164\x5f\151\x64"] . "\42\76" . $rows["\x73\x68\x69\146\164\137\156\x61\155\x65"] . "\x3c\x2f\157\160\x74\x69\x6f\156\76\xa"; } } if ($sel != '' && $sel == 0) { $opt .= "\74\x6f\x70\x74\151\x6f\156\40\166\141\x6c\x75\145\75\x22\x30\x22\40\x73\145\x6c\x65\143\164\x65\144\x3e\x4f\146\x66\40\x44\141\171\x20\x20" . $sel . "\74\x2f\x6f\160\164\x69\x6f\156\76"; } else { $opt .= "\x3c\157\160\164\151\157\156\40\x76\x61\154\x75\145\75\x22\x30\x22\x3e\117\x66\x66\40\104\141\x79\x20" . $sel . "\x3c\57\x6f\x70\x74\x69\157\x6e\x3e"; } return $opt; } public function AgentCombo($location_id, $not_user_type_id) { $opt = ''; $Sql = "\123\x45\x4c\105\x43\x54\x20\xa\11\11\11\11\11\x75\163\x65\162\137\151\144\x2c\12\x9\x9\x9\11\x9\x43\117\x4e\103\101\x54\50\165\163\x65\x72\x5f\x66\x6e\141\x6d\145\54\x20\47\40\x27\54\40\165\163\145\x72\137\154\x6e\x61\155\145\51\40\141\163\x20\146\x75\154\154\x6e\141\155\145\54\xa\x9\x9\11\11\x9\165\x73\145\162\x5f\164\171\x70\x65\x5f\x69\x64\12\x9\11\11\11\x46\x52\x4f\115\xa\11\11\x9\x9\x9\x72\163\x5f\x74\x62\154\x5f\165\x73\x65\x72\163\xa\x9\x9\x9\x9\127\110\105\x52\x45\xa\x9\x9\11\11\11\61\x3d\x31\40\xa\11\11\11\11\x9\101\x4e\104\40\x69\x73\101\x63\x74\x69\166\145\x3d\61\40\101\x4e\x44\40\x6c\x6f\143\141\x74\x69\x6f\156\137\x69\x64\x3d\x27" . $location_id . "\x27\x20\x41\x4e\104\x20\50\x75\x73\145\162\x5f\x74\171\x70\145\x5f\151\144\x21\75\47" . $not_user_type_id . "\47\40\141\156\144\x20\165\163\145\x72\x5f\164\171\160\x65\x5f\x69\144\41\x3d\x31\51"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\165\x73\145\162\137\151\x64"] == $sel) { $opt .= "\x3c\x6f\160\164\x69\157\x6e\x20\166\x61\154\x75\145\x3d\42" . $rows["\165\x73\145\x72\137\151\144"] . "\42\x20\x73\x65\x6c\145\x63\x74\x65\x64\x3e" . $rows["\146\x75\x6c\154\156\x61\x6d\145"] . "\x20\x3d\76\x20\x5b" . UserType($rows["\165\x73\x65\x72\137\x74\x79\x70\x65\x5f\151\144"]) . "\135\74\x2f\x6f\x70\164\151\157\156\76\xa"; } else { $opt .= "\74\x6f\x70\x74\x69\x6f\x6e\40\x76\141\x6c\165\145\x3d\42" . $rows["\165\163\145\162\x5f\151\x64"] . "\42\x3e" . $rows["\x66\165\x6c\x6c\x6e\141\155\145"] . "\x20\x3d\76\x20\x5b" . UserType($rows["\165\163\x65\162\x5f\x74\171\x70\145\x5f\x69\x64"]) . "\x5d\x3c\57\x6f\160\x74\151\x6f\x6e\76\12"; } } return $opt; } public function AgentComboCpml($location_id, $not_user_type_id) { $opt = ''; $Sql = "\123\105\x4c\105\x43\x54\40\xa\x9\11\11\x9\x9\x75\x73\x65\162\x5f\x69\x64\x2c\xa\11\11\11\11\x9\x43\117\116\x43\101\x54\x28\x75\163\x65\162\x5f\146\x6e\141\x6d\145\54\40\47\40\47\x2c\x20\165\163\x65\x72\x5f\x6c\156\x61\x6d\145\51\40\141\x73\x20\146\165\x6c\x6c\x6e\141\155\x65\x2c\12\11\11\11\x9\x9\x75\163\x65\162\x5f\164\x79\160\x65\137\x69\144\xa\11\x9\11\11\x46\x52\117\x4d\12\x9\x9\x9\11\x9\x72\x73\137\x74\x62\154\x5f\165\x73\145\162\x73\12\11\x9\11\11\x57\x48\105\x52\x45\12\x9\11\11\11\x9\61\75\x31\40\xa\11\x9\x9\11\x9\101\116\x44\40\151\x73\x41\143\164\151\x76\x65\x3d\61\40\101\x4e\104\x20\154\x6f\143\141\164\x69\x6f\156\137\x69\x64\75\x27" . $location_id . "\x27\40\x41\x4e\x44\x20\165\163\x65\x72\137\x74\x79\x70\x65\137\151\x64\75\x27" . $not_user_type_id . "\47"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x75\163\145\162\137\x69\144"] == $sel) { $opt .= "\x3c\x6f\x70\x74\x69\x6f\x6e\x20\166\x61\154\x75\145\x3d\x22" . $rows["\x75\163\145\x72\137\x69\x64"] . "\42\40\163\145\154\x65\143\164\145\144\76" . $rows["\x66\x75\154\x6c\156\141\155\145"] . "\x20\75\76\x20\133" . UserType($rows["\165\163\145\162\137\164\171\x70\145\137\151\x64"]) . "\135\x3c\57\x6f\160\164\x69\157\156\76\12"; } else { $opt .= "\x3c\157\x70\x74\151\x6f\x6e\40\166\141\154\x75\145\x3d\42" . $rows["\x75\x73\145\x72\137\x69\x64"] . "\42\x3e" . $rows["\x66\165\x6c\154\x6e\x61\155\145"] . "\x20\x3d\x3e\40\x5b" . UserType($rows["\x75\x73\x65\162\x5f\164\x79\160\x65\137\151\x64"]) . "\135\74\57\157\160\x74\151\x6f\156\x3e\xa"; } } return $opt; } public function MogrationCombo() { $opt = ''; $Sql = "\x53\x45\x4c\x45\x43\x54\xa\x9\x9\x9\11\x9\x6c\157\143\56\x6c\x6f\143\141\164\151\x6f\156\x5f\x69\x64\x2c\xa\11\11\x9\11\11\154\x6f\143\56\154\x6f\143\x61\x74\151\x6f\156\x5f\156\141\x6d\x65\x2c\12\x9\x9\x9\x9\x9\x6c\157\143\56\151\163\101\x63\x74\151\x76\x65\x2c\xa\11\11\11\11\x9\x63\x6f\155\160\x2e\143\x6f\155\x70\x61\x6e\x79\137\156\x61\155\x65\12\11\x9\11\x9\106\x52\x4f\115\12\11\x9\11\x9\11\x72\x73\137\164\x62\154\x5f\x6c\x6f\143\x61\164\151\x6f\x6e\x20\141\x73\40\154\x6f\x63\12\11\x9\x9\x9\11\111\116\116\105\122\x20\112\x4f\111\x4e\40\x72\x73\137\x74\142\154\x5f\x63\157\155\x70\x61\x6e\151\x65\x73\40\141\163\40\x63\x6f\x6d\x70\12\11\11\x9\x9\11\11\117\116\40\50\154\x6f\143\56\143\157\x6d\160\x61\x6e\x79\x5f\x69\x64\40\x3d\x20\x63\x6f\x6d\x70\x2e\143\157\155\160\141\x6e\x79\137\151\x64\x29\12\x9\x9\11\11\127\x48\x45\x52\x45\xa\11\x9\11\11\x9\61\x3d\x31\x20\12\11\x9\11\x9\x9\101\x4e\104\40\154\x6f\143\56\151\163\101\143\x74\x69\x76\x65\75\61\x20\x41\x4e\104\40\154\157\143\x2e\154\157\143\x61\164\151\x6f\156\137\151\144\41\x3d\47" . $this->location_id . "\x27"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\154\157\x63\x61\164\151\x6f\x6e\137\151\x64"] == $sel) { $opt .= "\x3c\x6f\160\164\x69\x6f\x6e\x20\x76\x61\x6c\165\x65\x3d\42" . $rows["\x6c\157\x63\x61\164\151\x6f\x6e\x5f\151\144"] . "\42\40\163\x65\154\x65\143\x74\x65\144\x3e" . $rows["\143\157\x6d\x70\141\x6e\171\x5f\156\141\x6d\145"] . "\x2d\x3e" . $rows["\154\157\x63\141\x74\151\157\156\x5f\x6e\141\x6d\145"] . "\74\x2f\x6f\160\x74\x69\157\156\x3e\12"; } else { $opt .= "\74\157\160\x74\x69\x6f\x6e\40\166\x61\154\x75\x65\x3d\x22" . $rows["\x6c\157\143\x61\164\151\157\x6e\x5f\151\144"] . "\x22\76" . $rows["\143\x6f\155\x70\141\156\171\x5f\x6e\x61\155\x65"] . "\x2d\76" . $rows["\x6c\x6f\x63\x61\x74\x69\157\156\x5f\156\x61\155\x65"] . "\74\57\x6f\160\x74\151\x6f\x6e\76\12"; } } return $opt; } public function LocationCombo($sel = '') { $opt = ''; $Sql = "\x53\x45\114\x45\x43\124\xa\11\x9\x9\11\x9\154\157\x63\x2e\x6c\x6f\x63\x61\164\x69\x6f\x6e\x5f\x69\144\x2c\12\11\11\11\11\x9\x6c\157\143\x2e\x6c\x6f\x63\x61\164\x69\157\x6e\x5f\x6e\141\155\x65\x2c\xa\x9\11\x9\x9\x9\154\157\x63\x2e\151\163\x41\x63\x74\x69\166\145\54\xa\x9\11\11\11\x9\x63\x6f\x6d\160\x2e\143\157\x6d\160\141\x6e\171\x5f\156\141\155\x65\12\x9\11\11\x9\x46\122\117\115\xa\11\x9\11\11\11\x72\x73\137\x74\142\x6c\137\154\157\x63\141\164\151\157\x6e\x20\x61\163\x20\154\x6f\143\xa\x9\x9\11\x9\x9\111\x4e\x4e\105\x52\x20\112\117\x49\116\40\162\163\137\164\x62\x6c\x5f\x63\x6f\x6d\x70\x61\x6e\x69\145\x73\x20\141\x73\40\143\x6f\155\x70\xa\11\11\11\x9\11\11\117\116\x20\50\x6c\x6f\143\x2e\143\x6f\155\x70\x61\x6e\x79\x5f\x69\x64\x20\75\40\x63\157\155\x70\x2e\143\x6f\x6d\x70\141\x6e\x79\x5f\x69\144\51\xa\x9\x9\11\x9\127\x48\105\x52\105\12\11\11\x9\x9\11\x31\75\61\x20\xa\x9\x9\x9\x9\11\x41\116\x44\40\x6c\x6f\143\x2e\x69\x73\101\x63\x74\151\x76\145\x3d\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x6c\x6f\x63\141\164\x69\157\x6e\137\151\x64"] == $sel) { $opt .= "\x3c\x6f\x70\x74\151\x6f\x6e\x20\166\x61\x6c\165\x65\x3d\42" . $rows["\x6c\157\x63\x61\164\151\157\156\x5f\151\x64"] . "\x22\40\163\x65\154\145\143\164\x65\x64\x3e" . $rows["\143\157\x6d\160\x61\156\x79\137\156\141\x6d\145"] . "\55\x3e" . $rows["\x6c\157\143\141\164\151\157\156\x5f\156\141\x6d\x65"] . "\74\x2f\157\x70\164\x69\157\x6e\x3e\xa"; } else { $opt .= "\x3c\x6f\x70\164\151\157\156\40\x76\x61\x6c\165\145\x3d\42" . $rows["\x6c\157\x63\x61\164\151\157\x6e\x5f\151\144"] . "\x22\76" . $rows["\x63\x6f\x6d\x70\x61\156\x79\137\x6e\x61\x6d\x65"] . "\x2d\76" . $rows["\154\157\143\141\x74\x69\157\x6e\x5f\156\x61\x6d\x65"] . "\74\x2f\x6f\160\164\x69\157\156\76\xa"; } } return $opt; } public function LocationComboWTL($sel = '') { $opt = ''; $Sql = "\x53\x45\114\x45\103\x54\xa\11\x9\x9\11\x9\x6c\157\x63\56\x6c\157\143\141\x74\151\x6f\x6e\x5f\x69\x64\54\12\11\11\x9\x9\11\154\157\x63\x2e\154\x6f\x63\x61\x74\151\157\x6e\x5f\x6e\141\155\x65\x2c\xa\x9\11\x9\x9\11\x6c\157\x63\x2e\151\x73\101\143\164\151\166\145\54\xa\11\x9\11\x9\x9\143\157\155\160\56\x63\157\x6d\x70\141\156\x79\x5f\156\x61\155\x65\x2c\12\11\x9\x9\11\x9\x28\123\x45\114\x45\103\124\40\x63\157\165\x6e\164\x28\165\x73\145\162\x5f\x69\144\x29\x20\106\x52\117\x4d\40\x72\163\137\x74\142\x6c\137\165\163\x65\x72\x73\x20\141\x73\40\x75\40\127\110\x45\122\105\x20\x75\56\154\157\143\141\x74\151\x6f\x6e\x5f\151\144\x3d\x6c\x6f\x63\56\154\x6f\143\141\x74\x69\157\x6e\137\x69\x64\x20\101\x4e\x44\x20\x74\x65\141\155\154\145\141\x64\137\x73\x74\141\164\165\x73\75\62\51\40\141\163\40\156\157\x6f\x66\164\x6c\xa\x9\11\11\x9\x46\x52\x4f\115\xa\x9\11\11\11\x9\162\163\137\164\142\154\x5f\x6c\157\x63\x61\164\151\157\156\40\x61\163\x20\154\157\x63\xa\11\11\11\11\11\111\116\x4e\105\122\40\112\117\x49\116\x20\162\163\x5f\x74\x62\154\137\x63\157\155\x70\x61\x6e\x69\145\x73\x20\x61\163\40\x63\x6f\x6d\160\xa\11\11\x9\11\11\x9\117\116\40\50\x6c\x6f\143\x2e\143\x6f\155\x70\x61\156\171\x5f\x69\144\x20\x3d\40\143\157\x6d\160\x2e\143\x6f\155\x70\x61\x6e\171\x5f\x69\x64\51\12\11\x9\11\11\x57\x48\105\122\x45\xa\11\x9\11\x9\11\x31\x3d\x31\40\12\11\x9\11\11\11\x41\116\104\x20\x6c\157\143\56\151\163\x41\x63\164\x69\x76\145\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\154\x6f\143\x61\x74\151\157\156\137\151\144"] == $sel) { $opt .= "\x3c\x6f\160\x74\151\157\156\40\166\141\x6c\165\x65\x3d\42" . $rows["\154\x6f\143\141\164\151\157\x6e\137\x69\144"] . "\42\x20\163\145\154\145\x63\x74\x65\144\x3e" . $rows["\143\157\x6d\x70\141\x6e\x79\x5f\156\x61\x6d\x65"] . "\55\76" . $rows["\154\x6f\x63\x61\164\x69\157\156\137\x6e\x61\155\x65"] . "\x20\50\116\157\56\157\x66\40\x54\114\x20" . $rows["\x6e\x6f\157\146\164\154"] . "\x29" . "\74\x2f\157\x70\164\x69\157\x6e\x3e\12"; } else { $opt .= "\74\157\160\x74\151\x6f\156\40\x76\x61\x6c\165\145\75\42" . $rows["\154\157\x63\141\164\x69\157\156\x5f\151\x64"] . "\x22\x3e" . $rows["\143\x6f\155\x70\x61\156\171\137\x6e\141\x6d\145"] . "\x2d\x3e" . $rows["\x6c\157\143\x61\164\x69\x6f\x6e\x5f\x6e\141\155\x65"] . "\40\x28\x4e\x6f\56\x6f\146\x20\124\x4c\40" . $rows["\x6e\157\x6f\x66\x74\154"] . "\51" . "\74\57\x6f\160\164\151\x6f\156\x3e\xa"; } } return $opt; } public function TotalemployeesCounter() { $Sql = "\x53\105\114\x45\103\x54\40\xa\11\x9\11\11\11\x63\157\x75\x6e\164\50\x75\163\145\x72\137\151\144\x29\x20\141\163\x20\x55\x73\x65\x72\x43\x6f\x75\156\164\145\x72\xa\11\x9\11\11\x46\x52\x4f\x4d\xa\11\11\x9\x9\162\x73\x5f\x74\x62\x6c\x5f\x75\x73\x65\162\163\12\x9\x9\x9\11\127\x48\x45\122\105\xa\x9\11\x9\x9\11\x31\x3d\x31\40\12\x9\11\11\x9\x9\101\116\x44\40\165\x73\145\x72\x5f\164\171\x70\x65\x5f\151\x64\x20\75\40\61\x30\40\x20\101\116\104\40\40\x69\163\101\x63\164\151\166\x65\x20\x3d\40\61"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\125\163\x65\x72\103\157\165\x6e\164\145\162"]; } public function TotalAssetsCounter() { $Sql = "\123\105\x4c\x45\x43\124\40\xa\x9\11\x9\11\x9\143\x6f\165\156\164\50\x61\163\x73\x65\x74\137\x69\144\51\40\141\x73\x20\x41\163\163\145\164\103\157\x75\156\164\x65\x72\12\11\11\11\x9\x46\122\117\x4d\12\x9\x9\11\11\x72\163\x5f\x74\x62\154\x5f\x61\x73\x73\x65\164\163\12\x9\11\11\11\127\x48\105\x52\105\12\11\x9\11\x9\x9\x31\75\61\x20\xa\x9\11\x9\11\x9\40\x41\116\104\x20\40\x69\x73\101\143\x74\151\x76\145\40\75\x20\61"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x41\163\x73\145\164\103\x6f\165\x6e\x74\x65\x72"]; } public function findstatuscurrent($userid) { $Sql = "\123\x45\114\x45\x43\x54\x20\xa\11\11\11\x9\11\143\x6f\165\x6e\164\50\165\x73\x65\162\137\x76\x61\143\141\164\151\x6f\156\137\151\144\x29\x20\141\163\40\x56\141\x63\103\x6f\x75\156\x74\145\162\xa\11\11\x9\x9\x46\122\117\x4d\xa\x9\x9\x9\11\162\163\137\164\142\154\x5f\x76\x61\x63\141\164\x69\x6f\x6e\x73\xa\11\11\11\x9\127\x48\105\x52\x45\xa\x9\11\x9\x9\11\61\75\x31\40\12\11\11\x9\11\11\x20\101\x4e\104\40\40\165\x73\145\162\137\x69\144\x20\75\x20{$userid}\x20\101\x4e\104\x20\103\125\122\104\x41\x54\105\50\51\x20\x62\145\x74\x77\145\x65\x6e\x20\x73\x74\x61\162\x74\137\144\141\x74\x65\x20\x61\x6e\144\40\x65\x6e\144\137\144\141\x74\x65\73\40"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\126\141\x63\x43\157\165\x6e\164\x65\x72"]; } public function TotalAssetsAssigned() { $Sql = "\x53\105\114\x45\x43\x54\40\xa\x9\11\11\x9\11\143\x6f\165\x6e\164\50\x61\163\x73\145\164\137\x69\x64\x29\x20\141\x73\40\101\163\x73\x65\x74\x41\x73\x73\151\x67\x6e\145\144\12\11\11\11\x9\106\122\117\115\xa\11\x9\11\11\162\163\137\164\142\154\137\x61\x73\163\x65\164\163\12\11\x9\x9\x9\x57\x48\x45\122\x45\12\11\x9\11\11\11\61\x3d\61\40\12\x9\x9\x9\11\11\x41\x4e\104\40\x61\x73\x73\x65\x74\137\163\164\x61\x74\x75\163\x3d\40\x32\40\101\x4e\x44\x20\x20\151\x73\101\x63\164\151\x76\145\40\75\x20\61"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x41\163\163\x65\x74\x41\163\163\x69\x67\x6e\x65\x64"]; } public function TotalactempCounter() { $Sql = "\123\105\x4c\x45\x43\x54\40\12\11\x9\11\11\x9\143\x6f\165\156\x74\x28\165\x73\x65\x72\x5f\151\x64\51\40\x61\x73\40\x55\x73\145\162\x43\157\x75\156\x74\x65\162\141\xa\x9\11\11\11\x46\x52\117\115\xa\11\x9\x9\11\x72\163\137\x74\142\x6c\x5f\x75\163\x65\162\163\12\x9\11\x9\11\127\110\105\x52\x45\12\11\11\11\x9\x9\61\x3d\61\x20\12\x9\x9\x9\x9\x9\101\x4e\x44\40\x75\163\145\x72\x5f\x74\x79\160\145\137\151\144\x20\x3d\40\x31\60\40\x20\x41\116\104\40\152\x6f\x62\x53\164\141\x74\165\x73\x3d\x20\x31\x20\x41\116\x44\x20\40\151\163\101\143\164\x69\166\x65\40\75\x20\61"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x55\163\145\x72\x43\x6f\165\156\164\145\x72\141"]; } public function TotalvacempCounter() { $Sql = "\x53\105\x4c\105\103\124\x20\12\11\x9\x9\x9\x9\x63\x6f\x75\x6e\164\x28\x75\163\145\x72\137\x69\x64\51\x20\141\163\40\125\x73\x65\x72\x43\157\x75\x6e\x74\145\x72\x61\xa\11\11\x9\11\106\x52\117\x4d\12\11\x9\x9\x9\162\163\137\x74\x62\154\137\165\163\x65\162\163\12\x9\11\x9\x9\127\110\x45\x52\x45\12\x9\11\x9\x9\11\61\75\x31\x20\xa\11\11\11\x9\11\x41\116\x44\x20\x75\x73\x65\162\x5f\164\171\x70\x65\x5f\x69\x64\x20\x3d\x20\x31\60\x20\40\101\x4e\104\40\152\x6f\x62\x53\x74\x61\x74\165\x73\75\x20\62\x20\101\116\104\x20\x20\151\163\101\143\164\x69\166\145\x20\75\40\61"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\125\x73\145\x72\x43\157\x75\156\x74\x65\162\x61"]; } public function TotalinacempCounter() { $Sql = "\x53\105\x4c\105\x43\124\x20\12\11\x9\11\11\11\x63\x6f\x75\x6e\164\50\x75\x73\145\162\137\x69\x64\x29\40\x61\163\x20\125\x73\145\162\x43\157\x75\156\x74\x65\162\141\12\x9\11\x9\11\106\122\117\x4d\xa\11\x9\11\11\x72\x73\137\164\x62\154\137\x75\x73\145\162\x73\xa\11\x9\11\x9\x57\x48\x45\122\105\xa\x9\x9\11\11\x9\x31\75\x31\x20\xa\11\x9\x9\11\11\x41\116\x44\40\165\163\x65\x72\137\164\x79\x70\145\x5f\151\144\x20\x3d\40\x31\x30\40\x41\116\x44\x20\40\x69\163\101\143\x74\151\x76\145\40\x3d\40\62"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x55\163\145\162\x43\157\165\x6e\164\x65\x72\141"]; } public function LocationComboLocationBase($sel = '') { $opt = ''; $Sql = "\123\105\114\x45\x43\124\xa\11\11\x9\x9\11\154\x6f\x63\56\154\x6f\x63\141\x74\151\157\156\x5f\x69\144\x2c\xa\x9\x9\11\11\x9\x6c\157\x63\x2e\x6c\157\x63\x61\x74\x69\157\x6e\x5f\156\141\x6d\145\54\xa\11\x9\x9\11\11\x6c\x6f\x63\x2e\x69\x73\101\x63\x74\151\166\x65\54\12\x9\11\11\11\11\x63\x6f\x6d\160\x2e\143\157\x6d\160\x61\x6e\x79\x5f\x6e\141\155\145\x2c\12\x9\x9\11\11\11\x28\x53\x45\114\105\103\124\40\143\157\165\156\164\x28\x75\x73\x65\162\x5f\x69\x64\x29\40\106\x52\117\x4d\40\x72\163\137\164\x62\154\x5f\165\x73\145\162\x73\40\141\163\x20\x75\40\x57\x48\x45\122\105\x20\x75\56\154\157\143\141\164\151\157\156\x5f\151\144\x3d\x6c\x6f\143\56\x6c\157\143\141\164\151\157\156\137\151\144\40\x41\x4e\104\40\164\145\141\155\154\145\x61\144\137\x73\x74\x61\164\165\163\x3d\62\x29\40\x61\x73\40\x6e\x6f\157\146\x74\154\xa\x9\11\x9\x9\106\122\117\115\12\x9\11\x9\11\11\x72\163\137\x74\142\x6c\137\x6c\x6f\143\x61\164\x69\157\156\x20\x61\x73\x20\x6c\x6f\143\12\11\11\11\x9\x9\111\116\x4e\x45\122\x20\x4a\117\x49\116\x20\162\x73\137\164\x62\154\137\x63\x6f\155\160\x61\156\x69\145\163\x20\141\163\40\143\157\155\x70\xa\11\x9\x9\11\11\11\117\116\x20\x28\x6c\157\x63\56\x63\x6f\155\160\141\156\x79\137\x69\x64\x20\75\x20\143\157\x6d\160\56\143\x6f\155\x70\141\x6e\171\137\x69\144\x29\xa\11\11\11\11\127\x48\105\x52\105\12\x9\11\11\x9\11\61\x3d\x31\40\12\11\11\x9\11\x9\x41\116\x44\x20\154\x6f\x63\x2e\x69\163\x41\143\164\151\166\145\x3d\61\x20\x41\x4e\104\x20\x6c\157\x63\56\x6c\157\x63\141\x74\x69\157\x6e\137\x69\144\x3d" . $this->location_id; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x6c\157\143\x61\164\151\x6f\x6e\x5f\x69\144"] == $sel) { $opt .= "\x3c\157\x70\164\x69\157\156\40\166\x61\x6c\165\145\x3d\42" . $rows["\x6c\x6f\143\141\x74\151\157\156\137\151\144"] . "\x22\x20\x73\x65\154\x65\x63\164\x65\144\76" . $rows["\143\157\155\160\x61\156\x79\137\x6e\141\x6d\145"] . "\x2d\x3e" . $rows["\154\157\x63\x61\x74\x69\157\x6e\137\156\141\x6d\x65"] . "\x20\x28\116\x6f\56\x6f\146\40\x54\114\x20" . $rows["\156\x6f\x6f\x66\164\154"] . "\51" . "\x3c\57\x6f\x70\x74\x69\157\156\76\xa"; } else { $opt .= "\x3c\157\160\x74\x69\157\x6e\x20\x76\141\x6c\165\145\x3d\42" . $rows["\154\157\143\141\164\151\x6f\156\x5f\151\144"] . "\x22\76" . $rows["\143\x6f\x6d\160\141\x6e\x79\137\156\x61\155\x65"] . "\x2d\76" . $rows["\154\157\143\141\x74\151\x6f\156\x5f\156\141\x6d\145"] . "\40\x28\x4e\157\x2e\x6f\146\40\124\114\x20" . $rows["\156\x6f\157\x66\x74\154"] . "\51" . "\x3c\x2f\x6f\160\164\151\157\156\76\xa"; } } return $opt; } public function GetTeamLeadID($sel = '') { $Sql = "\123\x45\x4c\x45\x43\x54\12\x9\x9\x9\x9\11\165\163\145\x72\137\x69\144\xa\x9\x9\x9\11\x46\122\x4f\x4d\xa\x9\11\x9\11\x9\x72\x73\137\164\x62\154\x5f\165\x73\x65\162\163\12\11\x9\x9\x9\x57\110\x45\x52\x45\12\11\11\11\x9\x9\61\75\61\x20\xa\x9\x9\x9\x9\x9\101\x4e\x44\x20\151\163\101\x63\164\x69\166\x65\x3d\61\x20\x41\116\x44\x20\154\x6f\143\141\x74\x69\157\156\137\x69\144\x3d" . $this->location_id . "\x20\101\x4e\104\x20\164\145\141\x6d\154\145\141\144\137\x73\164\x61\164\x75\163\x3d\x32"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x75\x73\x65\x72\137\x69\x64"]; } public function getiqprofession($sel = '') { $opt = ''; $Sql = "\x53\x45\x4c\x45\103\x54\xa\11\x9\x9\x9\x9\151\161\160\162\x6f\146\145\163\163\151\x6f\156\x5f\151\144\x2c\12\x9\x9\x9\11\x9\x69\161\x70\x72\157\146\145\x73\163\151\x6f\156\12\11\11\11\11\x46\x52\117\115\xa\x9\x9\x9\11\11\162\x73\137\164\x62\154\137\151\x71\160\x72\x6f\146\145\163\163\x69\x6f\x6e\xa\11\x9\x9\11\x57\110\105\122\105\12\11\x9\x9\x9\x9\x31\x3d\x31\40\xa\x9\11\11\11\x9\101\x4e\104\x20\x69\x73\101\143\x74\x69\166\145\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\151\161\160\162\x6f\x66\x65\163\163\151\157\x6e\x5f\x69\144"] == $sel) { $opt .= "\x3c\x6f\x70\x74\x69\157\x6e\40\x76\141\x6c\165\x65\75\x22" . $rows["\x69\x71\160\x72\x6f\x66\145\163\x73\151\157\156\137\x69\x64"] . "\42\40\x73\x65\x6c\145\143\164\145\144\76" . $rows["\x69\161\160\162\x6f\146\x65\x73\x73\x69\157\156"] . "\74\57\x6f\x70\x74\x69\x6f\156\76\xa"; } else { $opt .= "\x3c\157\x70\x74\151\x6f\x6e\x20\x76\141\154\165\145\x3d\42" . $rows["\151\161\160\x72\x6f\x66\x65\163\x73\x69\157\156\x5f\151\144"] . "\42\76" . $rows["\x69\161\160\x72\x6f\146\145\163\163\151\157\x6e"] . "\74\57\x6f\160\164\151\157\156\x3e\12"; } } return $opt; } public function getsubarea($sel = '') { $opt = ''; $Sql = "\x53\105\114\105\x43\x54\12\11\11\x9\x9\x9\163\x75\x62\141\162\x65\x61\137\151\x64\54\xa\11\11\x9\11\11\x73\165\142\x61\x72\145\x61\xa\x9\x9\x9\x9\106\122\x4f\x4d\12\x9\x9\x9\x9\x9\162\163\137\164\142\154\137\163\x75\x62\x61\x72\145\x61\xa\11\11\x9\x9\x57\x48\x45\x52\105\xa\x9\x9\11\11\x9\61\75\x31\40\12\x9\11\x9\11\x9\x41\x4e\104\40\151\163\x41\x63\x74\151\166\x65\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x73\165\142\x61\162\x65\141\137\x69\144"] == $sel) { $opt .= "\74\157\160\164\x69\157\156\x20\166\x61\154\165\145\x3d\42" . $rows["\163\x75\x62\x61\162\145\141\137\x69\x64"] . "\42\x20\x73\x65\x6c\x65\143\x74\145\144\x3e" . $rows["\163\165\142\141\x72\x65\141"] . "\74\57\157\160\164\151\x6f\x6e\76\xa"; } else { $opt .= "\x3c\x6f\x70\164\151\157\156\x20\x76\x61\154\x75\x65\75\42" . $rows["\x73\165\142\141\162\145\x61\x5f\151\144"] . "\42\x3e" . $rows["\x73\165\142\141\x72\145\x61"] . "\x3c\x2f\x6f\160\x74\151\x6f\x6e\76\xa"; } } return $opt; } public function getorigunit($sel = '') { $opt = ''; $Sql = "\123\105\x4c\105\x43\x54\xa\x9\11\11\x9\11\x6f\x72\151\147\165\x6e\x69\164\x5f\151\x64\54\12\x9\x9\11\x9\11\x6f\162\151\147\x75\156\151\164\xa\x9\x9\x9\11\106\x52\x4f\115\xa\11\11\11\x9\x9\162\x73\x5f\x74\x62\x6c\x5f\x6f\162\151\147\165\156\151\x74\12\11\11\11\11\127\110\105\122\x45\xa\x9\x9\x9\11\11\61\75\x31\x20\xa\x9\11\x9\x9\x9\x41\116\104\x20\151\163\101\x63\164\x69\x76\145\x3d\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x6f\162\151\147\x75\x6e\x69\164\137\x69\144"] == $sel) { $opt .= "\x3c\x6f\160\x74\151\x6f\156\x20\166\141\154\x75\x65\x3d\x22" . $rows["\x6f\162\151\147\165\156\151\x74\137\x69\144"] . "\x22\x20\x73\145\x6c\x65\x63\164\145\x64\76" . $rows["\x6f\x72\151\x67\165\x6e\151\x74"] . "\x3c\x2f\x6f\x70\x74\x69\x6f\156\76\xa"; } else { $opt .= "\x3c\x6f\160\x74\x69\x6f\156\x20\166\x61\154\165\145\x3d\42" . $rows["\157\162\x69\x67\165\156\x69\164\137\x69\144"] . "\42\x3e" . $rows["\157\162\151\147\165\x6e\151\x74"] . "\x3c\x2f\157\x70\164\x69\157\x6e\x3e\12"; } } return $opt; } public function getloccode($sel = '') { $opt = ''; $Sql = "\x53\105\114\x45\x43\x54\xa\x9\x9\x9\11\x9\x9\154\x6f\x63\143\x6f\x64\145\x5f\151\144\54\xa\x9\x9\11\11\11\x9\154\x6f\143\143\x6f\x64\145\xa\11\x9\11\11\x9\x46\x52\x4f\115\12\11\11\x9\x9\x9\11\162\163\137\x74\142\x6c\x5f\154\x6f\x63\143\157\144\x65\12\x9\11\11\x9\x9\127\x48\x45\x52\105\12\11\11\11\11\11\x9\61\x3d\61\40\xa\x9\x9\11\11\11\x9\x41\x4e\104\x20\151\x73\x41\143\x74\151\166\145\x3d\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\154\157\x63\143\157\x64\145\137\x69\144"] == $sel) { $opt .= "\74\157\x70\164\x69\157\x6e\40\166\141\x6c\165\x65\x3d\x22" . $rows["\x6c\157\143\x63\x6f\144\x65\x5f\x69\144"] . "\x22\40\x73\x65\154\x65\x63\164\145\x64\x3e" . $rows["\154\x6f\x63\143\x6f\x64\145"] . "\x3c\57\157\x70\x74\151\157\156\76\12"; } else { $opt .= "\74\157\x70\x74\151\157\156\x20\x76\141\154\165\145\75\x22" . $rows["\x6c\157\143\x63\157\x64\x65\x5f\151\144"] . "\x22\76" . $rows["\154\157\143\x63\157\x64\145"] . "\74\x2f\x6f\160\x74\x69\x6f\156\76\12"; } } return $opt; } public function getAssetType($sel = '') { $opt = ''; $Sql = "\123\x45\x4c\105\103\124\12\11\x9\11\11\x9\x9\11\x9\x9\x61\163\163\145\x74\x5f\x74\171\160\x65\x5f\151\144\54\xa\x9\x9\11\11\x9\11\x9\x9\11\141\163\x73\145\x74\x5f\x74\x79\160\x65\xa\x9\11\x9\11\x9\11\x9\x9\x46\122\117\x4d\xa\x9\x9\x9\x9\x9\11\x9\x9\162\163\137\x74\142\x6c\137\141\x73\163\145\164\x73\x5f\164\x79\160\x65\12\x9\11\x9\x9\11\x9\11\11\x57\x48\x45\x52\105\xa\x9\x9\11\x9\11\11\x9\x9\11\61\75\61\40\xa\11\11\11\11\11\x9\11\11\x9\101\116\x44\x20\x69\163\101\143\x74\151\166\x65\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\141\x73\x73\x65\164\x5f\164\171\160\x65\137\x69\x64"] == $sel) { $opt .= "\x3c\157\160\164\x69\x6f\x6e\40\166\x61\x6c\x75\x65\x3d\x22" . $rows["\141\x73\x73\x65\164\x5f\x74\171\x70\x65\x5f\x69\x64"] . "\42\40\x73\x65\x6c\x65\x63\x74\x65\x64\76" . $rows["\141\163\163\x65\164\137\164\171\160\x65"] . "\x3c\57\x6f\160\164\x69\157\x6e\76\xa"; } else { $opt .= "\74\157\x70\x74\151\157\x6e\40\x76\141\154\165\x65\x3d\42" . $rows["\141\163\163\145\164\137\x74\171\x70\145\x5f\x69\144"] . "\42\40\x64\x69\163\141\142\x6c\x65\x64\76" . $rows["\x61\163\x73\145\164\137\164\x79\x70\145"] . "\x3c\x2f\157\160\164\151\x6f\156\x3e\xa"; } } return $opt; } public function getCatagories($sel = '') { $opt = ''; $Sql = "\x53\x45\114\105\x43\124\xa\x9\x9\11\x9\x9\11\x9\143\141\164\x5f\x69\144\x2c\12\x9\x9\11\x9\11\11\11\x63\x61\164\x5f\156\x61\x6d\x65\12\11\11\x9\x9\11\11\x46\122\x4f\115\12\x9\11\11\11\x9\x9\162\x73\x5f\164\142\x6c\x5f\x63\141\164\x61\x67\x6f\x72\151\145\163\xa\x9\x9\11\x9\11\x9\x57\110\105\122\105\xa\x9\11\x9\11\x9\11\11\61\75\61\40\12\x9\x9\x9\11\11\x9\11\x41\116\x44\40\151\x73\x41\x63\x74\x69\166\x65\x3d\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\143\x61\164\137\x69\144"] == $sel) { $opt .= "\x3c\x6f\160\x74\x69\157\x6e\x20\x76\141\x6c\x75\x65\75\42" . $rows["\143\141\x74\x5f\x69\144"] . "\x22\x20\163\x65\x6c\x65\143\x74\x65\x64\76" . $rows["\x63\x61\x74\x5f\x6e\x61\155\x65"] . "\x3c\x2f\x6f\160\164\151\x6f\156\x3e\xa"; } else { $opt .= "\x3c\x6f\160\164\151\x6f\x6e\x20\x76\x61\154\x75\x65\x3d\42" . $rows["\143\x61\164\x5f\x69\144"] . "\x22\x3e" . $rows["\143\x61\164\x5f\x6e\x61\155\x65"] . "\74\57\157\160\164\151\157\x6e\x3e\xa"; } } return $opt; } public function getCompanies($sel = '') { $opt = ''; $Sql = "\123\x45\114\105\103\x54\12\11\11\x9\x9\x9\11\x9\143\x6f\x6d\160\x61\x6e\x79\137\x69\144\x2c\xa\x9\x9\x9\11\x9\11\11\x63\x6f\155\x70\141\x6e\x79\137\156\141\155\x65\xa\11\x9\x9\x9\x9\11\x46\122\117\x4d\xa\11\11\x9\x9\11\11\164\141\x6d\x69\155\x69\x5f\x63\157\155\160\x61\156\x79\xa\x9\x9\11\x9\x9\11\x57\x48\105\122\105\xa\11\11\11\11\x9\x9\11\x31\x3d\x31\40\12\x9\11\11\x9\11\x9\11\101\x4e\104\x20\151\163\101\143\164\151\166\145\75\x31\x20\x41\x4e\x44\x20\x63\157\x6d\160\141\x6e\x79\x5f\x74\171\160\x65\75\62"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x63\157\155\x70\141\x6e\171\137\x69\x64"] == $sel) { $opt .= "\x3c\x6f\x70\164\x69\x6f\156\x20\x76\141\154\165\x65\75\42" . $rows["\143\x6f\x6d\x70\141\156\171\137\x69\144"] . "\x22\x20\163\x65\154\145\x63\x74\x65\144\76" . $rows["\x63\157\x6d\x70\x61\x6e\171\137\156\x61\x6d\x65"] . "\74\x2f\x6f\160\x74\151\157\156\76\xa"; } else { $opt .= "\x3c\157\160\x74\151\157\156\x20\x76\141\x6c\165\145\x3d\x22" . $rows["\143\157\155\160\x61\156\171\137\x69\144"] . "\42\76" . $rows["\x63\x6f\155\x70\x61\156\171\137\x6e\141\x6d\x65"] . "\74\57\x6f\x70\164\x69\157\156\x3e\xa"; } } return $opt; } public function getallCompanies($sel = '') { $opt = ''; $Sql = "\123\x45\x4c\x45\x43\x54\xa\11\11\11\x9\x9\11\x9\143\x6f\155\160\x61\x6e\x79\137\151\x64\54\12\x9\11\x9\x9\11\11\11\x63\157\x6d\x70\x61\156\x79\137\x6e\141\155\145\12\11\11\11\11\11\x9\106\122\x4f\x4d\12\x9\x9\x9\11\11\11\164\x61\155\151\x6d\151\x5f\143\x6f\155\x70\141\x6e\171\xa\11\11\11\11\11\11\127\110\105\122\x45\12\11\11\x9\x9\11\11\11\x31\75\x31\x20\12\11\x9\11\x9\11\x9\11\101\116\x44\x20\151\163\101\143\164\x69\166\145\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x63\157\155\x70\141\x6e\x79\137\151\144"] == $sel) { $opt .= "\x3c\x6f\160\164\151\x6f\x6e\40\x76\x61\x6c\x75\145\75\42" . $rows["\143\157\x6d\x70\x61\156\171\x5f\x69\144"] . "\42\x20\163\x65\x6c\x65\143\164\145\144\76" . $rows["\x63\x6f\x6d\160\x61\156\x79\x5f\x6e\141\x6d\x65"] . "\74\x2f\x6f\160\x74\x69\157\x6e\x3e\xa"; } else { $opt .= "\74\x6f\x70\164\151\157\156\x20\166\x61\x6c\165\x65\75\42" . $rows["\x63\157\x6d\160\x61\x6e\171\137\x69\144"] . "\x22\x3e" . $rows["\x63\157\x6d\x70\141\156\171\137\x6e\141\155\145"] . "\x3c\x2f\x6f\x70\x74\x69\x6f\156\x3e\xa"; } } return $opt; } public function getcostcenter($sel = '') { $opt = ''; $Sql = "\123\x45\114\x45\103\x54\xa\11\11\11\x9\11\x9\11\x63\157\x73\x74\143\x65\x6e\x74\145\x72\137\151\x64\x2c\12\11\11\11\x9\11\x9\x9\143\x6f\163\164\x63\x65\156\x74\145\x72\12\11\11\11\11\x9\11\x46\122\117\x4d\xa\x9\x9\11\x9\11\x9\x9\162\163\x5f\164\142\x6c\x5f\143\157\163\164\x63\145\x6e\164\145\162\xa\x9\x9\11\x9\11\11\x57\110\x45\x52\x45\12\11\x9\x9\11\11\x9\x9\x31\x3d\x31\40\xa\11\11\x9\11\11\x9\x9\x41\116\x44\40\151\163\101\143\x74\x69\166\145\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\143\157\x73\x74\x63\145\156\164\145\162\x5f\x69\144"] == $sel) { $opt .= "\x3c\157\x70\164\151\157\156\40\166\x61\x6c\165\145\75\42" . $rows["\143\x6f\163\x74\x63\x65\156\164\x65\x72\137\x69\x64"] . "\42\x20\163\145\x6c\x65\x63\164\x65\144\x3e" . $rows["\143\157\163\164\143\145\x6e\x74\145\162"] . "\x3c\57\x6f\160\x74\x69\x6f\x6e\76\12"; } else { $opt .= "\74\x6f\x70\164\x69\157\156\x20\x76\141\154\165\145\75\42" . $rows["\x63\x6f\x73\164\x63\145\156\x74\x65\x72\x5f\x69\144"] . "\42\x3e" . $rows["\x63\x6f\163\164\x63\145\156\164\x65\162"] . "\x3c\57\157\x70\164\x69\x6f\x6e\76\12"; } } return $opt; } public function getpayrollarea($sel = '') { $opt = ''; $Sql = "\123\105\114\x45\103\x54\12\11\11\11\x9\11\x9\x9\x9\x9\x9\160\x61\171\x72\x6f\154\154\x61\x72\x65\x61\137\x69\x64\x2c\12\x9\x9\11\x9\x9\11\x9\x9\x9\x9\160\x61\x79\162\x6f\154\x6c\x61\162\x65\x61\12\x9\x9\11\x9\11\11\11\x9\11\106\122\117\115\xa\11\11\11\x9\x9\11\11\x9\11\11\162\x73\137\164\142\x6c\137\160\141\x79\162\x6f\x6c\x6c\141\x72\x65\x61\12\11\11\11\x9\x9\11\x9\x9\11\x57\110\x45\x52\105\xa\x9\11\x9\11\x9\11\x9\11\x9\x9\61\75\x31\40\xa\11\x9\11\x9\x9\x9\x9\11\11\x9\x41\116\x44\40\x69\x73\x41\143\x74\x69\x76\145\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\160\x61\171\x72\157\154\x6c\141\x72\x65\141\137\151\x64"] == $sel) { $opt .= "\x3c\157\160\x74\x69\x6f\156\x20\x76\x61\154\x75\x65\x3d\x22" . $rows["\x70\x61\171\x72\x6f\154\154\141\162\145\141\x5f\151\144"] . "\42\x20\x73\145\x6c\x65\x63\164\x65\x64\76" . $rows["\x70\141\x79\162\x6f\154\154\x61\162\145\x61"] . "\74\57\157\160\x74\x69\x6f\x6e\76\12"; } else { $opt .= "\x3c\157\160\164\151\x6f\156\40\x76\x61\x6c\x75\x65\75\42" . $rows["\x70\x61\171\x72\157\x6c\154\x61\162\x65\x61\137\151\144"] . "\42\x3e" . $rows["\160\x61\171\162\x6f\154\x6c\141\x72\145\141"] . "\x3c\57\x6f\160\x74\151\157\156\x3e\xa"; } } return $opt; } public function getempnationality($sel = '') { $opt = ''; $Sql = "\123\x45\114\x45\x43\x54\xa\x9\11\11\x9\11\11\11\x9\x9\x9\145\155\x70\156\141\164\x69\x6f\156\x61\154\151\x74\x79\137\151\144\54\xa\x9\11\11\x9\11\11\x9\x9\11\x9\x65\155\x70\156\141\164\151\x6f\156\x61\x6c\151\x74\171\xa\11\x9\11\x9\11\x9\x9\11\11\106\x52\117\115\xa\x9\11\x9\11\x9\x9\11\11\x9\11\x72\163\137\164\142\x6c\137\145\155\160\x6e\141\164\x69\157\x6e\141\154\151\x74\171\12\11\x9\x9\11\x9\11\x9\11\11\127\x48\x45\122\105\12\x9\x9\11\11\x9\11\x9\x9\x9\x9\61\75\61\40\12\x9\x9\x9\11\x9\11\11\x9\x9\x9\x41\x4e\104\x20\151\x73\x41\143\x74\151\x76\x65\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\145\x6d\x70\x6e\141\x74\x69\157\x6e\x61\x6c\x69\164\x79\137\151\144"] == $sel) { $opt .= "\x3c\157\160\164\151\157\x6e\x20\x76\x61\x6c\165\145\x3d\x22" . $rows["\x65\x6d\x70\x6e\141\164\151\157\156\141\154\x69\164\171\137\151\x64"] . "\42\40\163\x65\154\145\x63\164\x65\144\76" . $rows["\145\x6d\x70\x6e\x61\164\x69\157\156\x61\x6c\151\164\x79"] . "\x3c\57\157\160\x74\x69\157\156\76\xa"; } else { $opt .= "\74\157\160\164\x69\x6f\x6e\x20\166\141\154\165\x65\x3d\42" . $rows["\x65\x6d\x70\156\x61\164\x69\157\156\141\154\151\x74\171\137\x69\x64"] . "\42\76" . $rows["\145\x6d\160\x6e\141\x74\x69\157\x6e\x61\x6c\x69\x74\x79"] . "\x3c\x2f\x6f\160\x74\151\x6f\x6e\76\xa"; } } return $opt; } public function Getcatagory_name($astcat_id) { $Sql = "\123\x45\x4c\x45\x43\x54\12\x9\x9\11\11\x9\x9\x9\x9\x9\x20\40\x20\x20\x74\x63\56\x63\141\164\x5f\x69\x64\x2c\xa\11\x9\11\x9\11\11\x9\11\x9\x9\164\x63\x2e\143\141\x74\x5f\x6e\x61\155\145\x2c\12\11\11\x9\11\11\x9\11\x9\x9\x9\164\x63\56\x69\163\101\x63\x74\x69\166\x65\54\xa\11\11\11\x9\x9\x9\11\x9\x9\x9\164\x61\x2e\143\141\164\141\x67\x6f\x72\171\x5f\x69\x64\12\x9\11\x9\11\x9\11\11\11\x9\106\122\117\115\xa\11\11\x9\11\x9\11\x9\11\11\162\x73\137\164\142\154\137\x63\x61\164\141\147\157\x72\151\145\x73\x20\x61\x73\x20\x74\143\12\x9\11\11\11\x9\11\x9\x9\11\11\111\x4e\116\x45\122\40\x4a\117\x49\116\x20\162\163\137\x74\x62\x6c\x5f\141\163\x73\x65\x74\x73\x20\141\163\40\164\141\xa\x9\x9\x9\x9\11\11\x9\11\11\11\x9\117\116\x20\50\x74\143\56\x63\141\164\137\x69\x64\40\75\x20\164\141\56\143\141\x74\x61\x67\157\x72\x79\x5f\151\x64\x29\12\11\x9\11\11\x9\11\x9\11\11\127\x48\x45\x52\105\xa\x9\x9\11\11\x9\x9\11\x9\x9\11\61\75\61\40\xa\x9\11\11\11\11\11\x9\x9\11\x9\101\x4e\x44\40\164\x63\56\151\x73\101\143\x74\151\166\x65\x3d\x31\40\101\116\104\40\164\143\56\143\x61\164\x5f\x69\x64\x3d\x27" . $astcat_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\143\x61\164\x5f\156\x61\x6d\145"]; } public function GetassetType_name($asttyp_id) { $Sql = "\123\105\114\105\103\124\12\11\x9\x9\x9\x9\x9\x9\x9\11\x20\x20\x20\40\141\163\163\x74\x2e\141\163\x73\x65\x74\x5f\164\x79\x70\x65\x5f\151\x64\x2c\12\11\11\x9\11\x9\x9\x9\11\x9\11\x61\163\163\x74\x2e\141\x73\163\x65\x74\137\x74\171\160\x65\54\12\11\11\x9\x9\11\x9\x9\11\x9\x9\x61\163\x73\x74\56\x69\163\x41\x63\164\x69\x76\x65\54\12\x9\11\11\11\x9\x9\x9\x9\x9\11\164\141\x63\56\141\x73\163\145\x74\x5f\164\x79\x70\145\x5f\151\x64\x20\12\11\11\11\11\x9\11\11\x9\11\106\x52\117\x4d\12\11\11\x9\x9\x9\x9\x9\x9\x9\162\x73\137\x74\142\154\x5f\141\x73\x73\x65\164\x73\137\164\171\x70\145\40\141\x73\x20\141\163\x73\164\xa\11\11\x9\11\x9\11\11\x9\11\x9\111\x4e\x4e\x45\x52\40\112\x4f\x49\116\x20\162\x73\x5f\164\142\x6c\x5f\141\163\x73\x65\x74\x73\x20\x61\x73\x20\164\x61\x63\xa\11\x9\11\11\11\11\11\x9\x9\11\11\117\x4e\40\x28\x74\141\143\56\x61\x73\x73\x65\x74\137\164\171\x70\145\137\x69\x64\40\75\40\141\x73\x73\164\x2e\x61\163\163\x65\x74\x5f\x74\171\160\x65\x5f\151\144\x20\x29\12\11\x9\11\x9\x9\x9\11\11\x9\127\110\x45\x52\x45\xa\11\11\x9\11\x9\x9\x9\x9\x9\11\x31\x3d\61\40\xa\x9\x9\x9\x9\11\x9\x9\x9\11\11\x41\116\x44\x20\x61\x73\x73\164\x2e\x69\x73\101\x63\164\x69\x76\x65\x3d\x31\x20\101\116\x44\x20\141\163\x73\164\56\141\x73\163\145\x74\137\x74\x79\x70\145\x5f\151\144\x3d\x27" . $asttyp_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\141\163\x73\x65\164\137\164\171\160\x65"]; } public function Getiqprofession_name($iqpro_id) { $Sql = "\x53\105\x4c\x45\103\124\12\x9\x9\x9\x9\x9\11\x9\x9\11\40\40\40\x20\151\x70\x2e\x69\161\160\162\x6f\146\145\x73\163\151\157\156\x5f\x69\144\54\12\x9\x9\x9\11\x9\x9\x9\x9\x9\11\x69\160\56\151\x71\160\162\x6f\x66\x65\x73\163\151\x6f\x6e\x2c\xa\11\x9\11\11\x9\x9\11\x9\11\x9\151\160\56\x69\163\x41\x63\x74\151\166\145\x2c\xa\x9\x9\11\x9\x9\11\x9\x9\x9\11\x75\x73\x2e\x69\x71\141\x6d\x61\137\x70\162\x6f\x66\145\x73\163\x69\157\x6e\12\x9\x9\x9\11\11\x9\x9\x9\x9\x46\122\x4f\x4d\12\x9\11\x9\11\x9\11\x9\11\x9\x72\x73\x5f\164\x62\154\x5f\x69\x71\x70\162\x6f\x66\x65\x73\163\151\x6f\x6e\x20\141\163\40\151\x70\12\11\11\11\11\x9\11\x9\x9\x9\11\111\116\x4e\x45\122\x20\112\117\x49\x4e\40\162\x73\137\x74\x62\154\137\165\x73\x65\162\163\40\x61\x73\40\165\x73\12\x9\x9\11\x9\x9\x9\11\x9\x9\11\11\117\116\40\50\151\x70\56\151\161\x70\x72\157\x66\x65\163\x73\151\x6f\x6e\137\151\x64\40\x3d\x20\165\163\x2e\x69\x71\141\x6d\141\137\x70\x72\157\146\x65\x73\x73\x69\157\156\51\xa\x9\x9\x9\x9\11\x9\x9\11\x9\x57\x48\105\x52\x45\12\x9\11\x9\11\11\x9\x9\x9\x9\11\61\75\x31\x20\12\11\11\x9\x9\11\11\11\x9\11\11\x41\116\x44\x20\151\x70\x2e\x69\x73\101\143\x74\x69\x76\x65\75\61\x20\x41\116\x44\x20\x69\x70\x2e\151\x71\160\162\157\x66\145\x73\x73\151\x6f\x6e\137\151\x64\x3d\47" . $iqpro_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x69\161\160\162\x6f\x66\145\163\x73\x69\157\x6e"]; } public function Getsubarea_name($pass_id) { $Sql = "\x53\105\114\x45\103\124\xa\11\x9\11\11\x9\x9\x9\x9\11\40\40\40\40\x73\141\x2e\x73\x75\x62\141\162\x65\x61\137\x69\144\x2c\xa\x9\x9\x9\x9\x9\11\x9\11\x9\x9\163\141\x2e\x73\165\142\x61\x72\145\x61\x2c\xa\11\11\x9\x9\11\11\11\11\x9\x9\163\141\56\151\163\101\143\164\151\x76\145\x2c\xa\11\11\11\11\11\x9\x9\x9\11\x9\165\x73\56\163\165\142\x5f\x61\x72\x65\x61\xa\x9\11\x9\x9\x9\11\11\x9\11\106\122\x4f\x4d\12\11\11\x9\x9\x9\11\11\11\11\x72\x73\x5f\164\x62\154\137\x73\x75\142\141\162\x65\141\40\x61\x73\x20\x73\x61\12\x9\x9\x9\x9\x9\x9\x9\x9\11\x9\111\116\x4e\105\122\x20\x4a\x4f\111\x4e\x20\162\x73\x5f\164\142\x6c\137\x75\163\x65\162\x73\40\141\163\40\165\x73\xa\x9\x9\11\x9\11\x9\11\11\11\x9\x9\117\116\x20\x28\163\x61\x2e\163\x75\x62\141\x72\145\x61\137\x69\x64\x20\x3d\x20\x75\x73\x2e\163\165\142\137\141\162\145\141\x29\12\x9\11\x9\x9\x9\11\x9\x9\x9\x57\x48\x45\x52\x45\12\x9\x9\x9\x9\11\11\11\x9\x9\11\61\75\x31\40\xa\11\11\x9\11\11\x9\11\11\x9\x9\x41\116\104\x20\163\x61\x2e\x69\x73\101\x63\164\151\x76\145\75\61\x20\x41\x4e\x44\40\163\x61\x2e\x73\165\142\141\162\145\141\137\x69\x64\75\47" . $pass_id . "\x27"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x73\165\x62\x61\162\x65\x61"]; } public function Getjobtitle_name($pass_id) { $Sql = "\123\105\x4c\x45\103\124\12\11\11\x9\x9\x9\x9\11\11\11\40\x20\40\40\x6a\164\x2e\x6a\x6f\142\x5f\164\151\164\154\x65\x5f\151\144\54\12\11\11\x9\x9\11\11\x9\x9\x9\11\152\164\x2e\x6a\157\x62\x5f\164\151\x74\154\x65\54\12\x9\11\x9\11\11\11\x9\11\x9\x9\152\164\x2e\x69\163\x41\x63\164\151\x76\145\x2c\12\x9\11\x9\11\x9\x9\x9\11\x9\x9\x75\163\56\x75\x73\x65\x72\137\144\145\x73\151\x67\156\141\x74\x69\x6f\156\xa\11\11\x9\x9\x9\11\11\x9\11\106\122\117\115\xa\x9\11\11\11\x9\x9\x9\x9\11\x72\163\137\x74\142\x6c\x5f\152\157\142\137\x74\151\164\154\x65\40\141\163\x20\152\164\12\x9\11\11\11\x9\x9\11\x9\x9\11\x49\116\116\x45\122\40\x4a\x4f\111\116\x20\x72\x73\x5f\x74\142\x6c\137\x75\163\145\x72\x73\40\141\x73\40\165\163\12\x9\11\x9\11\x9\11\11\11\11\x9\x9\x4f\x4e\x20\50\152\164\x2e\x6a\x6f\x62\x5f\164\x69\164\154\145\x5f\151\x64\40\75\40\x75\x73\x2e\x75\x73\145\x72\137\144\x65\x73\151\x67\156\141\x74\151\x6f\x6e\51\12\11\11\x9\x9\x9\x9\11\11\x9\127\110\105\x52\x45\xa\x9\x9\11\x9\x9\x9\11\11\x9\11\x31\x3d\61\x20\12\x9\11\11\x9\11\x9\11\11\x9\x9\x41\116\x44\40\x6a\164\x2e\151\163\x41\x63\164\x69\x76\x65\x3d\61\40\101\116\x44\x20\152\x74\x2e\x6a\x6f\142\137\164\x69\x74\154\x65\x5f\x69\144\x3d\47" . $pass_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x6a\157\142\137\164\x69\x74\x6c\145"]; } public function Getbrand_name($pass_id) { $Sql = "\x53\105\x4c\105\x43\124\12\11\x9\x9\11\11\x9\x9\x9\x9\x20\40\40\40\141\x62\56\141\163\163\x65\x74\137\142\x72\x61\156\x64\x5f\151\144\54\12\x9\x9\11\x9\x9\11\x9\x9\x9\11\141\142\x2e\141\163\x73\x65\164\x5f\142\162\x61\156\144\x73\x2c\xa\x9\x9\11\11\11\11\x9\11\x9\11\141\x62\56\x69\x73\101\143\x74\x69\166\x65\x2c\xa\x9\x9\x9\11\11\x9\11\x9\x9\x9\141\x73\x73\x2e\142\162\141\x6e\x64\xa\11\11\11\x9\11\x9\x9\x9\x9\106\122\x4f\115\12\11\x9\x9\11\x9\x9\11\x9\11\x72\x73\x5f\164\142\x6c\x5f\141\163\x73\145\164\x5f\x62\162\x61\x6e\144\163\x20\141\163\40\141\x62\xa\x9\11\x9\x9\11\11\x9\11\11\11\111\x4e\116\105\122\x20\x4a\x4f\x49\x4e\40\162\163\x5f\164\x62\x6c\137\x61\163\163\x65\x74\163\x20\141\163\40\141\163\163\12\11\11\11\x9\11\11\11\11\11\x9\11\x4f\116\40\x28\141\x62\56\x61\x73\163\145\x74\137\142\162\x61\156\144\x5f\x69\x64\40\75\x20\x61\163\x73\56\142\x72\141\156\144\x29\xa\x9\x9\x9\x9\x9\11\11\x9\x9\x57\x48\x45\122\105\xa\11\11\11\x9\x9\x9\11\x9\x9\x9\61\75\61\40\12\x9\11\11\11\11\x9\11\x9\11\x9\x41\x4e\104\40\x61\x62\x2e\151\x73\101\x63\x74\151\166\x65\75\x31\40\101\x4e\x44\40\x61\x62\x2e\141\163\163\145\x74\x5f\142\162\141\x6e\144\x5f\x69\144\x3d\47" . $pass_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x61\163\163\x65\164\137\x62\x72\141\x6e\x64\x73"]; } public function Getorigunit_name($pass_id) { $Sql = "\x53\105\114\105\103\x54\12\x9\x9\x9\x9\x9\11\11\x9\x9\x20\x20\40\x20\x6f\x75\56\157\x72\x69\147\x75\x6e\x69\x74\137\x69\x64\54\12\x9\11\x9\11\11\x9\x9\x9\x9\11\x6f\x75\x2e\157\x72\x69\147\165\156\151\164\x2c\xa\x9\x9\x9\x9\11\11\x9\x9\11\x9\157\165\x2e\x69\163\x41\143\164\151\166\x65\x2c\12\11\11\x9\x9\11\x9\11\x9\11\x9\165\x73\56\157\162\x69\147\137\x75\x6e\x69\x74\xa\11\x9\11\11\x9\x9\x9\11\11\x46\122\x4f\x4d\xa\x9\11\11\x9\11\11\x9\11\x9\162\163\x5f\164\142\154\137\x6f\162\x69\x67\x75\156\x69\x74\x20\x61\163\x20\157\165\12\11\11\x9\11\x9\x9\11\x9\x9\x9\111\116\x4e\105\x52\40\112\x4f\111\116\40\162\163\x5f\x74\x62\154\x5f\x75\163\x65\162\x73\x20\141\x73\40\165\163\12\11\11\11\11\11\x9\x9\x9\x9\x9\11\x4f\116\40\x28\157\x75\x2e\157\x72\x69\x67\165\x6e\x69\x74\137\x69\x64\x20\75\x20\165\163\56\x6f\162\x69\147\x5f\165\156\151\164\x29\xa\x9\11\11\11\11\11\x9\x9\11\x57\x48\x45\x52\x45\12\11\x9\11\11\x9\11\x9\11\11\11\x31\x3d\x31\40\12\11\11\x9\x9\11\x9\11\x9\11\x9\x41\x4e\104\40\157\x75\x2e\x69\x73\x41\x63\164\x69\166\x65\75\x31\40\101\x4e\x44\x20\157\x75\56\x6f\162\x69\147\x75\x6e\x69\164\x5f\x69\144\75\47" . $pass_id . "\x27"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x6f\162\x69\x67\x75\x6e\x69\164"]; } public function Getloccode_name($pass_id) { $Sql = "\123\x45\114\x45\103\124\xa\x9\x9\x9\x9\11\x9\11\x9\11\40\40\x20\40\154\x63\x2e\x6c\x6f\x63\143\x6f\144\145\137\151\x64\54\xa\11\11\11\x9\11\x9\x9\11\x9\x9\154\x63\56\154\x6f\143\143\157\x64\x65\54\12\x9\11\x9\x9\x9\11\x9\11\x9\11\154\143\x2e\151\163\101\143\x74\151\x76\145\54\12\x9\11\11\x9\x9\x9\11\x9\11\x9\x75\x73\x2e\x6c\157\x63\141\164\151\x6f\x6e\x5f\x69\144\xa\11\11\x9\11\x9\x9\11\11\x9\x46\x52\x4f\x4d\12\11\x9\x9\x9\x9\11\11\x9\11\x72\x73\x5f\x74\142\x6c\137\x6c\x6f\x63\143\157\144\145\x20\x61\163\x20\x6c\143\xa\x9\x9\11\11\x9\x9\x9\x9\x9\x9\111\x4e\x4e\105\122\x20\x4a\x4f\x49\x4e\x20\162\x73\137\x74\142\x6c\137\x75\x73\145\162\163\x20\141\x73\x20\165\x73\12\x9\11\11\x9\11\x9\11\x9\11\x9\x9\x4f\x4e\40\x28\x6c\x63\56\154\x6f\x63\143\x6f\x64\x65\137\151\144\x20\75\40\x75\163\56\154\x6f\x63\141\x74\151\x6f\x6e\x5f\151\x64\51\12\x9\11\x9\11\11\11\x9\11\x9\127\110\105\122\x45\12\11\11\x9\x9\11\11\11\x9\11\11\61\x3d\61\x20\xa\11\11\11\x9\x9\x9\11\x9\x9\x9\101\116\x44\x20\154\143\x2e\x69\163\101\x63\x74\x69\166\x65\75\61\40\101\116\104\x20\154\x63\56\x6c\157\x63\x63\x6f\x64\x65\137\151\144\x3d\47" . $pass_id . "\x27"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x6c\x6f\x63\x63\x6f\144\x65"]; } public function Getcostcenter_name($pass_id) { $Sql = "\x53\x45\114\105\103\124\xa\x9\x9\11\x9\x9\x9\x9\x9\x9\40\x20\x20\x20\143\143\56\143\x6f\163\164\x63\x65\x6e\x74\145\x72\x5f\x69\144\x2c\12\x9\11\x9\x9\x9\x9\x9\11\x9\11\143\x63\x2e\143\x6f\x73\x74\x63\x65\x6e\x74\x65\162\54\12\11\11\x9\x9\11\11\11\11\11\11\x63\x63\x2e\x69\x73\101\x63\164\x69\166\x65\54\12\x9\x9\x9\11\x9\x9\x9\11\11\11\165\x73\x2e\x63\157\x73\164\x5f\x63\x65\156\164\145\162\12\11\11\x9\x9\11\x9\x9\x9\x9\106\x52\117\115\12\x9\x9\x9\x9\x9\11\11\x9\11\x72\x73\137\x74\x62\x6c\137\x63\x6f\x73\x74\x63\x65\x6e\x74\145\x72\40\141\163\40\x63\x63\12\x9\11\x9\11\11\x9\x9\11\x9\x9\111\x4e\116\105\122\x20\x4a\117\x49\116\40\162\x73\x5f\x74\142\x6c\137\165\x73\145\x72\x73\x20\x61\x73\40\165\163\xa\x9\x9\x9\11\11\x9\11\x9\x9\11\11\x4f\x4e\40\x28\143\143\56\x63\x6f\x73\164\x63\145\x6e\164\145\x72\x5f\151\x64\40\75\x20\x75\x73\56\143\x6f\163\x74\x5f\x63\145\156\164\x65\162\x29\xa\11\11\11\11\x9\x9\11\x9\11\x57\110\105\122\105\xa\x9\11\x9\11\x9\x9\11\11\11\x9\61\75\61\40\12\11\11\11\11\11\x9\11\x9\11\x9\101\116\x44\x20\x63\x63\x2e\x69\163\101\143\164\151\166\x65\75\61\x20\x41\116\104\x20\x63\x63\56\143\157\163\x74\143\x65\x6e\164\x65\x72\x5f\151\144\x3d\x27" . $pass_id . "\x27"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x63\x6f\x73\x74\x63\145\x6e\x74\x65\162"]; } public function Getpayrollarea_name($pass_id) { $Sql = "\123\x45\114\x45\x43\x54\12\11\11\x9\11\11\x9\11\11\11\x20\x20\40\x20\x70\x70\56\160\141\x79\162\157\x6c\154\141\162\x65\141\137\151\144\54\12\11\11\11\11\x9\11\11\11\x9\11\x70\x70\x2e\160\x61\171\x72\x6f\154\x6c\141\162\x65\x61\x2c\12\x9\x9\11\11\x9\x9\11\11\11\x9\160\160\56\x69\x73\101\143\164\151\x76\x65\54\12\x9\x9\11\x9\x9\x9\11\x9\11\11\x75\163\x2e\x70\141\x79\x72\x6f\154\154\x5f\141\162\x65\141\12\11\11\11\11\x9\x9\11\11\11\106\x52\117\x4d\12\11\x9\x9\x9\11\x9\x9\x9\x9\x72\163\137\164\x62\154\137\x70\141\x79\x72\x6f\154\x6c\141\x72\145\x61\40\x61\163\40\x70\160\12\x9\x9\x9\11\x9\x9\11\11\11\11\111\116\116\x45\x52\40\x4a\x4f\x49\x4e\x20\162\x73\x5f\164\142\x6c\137\165\163\145\x72\x73\x20\x61\x73\40\x75\163\xa\x9\x9\x9\x9\11\x9\x9\x9\11\x9\x9\117\116\x20\x28\x70\x70\56\160\141\x79\x72\157\x6c\154\x61\x72\145\x61\x5f\x69\x64\40\x3d\x20\165\x73\x2e\x70\141\x79\162\x6f\154\154\137\x61\x72\145\x61\51\12\11\x9\11\x9\11\x9\x9\x9\11\127\x48\105\x52\x45\xa\x9\x9\x9\x9\11\x9\11\x9\11\x9\x31\75\61\x20\12\11\11\x9\11\11\x9\11\11\x9\11\101\x4e\x44\x20\160\x70\56\x69\163\x41\143\164\151\x76\145\75\61\40\101\116\x44\40\x70\160\56\160\141\171\162\157\154\154\141\x72\x65\141\x5f\x69\144\75\x27" . $pass_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\160\x61\x79\162\x6f\154\x6c\141\x72\x65\141"]; } public function Getempnationality_name($pass_id) { $Sql = "\123\105\x4c\x45\103\x54\xa\x9\11\x9\x9\11\x9\x9\x9\x9\x20\x20\x20\x20\145\156\56\145\x6d\160\156\141\164\x69\x6f\x6e\x61\x6c\x69\164\x79\137\x69\144\54\12\x9\x9\11\x9\11\x9\x9\11\11\x9\x65\x6e\x2e\x65\x6d\x70\x6e\x61\164\x69\x6f\x6e\x61\x6c\151\x74\171\54\xa\11\11\11\x9\11\11\x9\11\x9\x9\x65\156\x2e\151\x73\x41\143\164\151\166\145\x2c\xa\x9\11\11\11\11\11\11\11\11\11\x75\163\x2e\165\163\145\162\137\156\141\x74\x69\x6f\x6e\141\154\151\164\x79\xa\11\11\x9\11\x9\x9\11\x9\11\106\x52\x4f\115\xa\11\11\11\x9\11\11\11\x9\x9\x72\x73\x5f\164\x62\154\137\145\155\x70\x6e\141\164\151\x6f\156\x61\x6c\x69\x74\x79\40\141\163\40\145\156\12\x9\x9\x9\11\x9\x9\x9\11\11\11\111\116\x4e\105\122\x20\x4a\117\x49\116\x20\162\163\x5f\x74\x62\154\x5f\165\163\x65\x72\x73\40\141\163\40\x75\163\12\x9\x9\11\x9\11\x9\11\11\11\x9\11\x4f\x4e\40\50\x65\156\x2e\x65\x6d\160\x6e\141\x74\x69\157\x6e\141\154\151\164\171\x5f\151\x64\x20\x3d\40\165\163\x2e\x75\x73\x65\x72\x5f\156\141\x74\x69\157\156\x61\154\x69\164\171\51\12\11\x9\x9\x9\11\11\x9\x9\x9\x57\x48\x45\x52\105\xa\x9\x9\x9\11\x9\x9\x9\x9\x9\x9\x31\75\x31\x20\12\11\x9\11\x9\x9\x9\11\11\11\x9\101\116\x44\x20\145\x6e\x2e\151\163\101\143\x74\x69\x76\x65\x3d\x31\x20\x41\x4e\x44\x20\145\156\56\x65\x6d\x70\x6e\x61\164\151\x6f\x6e\141\x6c\x69\164\x79\x5f\151\x64\x3d\x27" . $pass_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x65\x6d\x70\x6e\x61\x74\x69\157\x6e\141\x6c\x69\x74\x79"]; } public function CompanyCombo($sel = '') { $opt = ''; $Sql = "\123\x45\114\105\103\x54\12\x9\11\x9\11\x9\x63\157\x6d\160\141\x6e\171\x5f\151\x64\x2c\xa\11\11\11\11\11\x63\x6f\x6d\x70\141\156\171\137\x6e\141\155\x65\xa\11\x9\11\11\106\122\117\x4d\xa\11\11\11\11\11\162\x73\x5f\164\142\154\137\143\157\x6d\x70\141\156\x69\x65\163\12\x9\x9\x9\11\127\x48\105\x52\105\xa\x9\11\x9\11\x9\x31\75\61\40\xa\x9\x9\11\x9\11\101\x4e\104\x20\151\163\101\143\164\151\x76\145\x3d\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\143\x6f\x6d\160\x61\x6e\171\x5f\x69\144"] == $sel) { $opt .= "\x3c\157\x70\164\x69\157\x6e\x20\166\x61\154\x75\145\x3d\42" . $rows["\143\x6f\155\x70\141\x6e\x79\137\151\x64"] . "\x22\x20\x73\x65\154\145\143\164\x65\144\x3e" . $rows["\143\157\x6d\160\141\x6e\x79\137\x6e\141\x6d\145"] . "\x3c\x2f\157\160\x74\x69\x6f\x6e\76\xa"; } else { $opt .= "\x3c\157\160\x74\151\x6f\156\40\166\x61\x6c\165\145\75\42" . $rows["\x63\157\x6d\160\141\x6e\x79\x5f\x69\x64"] . "\42\76" . $rows["\143\x6f\155\160\141\156\x79\x5f\156\x61\155\x65"] . "\74\57\x6f\160\164\x69\x6f\156\76\xa"; } } return $opt; } public function GetLocation($location_id) { $Sql = "\x53\105\114\105\103\124\12\x9\x9\x9\x9\11\x6c\x6f\143\56\154\x6f\143\x61\x74\x69\x6f\156\x5f\x69\x64\x2c\12\x9\11\x9\11\x9\154\157\143\56\154\157\143\x61\164\x69\x6f\x6e\x5f\x6e\x61\155\145\x2c\xa\11\11\x9\11\x9\154\x6f\143\x2e\x69\x73\101\143\x74\151\x76\145\x2c\xa\11\x9\x9\11\x9\x63\157\x6d\160\56\143\157\155\160\x61\156\x79\x5f\x6e\141\x6d\145\12\x9\x9\x9\x9\106\x52\x4f\x4d\xa\x9\x9\x9\11\x9\162\163\x5f\164\x62\154\137\x6c\157\143\x61\164\x69\157\x6e\40\x61\163\40\154\157\143\xa\11\x9\x9\x9\11\x49\116\x4e\x45\122\x20\x4a\117\x49\116\40\x72\x73\x5f\x74\x62\x6c\137\x63\x6f\155\160\x61\x6e\x69\x65\x73\40\141\163\x20\x63\157\x6d\160\xa\x9\11\11\11\11\x9\x4f\116\x20\x28\x6c\157\143\x2e\x63\157\155\160\141\156\171\x5f\151\x64\40\x3d\x20\x63\157\155\160\56\143\157\155\x70\x61\156\x79\137\151\144\x29\12\11\x9\11\11\127\x48\x45\122\105\xa\x9\x9\11\x9\11\61\x3d\61\x20\12\x9\11\11\11\11\101\x4e\104\x20\154\x6f\x63\56\151\163\101\x63\164\151\x76\x65\75\61\40\101\116\x44\40\154\157\x63\56\x6c\157\143\141\x74\151\157\156\x5f\x69\x64\x3d\47" . $location_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x6c\x6f\143\x61\x74\x69\x6f\156\x5f\156\x61\x6d\x65"]; } public function JobTitleCombo($sel = '') { $opt = ''; $Sql = "\123\x45\x4c\x45\x43\x54\12\x9\11\x9\x9\x9\x6a\x6f\x62\137\x74\x69\x74\154\x65\137\x69\x64\x2c\12\11\x9\x9\x9\x9\x6a\157\x62\x5f\164\151\x74\x6c\x65\12\x9\x9\x9\x9\x46\122\117\x4d\xa\11\x9\x9\x9\11\x72\x73\x5f\164\x62\154\137\x6a\x6f\x62\x5f\x74\151\x74\x6c\x65\xa\x9\x9\11\x9\127\110\x45\x52\x45\xa\11\x9\x9\x9\11\x31\75\61\40\xa\x9\11\11\x9\x9\101\x4e\x44\x20\x69\163\101\x63\164\151\x76\145\75\x31"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\152\157\x62\x5f\x74\151\164\x6c\x65\x5f\x69\144"] == $sel) { $opt .= "\74\157\160\x74\151\157\x6e\x20\166\141\x6c\x75\145\x3d\42" . $rows["\152\157\x62\x5f\x74\x69\164\154\145\x5f\151\x64"] . "\x22\40\x73\x65\x6c\x65\143\164\x65\144\76" . $rows["\x6a\157\142\137\164\151\164\154\x65"] . "\74\57\157\160\x74\151\157\156\76\12"; } else { $opt .= "\x3c\157\160\164\151\x6f\156\40\x76\141\154\165\145\x3d\x22" . $rows["\152\157\142\137\164\x69\x74\154\x65\x5f\151\x64"] . "\42\x3e" . $rows["\152\157\142\137\164\x69\164\154\145"] . "\74\57\x6f\x70\x74\151\x6f\x6e\76\xa"; } } return $opt; } public function BrandCombo($sel = '') { $opt = ''; $Sql = "\123\105\114\105\103\124\xa\11\11\x9\x9\11\141\163\x73\x65\164\x5f\x62\x72\141\156\x64\x5f\151\144\54\12\x9\x9\x9\x9\x9\141\163\x73\x65\x74\137\x62\x72\x61\156\144\x73\12\x9\11\11\11\x46\122\117\115\xa\x9\11\x9\x9\x72\x73\137\164\x62\x6c\x5f\x61\x73\163\145\164\137\x62\162\x61\156\x64\163\12\x9\x9\11\11\127\110\105\122\x45\12\x9\11\x9\x9\11\x31\x3d\61\x20\xa\11\x9\x9\x9\11\x41\x4e\x44\x20\x69\163\101\143\x74\151\166\145\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\x61\163\163\145\x74\x5f\142\162\141\156\x64\x5f\x69\x64"] == $sel) { $opt .= "\x3c\x6f\x70\x74\x69\x6f\x6e\40\x76\141\x6c\x75\x65\x3d\x22" . $rows["\x61\163\x73\x65\164\x5f\x62\162\141\x6e\144\x5f\x69\144"] . "\42\x20\x73\145\x6c\145\143\x74\x65\144\x3e" . $rows["\x61\163\x73\145\x74\137\x62\162\x61\156\144\x73"] . "\74\x2f\157\x70\x74\x69\x6f\x6e\76\12"; } else { $opt .= "\74\157\x70\x74\x69\157\x6e\x20\x76\141\154\x75\x65\75\x22" . $rows["\141\x73\x73\145\164\137\x62\x72\x61\156\x64\x5f\x69\144"] . "\42\x3e" . $rows["\141\x73\x73\x65\164\x5f\x62\x72\141\156\x64\x73"] . "\74\57\157\x70\164\151\x6f\x6e\76\xa"; } } return $opt; } public function DepartmentCombo($sel = '') { $opt = ''; $Sql = "\123\x45\114\105\x43\x54\12\11\x9\11\x9\x9\144\160\56\144\145\x70\141\162\x74\155\x65\x6e\x74\x5f\151\144\x2c\12\11\11\x9\x9\x9\144\160\56\x75\163\145\x72\x5f\x69\144\x2c\xa\x9\x9\x9\x9\11\144\x70\x2e\143\x6f\155\160\141\x6e\x79\137\151\144\54\12\x9\11\11\x9\x9\144\x70\x2e\x64\145\160\x61\162\x74\155\x65\x6e\164\137\156\x61\155\145\x2c\12\x9\11\x9\x9\x9\144\x70\56\x69\163\x41\143\x74\151\166\145\54\xa\11\11\11\x9\11\x63\160\x2e\x63\157\x6d\160\x61\x6e\171\137\x6e\141\x6d\x65\xa\x9\11\x9\x9\x46\122\117\115\12\11\11\11\x9\x9\x72\x73\137\164\x62\154\x5f\144\x65\x70\x61\162\x74\x6d\145\x6e\164\40\x61\163\40\x64\160\12\x9\x9\x9\x9\11\x49\116\116\x45\122\x20\112\x4f\111\116\x20\x72\x73\137\x74\142\154\x5f\x63\157\x6d\160\141\x6e\151\x65\x73\40\x63\160\12\x9\11\x9\11\11\x9\117\x4e\40\50\144\160\56\x63\157\155\x70\x61\x6e\171\x5f\x69\x64\40\75\40\x63\160\56\x63\x6f\x6d\x70\x61\x6e\x79\x5f\x69\x64\51\xa\x9\11\11\11\127\x48\105\122\105\12\x9\11\11\x9\11\x31\75\61\40\xa\x9\x9\x9\x9\x9\x41\116\x44\x20\144\x70\x2e\x69\x73\x41\x63\x74\151\166\x65\75\61"; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { if ($rows["\144\145\160\x61\162\164\155\145\x6e\164\x5f\x69\144"] == $sel) { $opt .= "\74\157\x70\164\x69\157\156\x20\166\x61\x6c\x75\145\75\42" . $rows["\144\145\160\x61\x72\x74\155\x65\x6e\164\x5f\151\144"] . "\x22\x20\x73\145\x6c\x65\x63\x74\x65\x64\x3e" . $rows["\143\x6f\155\x70\x61\x6e\171\137\156\x61\155\x65"] . "\x20\55\x3e\x20" . $rows["\144\x65\160\x61\162\164\155\145\156\x74\137\156\141\155\x65"] . "\x3c\x2f\x6f\160\164\151\157\x6e\76\12"; } else { $opt .= "\x3c\x6f\x70\164\151\157\x6e\x20\x76\x61\154\x75\145\x3d\42" . $rows["\x64\145\x70\141\x72\x74\155\145\x6e\x74\137\x69\144"] . "\42\76" . $rows["\x63\157\x6d\x70\141\156\x79\137\x6e\x61\x6d\x65"] . "\40\55\76\40" . $rows["\144\145\160\141\x72\x74\155\x65\156\164\x5f\x6e\141\155\x65"] . "\x3c\57\157\160\164\151\157\156\76\xa"; } } return $opt; } public function GetComLocInfo($location_id) { $Sql = "\x53\x45\114\105\x43\x54\12\11\11\11\11\x9\x6c\157\x63\x2e\154\157\x63\141\x74\x69\157\156\x5f\x69\x64\54\xa\11\11\11\11\x9\x6c\x6f\x63\x2e\x6c\x6f\x63\141\164\x69\x6f\x6e\137\x6e\x61\155\x65\x2c\12\x9\11\11\x9\11\x6c\x6f\x63\56\x69\x73\101\143\164\x69\166\145\54\xa\11\x9\x9\11\x9\143\x6f\155\x70\56\x63\157\x6d\160\141\x6e\x79\x5f\x6e\141\x6d\145\12\11\11\11\x9\x46\x52\117\x4d\12\11\x9\11\11\11\162\x73\137\164\x62\154\x5f\x6c\157\143\141\164\x69\x6f\156\x20\141\x73\x20\154\x6f\x63\12\11\x9\x9\x9\x9\x49\x4e\x4e\105\122\40\112\117\x49\116\40\162\163\137\x74\142\x6c\137\143\x6f\155\160\x61\x6e\x69\145\163\x20\141\163\x20\x63\x6f\155\x70\12\x9\11\11\x9\11\x9\x4f\116\40\50\154\x6f\x63\56\x63\x6f\155\160\x61\156\x79\x5f\x69\144\x20\x3d\x20\x63\x6f\x6d\x70\x2e\x63\x6f\x6d\160\x61\x6e\171\x5f\x69\144\x29\xa\11\11\x9\x9\127\x48\x45\122\105\xa\x9\11\x9\x9\11\x31\x3d\61\40\xa\x9\11\x9\x9\x9\101\x4e\104\40\154\x6f\x63\56\151\163\x41\143\x74\151\x76\145\x3d\x31\x20\x41\x4e\104\40\x6c\157\143\x2e\x6c\157\143\x61\x74\151\x6f\156\x5f\x69\x64\x3d\x27" . $location_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x63\x6f\x6d\160\x61\156\171\137\x6e\x61\155\x65"] . "\57" . $rows["\154\x6f\143\x61\x74\151\x6f\156\x5f\x6e\141\155\145"]; } public function GetComDeptInfo($department_id) { $Sql = "\x53\x45\114\x45\x43\124\xa\x9\x9\11\11\x9\x64\x65\160\164\x2e\x64\145\x70\141\x72\x74\x6d\x65\x6e\164\137\x69\144\x2c\12\11\11\11\11\x9\144\x65\x70\164\56\144\145\160\x61\x72\164\x6d\x65\156\164\137\x6e\x61\155\145\54\xa\x9\x9\x9\x9\x9\144\x65\x70\x74\56\151\x73\x41\x63\x74\151\x76\x65\x2c\12\x9\x9\x9\11\x9\x63\157\155\160\56\143\x6f\x6d\160\141\156\171\x5f\x6e\x61\x6d\145\xa\11\x9\x9\11\x46\x52\117\x4d\xa\11\x9\x9\11\x9\x72\163\137\x74\x62\x6c\x5f\x64\145\160\x61\x72\164\155\145\x6e\164\x20\141\163\x20\144\x65\160\164\xa\11\11\x9\x9\11\111\116\116\105\122\x20\112\x4f\x49\116\40\x72\163\137\164\142\x6c\x5f\143\157\155\x70\141\x6e\x69\x65\x73\x20\141\x73\40\143\157\155\160\12\11\x9\11\x9\x9\x9\x4f\116\40\50\144\x65\160\x74\x2e\x63\157\155\x70\x61\156\171\137\151\144\40\75\40\x63\157\155\160\56\143\157\x6d\x70\x61\156\x79\x5f\x69\144\x29\12\x9\11\x9\x9\127\x48\x45\122\105\xa\x9\11\11\11\x9\61\75\x31\x20\xa\11\x9\x9\x9\11\x41\116\x44\40\144\x65\160\x74\56\151\163\101\x63\164\x69\166\145\x3d\x31\40\x41\x4e\x44\40\144\145\160\x74\x2e\x64\145\160\141\x72\164\155\x65\156\164\137\151\x64\75\47" . $department_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\143\157\x6d\160\141\x6e\171\x5f\x6e\141\x6d\x65"] . "\x2f" . $rows["\144\145\x70\x61\162\164\155\x65\x6e\x74\x5f\156\x61\x6d\145"]; } public function GetUserFullName($user_id) { $Sql = "\123\105\x4c\x45\x43\x54\x20\12\x9\11\11\x9\11\x75\163\145\162\x5f\151\144\54\xa\11\x9\x9\11\11\103\x4f\x4e\103\101\x54\50\x75\x73\145\162\x5f\x66\156\x61\155\145\51\x20\101\x53\40\x66\165\154\x6c\156\141\x6d\145\12\x9\11\x9\11\x46\x52\117\115\xa\11\11\x9\x9\x9\162\x73\x5f\164\x62\154\x5f\x75\x73\x65\162\163\12\11\11\x9\x9\127\110\105\122\x45\12\11\x9\x9\x9\x9\61\75\x31\x20\12\11\x9\x9\x9\x9\x20\x41\x4e\x44\40\165\163\145\162\x5f\x69\x64\75\47" . $user_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x66\165\x6c\x6c\x6e\x61\x6d\x65"]; } public function GetLocationId($user_id) { $Sql = "\123\x45\114\x45\103\124\40\12\x9\x9\x9\11\11\165\163\145\x72\137\151\144\54\12\11\x9\x9\x9\x9\154\x6f\143\x61\x74\x69\157\x6e\137\x69\x64\40\101\x53\x20\x75\x73\x65\x72\x6c\x6f\x63\141\164\151\157\x6e\xa\11\x9\11\11\x46\122\117\x4d\12\11\11\11\11\11\x72\163\137\x74\x62\x6c\137\x75\x73\145\x72\x73\12\11\x9\x9\11\x57\110\105\122\105\xa\x9\x9\x9\x9\x9\61\x3d\61\x20\xa\11\11\11\11\x9\x20\101\116\x44\40\x75\x73\145\x72\137\x69\x64\75\47" . $user_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x75\163\x65\162\x6c\x6f\143\x61\x74\x69\157\x6e"]; } public function Getcompanyname($user_id) { $Sql = "\x53\105\x4c\105\103\x54\x20\xa\11\11\11\x9\11\143\157\x6d\160\141\156\171\137\151\144\x2c\xa\11\11\x9\x9\11\143\157\x6d\160\141\156\171\137\156\x61\x6d\145\xa\11\11\x9\11\106\122\117\115\xa\11\x9\11\x9\164\141\155\151\x6d\151\137\x63\157\x6d\160\141\156\171\12\x9\11\11\x9\x57\x48\105\122\x45\xa\x9\x9\x9\x9\x9\x31\x3d\61\40\12\11\x9\x9\x9\x9\x20\x41\116\104\x20\143\157\155\x70\141\x6e\x79\137\151\144\x3d\x27" . $user_id . "\x27"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\143\157\155\x70\141\x6e\x79\x5f\x6e\141\x6d\145"]; } public function GetTeamLeadsCombo($sel = '') { $opt = ''; $Sql = "\x53\105\114\105\x43\124\x20\xa\11\11\x9\11\x9\x75\163\145\x72\137\x69\x64\54\12\11\x9\11\x9\x9\x43\117\116\103\x41\124\50\165\x73\x65\x72\137\x66\x6e\141\155\145\54\47\40\47\54\165\163\145\x72\x5f\154\156\x61\155\x65\51\x20\101\123\x20\146\165\154\x6c\156\141\x6d\x65\xa\11\11\x9\x9\106\x52\x4f\x4d\xa\11\x9\x9\x9\11\x72\163\x5f\x74\142\154\137\165\163\145\162\x73\12\11\11\11\x9\x57\110\x45\x52\105\12\11\x9\11\11\x9\61\x3d\x31\40\xa\x9\x9\x9\x9\x9\x20\x41\x4e\104\x20\x74\x65\x61\x6d\x6c\145\141\144\x5f\x73\164\x61\x74\165\x73\x3d\x32\x20\x41\116\x44\40\x6c\157\143\x61\x74\x69\x6f\156\137\151\x64\x3d" . $this->location_id . "\40\x41\x4e\x44\40\x75\x73\x65\162\137\x69\144\75" . $sel; $this->dbQuery($Sql); while ($rows = $this->dbFetchArray(1)) { $opt .= "\x3c\157\x70\x74\x69\157\156\40\166\141\154\165\145\x3d\x22" . $rows["\165\x73\145\x72\137\x69\x64"] . "\x22\x20\163\145\154\x65\x63\x74\145\144\x3e" . $rows["\146\x75\154\x6c\x6e\141\x6d\x65"] . "\74\57\157\160\164\x69\x6f\156\76\12"; } return $opt; } public function GetUserFullNameByDeviceId($Device_Uid) { $Sql = "\x53\105\114\105\103\x54\40\xa\11\11\x9\x9\x9\x64\145\166\x69\x63\145\x5f\x75\x69\144\54\xa\x9\x9\11\x9\x9\x43\x4f\x4e\103\101\x54\50\165\163\145\162\x5f\x66\156\141\155\145\54\x27\x20\47\54\x75\163\x65\162\x5f\x6c\x6e\x61\x6d\145\51\x20\101\x53\40\x66\x75\154\x6c\x6e\x61\x6d\x65\xa\x9\11\x9\x9\106\x52\x4f\x4d\xa\11\x9\x9\x9\11\162\x73\x5f\164\142\x6c\137\165\163\145\162\163\12\11\x9\11\x9\x57\x48\x45\122\105\xa\11\x9\11\11\x9\x31\x3d\x31\40\12\11\x9\11\11\11\x20\x41\x4e\104\40\x64\x65\x76\x69\143\145\137\x75\x69\x64\75\x27" . $Device_Uid . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\x66\x75\154\x6c\x6e\141\155\x65"]; } public function GetUserDeviceId($user_id) { $Sql = "\x53\105\114\105\103\124\40\xa\11\x9\11\x9\x9\x64\x65\x76\151\x63\x65\137\x75\151\144\xa\x9\x9\11\x9\x46\122\117\115\12\11\11\11\11\11\162\x73\137\x74\x62\154\x5f\165\163\145\162\163\12\11\x9\11\x9\127\110\x45\x52\105\12\11\x9\11\x9\11\61\75\61\x20\12\x9\x9\11\11\x9\40\x41\x4e\104\x20\165\x73\145\162\137\x69\x64\75\47" . $user_id . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\144\x65\x76\151\143\145\x5f\165\x69\x64"]; } public function GetUserIdByDeviceId($device_uid) { $Sql = "\x53\105\114\105\x43\x54\x20\xa\x9\11\11\x9\11\x75\163\x65\162\137\151\144\12\11\11\x9\11\x46\x52\x4f\115\xa\11\11\x9\11\11\162\163\x5f\x74\142\154\x5f\165\x73\x65\x72\163\xa\11\x9\11\11\x57\110\105\122\x45\xa\11\x9\x9\11\x9\61\x3d\61\x20\xa\x9\x9\11\x9\11\40\101\x4e\104\x20\144\145\x76\x69\x63\145\137\x75\151\x64\75\x27" . $device_uid . "\47"; $this->dbQuery($Sql); $rows = $this->dbFetchArray(1); return $rows["\165\x73\145\x72\137\x69\x64"]; } public function lstUsers() { $Sql = "\123\105\x4c\105\x43\124\40\12\x9\x9\11\11\11\x75\163\145\162\137\x69\144\x2c\xa\x9\11\x9\x9\11\x65\156\x74\x65\162\137\165\163\x65\x72\x5f\151\x64\54\xa\x9\x9\x9\x9\x9\145\155\160\x6c\x6f\171\x65\x65\x5f\151\144\54\12\x9\11\x9\x9\11\x69\x71\x61\x6d\x61\x5f\x70\162\x6f\146\145\163\x73\151\x6f\156\x2c\xa\x9\x9\x9\11\x9\165\x73\145\x72\137\146\156\141\155\x65\x2c\xa\x9\x9\x9\11\11\165\163\x65\162\137\x64\x65\163\151\147\x6e\141\164\151\157\156\54\xa\11\x9\11\11\x9\x6f\x72\x69\147\x5f\165\156\x69\164\x2c\12\x9\11\x9\11\x9\154\157\x63\x61\164\151\x6f\156\137\x69\144\x2c\12\11\x9\11\11\x9\x63\157\163\x74\137\143\145\156\x74\145\162\x2c\12\11\x9\x9\x9\11\x70\141\x79\x72\x6f\154\154\x5f\141\162\x65\141\x2c\12\11\x9\x9\11\x9\x73\165\142\x5f\x61\x72\145\x61\54\12\x9\x9\11\x9\11\165\x73\x65\162\x5f\x67\x65\156\x64\145\162\x2c\12\x9\11\11\x9\11\165\163\x65\x72\137\x6e\x61\164\x69\157\x6e\x61\154\x69\164\171\x2c\xa\11\11\11\x9\x9\165\x73\145\162\x5f\162\x65\154\151\x67\x69\x6f\156\x2c\12\x9\x9\11\11\x9\165\x73\145\162\137\x6d\x6f\142\x69\154\x65\x2c\xa\x9\x9\11\11\11\165\x73\x65\162\137\x64\x6f\142\x2c\xa\x9\x9\11\x9\x9\x69\161\141\155\x61\137\x6e\x6f\54\12\x9\x9\11\11\x9\x69\161\141\x6d\141\x5f\x65\170\160\151\x72\x79\54\12\x9\11\11\11\x9\160\x61\x73\x73\x70\157\162\x74\137\x6e\157\x2c\12\11\11\11\11\11\160\x61\x73\x73\x70\x6f\162\164\x5f\x65\170\x70\x69\x72\171\x2c\12\11\11\x9\11\11\162\145\147\x5f\x64\x61\x74\145\x2c\12\11\11\11\11\11\x75\163\145\162\x5f\x69\x6e\x73\165\x72\x61\x6e\x63\x65\x2c\xa\11\11\x9\11\x9\165\x73\145\x72\137\x65\x6d\x61\x69\154\x2c\xa\x9\11\11\x9\11\154\x69\x63\x65\x6e\143\x65\x5f\156\157\x2c\12\11\11\11\x9\x9\147\157\x73\x69\x5f\156\x6f\54\12\x9\x9\11\x9\x9\x63\x6f\x6e\x74\x72\x61\143\x74\137\164\171\x70\x65\x2c\12\11\11\11\x9\x9\x6a\x6f\x62\x53\164\141\x74\165\163\54\xa\x9\11\11\x9\x9\150\x69\162\145\137\144\141\x74\x65\54\xa\x9\x9\x9\11\x9\165\163\145\x72\x5f\x70\162\x6f\146\x69\154\x65\x5f\x69\x6d\x67\54\xa\11\11\11\x9\x9\x63\156\x69\143\x5f\x66\162\x6f\156\164\137\x73\151\x64\x65\54\xa\11\11\x9\11\11\165\163\x65\162\x5f\x63\x76\x2c\xa\11\x9\11\11\11\151\x73\101\x63\164\x69\166\x65\x2c\12\x9\x9\x9\x9\11\104\101\124\105\x5f\106\x4f\122\x4d\x41\x54\x28\165\x73\145\x72\x5f\x64\157\x62\x2c\x20\x27\x25\x6d\55\x25\x64\47\x29\x20\101\123\40\x75\x70\143\157\155\x69\x6e\x67\137\x64\x6f\x62\xa\11\11\x9\x9\x46\122\x4f\115\xa\x9\x9\11\x9\x9\x72\x73\137\164\x62\x6c\137\x75\x73\x65\x72\163\x20\12\x9\x9\x9\11\x57\x48\105\122\x45\40\xa\x9\11\11\x9\x9\61\75\61"; if ($this->isPropertySet("\x75\163\x65\162\137\x69\144", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\165\x73\x65\162\x5f\151\x64\x3d" . $this->getProperty("\x75\x73\x65\x72\x5f\x69\x64"); } if ($this->isPropertySet("\x65\x6e\164\145\162\x5f\165\163\x65\162\x5f\151\144", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\145\x6e\164\145\x72\137\165\x73\x65\162\x5f\151\x64\x3d" . $this->getProperty("\x65\156\164\145\x72\137\x75\163\x65\x72\x5f\x69\x64"); } if ($this->isPropertySet("\145\x6d\x70\x6c\157\171\x65\x65\137\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x65\155\x70\154\x6f\x79\145\145\x5f\151\x64\75" . $this->getProperty("\x65\155\x70\x6c\x6f\x79\x65\145\x5f\151\144"); } if ($this->isPropertySet("\x69\x71\x61\155\141\x5f\x70\x72\x6f\146\145\x73\x73\151\157\x6e", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\151\161\141\155\x61\x5f\160\x72\157\x66\145\163\163\151\x6f\x6e\x3d" . $this->getProperty("\x69\x71\141\155\x61\137\160\162\157\x66\145\163\x73\151\157\156"); } if ($this->isPropertySet("\165\163\x65\162\x5f\151\144\x5f\156\157\x74", "\126")) { $Sql .= "\x20\101\x4e\x44\40\165\163\x65\x72\137\151\144\x21\x3d" . $this->getProperty("\165\x73\145\162\137\x69\x64\137\156\157\164"); } if ($this->isPropertySet("\x73\145\x61\x72\143\x68\x5f\165\163\x65\162", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\50\x4c\x4f\127\x45\x52\50\165\x73\x65\x72\x5f\146\156\141\x6d\145\x29\40\114\x49\x4b\x45\40\x27\x25" . $this->getProperty("\163\145\x61\x72\x63\x68\137\165\x73\x65\162") . "\45\x27\x20\x4f\x52\x20\114\117\127\x45\122\x28\x75\x73\145\162\137\154\156\141\x6d\x65\51\40\114\x49\113\105\x20\x27\45" . $this->getProperty("\163\145\x61\162\x63\150\x5f\165\163\x65\162") . "\x25\47\x29"; } if ($this->isPropertySet("\165\x73\145\x72\x5f\146\x6e\141\155\x65", "\126")) { $Sql .= "\x20\x41\116\104\x20\165\163\x65\x72\x5f\146\156\141\x6d\145\75\47" . $this->getProperty("\x75\163\x65\162\137\146\156\141\x6d\145") . "\x27"; } if ($this->getProperty("\x75\163\x65\162\137\144\145\163\151\147\156\141\164\151\x6f\156", "\126")) { $Sql .= "\40\x41\116\104\40\x75\163\x65\x72\x5f\x64\145\163\151\147\x6e\141\164\x69\x6f\156\75\x27" . $this->getProperty("\165\163\145\162\x5f\144\x65\163\151\147\156\141\x74\x69\x6f\x6e") . "\x27"; } if ($this->getProperty("\157\x72\x69\147\x5f\x75\156\151\164", "\x56")) { $Sql .= "\40\x41\x4e\104\40\157\x72\x69\x67\x5f\x75\156\151\164\x3d\x27" . $this->getProperty("\157\162\151\147\137\x75\156\151\164") . "\x27"; } if ($this->getProperty("\x6c\157\x63\x61\x74\151\157\156\x5f\x69\144", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\154\x6f\x63\x61\x74\151\157\x6e\137\x69\144\75\x27" . $this->getProperty("\x6c\157\143\x61\x74\151\157\156\137\x69\x64") . "\x27"; } if ($this->getProperty("\x63\157\163\164\137\143\145\156\x74\145\162", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\x63\x6f\x73\164\x5f\143\145\x6e\x74\145\162\75\x27" . $this->getProperty("\x63\157\163\x74\x5f\143\145\156\164\145\162") . "\x27"; } if ($this->getProperty("\x75\x73\145\x72\137\164\171\x70\x65\x5f\x69\x64", "\126")) { $Sql .= "\x20\101\x4e\104\x20\x75\x73\x65\162\137\164\171\160\x65\137\x69\x64\75\x27" . $this->getProperty("\165\163\145\x72\x5f\x74\171\x70\x65\x5f\151\144") . "\47"; } if ($this->getProperty("\x70\141\171\x72\x6f\x6c\154\137\141\162\145\141", "\x56")) { $Sql .= "\x20\101\116\104\40\160\x61\x79\162\157\154\x6c\137\141\x72\x65\x61\75\x27" . $this->getProperty("\x70\x61\171\x72\157\154\154\x5f\x61\162\145\x61") . "\47"; } if ($this->getProperty("\163\x75\x62\x5f\x61\162\145\141", "\126")) { $Sql .= "\x20\x41\x4e\104\40\x73\x75\x62\x5f\141\162\x65\x61\x3d\47" . $this->getProperty("\163\x75\x62\x5f\141\162\145\141") . "\47"; } if ($this->getProperty("\x75\x73\145\x72\x5f\147\145\x6e\x64\x65\162", "\x56")) { $Sql .= "\40\101\116\x44\x20\165\163\x65\162\137\147\x65\x6e\144\145\162\75\x27" . $this->getProperty("\165\163\x65\162\x5f\x67\x65\156\144\145\162") . "\x27"; } if ($this->getProperty("\165\163\x65\x72\x5f\x6e\x61\x74\151\x6f\x6e\x61\x6c\x69\x74\171", "\x56")) { $Sql .= "\40\101\x4e\104\40\165\x73\145\x72\137\x6e\x61\164\x69\157\x6e\141\154\x69\x74\171\x3d\47" . $this->getProperty("\165\x73\x65\x72\x5f\x6e\141\164\151\157\156\x61\154\151\x74\171") . "\47"; } if ($this->getProperty("\x75\163\145\x72\x5f\x72\145\154\151\147\x69\157\x6e", "\126")) { $Sql .= "\40\x41\116\104\x20\165\x73\145\x72\x5f\x72\145\x6c\x69\147\x69\x6f\x6e\x3d\47" . $this->getProperty("\165\163\145\162\x5f\162\x65\x6c\x69\147\151\x6f\x6e") . "\x27"; } if ($this->getProperty("\165\163\145\162\x5f\144\157\142\137\x75\160", "\126")) { $Sql .= "\40\101\x4e\x44\x20\104\101\124\105\137\106\117\122\x4d\x41\x54\50\x75\x73\145\162\137\x64\157\x62\x2c\40\47\45\x6d\55\x25\x64\47\51\40\76\75\x20\47" . $this->getProperty("\165\163\145\x72\137\144\x6f\x62\137\165\x70") . "\x27"; } if ($this->getProperty("\x69\163\116\x6f\164", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\x69\x73\x41\143\x74\x69\x76\145\41\75\x27" . $this->getProperty("\x69\163\x4e\157\x74") . "\x27"; } if ($this->getProperty("\x75\163\x65\162\137\155\157\142\x69\154\145", "\x56")) { $Sql .= "\x20\101\116\104\x20\x75\x73\x65\162\137\155\x6f\142\x69\154\145\75\x27" . $this->getProperty("\165\163\x65\162\x5f\x6d\x6f\x62\x69\154\x65") . "\47"; } if ($this->getProperty("\165\x73\x65\162\x5f\144\x6f\x62", "\x56")) { $Sql .= "\40\101\116\x44\x20\x75\163\x65\x72\x5f\x64\157\142\x3d\47" . $this->getProperty("\x75\x73\145\x72\137\144\x6f\x62") . "\47"; } if ($this->getProperty("\151\x71\141\x6d\141\137\x6e\x6f", "\126")) { $Sql .= "\x20\117\x52\40\151\x71\x61\x6d\141\137\x6e\157\x3d\47" . $this->getProperty("\x69\x71\x61\x6d\x61\137\156\157") . "\47"; } if ($this->getProperty("\151\x71\x61\x6d\141\137\x65\170\x70\151\x72\171", "\x56")) { $Sql .= "\40\x41\x4e\104\40\151\161\141\x6d\x61\x5f\145\x78\160\x69\162\171\x3d\x27" . $this->getProperty("\x69\161\x61\x6d\x61\x5f\145\170\x70\x69\162\x79") . "\x27"; } if ($this->isPropertySet("\104\101\124\x45\106\111\114\x54\105\122", "\x56")) { $Sql .= "\x20\101\x4e\104\x20\151\161\x61\x6d\141\137\x65\170\x70\x69\162\171\40\102\105\124\x57\x45\105\x4e\x20\x27" . $this->getProperty("\x53\x54\x41\122\124\104\x41\x54\105") . "\x27\x20\101\x4e\x44\x20\x27" . $this->getProperty("\x45\116\x44\104\101\x54\105") . "\x27"; } if ($this->getProperty("\x70\141\x73\x73\x70\157\x72\x74\137\x6e\x6f", "\x56")) { $Sql .= "\x20\101\x4e\104\x20\x70\141\163\163\160\x6f\x72\x74\137\x6e\x6f\x3d\x27" . $this->getProperty("\x70\x61\163\x73\x70\x6f\x72\x74\137\x6e\157") . "\47"; } if ($this->getProperty("\x70\141\x73\163\160\157\162\x74\x5f\x65\170\160\x69\162\171", "\x56")) { $Sql .= "\x20\101\116\104\40\x70\x61\x73\163\160\157\162\164\137\145\170\160\151\162\x79\x3d\47" . $this->getProperty("\x70\141\x73\163\x70\157\x72\164\x5f\145\x78\160\151\162\171") . "\47"; } if ($this->getProperty("\x70\141\x73\x73\x70\157\162\164\x5f\145\170\160\x69\162\x79", "\x56")) { $Sql .= "\x20\101\116\104\40\x70\x61\163\x73\160\x6f\x72\164\x5f\145\170\x70\x69\x72\171\75\x27" . $this->getProperty("\160\x61\163\x73\x70\157\162\x74\x5f\x65\x78\160\x69\162\x79") . "\x27"; } if ($this->getProperty("\165\x73\145\162\x5f\151\156\x73\x75\x72\x61\156\143\x65", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\165\x73\x65\162\x5f\151\156\x73\165\162\x61\x6e\x63\x65\75\47" . $this->getProperty("\x75\163\145\162\137\x69\156\x73\165\x72\141\156\x63\145") . "\47"; } if ($this->getProperty("\x75\x73\145\x72\x5f\x65\155\x61\x69\x6c", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\x75\163\x65\x72\x5f\x65\x6d\141\151\x6c\75\x27" . $this->getProperty("\165\x73\145\x72\x5f\145\155\141\151\154") . "\x27"; } if ($this->getProperty("\147\x6f\x73\151\x5f\x6e\x6f", "\126")) { $Sql .= "\x20\101\116\x44\x20\x67\157\x73\151\x5f\156\157\75\47" . $this->getProperty("\147\x6f\x73\x69\x5f\x6e\157") . "\x27"; } if ($this->getProperty("\x69\163\101\x63\164\x69\x76\x65", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\x69\x73\101\143\x74\x69\x76\145\x3d\x27" . $this->getProperty("\151\x73\101\x63\x74\151\166\x65") . "\x27"; } if ($this->isPropertySet("\x4f\122\x44\x45\x52\x42\x59", "\x56")) { $Sql .= "\x20\117\122\x44\x45\122\40\x42\131\x20" . $this->getProperty("\x4f\x52\104\105\122\102\x59"); } if ($this->isPropertySet("\154\x69\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\x69\164")); } return $this->dbQuery($Sql); } public function lstAssets() { $Sql = "\123\x45\114\x45\103\124\x20\12\11\11\x9\11\x9\x61\163\163\x65\x74\137\x69\144\54\xa\11\x9\x9\11\11\141\163\x73\x65\x74\137\x6e\x61\x6d\x65\x2c\12\11\x9\x9\x9\x9\x61\x73\x73\145\164\x5f\163\x74\141\x74\165\x73\x2c\12\x9\x9\x9\11\x9\155\x61\156\x75\146\x61\143\164\165\162\145\x72\54\xa\x9\11\11\11\11\142\x72\141\156\144\54\12\11\11\x9\11\11\x61\163\x73\145\164\x5f\x6e\157\54\xa\x9\11\x9\11\x9\155\157\x64\141\154\137\156\x6f\54\xa\x9\11\11\x9\11\x73\x65\x72\x69\141\154\137\x6e\157\x2c\12\x9\11\x9\x9\11\141\163\163\163\145\164\137\x69\x6d\147\54\12\x9\11\x9\11\11\143\x6f\155\x6d\145\156\x74\163\54\xa\x9\x9\11\11\x9\145\156\164\x65\x72\171\x5f\x69\144\x2c\12\x9\x9\x9\11\11\143\x61\164\x61\x67\157\162\x79\137\x69\144\54\12\11\x9\x9\x9\x9\x61\x73\163\145\x74\137\164\x79\160\x65\137\151\144\x2c\xa\11\x9\x9\x9\11\141\163\x73\x65\x74\x5f\x63\157\156\144\x69\164\151\157\x6e\54\12\11\11\x9\11\x9\x65\156\x74\162\171\137\x64\141\164\145\54\xa\x9\x9\11\11\11\x64\x6f\x63\x75\155\145\156\164\137\x66\151\x6c\145\137\x6e\x61\x6d\x65\x2c\12\11\11\x9\11\11\x64\157\x63\165\x6d\145\156\x74\137\146\151\154\x65\54\xa\x9\x9\11\11\x9\151\x73\101\143\x74\151\x76\145\12\x9\11\x9\x9\x46\x52\117\115\xa\11\11\11\11\x72\x73\x5f\164\142\154\x5f\x61\163\163\x65\x74\163\x20\xa\11\x9\11\11\127\x48\105\122\x45\x20\xa\11\11\11\x9\x9\x31\x3d\x31"; if ($this->isPropertySet("\141\x73\x73\x65\x74\137\151\144", "\x56")) { $Sql .= "\x20\x41\116\x44\40\141\163\163\x65\164\x5f\x69\x64\75" . $this->getProperty("\x61\x73\x73\x65\164\x5f\151\x64"); } if ($this->isPropertySet("\141\163\163\x65\164\137\x6e\141\155\145", "\x56")) { $Sql .= "\40\x41\116\104\40\x61\163\163\145\164\137\x6e\141\155\145\75" . $this->getProperty("\x61\x73\x73\x65\164\x5f\156\x61\155\x65"); } if ($this->isPropertySet("\141\163\x73\145\164\137\x73\164\141\x74\165\x73", "\126")) { $Sql .= "\x20\x41\116\x44\x20\141\x73\163\145\x74\137\163\x74\x61\164\x75\x73\x3d" . $this->getProperty("\x61\x73\x73\x65\x74\137\163\164\141\x74\165\x73"); } if ($this->isPropertySet("\155\x61\x6e\165\146\x61\143\x74\165\162\x65\x72", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x6d\x61\x6e\x75\146\x61\x63\x74\x75\x72\x65\x72\x3d" . $this->getProperty("\x6d\x61\156\165\x66\141\143\x74\165\x72\x65\162"); } if ($this->isPropertySet("\x73\145\x61\x72\143\x68\x5f\x75\163\x65\162", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x28\x4c\117\127\x45\x52\x28\141\x73\x73\145\x74\137\156\141\155\145\51\x20\x4c\x49\x4b\x45\x20\47\45" . $this->getProperty("\x73\145\141\x72\143\x68\137\165\x73\x65\x72") . "\x25\47\51"; } if ($this->isPropertySet("\x62\162\x61\x6e\x64", "\126")) { $Sql .= "\x20\101\116\104\40\x62\x72\x61\x6e\144\x3d\47" . $this->getProperty("\142\162\x61\x6e\144") . "\47"; } if ($this->getProperty("\x61\x73\x73\x65\164\x5f\156\x6f", "\x56")) { $Sql .= "\40\101\116\104\x20\x61\163\x73\145\164\137\156\157\75\x27" . $this->getProperty("\x61\163\x73\145\164\x5f\x6e\157") . "\x27"; } if ($this->getProperty("\155\157\x64\x61\x6c\137\x6e\x6f", "\126")) { $Sql .= "\40\101\116\x44\x20\155\x6f\144\x61\154\x5f\x6e\157\75\x27" . $this->getProperty("\155\x6f\144\x61\x6c\137\156\157") . "\47"; } if ($this->getProperty("\x73\145\x72\x69\141\x6c\x5f\156\x6f", "\x56")) { $Sql .= "\x20\101\116\x44\40\x73\x65\x72\x69\x61\154\137\156\x6f\x3d\x27" . $this->getProperty("\163\x65\162\151\141\x6c\x5f\x6e\x6f") . "\x27"; } if ($this->getProperty("\x61\x73\x73\163\x65\164\137\151\x6d\147", "\x56")) { $Sql .= "\40\101\116\x44\x20\x61\163\x73\x73\145\164\137\151\155\x67\x3d\47" . $this->getProperty("\141\163\163\x73\145\164\x5f\x69\155\x67") . "\47"; } if ($this->getProperty("\x63\157\x6d\x6d\x65\156\164\x73", "\126")) { $Sql .= "\40\101\x4e\x44\40\x63\157\155\155\145\156\164\163\75\47" . $this->getProperty("\x63\157\155\x6d\145\156\164\163") . "\47"; } if ($this->getProperty("\x65\x6e\164\145\x72\x79\137\x69\x64", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\x65\156\164\145\x72\171\137\151\x64\75\47" . $this->getProperty("\145\x6e\x74\x65\x72\171\137\x69\x64") . "\47"; } if ($this->getProperty("\x63\x61\x74\141\x67\x6f\x72\171\x5f\151\144", "\126")) { $Sql .= "\40\101\x4e\x44\x20\143\141\x74\141\x67\157\x72\171\x5f\x69\x64\75\47" . $this->getProperty("\x63\x61\164\141\147\157\x72\171\137\x69\x64") . "\x27"; } if ($this->getProperty("\x61\163\x73\145\x74\137\x74\171\x70\145\137\151\x64", "\x56")) { $Sql .= "\40\101\x4e\x44\40\x61\x73\163\145\164\137\x74\171\x70\145\x5f\x69\144\x3d\x27" . $this->getProperty("\x61\x73\x73\145\x74\137\x74\171\x70\145\137\151\x64") . "\47"; } if ($this->getProperty("\x61\x73\163\x65\164\x5f\x63\157\x6e\144\151\164\x69\157\x6e", "\126")) { $Sql .= "\40\x41\x4e\104\x20\141\163\163\145\x74\x5f\143\157\x6e\144\x69\164\151\x6f\x6e\x3d\47" . $this->getProperty("\141\163\x73\145\x74\x5f\143\157\156\x64\x69\x74\151\x6f\x6e") . "\x27"; } if ($this->getProperty("\145\x6e\164\162\171\137\144\141\x74\145", "\126")) { $Sql .= "\x20\x41\116\x44\x20\145\156\164\162\171\137\144\x61\x74\x65\x3d\47" . $this->getProperty("\145\x6e\x74\x72\171\x5f\x64\141\x74\145") . "\47"; } if ($this->getProperty("\144\x6f\x63\165\155\x65\156\x74\137\x66\x69\154\x65\137\156\x61\155\145", "\x56")) { $Sql .= "\40\101\x4e\x44\40\144\x6f\x63\165\155\x65\156\x74\137\x66\151\154\145\137\156\141\x6d\x65\75\47" . $this->getProperty("\144\157\x63\x75\x6d\x65\x6e\164\137\x66\x69\x6c\145\x5f\x6e\x61\x6d\145") . "\47"; } if ($this->getProperty("\144\157\143\x75\155\145\156\164\137\146\x69\x6c\x65", "\x56")) { $Sql .= "\x20\x41\116\104\x20\144\x6f\143\x75\x6d\x65\x6e\164\137\x66\x69\x6c\145\x3d\47" . $this->getProperty("\144\x6f\143\165\155\145\x6e\x74\x5f\146\x69\154\x65") . "\47"; } if ($this->getProperty("\x69\x73\116\157\164", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x69\x73\101\143\x74\151\x76\145\x21\75\x27" . $this->getProperty("\x69\163\116\157\164") . "\47"; } if ($this->getProperty("\151\163\101\x63\x74\151\166\145", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\x69\163\x41\x63\164\x69\166\x65\75\47" . $this->getProperty("\x69\163\x41\143\x74\151\166\145") . "\x27"; } if ($this->isPropertySet("\117\122\x44\x45\122\x42\131", "\126")) { $Sql .= "\x20\x4f\x52\x44\x45\x52\x20\x42\131\x20" . $this->getProperty("\117\x52\104\105\x52\102\x59"); } if ($this->isPropertySet("\x6c\x69\155\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lstTamimicompany() { $Sql = "\123\105\114\x45\103\124\x20\xa\11\x9\x9\x9\11\x20\40\x20\x63\x6f\x6d\x70\x61\156\171\x5f\151\x64\54\xa\x9\x9\11\11\x9\11\143\x6f\x6d\160\141\x6e\171\137\156\141\155\x65\54\12\x9\11\11\x9\11\11\143\x6f\155\x70\x61\x6e\x79\x5f\x64\x65\163\x63\162\151\x70\164\151\x6f\156\54\xa\11\11\11\11\11\11\x63\157\155\x70\x61\x6e\x79\137\160\x72\x65\163\x69\144\145\x6e\164\54\xa\11\11\11\x9\x9\x9\x70\162\x65\163\x69\144\x65\x6e\164\x5f\x69\156\146\157\54\xa\x9\11\x9\x9\x9\x9\143\157\155\160\141\x6e\x79\137\143\x68\x61\151\x72\155\x61\156\x2c\xa\x9\11\x9\x9\11\11\143\x68\x61\151\162\x6d\141\156\137\151\x6e\x66\157\x2c\xa\11\11\x9\x9\11\11\143\x6f\155\x70\x61\x6e\x79\137\x67\x6d\x2c\xa\x9\11\11\11\11\11\x62\x6f\162\x64\x5f\157\146\137\x64\151\162\145\x63\164\157\162\163\54\12\11\11\11\x9\x9\x9\143\x6f\155\160\141\156\x79\x5f\x74\x79\x70\x65\54\12\x9\x9\x9\11\11\x9\x68\x65\151\x72\x61\x72\143\x68\x79\x5f\143\150\x61\x72\164\x2c\xa\x9\x9\11\11\x9\x9\x64\x6f\x63\x75\155\x65\156\x74\x5f\146\151\x6c\145\x5f\x6e\x61\155\x65\54\xa\x9\x9\11\x9\x9\x9\x64\157\143\x75\155\145\x6e\x74\x5f\146\x69\154\145\x2c\xa\11\x9\x9\11\x9\x9\x63\157\x6d\x70\x61\156\171\x5f\160\157\x6c\x69\x63\171\54\12\11\x9\x9\x9\x9\x9\x63\157\x6d\x70\141\156\x79\x5f\x74\x65\x72\x6d\163\x2c\12\x9\11\11\11\11\x9\x77\x65\x62\163\x69\x74\145\137\154\151\156\153\x2c\xa\x9\x9\11\11\x9\x20\x20\x20\x20\x69\x73\x41\x63\164\x69\x76\145\xa\11\11\x9\11\x46\122\117\x4d\12\11\11\11\x9\x74\141\155\x69\155\x69\x5f\x63\x6f\x6d\160\x61\x6e\x79\x20\12\11\11\11\11\x57\110\x45\x52\105\40\xa\11\x9\11\11\x9\x31\x3d\61"; if ($this->isPropertySet("\143\157\x6d\160\x61\x6e\171\137\151\x64", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\143\157\155\160\141\156\x79\137\x69\x64\75" . $this->getProperty("\143\157\x6d\x70\x61\x6e\171\x5f\151\x64"); } if ($this->isPropertySet("\143\157\155\160\141\x6e\x79\x5f\156\141\x6d\x65", "\126")) { $Sql .= "\x20\x41\116\104\40\143\157\x6d\x70\141\156\171\x5f\156\141\x6d\145\75" . $this->getProperty("\x63\157\155\160\x61\156\171\x5f\156\141\x6d\x65"); } if ($this->isPropertySet("\143\x6f\155\160\x61\x6e\171\137\164\x79\x70\x65", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\x63\157\x6d\x70\141\x6e\x79\137\164\171\x70\x65\x3d" . $this->getProperty("\143\157\x6d\x70\141\x6e\171\137\x74\x79\160\145"); } if ($this->getProperty("\150\145\x69\162\x61\x72\143\150\x79\137\x63\x68\x61\162\164", "\126")) { $Sql .= "\40\101\x4e\x44\40\150\x65\x69\x72\x61\x72\143\x68\x79\x5f\x63\x68\x61\x72\x74\75\x27" . $this->getProperty("\150\x65\151\162\141\x72\x63\150\x79\137\143\150\x61\162\x74") . "\x27"; } if ($this->getProperty("\144\x6f\143\x75\x6d\x65\156\x74\x5f\146\x69\154\x65\137\x6e\141\x6d\145", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\x64\157\143\x75\x6d\145\x6e\164\x5f\x66\151\154\145\137\x6e\141\155\145\75\x27" . $this->getProperty("\x64\x6f\x63\x75\x6d\145\156\x74\137\146\x69\x6c\x65\x5f\156\141\155\x65") . "\47"; } if ($this->getProperty("\144\157\143\x75\155\x65\x6e\164\137\x66\x69\154\x65", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x64\x6f\143\165\x6d\x65\x6e\164\x5f\146\151\x6c\x65\75\x27" . $this->getProperty("\x64\157\x63\x75\155\x65\x6e\x74\x5f\x66\151\x6c\x65") . "\47"; } if ($this->getProperty("\151\163\116\157\164", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x69\x73\101\143\x74\151\166\145\41\75\x27" . $this->getProperty("\x69\x73\x4e\x6f\164") . "\x27"; } if ($this->getProperty("\151\163\101\x63\164\151\x76\145", "\x56")) { $Sql .= "\x20\x41\116\x44\40\x69\x73\x41\x63\164\151\x76\x65\75\47" . $this->getProperty("\x69\163\101\143\164\x69\x76\x65") . "\47"; } if ($this->isPropertySet("\x4f\x52\x44\x45\x52\x42\x59", "\x56")) { $Sql .= "\x20\x4f\122\104\105\122\x20\x42\131\x20" . $this->getProperty("\117\122\104\x45\122\x42\x59"); } if ($this->isPropertySet("\x6c\151\155\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\151\164")); } return $this->dbQuery($Sql); } public function lstTamimiprojects() { $Sql = "\123\x45\x4c\105\103\x54\40\12\x9\11\11\x9\11\11\160\162\x6f\x6a\x65\x63\x74\x5f\x69\x64\54\xa\11\11\11\x9\11\11\143\157\155\160\x61\x6e\171\x5f\151\x64\54\xa\11\x9\x9\x9\x9\x9\160\162\x6f\152\x65\x63\x74\x5f\x6e\x61\x6d\145\x2c\12\11\x9\11\11\x9\11\x70\162\157\x6a\x65\143\x74\x5f\144\145\x73\x63\x72\151\160\x74\x69\x6f\156\54\12\11\x9\x9\11\x9\11\x70\162\x6f\152\145\x63\164\x5f\x74\x79\x70\145\x2c\12\11\11\x9\x9\x9\11\x73\164\x61\x72\x74\137\x64\x61\x74\145\x2c\12\x9\x9\x9\11\x9\x9\145\x6e\x64\137\144\141\164\145\54\xa\11\11\x9\x9\x9\11\143\x6f\x6d\160\154\145\x74\151\157\156\137\x70\145\x72\x63\x65\156\164\141\x67\145\x2c\12\11\11\x9\11\11\x9\x70\x72\157\145\x63\x74\137\155\x61\156\x61\x67\x65\x72\x2c\xa\11\11\x9\x9\x9\x9\x63\157\162\145\x5f\x74\x65\x61\155\54\xa\11\11\11\x9\11\x9\x70\x72\x6f\152\145\x63\x74\137\x73\x74\x61\x74\165\163\x2c\xa\11\11\11\x9\11\40\40\40\x20\x69\163\101\143\164\x69\166\x65\xa\11\11\x9\11\x46\x52\117\x4d\xa\11\x9\x9\x9\164\x61\x6d\x69\x6d\x69\x5f\160\x72\157\x6a\x65\143\x74\x73\40\xa\11\x9\x9\11\x57\110\x45\x52\105\x20\12\x9\11\11\x9\11\x31\x3d\x31"; if ($this->isPropertySet("\160\x72\x6f\152\145\x63\164\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\116\104\x20\x70\x72\157\x6a\145\x63\164\137\x69\x64\x3d" . $this->getProperty("\160\x72\157\x6a\145\x63\164\137\x69\x64"); } if ($this->isPropertySet("\x63\157\155\x70\141\156\171\137\x69\x64", "\x56")) { $Sql .= "\40\101\116\x44\40\143\157\155\160\141\x6e\171\137\x69\x64\x3d" . $this->getProperty("\143\157\155\x70\141\156\x79\137\151\144"); } if ($this->getProperty("\151\163\116\x6f\164", "\x56")) { $Sql .= "\40\x41\116\x44\40\151\x73\x41\x63\x74\151\166\x65\41\75\47" . $this->getProperty("\151\163\x4e\x6f\x74") . "\x27"; } if ($this->getProperty("\151\163\x41\x63\164\151\x76\145", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\151\163\x41\143\164\151\166\x65\x3d\x27" . $this->getProperty("\x69\x73\x41\143\x74\x69\166\x65") . "\47"; } if ($this->isPropertySet("\x4f\x52\104\x45\x52\102\131", "\x56")) { $Sql .= "\40\x4f\122\x44\x45\122\40\102\x59\40" . $this->getProperty("\117\x52\x44\x45\122\x42\131"); } if ($this->isPropertySet("\154\151\x6d\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstAssignAssets() { $Sql = "\x53\x45\114\x45\103\124\40\12\x9\11\11\11\x20\40\40\x20\x61\163\x73\151\147\x6e\x5f\141\163\x73\145\x74\137\151\x64\x2c\xa\x9\x9\x9\x9\40\40\40\40\x61\x73\x73\x65\x74\x5f\151\x64\x2c\xa\x9\x9\x9\x9\40\40\x20\40\141\x73\x73\x69\147\x6e\137\164\x6f\54\12\11\x9\11\11\x20\40\x20\40\141\163\x73\151\x67\156\x5f\142\171\54\xa\x9\x9\11\x9\x20\x20\x20\x20\143\165\162\x72\x65\156\x74\137\x73\x74\141\164\x75\x73\x2c\xa\11\x9\x9\11\x20\40\40\x20\x61\x73\x73\151\147\x6e\137\144\141\164\145\54\12\x9\11\11\x9\40\40\x20\40\141\x73\x73\151\147\156\137\x74\x69\x6d\145\54\12\x9\11\11\11\40\40\40\40\x64\157\x63\x75\155\145\156\164\137\x66\151\x6c\145\137\156\141\x6d\x65\x2c\12\x9\11\11\x9\x20\x20\x20\x20\x64\x6f\143\165\x6d\145\156\164\x5f\x66\151\154\x65\x2c\xa\11\x9\x9\11\11\151\x73\101\x63\164\x69\166\145\12\x9\11\x9\11\x46\x52\117\115\12\x9\11\11\11\162\x73\x5f\164\x62\x6c\x5f\141\163\x73\x65\164\163\x5f\x61\x73\x73\x69\x67\156\40\12\x9\11\x9\11\127\110\105\x52\x45\40\12\11\x9\x9\11\x9\x31\x3d\61"; if ($this->isPropertySet("\141\x73\x73\151\147\156\x5f\x61\163\163\145\164\x5f\x69\x64", "\126")) { $Sql .= "\40\x41\116\x44\40\141\x73\x73\x69\147\156\137\x61\163\x73\x65\164\x5f\x69\144\75" . $this->getProperty("\x61\x73\163\151\147\x6e\x5f\141\x73\x73\145\x74\137\x69\144"); } if ($this->isPropertySet("\x61\163\x73\x65\164\137\151\x64", "\x56")) { $Sql .= "\x20\x41\116\x44\40\x61\x73\163\145\164\137\151\144\x3d" . $this->getProperty("\141\x73\163\x65\164\x5f\x69\x64"); } if ($this->isPropertySet("\141\x73\163\x69\x67\x6e\x5f\164\157", "\126")) { $Sql .= "\40\x41\x4e\104\x20\x61\163\x73\x69\147\156\x5f\164\x6f\75" . $this->getProperty("\x61\163\163\x69\x67\156\x5f\x74\x6f"); } if ($this->isPropertySet("\141\x73\x73\151\x67\156\137\142\171", "\126")) { $Sql .= "\x20\x41\116\x44\x20\141\163\163\x69\x67\156\137\142\171\75" . $this->getProperty("\x61\x73\163\151\147\x6e\x5f\142\171"); } if ($this->isPropertySet("\163\x65\x61\162\x63\150\x5f\165\163\x65\162", "\x56")) { $Sql .= "\x20\x41\116\104\x20\50\114\117\127\x45\x52\50\x61\x73\x73\145\x74\x5f\156\x61\x6d\x65\51\x20\x4c\x49\113\105\40\x27\x25" . $this->getProperty("\163\x65\x61\162\143\150\x5f\165\163\x65\x72") . "\45\47\51"; } if ($this->isPropertySet("\143\165\162\x72\x65\x6e\x74\x5f\x73\164\x61\x74\165\x73", "\126")) { $Sql .= "\40\101\x4e\x44\x20\143\x75\162\x72\x65\156\164\x5f\163\x74\141\x74\x75\163\75\47" . $this->getProperty("\x63\x75\x72\x72\x65\156\x74\137\x73\x74\141\164\165\x73") . "\x27"; } if ($this->getProperty("\x61\x73\x73\x69\147\156\x5f\x64\141\x74\145", "\126")) { $Sql .= "\40\x41\116\x44\x20\x61\x73\x73\151\x67\x6e\137\x64\141\164\x65\75\47" . $this->getProperty("\141\163\x73\x69\147\156\x5f\x64\141\164\x65") . "\47"; } if ($this->getProperty("\x69\163\116\x6f\x74", "\126")) { $Sql .= "\x20\x41\116\104\40\x69\x73\x41\x63\x74\151\x76\x65\x21\75\47" . $this->getProperty("\151\x73\x4e\157\x74") . "\x27"; } if ($this->getProperty("\151\x73\x41\x63\164\x69\x76\x65", "\126")) { $Sql .= "\40\x41\116\x44\40\x69\x73\101\x63\164\x69\166\x65\75\x27" . $this->getProperty("\x69\x73\x41\143\164\151\x76\x65") . "\x27"; } if ($this->isPropertySet("\117\122\x44\105\122\x42\x59", "\x56")) { $Sql .= "\x20\x4f\122\x44\x45\122\x20\x42\x59\x20" . $this->getProperty("\x4f\x52\104\105\x52\102\x59"); } if ($this->isPropertySet("\x6c\x69\155\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstReturnAssets() { $Sql = "\123\x45\114\105\103\124\40\xa\11\11\x9\x9\x9\x72\x65\164\165\x72\x6e\137\x61\x73\x73\145\164\137\151\144\54\12\11\x9\x9\11\x9\x61\163\163\x69\x67\x6e\x5f\x61\163\163\145\x74\x5f\151\x64\54\12\x9\x9\11\11\x9\x61\163\163\145\164\137\x69\x64\x2c\12\11\11\11\x9\11\162\x65\x63\x65\151\166\145\144\137\142\171\54\xa\x9\11\11\11\x9\x63\165\x72\162\x65\x6e\x74\137\x73\164\141\x74\x75\163\54\xa\11\x9\x9\11\11\162\145\164\x75\x72\156\x65\x64\x5f\144\x61\164\x65\54\12\x9\11\11\11\11\162\x65\164\165\x72\156\145\x64\x5f\143\157\156\144\151\164\x69\157\156\x2c\xa\x9\x9\11\11\x9\x69\163\x41\143\x74\151\x76\x65\12\11\11\x9\11\106\x52\x4f\x4d\12\x9\11\11\x9\162\x73\x5f\164\x62\x6c\137\162\x65\164\x75\162\156\137\x61\163\x73\x65\x74\x20\12\11\x9\11\x9\x57\x48\x45\122\105\40\xa\x9\x9\11\11\x9\61\x3d\61"; if ($this->isPropertySet("\162\145\164\x75\x72\x6e\x5f\141\x73\163\x65\164\x5f\151\144", "\126")) { $Sql .= "\40\101\x4e\x44\40\x72\145\x74\x75\162\x6e\x5f\141\163\x73\x65\x74\137\151\x64\75" . $this->getProperty("\162\x65\164\165\x72\156\137\141\x73\x73\x65\x74\x5f\x69\144"); } if ($this->isPropertySet("\141\x73\x73\151\147\156\137\141\163\x73\145\x74\x5f\x69\x64", "\x56")) { $Sql .= "\40\101\x4e\104\40\141\x73\x73\x69\147\156\x5f\x61\163\x73\x65\x74\x5f\151\144\75" . $this->getProperty("\141\x73\x73\x69\147\x6e\137\141\x73\163\145\x74\137\x69\144"); } if ($this->isPropertySet("\141\x73\x73\145\164\137\151\x64", "\x56")) { $Sql .= "\40\x41\116\104\x20\141\163\x73\x65\164\x5f\x69\144\x3d" . $this->getProperty("\141\163\x73\x65\164\x5f\x69\x64"); } if ($this->isPropertySet("\162\x65\x63\145\151\x76\x65\144\x5f\x62\x79", "\x56")) { $Sql .= "\x20\101\116\104\x20\162\x65\143\145\x69\x76\x65\x64\x5f\142\x79\x3d" . $this->getProperty("\x72\x65\143\145\x69\x76\x65\x64\137\142\x79"); } if ($this->isPropertySet("\143\165\x72\162\x65\x6e\x74\x5f\163\x74\x61\x74\165\163", "\126")) { $Sql .= "\40\101\116\104\x20\x63\x75\162\162\x65\156\x74\137\x73\x74\x61\164\165\163\x3d" . $this->getProperty("\x63\165\162\x72\145\x6e\x74\x5f\163\x74\x61\164\165\163"); } if ($this->isPropertySet("\x72\x65\x74\x75\x72\156\x65\144\x5f\144\x61\164\x65", "\x56")) { $Sql .= "\40\x41\116\104\x20\162\x65\164\165\x72\x6e\x65\x64\x5f\x64\x61\164\x65\75\47" . $this->getProperty("\162\x65\164\x75\162\156\145\x64\137\x64\141\164\145") . "\x27"; } if ($this->getProperty("\x72\145\164\x75\x72\x6e\145\x64\x5f\x63\157\156\144\x69\x74\151\x6f\x6e", "\126")) { $Sql .= "\40\101\116\x44\x20\x72\x65\x74\x75\162\156\145\144\x5f\x63\x6f\156\144\x69\164\x69\x6f\x6e\x3d\47" . $this->getProperty("\x72\145\164\165\162\x6e\x65\144\x5f\x63\x6f\x6e\x64\x69\164\x69\157\x6e") . "\x27"; } if ($this->getProperty("\151\x73\116\x6f\x74", "\126")) { $Sql .= "\x20\x41\116\104\40\151\x73\101\143\x74\x69\x76\x65\x21\x3d\x27" . $this->getProperty("\x69\163\116\157\x74") . "\x27"; } if ($this->getProperty("\x69\163\101\143\x74\151\166\x65", "\126")) { $Sql .= "\x20\101\x4e\104\x20\151\163\101\x63\164\x69\166\x65\x3d\47" . $this->getProperty("\151\x73\x41\143\x74\151\166\x65") . "\47"; } if ($this->isPropertySet("\x4f\122\x44\x45\122\x42\x59", "\126")) { $Sql .= "\x20\x4f\122\104\105\122\40\x42\x59\x20" . $this->getProperty("\117\122\104\105\x52\102\131"); } if ($this->isPropertySet("\x6c\151\x6d\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function lstUsersdocexpired() { $Sql = "\123\105\x4c\105\103\124\x20\12\11\x9\11\11\x9\x75\x73\x65\x72\137\x69\144\54\xa\x9\x9\11\11\11\x65\x6e\x74\145\162\137\x75\x73\145\162\137\151\144\54\xa\11\x9\x9\11\x9\x65\x6d\x70\x6c\x6f\171\145\145\137\151\144\54\xa\11\11\x9\11\x9\x75\x73\145\162\137\x64\145\163\151\147\x6e\x61\x74\x69\x6f\156\54\12\11\x9\11\11\x9\151\161\x61\155\141\137\x70\x72\157\x66\x65\x73\163\151\157\x6e\54\xa\11\x9\x9\x9\11\x75\163\x65\x72\137\x64\157\142\54\12\x9\x9\x9\x9\x9\165\x73\x65\x72\137\x66\156\141\x6d\x65\x2c\12\11\11\11\x9\x9\x69\161\141\155\x61\x5f\156\x6f\54\12\x9\11\x9\11\11\x69\x71\x61\155\x61\x5f\x65\x78\x70\x69\x72\x79\54\xa\11\11\x9\11\11\x70\141\x73\x73\x70\x6f\162\x74\137\x6e\x6f\54\12\11\x9\x9\x9\x9\x70\141\x73\x73\x70\x6f\162\x74\137\x65\x78\x70\151\162\171\x2c\12\x9\11\11\x9\11\151\163\x41\x63\x74\x69\x76\145\12\x9\11\11\x9\106\122\x4f\115\xa\x9\x9\x9\x9\11\x72\163\x5f\164\x62\x6c\x5f\x75\x73\x65\162\163\40\12\11\11\x9\11\x57\110\x45\x52\x45\x20\xa\x9\11\x9\x9\11\x31\x3d\61"; if ($this->isPropertySet("\165\x73\145\162\137\151\144", "\x56")) { $Sql .= "\x20\101\116\x44\x20\165\x73\x65\162\x5f\151\144\x3d" . $this->getProperty("\x75\163\x65\x72\x5f\151\144"); } if ($this->isPropertySet("\x65\x6e\x74\145\162\137\165\163\145\x72\137\151\x64", "\126")) { $Sql .= "\40\x41\x4e\104\40\x65\x6e\164\145\x72\x5f\165\x73\x65\x72\x5f\151\144\75" . $this->getProperty("\145\x6e\x74\x65\162\137\165\x73\x65\x72\137\151\x64"); } if ($this->getProperty("\x70\141\163\x73\x70\x6f\x72\x74\137\x6e\157", "\126")) { $Sql .= "\x20\101\x4e\104\x20\x70\x61\163\163\160\x6f\x72\164\x5f\156\x6f\x3d\x27" . $this->getProperty("\x70\141\163\163\x70\x6f\x72\164\x5f\156\x6f") . "\x27"; } if ($this->getProperty("\x69\x71\x61\155\x61\137\145\170\x70\151\162\171", "\x56")) { $Sql .= "\40\x41\116\104\x20\151\161\x61\x6d\141\x5f\145\170\160\151\162\171\x20\74\x27" . $this->getProperty("\151\x71\141\x6d\x61\137\x65\x78\160\151\162\x79") . "\47"; } if ($this->getProperty("\160\141\163\163\x70\157\162\x74\137\x65\170\160\151\162\x79", "\x56")) { $Sql .= "\40\101\116\104\40\x70\141\x73\163\160\x6f\x72\x74\x5f\x65\170\160\x69\x72\171\40\x3c\x27" . $this->getProperty("\x70\x61\163\x73\160\157\x72\x74\137\x65\x78\x70\x69\x72\171") . "\x27"; } if ($this->getProperty("\151\x73\x41\143\164\151\x76\145", "\126")) { $Sql .= "\x20\101\116\104\40\151\x73\101\x63\x74\x69\x76\145\75\47" . $this->getProperty("\151\x73\x41\x63\164\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\117\x52\104\105\122\102\131", "\126")) { $Sql .= "\40\x4f\122\104\x45\x52\40\102\x59\x20" . $this->getProperty("\x4f\x52\104\x45\122\x42\x59"); } return $this->dbQuery($Sql); } public function lstUserspasexp() { $Sql = "\x53\x45\x4c\x45\x43\x54\40\12\x9\x9\x9\x9\x9\165\163\145\162\137\x69\144\54\xa\11\x9\x9\11\x9\145\x6e\x74\x65\162\x5f\165\163\145\162\x5f\151\x64\x2c\xa\x9\x9\11\11\11\145\155\x70\x6c\157\171\145\x65\137\x69\x64\x2c\12\x9\x9\11\x9\11\151\x71\141\155\141\137\160\162\x6f\x66\145\x73\x73\x69\157\156\x2c\12\x9\11\11\x9\11\165\x73\x65\162\137\144\145\x73\151\147\156\141\x74\151\157\x6e\54\xa\11\x9\11\11\11\x75\163\145\162\x5f\x64\157\142\x2c\xa\x9\x9\11\x9\11\165\163\x65\x72\137\146\156\x61\x6d\x65\x2c\xa\11\11\x9\11\x9\160\141\x73\163\x70\x6f\162\x74\137\156\157\x2c\12\11\x9\11\11\11\x70\141\163\163\160\157\x72\x74\x5f\x65\170\160\x69\x72\171\54\xa\x9\x9\11\11\11\x69\163\101\143\x74\151\x76\145\x2c\12\11\x9\11\x9\x9\104\x41\x54\x45\x5f\x46\x4f\x52\115\101\x54\x28\x75\163\145\162\x5f\144\157\142\54\x20\x27\45\x6d\55\45\x64\47\x29\x20\101\x53\x20\165\x70\143\x6f\x6d\151\156\x67\x5f\x64\157\x62\12\x9\11\11\x9\106\122\x4f\x4d\12\11\11\x9\11\11\x72\x73\x5f\x74\x62\154\x5f\165\x73\145\162\163\x20\12\11\x9\11\x9\x57\110\x45\122\105\x20\xa\11\11\11\11\11\61\75\x31"; if ($this->isPropertySet("\165\163\145\x72\137\151\x64", "\126")) { $Sql .= "\x20\101\x4e\104\40\x75\x73\145\x72\x5f\151\x64\x3d" . $this->getProperty("\x75\163\145\162\x5f\x69\144"); } if ($this->isPropertySet("\x65\156\164\x65\162\x5f\x75\x73\145\x72\137\x69\x64", "\126")) { $Sql .= "\x20\101\x4e\x44\40\x65\156\164\145\x72\137\x75\163\145\x72\x5f\151\144\75" . $this->getProperty("\x65\156\x74\145\162\x5f\165\163\145\x72\137\x69\144"); } if ($this->isPropertySet("\145\x6d\x70\154\157\x79\145\145\x5f\x69\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\x65\x6d\160\x6c\x6f\x79\145\145\137\x69\144\75" . $this->getProperty("\x65\x6d\x70\x6c\157\171\145\x65\x5f\x69\x64"); } if ($this->isPropertySet("\151\x71\x61\155\x61\x5f\x70\162\x6f\x66\145\x73\163\151\x6f\x6e", "\x56")) { $Sql .= "\40\x41\116\104\x20\151\x71\141\155\141\x5f\x70\162\157\146\145\x73\163\x69\x6f\156\75" . $this->getProperty("\151\161\141\x6d\x61\x5f\160\x72\157\146\x65\x73\163\151\x6f\156"); } if ($this->isPropertySet("\165\x73\x65\162\x5f\151\x64\137\x6e\x6f\164", "\x56")) { $Sql .= "\x20\x41\116\104\40\165\x73\145\162\x5f\151\x64\x21\x3d" . $this->getProperty("\x75\163\145\162\137\151\144\137\x6e\157\x74"); } if ($this->isPropertySet("\163\x65\x61\x72\143\150\x5f\165\x73\145\162", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x28\114\117\127\x45\x52\50\165\x73\x65\x72\x5f\146\156\x61\x6d\145\51\x20\x4c\111\x4b\105\40\x27\x25" . $this->getProperty("\x73\x65\x61\x72\143\x68\137\x75\163\x65\162") . "\x25\47\x20\x4f\122\40\114\x4f\127\105\x52\50\165\163\x65\x72\137\x6c\x6e\141\155\x65\51\x20\114\x49\x4b\105\40\x27\x25" . $this->getProperty("\x73\145\x61\x72\x63\150\x5f\x75\x73\x65\162") . "\x25\x27\51"; } if ($this->isPropertySet("\x75\x73\x65\162\x5f\146\156\x61\155\145", "\126")) { $Sql .= "\x20\x41\116\104\40\165\x73\x65\162\137\x66\x6e\x61\155\x65\75\47" . $this->getProperty("\165\x73\x65\x72\137\x66\x6e\x61\155\x65") . "\47"; } if ($this->getProperty("\x75\x73\145\x72\137\x64\x6f\142\137\x75\x70", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\x44\x41\124\105\137\x46\x4f\122\115\x41\x54\x28\165\x73\145\x72\x5f\144\x6f\142\x2c\x20\47\x25\x6d\x2d\x25\144\x27\51\40\x3e\75\40\x27" . $this->getProperty("\165\163\145\162\137\144\x6f\142\x5f\165\x70") . "\47"; } if ($this->getProperty("\151\x73\116\157\x74", "\126")) { $Sql .= "\x20\101\116\104\x20\151\163\x41\x63\x74\x69\x76\145\41\75\47" . $this->getProperty("\x69\x73\116\x6f\x74") . "\x27"; } if ($this->getProperty("\165\x73\145\x72\137\x6d\x6f\x62\151\154\145", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\165\x73\x65\x72\x5f\x6d\157\x62\151\x6c\145\x3d\x27" . $this->getProperty("\165\x73\145\x72\x5f\155\157\x62\151\154\x65") . "\x27"; } if ($this->getProperty("\x75\163\145\x72\137\144\157\x62", "\126")) { $Sql .= "\40\101\x4e\x44\40\x75\x73\145\162\x5f\144\x6f\142\75\x27" . $this->getProperty("\165\x73\145\162\137\x64\157\142") . "\x27"; } if ($this->getProperty("\160\141\163\x73\x70\x6f\x72\x74\x5f\x6e\x6f", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\x70\x61\x73\163\x70\x6f\162\164\x5f\x6e\157\75\x27" . $this->getProperty("\160\x61\x73\x73\x70\157\x72\x74\137\156\x6f") . "\x27"; } if ($this->getProperty("\x70\141\163\x73\160\157\x72\x74\x5f\x65\170\160\151\162\x79", "\126")) { $Sql .= "\40\101\116\104\x20\x70\x61\163\163\x70\x6f\x72\x74\137\x65\x78\160\x69\162\171\75\47" . $this->getProperty("\x70\141\163\x73\x70\157\x72\x74\137\x65\170\160\x69\x72\171") . "\x27"; } if ($this->isPropertySet("\x44\x41\124\105\x46\x49\x4c\124\x45\122", "\126")) { $Sql .= "\x20\101\116\104\x20\x70\141\163\163\x70\157\162\x74\x5f\145\x78\x70\151\x72\x79\x20\x42\105\x54\127\105\105\x4e\40\x27" . $this->getProperty("\x53\124\x41\122\x54\x44\101\124\105") . "\47\40\101\116\104\x20\47" . $this->getProperty("\105\116\104\104\101\124\105") . "\47"; } if ($this->getProperty("\x69\x73\101\x63\x74\x69\x76\x65", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\151\163\x41\x63\164\151\x76\x65\x3d\47" . $this->getProperty("\x69\x73\x41\143\164\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\117\122\104\x45\x52\x42\131", "\126")) { $Sql .= "\x20\117\x52\104\x45\x52\40\102\131\40" . $this->getProperty("\x4f\x52\104\x45\x52\x42\131"); } if ($this->isPropertySet("\154\x69\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstUserLog() { $Sql = "\x53\x45\114\105\103\124\40\xa\11\x9\x9\11\11\154\x6f\147\137\x69\144\x2c\12\x9\11\11\x9\11\165\163\145\162\x5f\x69\144\x2c\xa\11\11\11\x9\x9\x61\x63\x74\151\166\151\x74\171\137\x64\x65\164\141\151\154\54\xa\x9\11\x9\11\11\154\x6f\x63\141\x74\x69\x6f\x6e\x5f\x69\x64\x2c\12\11\x9\x9\11\x9\x69\163\101\x63\164\x69\x76\x65\x2c\xa\x9\11\x9\x9\11\x65\x6e\x74\145\162\x79\x5f\144\x61\x74\x65\xa\11\x9\11\11\106\x52\x4f\115\12\11\11\x9\x9\x9\162\163\137\164\x62\x6c\137\165\x73\x65\x72\x5f\x6c\157\x67\x20\xa\x9\11\11\x9\x57\x48\x45\122\105\x20\xa\x9\11\11\x9\x9\x31\75\61"; if ($this->getProperty("\x75\x73\145\162\x5f\151\144", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\165\x73\145\x72\x5f\x69\x64\x3d\47" . $this->getProperty("\165\163\145\162\137\x69\144") . "\x27"; } if ($this->getProperty("\151\163\101\143\x74\151\166\145", "\126")) { $Sql .= "\x20\x41\116\x44\40\x69\163\101\143\164\151\166\145\x3d\x27" . $this->getProperty("\151\163\101\143\x74\151\166\145") . "\47"; } if ($this->getProperty("\x6c\x6f\143\x61\x74\151\x6f\x6e\x5f\151\144", "\x56")) { $Sql .= "\x20\x41\x4e\104\x20\x6c\x6f\143\141\x74\151\157\156\137\151\144\x3d\x27" . $this->getProperty("\154\157\143\141\x74\x69\157\x6e\x5f\x69\x64") . "\47"; } if ($this->isPropertySet("\x73\x74\141\164\137\144\141\x74\x65", "\126")) { $Sql .= "\40\101\116\x44\x20\x65\156\x74\145\x72\x79\x5f\144\141\x74\145\40\76\x3d\47" . $this->getProperty("\x73\x74\141\164\x5f\x64\141\164\x65") . "\x27"; } if ($this->isPropertySet("\x65\156\x64\x5f\144\141\x74\x65", "\126")) { $Sql .= "\40\x41\116\104\40\145\x6e\164\145\x72\171\137\144\x61\164\x65\x20\74\x3d\x27" . $this->getProperty("\x65\156\144\137\144\x61\164\x65") . "\x27"; } if ($this->isPropertySet("\x4f\122\104\x45\x52\x42\131", "\126")) { $Sql .= "\40\117\x52\x44\x45\x52\40\x42\x59\40" . $this->getProperty("\117\122\104\105\122\102\x59"); } if ($this->isPropertySet("\x6c\x69\155\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\164")); } return $this->dbQuery($Sql); } public function lstMailbox() { $Sql = "\x53\105\114\x45\103\124\x20\xa\x9\x9\11\x9\x9\x6d\x61\x69\154\137\151\x64\x2c\xa\x9\11\x9\x9\x9\163\145\156\x64\145\x72\x5f\151\144\54\xa\x9\x9\x9\11\11\162\x65\x63\145\x69\x76\x65\162\137\151\x64\54\12\11\x9\11\x9\11\x6d\141\x69\x6c\137\x73\165\x62\152\x65\143\164\x2c\12\11\11\11\11\x9\x6d\x61\151\154\137\144\145\164\141\151\x6c\x2c\xa\x9\x9\11\11\11\155\x61\x69\x6c\137\x69\163\146\x69\x6c\x65\x2c\xa\11\11\11\11\11\x69\163\137\162\x65\141\144\x2c\12\x9\x9\x9\x9\x9\162\x65\x61\144\137\144\x61\x74\145\54\xa\x9\11\11\11\11\x73\145\156\144\145\162\x5f\144\x65\154\54\12\11\11\x9\x9\x9\162\145\x63\145\x69\x76\x65\162\137\x64\x65\154\x2c\12\11\11\x9\11\x9\151\x73\137\x64\x72\x61\146\164\x2c\12\x9\x9\x9\11\11\x65\156\x74\x65\162\171\137\144\x61\x74\x65\12\x9\x9\x9\11\106\x52\x4f\x4d\12\11\11\x9\x9\11\x72\x73\x5f\x74\142\154\137\x6d\141\x69\x6c\142\x6f\170\xa\x9\11\x9\11\127\x48\105\x52\x45\40\xa\11\x9\11\11\11\61\75\x31"; if ($this->isPropertySet("\155\x61\x69\154\137\x69\144", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\x6d\141\x69\x6c\137\151\x64\x3d" . $this->getProperty("\155\141\151\154\137\x69\144"); } if ($this->isPropertySet("\163\145\x6e\144\x65\x72\x5f\x69\x64", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\163\x65\x6e\144\x65\162\137\x69\x64\75" . $this->getProperty("\x73\x65\x6e\x64\145\x72\x5f\151\x64"); } if ($this->isPropertySet("\x72\145\143\x65\x69\166\x65\162\137\151\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\162\x65\143\x65\151\166\x65\x72\x5f\151\144\75" . $this->getProperty("\162\145\x63\x65\x69\x76\145\162\x5f\151\144"); } if ($this->isPropertySet("\x6d\141\151\x6c\x5f\151\163\x66\151\x6c\145", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\155\141\x69\x6c\137\151\x73\146\x69\154\x65\x3d" . $this->getProperty("\x6d\141\151\154\x5f\x69\x73\146\x69\x6c\x65"); } if ($this->isPropertySet("\x69\x73\x5f\162\145\141\144", "\126")) { $Sql .= "\x20\101\x4e\104\x20\151\x73\x5f\162\x65\x61\144\x3d" . $this->getProperty("\x69\163\137\162\x65\x61\x64"); } if ($this->isPropertySet("\163\x65\x6e\144\145\162\137\144\x65\154", "\126")) { $Sql .= "\40\101\116\x44\40\x73\x65\156\144\145\x72\137\144\145\x6c\75" . $this->getProperty("\163\145\x6e\144\145\162\137\144\145\154"); } if ($this->isPropertySet("\x72\145\143\x65\x69\166\x65\x72\137\144\x65\154", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x72\x65\143\145\151\166\x65\162\137\x64\145\154\75" . $this->getProperty("\162\145\143\145\151\x76\145\x72\x5f\x64\x65\154"); } if ($this->isPropertySet("\151\x73\137\144\162\141\x66\164", "\126")) { $Sql .= "\40\x41\116\x44\x20\151\x73\x5f\x64\162\141\146\164\x3d" . $this->getProperty("\151\163\x5f\144\x72\141\x66\x74"); } if ($this->isPropertySet("\117\x52\104\x45\x52\x42\131", "\126")) { $Sql .= "\x20\x4f\122\x44\x45\x52\x20\x42\x59\x20" . $this->getProperty("\x4f\x52\104\x45\x52\x42\131"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstMailboxFiles() { $Sql = "\123\x45\114\x45\103\124\40\xa\x9\x9\11\x9\11\x6d\x61\151\154\137\x66\151\154\x65\x5f\x69\x64\x2c\xa\11\11\11\11\x9\x6d\x61\x69\x6c\137\x69\x64\x2c\12\x9\x9\x9\11\x9\x6d\141\x69\154\x5f\146\x69\154\x65\164\171\160\x65\x2c\xa\x9\11\x9\x9\x9\x6d\141\x69\x6c\x5f\146\151\x6c\145\156\141\155\145\x2c\xa\x9\11\x9\11\11\151\x73\101\143\164\151\166\x65\54\12\x9\11\11\x9\x9\145\156\164\145\162\171\137\x64\141\164\145\xa\11\11\x9\11\106\x52\x4f\115\xa\11\11\11\11\x9\162\163\x5f\164\x62\154\x5f\x6d\x61\151\154\x62\157\x78\137\x66\x69\x6c\x65\xa\11\x9\x9\x9\x57\110\x45\122\105\40\xa\11\x9\x9\11\11\61\x3d\x31"; if ($this->isPropertySet("\155\x61\151\154\x5f\146\151\x6c\x65\137\151\144", "\126")) { $Sql .= "\40\x41\x4e\x44\40\x6d\141\x69\154\137\146\151\154\145\x5f\151\x64\75" . $this->getProperty("\155\141\151\154\x5f\x66\x69\154\145\x5f\x69\x64"); } if ($this->isPropertySet("\x6d\x61\x69\154\137\151\x64", "\126")) { $Sql .= "\40\x41\x4e\104\40\155\x61\151\154\137\x69\144\75" . $this->getProperty("\x6d\141\x69\154\137\151\144"); } if ($this->isPropertySet("\x6d\x61\x69\154\x5f\x66\x69\154\x65\x74\171\x70\x65", "\x56")) { $Sql .= "\40\101\116\104\x20\155\x61\x69\x6c\137\x66\151\x6c\x65\164\x79\x70\145\x3d\x27" . $this->getProperty("\x6d\x61\151\x6c\x5f\146\x69\x6c\x65\x74\171\x70\x65") . "\47"; } if ($this->isPropertySet("\x69\163\x41\143\x74\151\166\145", "\126")) { $Sql .= "\40\x41\x4e\104\x20\151\x73\x41\x63\164\x69\166\145\75\47" . $this->getProperty("\x69\x73\101\143\164\x69\x76\x65") . "\x27"; } if ($this->isPropertySet("\x4f\x52\104\105\x52\102\131", "\x56")) { $Sql .= "\40\x4f\x52\x44\x45\x52\x20\x42\131\40" . $this->getProperty("\x4f\122\x44\105\x52\x42\x59"); } if ($this->isPropertySet("\x6c\x69\x6d\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\151\x74")); } return $this->dbQuery($Sql); } public function lstMailboxFileType() { $Sql = "\123\x45\114\x45\103\124\40\xa\11\11\x9\x9\11\146\x69\154\145\x74\x79\160\145\x5f\151\x64\54\12\x9\x9\11\x9\11\165\x73\145\x72\137\151\144\x2c\xa\11\11\11\11\11\x74\x79\160\145\x5f\x6e\x61\x6d\x65\54\xa\x9\11\11\11\11\x74\171\x70\145\137\151\x63\x6f\156\54\xa\11\x9\x9\11\x9\x69\163\101\x63\x74\x69\166\145\54\12\x9\11\x9\x9\11\x65\156\x74\145\x72\171\137\144\x61\x74\145\12\11\x9\x9\x9\x46\122\x4f\115\xa\x9\11\x9\11\x9\162\163\137\164\x62\154\x5f\155\141\151\x6c\x62\157\x78\137\146\151\154\145\137\x74\x79\x70\145\12\x9\x9\11\11\127\110\x45\x52\105\40\xa\11\x9\11\x9\11\x31\75\61"; if ($this->isPropertySet("\x66\151\154\145\x74\171\x70\145\137\x69\x64", "\126")) { $Sql .= "\40\x41\x4e\104\40\x66\151\154\x65\x74\171\x70\145\137\151\144\75" . $this->getProperty("\x66\151\154\145\x74\x79\160\145\137\x69\144"); } if ($this->isPropertySet("\x75\x73\x65\162\x5f\151\x64", "\126")) { $Sql .= "\x20\101\116\104\x20\x75\163\x65\x72\137\x69\x64\75" . $this->getProperty("\x75\163\145\x72\137\x69\144"); } if ($this->isPropertySet("\x69\163\101\x63\164\x69\166\145", "\126")) { $Sql .= "\x20\x41\116\104\40\151\163\x41\143\164\151\166\x65\x3d\47" . $this->getProperty("\x69\163\x41\x63\164\x69\166\x65") . "\47"; } if ($this->isPropertySet("\117\x52\x44\x45\x52\102\131", "\126")) { $Sql .= "\x20\117\122\x44\x45\122\40\x42\131\40" . $this->getProperty("\x4f\122\x44\105\122\102\x59"); } if ($this->isPropertySet("\154\151\x6d\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\x69\164")); } return $this->dbQuery($Sql); } public function emailExists() { $Sql = "\123\x45\114\105\103\x54\40\xa\x9\x9\x9\x9\x9\x75\163\145\162\137\x69\144\x2c\12\x9\11\x9\11\11\165\163\x65\162\137\145\155\x61\151\x6c\12\x9\11\11\x9\x46\x52\117\115\12\x9\x9\x9\x9\11\162\163\137\164\x62\x6c\137\165\x73\145\x72\x73\xa\x9\11\11\x9\x57\x48\x45\122\105\40\xa\x9\x9\x9\11\x9\x31\x3d\61"; if ($this->isPropertySet("\x75\163\145\162\x5f\145\x6d\141\x69\154", "\x56")) { $Sql .= "\40\x41\x4e\104\40\x75\163\x65\162\137\x65\x6d\141\x69\154\x3d\x27" . $this->getProperty("\x75\x73\x65\x72\x5f\145\x6d\x61\x69\154") . "\47"; } if ($this->isPropertySet("\x75\x73\x65\162\137\x74\x79\x70\145\137\x69\x64", "\x56")) { $Sql .= "\40\101\116\104\40\165\x73\x65\162\137\x74\171\160\145\x5f\151\144\x3d" . $this->getProperty("\x75\163\145\162\x5f\x74\171\x70\145\137\151\144"); } if ($this->isPropertySet("\165\x73\x65\x72\137\x69\x64", "\126")) { $Sql .= "\x20\101\116\104\x20\165\x73\145\162\137\x69\144\41\x3d" . $this->getProperty("\x75\x73\145\162\x5f\151\x64"); } return $this->dbQuery($Sql); } public function MobileExists() { $Sql = "\x53\x45\114\105\x43\x54\x20\xa\x9\11\11\x9\x9\165\x73\x65\162\x5f\151\144\54\12\x9\x9\x9\11\11\165\x73\145\x72\137\x6d\157\x62\151\154\x65\12\11\11\11\11\106\122\x4f\x4d\12\x9\x9\11\11\x9\x72\x73\x5f\x74\x62\154\x5f\165\x73\145\x72\x73\12\x9\x9\x9\x9\x57\110\x45\x52\105\x20\xa\11\11\11\11\11\x31\75\61"; if ($this->isPropertySet("\165\163\145\162\x5f\x6d\x6f\142\151\154\x65", "\x56")) { $Sql .= "\40\101\116\x44\40\165\x73\145\x72\137\155\157\x62\151\154\145\x3d\x27" . $this->getProperty("\165\x73\x65\162\137\x6d\x6f\142\x69\x6c\145") . "\47"; } if ($this->isPropertySet("\165\163\145\162\x5f\x74\x79\160\145\x5f\x69\x64", "\126")) { $Sql .= "\40\101\116\104\x20\165\x73\145\x72\137\x74\171\160\x65\137\x69\144\x3d" . $this->getProperty("\x75\163\145\162\137\x74\x79\160\x65\x5f\x69\x64"); } if ($this->isPropertySet("\x75\163\145\162\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\x4e\104\40\165\x73\145\x72\137\x69\x64\41\x3d" . $this->getProperty("\165\163\x65\162\137\151\144"); } return $this->dbQuery($Sql); } public function checkPassword() { $Sql = "\x53\105\x4c\x45\x43\124\xa\x9\x9\x9\11\x9\x75\x73\x65\x72\137\151\144\xa\x9\11\x9\x9\106\x52\117\115\xa\11\x9\x9\11\11\162\x73\x5f\x74\x62\154\137\x75\x73\x65\x72\x73\40\12\x9\x9\11\11\127\x48\105\122\x45\x20\12\x9\x9\x9\x9\x9\61\75\61"; $Sql .= "\40\x41\116\104\40\165\x73\x65\162\137\x69\144\x3d\47" . $this->getProperty("\165\x73\145\x72\137\x69\144") . "\x27"; $Sql .= "\40\101\116\x44\x20\x75\x73\145\x72\x5f\x70\x61\x73\163\x3d\47" . $this->getProperty("\165\163\145\162\x5f\x70\x61\x73\163") . "\47"; $this->dbQuery($Sql); if ($this->totalRecords() >= 1) { return true; } else { return false; } } public function checkSecurityCode() { $Sql = "\123\105\114\105\x43\124\12\11\11\x9\11\x9\165\x73\145\x72\x5f\x69\144\xa\11\x9\11\x9\106\122\117\115\xa\11\x9\x9\x9\11\x72\163\137\x74\142\x6c\x5f\x75\163\x65\162\163\40\12\x9\x9\x9\x9\127\110\105\122\x45\40\12\11\11\11\x9\11\x31\75\x31"; $Sql .= "\x20\x41\116\104\x20\165\163\x65\x72\x5f\x69\144\x3d\47" . $this->getProperty("\165\x73\x65\x72\x5f\x69\x64") . "\47"; $Sql .= "\x20\x41\x4e\x44\40\165\163\145\x72\x5f\163\145\143\x75\x72\x69\164\171\x5f\143\x6f\x64\x65\75\x27" . $this->getProperty("\x75\x73\145\x72\137\x73\145\143\x75\162\x69\x74\x79\x5f\143\x6f\x64\145") . "\47"; $this->dbQuery($Sql); if ($this->totalRecords() >= 1) { return true; } else { return false; } } public function VwTopSellerAgents() { $Sql = "\x53\105\114\105\x43\x54\x20\xa\x9\11\x9\x9\x9\165\x73\145\x72\137\151\144\x2c\12\11\11\x9\11\x9\x75\x73\145\162\137\146\x6e\141\x6d\145\x2c\12\x9\x9\x9\11\11\x75\163\145\x72\137\x6c\x6e\141\x6d\145\54\xa\11\11\x9\11\x9\141\x70\x6c\x69\143\137\143\157\x75\x6e\x74\x65\x72\xa\x9\x9\11\x9\106\122\117\x4d\xa\11\11\11\11\x9\166\x77\137\x74\157\x70\137\141\147\x65\x6e\164\x5f\163\145\154\154\x65\x72\137\154\151\x73\164\xa\x9\11\11\x9\x57\x48\x45\x52\105\40\xa\x9\x9\x9\x9\x9\61\x3d\61"; if ($this->isPropertySet("\x75\163\x65\x72\137\151\144", "\126")) { $Sql .= "\x20\x41\116\x44\x20\165\163\145\162\x5f\x69\x64\75" . $this->getProperty("\165\x73\x65\x72\137\x69\144"); } if ($this->isPropertySet("\117\x52\104\105\x52\x42\131", "\126")) { $Sql .= "\x20\117\x52\104\x45\122\40\x42\x59\x20" . $this->getProperty("\117\122\x44\x45\x52\102\131"); } if ($this->isPropertySet("\154\x69\x6d\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstLocation() { $Sql = "\123\105\x4c\x45\103\124\12\x9\11\11\11\11\x6c\157\x63\x2e\x6c\x6f\143\141\x74\x69\157\156\x5f\x69\144\54\12\11\x9\11\11\x9\154\x6f\143\x2e\x75\x73\145\162\x5f\x69\144\54\12\x9\11\x9\11\x9\x6c\x6f\x63\x2e\x63\157\x6d\160\x61\156\171\x5f\151\144\54\12\11\x9\11\x9\x9\154\x6f\x63\56\154\157\x63\141\164\x69\x6f\156\137\x6e\x61\155\x65\54\xa\11\x9\11\11\11\154\x6f\x63\x2e\x6c\157\143\141\164\x69\x6f\x6e\137\141\x64\x64\162\145\x73\x73\54\xa\x9\11\x9\x9\11\154\x6f\143\x2e\154\x6f\x63\141\x74\x69\157\156\x5f\160\150\157\156\x65\137\61\x2c\12\x9\x9\x9\11\x9\154\x6f\143\56\x6c\157\x63\141\164\x69\x6f\x6e\x5f\160\150\x6f\156\x65\137\62\54\xa\x9\x9\x9\x9\x9\154\x6f\143\56\x6c\x6f\x63\x61\x74\151\x6f\156\137\x70\x68\157\156\x65\x5f\63\54\xa\11\11\11\11\x9\x6c\157\x63\56\154\x6f\x63\141\x74\151\157\x6e\137\x66\141\x78\54\12\11\11\11\x9\x9\154\x6f\x63\x2e\151\163\101\x63\164\x69\166\145\x2c\12\x9\x9\11\11\11\143\157\155\160\56\x63\157\155\x70\x61\156\x79\x5f\156\141\x6d\145\xa\11\11\11\11\x46\122\117\115\12\x9\x9\11\11\11\162\x73\x5f\x74\x62\154\137\154\157\x63\141\164\x69\157\x6e\x20\141\x73\x20\x6c\157\143\12\x9\11\11\11\11\x49\116\x4e\105\122\40\112\x4f\x49\x4e\x20\x72\163\137\164\x62\154\137\143\x6f\155\x70\141\156\151\145\x73\x20\x61\163\40\x63\x6f\155\160\xa\11\x9\11\x9\x9\11\117\x4e\x20\50\154\157\x63\56\143\157\x6d\160\141\156\171\x5f\151\x64\x20\x3d\x20\x63\x6f\x6d\x70\x2e\143\157\155\x70\141\156\171\x5f\x69\x64\x29\xa\x9\x9\x9\11\127\x48\105\x52\x45\40\12\x9\11\11\x9\x9\x31\75\x31"; if ($this->isPropertySet("\x6c\x6f\x63\x61\x74\151\157\x6e\x5f\x69\144", "\126")) { $Sql .= "\40\101\x4e\x44\40\154\x6f\x63\x2e\x6c\157\143\x61\x74\x69\157\x6e\137\151\x64\x3d" . $this->getProperty("\154\x6f\x63\x61\164\151\x6f\x6e\137\x69\144"); } if ($this->isPropertySet("\x6c\x6f\143\141\x74\x69\157\156\x5f\x69\144\x5f\156\x6f\164", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\154\157\143\x2e\154\157\143\x61\164\x69\157\156\x5f\151\x64\x21\75" . $this->getProperty("\154\x6f\143\141\x74\x69\157\156\x5f\x69\144\137\x6e\157\164"); } if ($this->isPropertySet("\165\x73\145\162\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\116\104\x20\154\x6f\143\56\165\163\x65\x72\137\x69\144\x3d" . $this->getProperty("\x75\163\x65\162\137\x69\144"); } if ($this->isPropertySet("\x69\x73\x41\x63\x74\151\166\x65", "\x56")) { $Sql .= "\40\x41\116\104\x20\154\x6f\143\x2e\151\x73\101\143\x74\x69\x76\145\75" . $this->getProperty("\151\x73\101\143\x74\151\166\145"); } if ($this->isPropertySet("\x4f\x52\104\105\122\102\x59", "\x56")) { $Sql .= "\x20\x4f\122\x44\x45\x52\40\x42\131\x20" . $this->getProperty("\117\122\104\x45\122\102\x59"); } if ($this->isPropertySet("\154\151\155\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lstofCatagoryCount() { $Sql = "\123\x45\x4c\x45\x43\124\xa\11\11\11\x9\x9\164\143\x2e\x63\141\164\137\156\x61\155\x65\54\12\11\11\11\11\x9\x63\x6f\x75\156\x74\x28\x74\x61\56\x61\163\163\x65\164\137\151\144\x29\40\x61\163\x20\x63\x61\164\143\157\165\x6e\x74\145\162\x2c\12\11\x9\11\11\11\x74\x63\x2e\x69\163\101\x63\164\151\166\145\xa\x9\x9\x9\x9\x46\122\x4f\x4d\xa\x9\11\11\x9\x20\x20\x20\x20\40\162\163\137\164\142\x6c\x5f\x61\x73\163\x65\164\163\40\40\x20\x61\x73\40\164\x61\xa\x9\x9\11\x9\11\111\116\116\105\x52\40\112\117\x49\116\x20\x72\163\x5f\164\142\x6c\x5f\x63\141\164\141\147\x6f\162\x69\x65\163\x20\40\141\x73\40\x74\x63\xa\11\11\x9\x9\11\11\117\116\x20\x28\x74\x61\56\x63\x61\x74\141\147\x6f\x72\x79\137\151\x64\x20\75\x20\164\x63\56\143\141\164\137\x69\x64\51\12\11\x9\x9\11\127\110\105\122\105\x20\xa\x9\x9\x9\11\11\61\x3d\x31"; if ($this->isPropertySet("\x63\141\164\137\151\144", "\126")) { $Sql .= "\40\x41\116\104\40\x74\x63\x2e\143\141\164\x5f\x69\x64\75" . $this->getProperty("\x63\141\164\x5f\x69\x64"); } if ($this->isPropertySet("\x69\x73\101\143\x74\x69\x76\x65", "\x56")) { $Sql .= "\x20\101\116\x44\x20\x74\143\56\x69\163\x41\143\164\x69\166\145\x3d" . $this->getProperty("\151\x73\101\143\x74\151\166\145"); } if ($this->isPropertySet("\107\x52\x4f\125\x50\102\131", "\126")) { $Sql .= "\x20\107\122\x4f\x55\x50\40\x42\131\x20" . $this->getProperty("\x47\122\117\x55\x50\x42\131"); } if ($this->isPropertySet("\x6c\151\155\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstofAssetCount() { $Sql = "\x53\105\x4c\x45\103\x54\12\11\x9\x9\x9\11\164\x63\x2e\143\141\164\137\156\x61\155\145\54\12\x9\x9\11\11\11\143\x6f\x75\x6e\164\50\164\x61\56\x63\x61\x74\x5f\151\144\51\40\141\163\x20\x74\171\x70\x65\143\157\165\x6e\164\x65\162\54\12\11\x9\11\11\x9\x74\143\56\x69\163\101\143\164\x69\166\x65\12\x9\x9\x9\11\106\x52\117\115\xa\11\11\11\11\x72\x73\137\164\x62\154\137\x61\x73\163\x65\x74\x73\137\x74\x79\160\145\x20\40\x20\x61\x73\x20\x74\141\xa\x9\x9\x9\11\11\111\116\x4e\105\122\40\112\x4f\111\116\40\x72\163\137\x74\x62\154\x5f\143\141\x74\x61\x67\x6f\x72\151\145\x73\40\40\x61\x73\40\164\143\12\x9\11\x9\x9\x9\x9\x4f\x4e\40\x28\x74\141\56\143\141\164\x5f\x69\x64\x20\75\x20\x74\x63\x2e\x63\x61\164\137\x69\x64\x29\xa\11\x9\11\x9\127\110\105\x52\105\40\12\x9\11\x9\x9\11\x31\75\61"; if ($this->isPropertySet("\143\x61\164\137\x69\x64", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\164\x63\56\x63\x61\164\x5f\151\144\x3d" . $this->getProperty("\143\141\x74\x5f\x69\x64"); } if ($this->isPropertySet("\x69\163\101\x63\164\x69\166\x65", "\126")) { $Sql .= "\x20\101\x4e\104\40\164\x63\56\151\163\x41\143\x74\151\x76\145\x3d" . $this->getProperty("\x69\x73\101\x63\164\x69\x76\145"); } if ($this->isPropertySet("\107\x52\117\125\120\x42\x59", "\126")) { $Sql .= "\x20\107\x52\x4f\x55\120\40\x42\131\x20" . $this->getProperty("\x47\x52\x4f\x55\120\102\x59"); } if ($this->isPropertySet("\154\151\155\x69\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\151\x74")); } return $this->dbQuery($Sql); } public function lstUserMigration() { $Sql = "\x53\105\x4c\x45\103\x54\x20\12\11\11\11\x9\11\155\x69\147\x72\x61\164\x69\x6f\x6e\137\151\144\x2c\12\x9\11\x9\11\x9\165\163\x65\x72\137\x69\144\54\12\x9\11\11\x9\11\x6d\151\x67\162\141\164\x69\157\156\137\x75\163\x65\x72\x5f\151\x64\x2c\12\11\x9\x9\x9\x9\x63\165\x72\x72\145\x6e\x74\137\154\x6f\143\141\164\x69\157\x6e\137\x69\144\x2c\12\11\x9\x9\x9\11\x6d\151\147\x72\141\x74\151\x6f\156\137\x6c\157\143\x61\164\151\157\x6e\137\x69\144\54\12\x9\11\11\11\11\155\151\147\x72\141\164\x69\157\x6e\137\162\145\141\163\157\x6e\54\12\x9\x9\x9\11\11\x6d\x69\147\x72\141\x74\151\157\x6e\137\144\x61\164\145\x2c\12\x9\x9\x9\11\x9\145\156\x74\x65\x72\171\x5f\x64\141\x74\x65\x2c\xa\x9\x9\x9\x9\11\x69\x73\101\x63\x74\x69\166\145\xa\11\x9\x9\11\x46\122\117\115\12\11\11\11\x9\x9\x72\x73\137\164\x62\154\137\165\163\x65\x72\137\155\x69\x67\162\141\x74\x69\x6f\x6e\xa\x9\x9\11\x9\127\110\x45\x52\x45\40\12\11\x9\11\x9\x9\x31\75\x31"; if ($this->isPropertySet("\x6d\x69\x67\x72\141\164\151\157\156\137\x69\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\155\x69\147\x72\x61\164\x69\157\156\x5f\x69\x64\x3d" . $this->getProperty("\155\x69\147\x72\x61\x74\x69\157\156\137\x69\x64"); } if ($this->isPropertySet("\165\x73\145\162\137\151\x64", "\x56")) { $Sql .= "\40\101\116\104\x20\x75\x73\x65\x72\137\151\144\75" . $this->getProperty("\x75\163\145\x72\137\151\144"); } if ($this->isPropertySet("\x6d\x69\147\x72\x61\164\151\157\x6e\137\x75\163\x65\162\x5f\x69\x64", "\x56")) { $Sql .= "\40\x41\x4e\104\x20\155\x69\x67\x72\141\x74\x69\x6f\156\137\165\x73\145\162\x5f\x69\x64\x3d" . $this->getProperty("\155\151\x67\162\x61\x74\x69\157\156\x5f\165\163\145\x72\x5f\x69\x64"); } if ($this->isPropertySet("\143\x75\162\x72\145\x6e\164\137\x6c\x6f\143\141\x74\x69\x6f\156\137\151\x64", "\x56")) { $Sql .= "\x20\101\116\104\40\143\165\162\162\145\156\164\x5f\154\157\x63\x61\164\x69\157\156\137\151\144\x3d" . $this->getProperty("\143\x75\162\162\x65\156\164\x5f\154\x6f\143\x61\164\151\157\156\x5f\151\144"); } if ($this->isPropertySet("\155\x69\x67\162\141\x74\151\x6f\x6e\x5f\154\x6f\x63\141\164\x69\x6f\x6e\137\151\144", "\126")) { $Sql .= "\x20\x41\116\104\40\155\x69\x67\162\x61\x74\x69\157\x6e\137\154\x6f\143\141\x74\151\157\x6e\137\151\144\x3d" . $this->getProperty("\155\x69\x67\162\x61\x74\x69\x6f\156\137\154\157\x63\x61\x74\151\x6f\x6e\x5f\x69\144"); } if ($this->isPropertySet("\x69\163\x41\x63\x74\151\x76\x65", "\126")) { $Sql .= "\x20\101\x4e\x44\40\x69\x73\101\143\x74\x69\166\x65\75" . $this->getProperty("\x69\x73\x41\143\x74\x69\x76\145"); } if ($this->isPropertySet("\117\122\x44\105\x52\x42\x59", "\126")) { $Sql .= "\x20\117\x52\x44\x45\122\x20\x42\x59\x20" . $this->getProperty("\x4f\122\x44\x45\122\x42\x59"); } if ($this->isPropertySet("\x6c\151\x6d\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstCompanies() { $Sql = "\x53\105\x4c\105\103\x54\40\xa\11\11\11\x9\11\x63\157\x6d\160\141\156\x79\x5f\151\x64\54\xa\11\x9\11\11\11\x75\x73\145\162\x5f\151\144\x2c\12\11\11\11\11\x9\143\157\155\160\x61\156\171\137\156\x61\155\145\54\12\x9\x9\11\x9\x9\145\156\x74\x65\x72\x79\137\144\141\x74\x65\54\12\x9\x9\x9\x9\11\151\x73\x41\x63\x74\x69\x76\145\12\x9\x9\11\11\x46\122\117\x4d\xa\11\x9\x9\x9\11\x72\163\137\164\x62\154\x5f\x63\x6f\155\x70\x61\156\151\x65\163\12\x9\11\x9\11\127\x48\105\122\105\x20\xa\11\11\x9\11\11\x31\x3d\x31"; if ($this->isPropertySet("\143\157\155\x70\x61\156\x79\137\151\144", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\143\x6f\x6d\160\141\156\171\x5f\151\144\x3d" . $this->getProperty("\143\x6f\155\160\141\156\x79\137\151\x64"); } if ($this->isPropertySet("\165\163\x65\x72\x5f\151\x64", "\126")) { $Sql .= "\40\101\116\104\40\x75\163\145\162\137\x69\144\75" . $this->getProperty("\165\163\x65\162\137\x69\x64"); } if ($this->isPropertySet("\151\x73\101\143\164\x69\x76\145", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\151\x73\101\143\x74\x69\166\x65\75" . $this->getProperty("\x69\163\101\x63\x74\151\166\x65"); } if ($this->isPropertySet("\117\x52\x44\105\122\x42\131", "\126")) { $Sql .= "\x20\117\x52\104\x45\x52\40\102\x59\40" . $this->getProperty("\117\122\104\105\122\102\131"); } if ($this->isPropertySet("\154\x69\x6d\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\151\x74")); } return $this->dbQuery($Sql); } public function lstcompanyevents() { $Sql = "\123\105\x4c\105\103\124\40\12\11\11\x9\x9\x9\x65\166\x65\156\x74\x5f\151\144\x2c\12\11\x9\x9\x9\11\x65\166\145\x6e\164\x5f\x74\171\160\x65\54\12\11\11\x9\x9\11\x63\157\x6d\160\x61\156\171\x5f\x69\144\x2c\12\11\x9\x9\x9\x9\x65\x76\145\x6e\x74\x5f\x6e\141\155\x65\x2c\xa\x9\11\x9\x9\11\145\x76\x65\x6e\164\x5f\144\145\163\x63\x72\x69\x70\164\x69\x6f\156\54\12\x9\11\x9\11\x9\145\166\145\x6e\164\137\144\141\x74\x65\x2c\12\11\11\x9\x9\11\151\x73\101\143\164\x69\x76\x65\xa\x9\x9\11\11\106\122\117\115\xa\11\11\x9\x9\164\141\155\x69\x6d\x69\x5f\145\x76\x65\x6e\x74\163\12\11\x9\x9\x9\127\x48\x45\x52\105\40\xa\11\x9\11\11\x9\x31\x3d\61"; if ($this->isPropertySet("\x65\166\x65\x6e\164\137\x69\144", "\x56")) { $Sql .= "\40\x41\116\104\40\145\166\x65\x6e\164\137\x69\144\x3d" . $this->getProperty("\145\x76\x65\156\164\x5f\151\144"); } if ($this->isPropertySet("\x65\x76\145\156\x74\137\164\171\x70\x65", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\145\166\145\x6e\164\137\x74\171\160\145\75" . $this->getProperty("\145\166\x65\156\164\x5f\x74\x79\160\145"); } if ($this->isPropertySet("\143\x6f\x6d\160\141\x6e\171\x5f\151\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\143\x6f\x6d\160\x61\x6e\x79\x5f\151\x64\x3d" . $this->getProperty("\143\x6f\x6d\160\141\x6e\171\137\x69\x64"); } if ($this->isPropertySet("\151\x73\x41\143\x74\x69\166\x65", "\x56")) { $Sql .= "\40\x41\116\104\40\x69\x73\101\x63\x74\x69\x76\x65\x3d" . $this->getProperty("\x69\x73\101\143\x74\x69\x76\145"); } if ($this->isPropertySet("\117\122\104\105\x52\x42\x59", "\126")) { $Sql .= "\40\x4f\x52\104\x45\122\x20\x42\131\x20" . $this->getProperty("\117\x52\x44\105\x52\x42\131"); } if ($this->isPropertySet("\154\x69\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\164")); } return $this->dbQuery($Sql); } public function lstDepartments() { $Sql = "\123\x45\x4c\105\x43\x54\12\11\11\x9\x9\x9\144\x70\56\x64\145\x70\141\162\164\155\145\x6e\x74\x5f\151\x64\x2c\xa\11\11\11\x9\11\x64\160\56\165\x73\x65\162\x5f\151\144\54\xa\x9\x9\x9\x9\11\144\160\x2e\x63\x6f\155\x70\141\156\x79\x5f\151\144\54\12\x9\x9\11\11\x9\144\x70\x2e\144\x65\x70\141\x72\164\155\x65\156\164\x5f\x6e\141\155\145\54\xa\x9\11\x9\x9\11\x64\x70\x2e\x69\x73\x41\x63\164\151\166\145\x2c\12\x9\11\x9\x9\11\x63\x70\x2e\143\157\155\x70\x61\x6e\171\x5f\x6e\141\x6d\145\xa\11\11\x9\x9\106\x52\x4f\115\xa\x9\x9\11\x9\11\162\163\137\164\x62\154\137\144\x65\x70\141\x72\x74\155\x65\156\164\x20\141\x73\x20\144\x70\12\11\11\x9\x9\11\x49\x4e\116\105\122\x20\x4a\x4f\x49\x4e\x20\162\x73\137\164\142\154\137\143\x6f\155\160\141\x6e\x69\145\163\40\x63\x70\12\x9\x9\11\11\11\11\117\116\40\50\144\x70\x2e\143\x6f\x6d\x70\141\x6e\171\137\151\x64\40\75\x20\143\160\x2e\x63\157\x6d\160\x61\156\171\137\151\144\51\12\11\x9\11\11\x57\110\105\122\105\x20\12\x9\x9\x9\11\11\x31\75\61"; if ($this->isPropertySet("\x64\145\160\x61\x72\164\x6d\145\x6e\x74\x5f\x69\144", "\x56")) { $Sql .= "\40\x41\116\104\40\144\160\56\x64\145\x70\x61\x72\x74\155\x65\156\164\x5f\x69\144\x3d" . $this->getProperty("\x64\x65\x70\141\x72\x74\155\145\x6e\164\x5f\x69\x64"); } if ($this->isPropertySet("\143\x6f\x6d\160\141\156\171\x5f\x69\144", "\126")) { $Sql .= "\x20\101\116\x44\x20\144\x70\56\x63\157\155\x70\x61\x6e\171\137\151\x64\x3d" . $this->getProperty("\143\157\155\160\x61\x6e\x79\x5f\x69\144"); } if ($this->isPropertySet("\x75\x73\x65\162\x5f\151\x64", "\126")) { $Sql .= "\40\x41\116\x44\x20\x64\x70\x2e\165\x73\x65\162\x5f\x69\144\75" . $this->getProperty("\x75\163\145\162\137\x69\x64"); } if ($this->isPropertySet("\151\x73\x41\x63\164\151\x76\x65", "\126")) { $Sql .= "\x20\x41\116\104\x20\144\160\56\x69\x73\x41\x63\164\x69\x76\x65\x3d" . $this->getProperty("\151\x73\101\x63\164\x69\x76\145"); } if ($this->isPropertySet("\117\122\x44\105\122\x42\131", "\126")) { $Sql .= "\x20\117\122\x44\105\x52\40\x42\131\40" . $this->getProperty("\117\x52\x44\x45\122\102\x59"); } if ($this->isPropertySet("\x6c\151\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function lstJobTitle() { $Sql = "\x53\105\114\105\x43\124\40\12\x9\11\11\11\x9\x6a\x6f\x62\137\x74\x69\164\x6c\x65\137\151\144\54\xa\x9\x9\11\x9\11\165\x73\x65\x72\137\151\144\54\xa\x9\x9\x9\11\x9\152\x6f\142\x5f\164\x69\164\154\145\54\xa\11\x9\11\11\x9\145\x6e\x74\145\x72\171\x5f\x64\141\164\145\54\12\11\11\x9\11\11\x69\163\x41\143\164\x69\166\x65\12\11\11\x9\11\x46\122\117\x4d\xa\x9\x9\x9\11\x9\162\x73\x5f\x74\x62\x6c\x5f\152\157\x62\x5f\x74\x69\164\x6c\145\12\x9\x9\11\x9\x57\x48\105\122\x45\x20\xa\x9\11\11\x9\11\61\x3d\x31"; if ($this->isPropertySet("\152\x6f\x62\137\x74\x69\x74\x6c\x65\x5f\x69\x64", "\126")) { $Sql .= "\40\x41\116\104\40\152\157\x62\x5f\x74\151\x74\154\145\137\151\x64\75" . $this->getProperty("\152\x6f\142\137\x74\x69\164\154\145\137\151\x64"); } if ($this->isPropertySet("\x75\x73\x65\162\x5f\x69\x64", "\x56")) { $Sql .= "\40\101\116\104\40\165\163\145\x72\x5f\x69\144\x3d" . $this->getProperty("\165\x73\x65\162\x5f\151\x64"); } if ($this->isPropertySet("\151\x73\101\x63\164\x69\166\145", "\x56")) { $Sql .= "\40\101\x4e\104\40\151\x73\101\143\x74\151\166\x65\75" . $this->getProperty("\151\163\x41\143\x74\x69\x76\145"); } if ($this->isPropertySet("\117\x52\104\105\122\102\x59", "\126")) { $Sql .= "\40\117\122\104\105\122\x20\102\x59\40" . $this->getProperty("\x4f\122\x44\105\122\x42\131"); } if ($this->isPropertySet("\154\151\155\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstAssetBrands() { $Sql = "\123\x45\114\105\103\x54\x20\xa\x9\11\x9\x9\x9\x61\163\163\x65\x74\137\142\x72\x61\x6e\144\137\151\144\x2c\12\11\11\11\11\11\165\163\145\x72\137\151\144\x2c\xa\x9\x9\x9\x9\x9\141\163\163\145\x74\137\142\x72\141\x6e\x64\x73\54\12\x9\11\x9\x9\11\145\156\164\x72\x79\137\144\x61\x74\x65\x2c\12\x9\11\x9\x9\11\x69\x73\x41\143\164\x69\x76\145\xa\11\x9\11\x9\x46\x52\117\x4d\12\11\11\x9\x9\x72\163\x5f\x74\x62\154\x5f\141\163\x73\x65\164\137\x62\162\141\156\144\163\xa\11\x9\x9\x9\127\x48\105\122\105\x20\12\x9\11\x9\x9\x9\x31\x3d\x31"; if ($this->isPropertySet("\x61\x73\163\x65\164\137\142\x72\141\156\144\x5f\151\144", "\126")) { $Sql .= "\x20\x41\116\x44\x20\141\163\163\x65\164\x5f\142\162\x61\x6e\144\x5f\x69\x64\x3d" . $this->getProperty("\x61\x73\x73\x65\164\x5f\x62\162\141\156\144\137\151\144"); } if ($this->isPropertySet("\165\163\145\x72\x5f\x69\144", "\x56")) { $Sql .= "\40\101\x4e\104\40\x75\163\145\x72\137\x69\x64\75" . $this->getProperty("\x75\x73\x65\162\x5f\x69\x64"); } if ($this->isPropertySet("\x69\x73\x41\143\164\151\x76\145", "\x56")) { $Sql .= "\x20\x41\116\x44\40\151\x73\101\x63\164\151\x76\145\75" . $this->getProperty("\x69\x73\101\x63\164\151\166\145"); } if ($this->isPropertySet("\x4f\x52\x44\105\122\x42\x59", "\126")) { $Sql .= "\40\117\x52\x44\105\x52\40\102\131\40" . $this->getProperty("\x4f\x52\104\x45\x52\x42\131"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstAssetsCat() { $Sql = "\x53\x45\x4c\x45\x43\x54\x20\xa\x9\11\11\x9\x9\x63\141\164\137\151\x64\x20\54\xa\11\11\11\x9\x9\x75\163\x65\162\x5f\151\144\54\xa\x9\11\11\x9\11\x63\141\x74\x5f\x6e\141\x6d\x65\x2c\12\x9\x9\x9\x9\x9\x65\x6e\164\162\171\x5f\144\141\x74\145\54\12\x9\x9\x9\x9\11\151\163\x41\x63\164\x69\166\145\12\x9\11\x9\x9\106\122\x4f\115\xa\x9\x9\x9\11\162\163\137\x74\x62\x6c\137\143\141\164\141\x67\x6f\x72\151\x65\x73\xa\11\11\11\x9\x57\x48\105\122\x45\x20\xa\x9\x9\x9\11\11\61\75\61"; if ($this->isPropertySet("\143\141\164\x5f\151\144", "\x56")) { $Sql .= "\40\x41\116\104\40\x63\x61\x74\137\x69\144\75" . $this->getProperty("\x63\141\x74\x5f\151\x64"); } if ($this->isPropertySet("\165\x73\x65\162\137\x69\144", "\126")) { $Sql .= "\40\x41\116\x44\x20\x75\163\x65\162\x5f\151\x64\x3d" . $this->getProperty("\x75\163\x65\162\137\x69\x64"); } if ($this->isPropertySet("\x69\163\x41\143\x74\x69\166\x65", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\151\163\101\x63\x74\151\166\145\x3d" . $this->getProperty("\x69\163\101\x63\164\x69\166\145"); } if ($this->isPropertySet("\117\x52\x44\x45\x52\102\131", "\126")) { $Sql .= "\x20\x4f\122\x44\105\x52\40\x42\x59\40" . $this->getProperty("\x4f\x52\104\x45\122\102\x59"); } if ($this->isPropertySet("\x6c\x69\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstAssetsType() { $Sql = "\123\105\114\105\103\x54\x20\12\x9\11\11\11\11\x61\163\163\x65\x74\x5f\164\x79\160\x65\x5f\151\144\54\12\x9\11\x9\x9\x9\143\x61\x74\137\x69\144\40\x2c\12\x9\11\x9\11\x9\x75\x73\x65\x72\137\151\x64\54\12\x9\11\x9\x9\11\141\163\163\145\164\x5f\164\x79\160\x65\54\xa\11\x9\x9\11\11\145\156\164\x72\171\x5f\x64\x61\x74\145\x2c\12\11\x9\x9\11\11\x69\x73\x41\143\164\x69\166\x65\xa\11\x9\x9\x9\106\122\x4f\x4d\12\x9\x9\x9\11\x72\x73\137\164\x62\x6c\x5f\141\163\x73\x65\x74\x73\137\164\x79\x70\145\12\11\x9\11\x9\x57\110\x45\x52\x45\40\12\x9\x9\11\11\11\61\x3d\x31"; if ($this->isPropertySet("\141\163\163\x65\164\137\x74\171\160\145\x5f\151\144", "\126")) { $Sql .= "\40\101\116\x44\x20\141\x73\163\145\x74\137\x74\171\x70\145\x5f\x69\x64\x3d" . $this->getProperty("\141\x73\x73\x65\164\x5f\164\x79\160\x65\137\x69\144"); } if ($this->isPropertySet("\143\141\x74\137\151\x64", "\126")) { $Sql .= "\x20\101\x4e\x44\40\143\141\164\x5f\x69\x64\75" . $this->getProperty("\143\x61\x74\x5f\x69\144"); } if ($this->isPropertySet("\165\x73\x65\x72\137\x69\144", "\126")) { $Sql .= "\x20\x41\116\104\x20\165\x73\145\162\137\151\x64\x3d" . $this->getProperty("\x75\x73\x65\162\137\151\x64"); } if ($this->isPropertySet("\x61\x73\163\x65\164\x5f\x74\x79\160\145", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\x61\x73\163\x65\x74\137\164\171\160\145\75" . $this->getProperty("\141\163\163\145\x74\137\x74\x79\x70\x65"); } if ($this->isPropertySet("\151\163\x41\143\x74\151\x76\x65", "\x56")) { $Sql .= "\x20\101\116\x44\x20\151\163\x41\143\x74\x69\166\x65\75" . $this->getProperty("\151\163\101\x63\164\x69\x76\x65"); } if ($this->isPropertySet("\117\x52\x44\x45\122\102\x59", "\126")) { $Sql .= "\40\117\x52\x44\105\x52\40\102\x59\40" . $this->getProperty("\117\122\x44\x45\122\102\x59"); } if ($this->isPropertySet("\x6c\x69\155\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\164")); } return $this->dbQuery($Sql); } public function lstprojectimages() { $Sql = "\123\105\x4c\105\x43\124\40\12\x9\x9\11\11\11\x69\x6d\x61\x67\145\137\x69\x64\54\xa\x9\x9\x9\11\11\x70\162\157\152\145\x63\x74\x5f\151\144\54\xa\x9\11\x9\11\x9\160\x72\157\152\x65\143\164\x5f\151\155\141\x67\x65\x2c\xa\x9\11\11\x9\x9\151\x73\101\143\164\x69\x76\x65\12\x9\x9\11\11\x46\x52\x4f\115\xa\x9\x9\11\11\x74\141\155\x69\x6d\151\x5f\x70\x72\157\x6a\145\x63\164\x5f\x69\x6d\x61\147\145\163\12\11\x9\x9\11\127\110\105\x52\105\40\xa\x9\x9\x9\11\x9\61\x3d\x31"; if ($this->isPropertySet("\x69\155\141\x67\x65\x5f\151\144", "\x56")) { $Sql .= "\x20\x41\116\x44\40\x69\155\141\x67\x65\137\x69\144\75" . $this->getProperty("\151\x6d\141\147\145\x5f\151\144"); } if ($this->isPropertySet("\x70\x72\157\x6a\145\x63\164\x5f\x69\x64", "\126")) { $Sql .= "\x20\x41\116\104\40\x70\x72\x6f\152\145\143\x74\x5f\x69\x64\75" . $this->getProperty("\x70\162\x6f\152\x65\x63\x74\x5f\x69\144"); } if ($this->isPropertySet("\151\163\101\x63\x74\151\x76\x65", "\126")) { $Sql .= "\40\101\x4e\x44\x20\x69\163\x41\143\164\151\x76\145\75" . $this->getProperty("\151\x73\101\143\x74\151\x76\145"); } if ($this->isPropertySet("\x4f\x52\x44\105\x52\102\131", "\126")) { $Sql .= "\x20\117\x52\104\105\122\x20\102\131\x20" . $this->getProperty("\x4f\122\x44\105\x52\102\131"); } if ($this->isPropertySet("\154\151\155\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lsteventimages() { $Sql = "\123\x45\x4c\105\x43\x54\40\12\11\x9\x9\x9\x9\151\155\141\147\x65\x5f\151\x64\54\xa\x9\x9\x9\x9\x9\145\x76\145\156\x74\x5f\x69\x64\54\xa\11\x9\11\11\11\x65\x76\x65\x6e\x74\x5f\151\155\141\x67\x65\x2c\12\11\x9\x9\11\11\x69\163\x41\x63\x74\151\x76\x65\12\x9\x9\x9\11\x46\x52\117\115\12\11\x9\11\x9\164\141\155\151\155\151\x5f\145\x76\x65\x6e\164\x5f\x69\x6d\141\x67\145\163\xa\11\x9\x9\11\127\x48\x45\x52\105\x20\xa\x9\11\x9\x9\11\x31\75\61"; if ($this->isPropertySet("\151\x6d\x61\147\145\x5f\x69\144", "\126")) { $Sql .= "\x20\x41\116\104\x20\x69\155\x61\x67\x65\137\x69\x64\x3d" . $this->getProperty("\x69\x6d\141\147\x65\x5f\x69\144"); } if ($this->isPropertySet("\145\166\x65\156\x74\137\151\x64", "\x56")) { $Sql .= "\40\x41\116\104\40\x65\166\x65\156\164\137\x69\144\75" . $this->getProperty("\145\166\145\156\x74\137\151\144"); } if ($this->isPropertySet("\x69\x73\x41\x63\164\151\x76\145", "\126")) { $Sql .= "\40\x41\x4e\104\40\x69\x73\101\x63\164\151\x76\x65\75" . $this->getProperty("\x69\163\x41\143\x74\151\166\145"); } if ($this->isPropertySet("\x4f\x52\104\105\x52\102\131", "\126")) { $Sql .= "\x20\117\122\104\x45\122\x20\x42\131\x20" . $this->getProperty("\x4f\x52\x44\105\122\102\x59"); } if ($this->isPropertySet("\154\x69\155\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lstiqprofession() { $Sql = "\123\x45\x4c\105\103\124\x20\12\11\11\x9\x9\11\x69\161\160\x72\157\x66\145\x73\163\x69\157\156\x5f\151\x64\x2c\12\11\x9\11\x9\x9\165\163\x65\x72\137\151\x64\54\12\11\x9\11\x9\11\x69\161\160\162\157\x66\145\x73\163\x69\157\156\54\xa\x9\x9\11\x9\x9\145\156\164\145\162\x79\137\144\x61\164\145\54\12\11\x9\11\x9\11\151\x73\x41\143\164\151\166\x65\xa\11\11\x9\11\106\x52\117\115\12\11\11\11\x9\162\x73\137\164\x62\x6c\137\x69\161\x70\x72\x6f\x66\145\163\x73\x69\157\156\xa\11\x9\11\11\127\110\x45\x52\105\40\12\x9\11\x9\x9\x9\61\x3d\61"; if ($this->isPropertySet("\x69\161\160\162\157\x66\x65\163\163\151\x6f\156\137\151\144", "\x56")) { $Sql .= "\40\x41\116\x44\40\x69\161\x70\162\x6f\x66\x65\x73\x73\x69\157\156\x5f\x69\144\x3d" . $this->getProperty("\151\x71\160\162\x6f\x66\145\x73\x73\x69\x6f\x6e\x5f\x69\144"); } if ($this->isPropertySet("\165\x73\145\162\137\151\144", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\165\x73\x65\162\x5f\x69\144\x3d" . $this->getProperty("\165\163\145\162\x5f\x69\144"); } if ($this->isPropertySet("\151\x73\101\x63\x74\x69\166\145", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\151\163\101\143\164\x69\x76\145\75" . $this->getProperty("\x69\x73\x41\x63\164\x69\x76\145"); } if ($this->isPropertySet("\x4f\x52\x44\x45\x52\x42\131", "\x56")) { $Sql .= "\x20\117\122\104\x45\x52\40\102\131\40" . $this->getProperty("\117\x52\x44\x45\122\102\131"); } if ($this->isPropertySet("\x6c\151\x6d\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\164")); } return $this->dbQuery($Sql); } public function lstsubarea() { $Sql = "\x53\105\x4c\x45\103\x54\40\12\x9\11\11\11\11\x73\x75\142\x61\162\145\141\x5f\x69\144\54\12\11\x9\x9\x9\x9\165\163\145\162\x5f\x69\144\x2c\xa\x9\x9\11\x9\11\x73\x75\x62\141\162\x65\x61\54\12\11\x9\11\11\11\145\156\164\x65\162\171\137\x64\x61\x74\145\x2c\xa\x9\11\11\11\11\151\163\x41\143\164\151\166\145\12\11\x9\11\x9\106\x52\x4f\x4d\xa\x9\11\x9\x9\162\x73\137\164\x62\x6c\x5f\x73\x75\x62\x61\162\x65\141\12\x9\x9\11\11\127\110\105\x52\105\40\xa\x9\x9\11\x9\11\x31\x3d\61"; if ($this->isPropertySet("\x73\165\142\x61\162\145\141\137\x69\144", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\163\165\142\x61\x72\145\141\137\151\x64\75" . $this->getProperty("\x73\165\142\x61\162\145\141\137\x69\144"); } if ($this->isPropertySet("\165\163\x65\x72\137\151\144", "\126")) { $Sql .= "\x20\x41\x4e\104\40\165\x73\x65\162\137\x69\x64\75" . $this->getProperty("\x75\x73\x65\162\x5f\151\x64"); } if ($this->isPropertySet("\151\163\101\143\x74\151\166\x65", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\x69\163\101\x63\164\x69\166\145\75" . $this->getProperty("\x69\163\x41\x63\x74\x69\x76\x65"); } if ($this->isPropertySet("\117\122\x44\105\x52\x42\x59", "\x56")) { $Sql .= "\x20\117\122\x44\105\122\x20\102\x59\40" . $this->getProperty("\x4f\122\104\x45\122\x42\x59"); } if ($this->isPropertySet("\154\151\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function lstorigunit() { $Sql = "\123\x45\114\x45\x43\124\40\xa\11\11\x9\x9\11\x6f\x72\151\147\x75\156\151\x74\137\x69\144\54\xa\x9\x9\11\11\11\165\163\145\x72\x5f\x69\x64\x2c\12\x9\11\x9\x9\11\157\162\151\x67\165\156\x69\164\54\12\11\x9\x9\x9\11\145\156\164\x65\x72\171\x5f\144\141\164\145\x2c\12\x9\x9\x9\x9\11\151\163\101\143\x74\x69\166\145\xa\x9\11\11\11\106\x52\x4f\x4d\xa\11\x9\11\11\x72\163\137\x74\x62\x6c\137\157\x72\151\147\165\156\151\x74\xa\11\x9\11\11\x57\110\x45\122\x45\40\12\x9\x9\x9\11\11\61\x3d\x31"; if ($this->isPropertySet("\x6f\162\x69\147\165\156\x69\164\x5f\151\x64", "\126")) { $Sql .= "\x20\101\116\x44\x20\157\x72\151\147\x75\156\x69\164\x5f\x69\144\x3d" . $this->getProperty("\157\x72\151\147\165\x6e\151\164\137\x69\x64"); } if ($this->isPropertySet("\x75\163\x65\162\x5f\151\144", "\126")) { $Sql .= "\x20\x41\116\104\x20\x75\163\145\162\137\151\144\x3d" . $this->getProperty("\165\x73\x65\162\x5f\x69\x64"); } if ($this->isPropertySet("\151\163\x41\143\164\x69\x76\145", "\x56")) { $Sql .= "\40\101\x4e\x44\40\151\x73\x41\x63\x74\151\166\x65\75" . $this->getProperty("\151\163\x41\x63\x74\151\x76\x65"); } if ($this->isPropertySet("\117\122\104\x45\122\x42\131", "\126")) { $Sql .= "\x20\117\122\104\x45\122\40\x42\131\x20" . $this->getProperty("\117\x52\104\x45\122\102\131"); } if ($this->isPropertySet("\154\151\155\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstloccode() { $Sql = "\123\105\114\105\103\124\40\12\11\x9\11\11\11\x6c\157\143\x63\x6f\144\x65\137\151\x64\x2c\xa\11\11\x9\11\x9\x75\163\145\162\137\151\144\x2c\xa\11\x9\11\x9\x9\x6c\x6f\x63\x63\x6f\x64\145\x2c\12\11\x9\x9\11\x9\145\x6e\164\x65\162\171\x5f\x64\x61\x74\x65\x2c\12\x9\x9\11\x9\11\x69\x73\101\143\164\151\166\x65\12\x9\11\x9\x9\106\x52\x4f\115\xa\11\x9\x9\11\162\163\x5f\x74\142\154\137\x6c\157\143\143\x6f\144\x65\12\x9\11\11\x9\127\110\105\122\105\x20\12\11\x9\x9\11\11\x31\75\61"; if ($this->isPropertySet("\154\157\x63\143\x6f\x64\x65\137\151\144", "\126")) { $Sql .= "\40\x41\x4e\x44\40\x6c\157\143\x63\157\144\x65\137\151\x64\x3d" . $this->getProperty("\154\157\x63\143\157\x64\x65\x5f\x69\x64"); } if ($this->isPropertySet("\x75\163\x65\162\137\151\144", "\x56")) { $Sql .= "\40\101\116\104\40\165\x73\145\162\137\151\x64\75" . $this->getProperty("\x75\163\x65\x72\137\x69\x64"); } if ($this->isPropertySet("\151\x73\x41\x63\164\x69\166\x65", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\x69\x73\101\x63\x74\151\x76\x65\75" . $this->getProperty("\151\x73\x41\x63\x74\x69\x76\145"); } if ($this->isPropertySet("\x4f\122\x44\105\122\102\x59", "\x56")) { $Sql .= "\x20\x4f\122\104\x45\x52\x20\102\131\40" . $this->getProperty("\x4f\x52\104\x45\122\x42\131"); } if ($this->isPropertySet("\154\151\155\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstcostcenter() { $Sql = "\123\x45\x4c\x45\103\124\x20\12\11\x9\x9\x9\11\x63\157\163\164\x63\x65\156\164\x65\162\x5f\x69\x64\x2c\12\x9\x9\11\x9\x9\165\x73\145\162\x5f\x69\x64\54\xa\11\x9\11\11\x9\x63\157\x73\164\x63\145\156\x74\x65\x72\54\12\x9\x9\x9\x9\11\145\156\164\145\162\x79\137\144\141\164\145\54\xa\11\11\11\11\x9\x69\x73\101\x63\x74\151\166\x65\xa\11\11\11\11\106\122\117\115\xa\x9\11\11\11\162\163\137\164\x62\154\137\143\157\163\164\143\x65\156\164\145\x72\xa\11\11\11\x9\127\x48\105\x52\x45\x20\12\11\x9\x9\11\x9\61\x3d\x31"; if ($this->isPropertySet("\x63\157\x73\164\143\145\x6e\x74\x65\x72\x5f\151\144", "\126")) { $Sql .= "\40\x41\x4e\104\x20\x63\157\x73\164\x63\x65\156\164\145\162\137\151\144\x3d" . $this->getProperty("\143\157\163\x74\x63\x65\156\164\145\x72\x5f\x69\x64"); } if ($this->isPropertySet("\x75\x73\x65\x72\137\x69\x64", "\x56")) { $Sql .= "\40\101\116\x44\x20\165\x73\x65\162\137\x69\144\75" . $this->getProperty("\x75\x73\x65\162\137\x69\144"); } if ($this->isPropertySet("\x69\163\x41\x63\164\151\x76\x65", "\x56")) { $Sql .= "\x20\101\116\x44\40\x69\x73\x41\x63\164\x69\x76\145\75" . $this->getProperty("\151\x73\x41\x63\164\x69\x76\145"); } if ($this->isPropertySet("\117\122\104\x45\x52\x42\x59", "\126")) { $Sql .= "\x20\x4f\122\104\x45\122\40\x42\x59\x20" . $this->getProperty("\x4f\x52\104\x45\122\102\x59"); } if ($this->isPropertySet("\154\x69\155\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\151\164")); } return $this->dbQuery($Sql); } public function lstpayrollarea() { $Sql = "\123\x45\114\x45\x43\x54\40\xa\11\11\x9\11\11\160\141\x79\162\157\x6c\154\141\x72\x65\x61\x5f\x69\144\54\xa\11\11\11\x9\11\x75\x73\145\x72\x5f\x69\144\54\12\11\x9\x9\11\x9\160\141\171\162\x6f\x6c\x6c\141\162\145\141\54\12\11\x9\11\x9\11\x65\x6e\164\145\162\171\x5f\x64\141\x74\x65\54\12\11\x9\x9\x9\11\151\x73\101\x63\164\151\166\145\xa\x9\11\x9\x9\x46\122\117\x4d\12\x9\x9\x9\x9\x72\163\137\164\x62\x6c\x5f\160\x61\171\x72\x6f\154\x6c\141\x72\145\x61\xa\x9\11\x9\x9\x57\110\105\x52\x45\40\xa\x9\11\x9\11\11\61\75\x31"; if ($this->isPropertySet("\160\x61\x79\162\157\x6c\154\x61\162\145\x61\x5f\151\x64", "\x56")) { $Sql .= "\x20\101\116\x44\x20\160\x61\171\162\x6f\154\x6c\141\162\x65\141\137\x69\144\75" . $this->getProperty("\160\141\x79\162\x6f\154\x6c\x61\x72\x65\x61\x5f\151\x64"); } if ($this->isPropertySet("\165\x73\x65\162\x5f\151\144", "\x56")) { $Sql .= "\40\x41\x4e\104\x20\165\163\x65\x72\137\x69\144\x3d" . $this->getProperty("\165\x73\145\x72\137\151\x64"); } if ($this->isPropertySet("\x69\x73\x41\x63\164\151\x76\x65", "\126")) { $Sql .= "\x20\101\116\x44\x20\x69\163\101\143\164\x69\x76\x65\x3d" . $this->getProperty("\151\163\101\143\164\151\166\x65"); } if ($this->isPropertySet("\x4f\x52\104\x45\x52\x42\x59", "\x56")) { $Sql .= "\40\x4f\x52\x44\x45\122\40\102\131\x20" . $this->getProperty("\x4f\122\104\105\122\102\131"); } if ($this->isPropertySet("\x6c\151\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\x74")); } return $this->dbQuery($Sql); } public function lstempnationality() { $Sql = "\123\x45\114\105\103\124\x20\xa\11\x9\x9\x9\x9\145\155\160\x6e\141\x74\x69\x6f\x6e\x61\x6c\151\x74\171\137\x69\144\x2c\xa\x9\11\x9\11\11\165\x73\145\x72\137\x69\144\x2c\xa\x9\11\x9\11\11\x65\x6d\160\156\141\164\x69\x6f\156\141\154\x69\164\171\54\xa\11\x9\x9\11\11\145\x6e\x74\x65\162\171\x5f\144\141\x74\145\x2c\xa\11\11\11\11\x9\151\163\x41\143\x74\x69\166\145\12\x9\11\11\x9\106\122\x4f\115\12\x9\11\11\x9\162\x73\137\x74\x62\x6c\137\145\x6d\160\x6e\x61\164\151\157\156\x61\x6c\x69\164\x79\xa\x9\x9\11\x9\127\x48\105\x52\105\x20\12\11\11\11\11\11\x31\75\61"; if ($this->isPropertySet("\x65\155\x70\156\x61\164\151\x6f\x6e\141\154\151\164\x79\137\x69\144", "\126")) { $Sql .= "\40\x41\116\104\40\x65\x6d\160\x6e\141\164\151\157\156\x61\154\151\x74\171\x5f\x69\x64\x3d" . $this->getProperty("\145\155\x70\x6e\141\164\151\x6f\156\x61\x6c\151\x74\171\x5f\151\144"); } if ($this->isPropertySet("\x75\x73\145\x72\x5f\x69\144", "\126")) { $Sql .= "\40\x41\x4e\x44\40\165\x73\x65\162\137\x69\x64\75" . $this->getProperty("\x75\163\145\x72\137\151\144"); } if ($this->isPropertySet("\151\163\x41\x63\164\x69\166\x65", "\126")) { $Sql .= "\40\x41\116\104\x20\151\x73\101\x63\164\x69\x76\145\75" . $this->getProperty("\x69\163\101\143\164\151\166\145"); } if ($this->isPropertySet("\x4f\x52\x44\x45\x52\x42\x59", "\x56")) { $Sql .= "\x20\117\122\x44\105\122\x20\x42\131\40" . $this->getProperty("\117\122\x44\x45\x52\102\131"); } if ($this->isPropertySet("\154\151\155\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function lstShifts() { $Sql = "\123\105\x4c\105\x43\124\x20\xa\11\x9\11\11\x9\x73\x68\x69\146\164\x5f\x69\144\x2c\xa\x9\11\x9\11\x9\x75\163\145\x72\137\x69\x64\54\xa\11\11\11\11\x9\163\150\151\x66\x74\x5f\156\x61\155\145\54\12\11\x9\11\x9\x9\x73\150\x69\x66\x74\137\x73\164\54\xa\x9\11\x9\11\x9\x73\150\151\x66\x74\x5f\x65\x74\x2c\xa\11\11\x9\11\11\163\x68\151\146\x74\x5f\154\151\x67\x74\x2c\12\x9\11\11\11\11\163\x68\151\146\x74\137\x6c\157\147\x74\54\xa\x9\11\x9\x9\11\163\x68\x69\x66\164\137\145\x69\147\x74\x2c\12\11\x9\x9\11\x9\163\x68\151\146\164\137\x65\157\x67\x74\54\xa\x9\11\11\x9\11\163\x68\x69\146\164\137\x62\x74\54\xa\x9\x9\11\x9\x9\146\165\x6c\x6c\137\x6c\x61\x74\145\x5f\151\156\x2c\xa\x9\11\x9\x9\x9\x68\141\154\x66\137\x6c\x61\164\x65\x5f\151\156\x2c\xa\11\11\x9\11\11\x71\165\x74\x72\x5f\x6c\x61\x74\x65\137\x69\156\x2c\xa\11\11\x9\x9\11\146\x75\154\x6c\x5f\x6f\146\146\137\142\145\x66\x2c\xa\x9\11\11\11\11\x68\141\x6c\146\137\157\146\x66\x5f\x62\x65\146\137\163\164\x61\162\164\54\12\11\11\x9\11\x9\150\141\x6c\x66\137\x6f\x66\146\x5f\x62\x65\x66\137\145\156\144\54\xa\11\x9\11\x9\11\161\165\164\162\137\x6f\x66\146\137\x62\x65\146\x5f\x73\164\x61\x72\164\54\xa\x9\x9\x9\x9\x9\x71\165\164\162\137\157\x66\x66\x5f\x62\145\146\137\x65\x6e\x64\54\xa\11\x9\11\x9\11\x74\145\156\x5f\x6f\x66\146\x5f\142\x65\146\x5f\x73\x74\141\162\x74\54\xa\x9\x9\11\11\11\x74\x65\156\x5f\157\146\146\x5f\142\x65\146\137\145\x6e\x64\x2c\12\x9\x9\11\x9\x9\154\151\147\164\137\163\x74\141\x74\165\163\x2c\12\x9\x9\11\x9\x9\x65\157\147\x74\137\163\x74\x61\x74\165\163\54\xa\x9\11\11\x9\x9\145\156\x74\x65\162\171\137\x64\141\x74\145\x2c\xa\x9\x9\11\x9\x9\x69\163\x41\x63\164\x69\166\145\xa\x9\11\x9\11\x46\122\x4f\115\12\11\x9\x9\11\x9\x72\x73\137\164\x62\x6c\x5f\163\150\x69\146\164\163\12\11\11\11\11\x57\x48\x45\122\x45\x20\12\11\x9\x9\x9\11\x31\75\x31"; if ($this->isPropertySet("\x73\x68\151\146\x74\x5f\x69\144", "\126")) { $Sql .= "\40\x41\116\x44\40\163\x68\x69\x66\x74\x5f\151\144\75" . $this->getProperty("\163\x68\151\x66\x74\x5f\x69\x64"); } if ($this->isPropertySet("\165\163\145\162\x5f\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\165\163\x65\162\137\151\144\75" . $this->getProperty("\x75\x73\x65\x72\137\151\144"); } if ($this->isPropertySet("\151\x73\101\x63\164\151\x76\x65", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\151\163\101\143\164\x69\166\x65\75" . $this->getProperty("\151\163\x41\143\164\151\x76\x65"); } if ($this->isPropertySet("\x4f\122\104\105\x52\102\x59", "\x56")) { $Sql .= "\40\x4f\122\104\x45\122\40\x42\x59\x20" . $this->getProperty("\x4f\122\x44\x45\122\102\x59"); } if ($this->isPropertySet("\154\x69\155\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\x6d\151\164")); } return $this->dbQuery($Sql); } public function lstLeaveTypes() { $Sql = "\x53\105\x4c\x45\x43\x54\x20\xa\11\11\11\x9\x9\154\145\141\x76\145\137\x74\x79\160\x65\x5f\151\144\x2c\xa\x9\11\11\11\x9\x75\163\x65\x72\x5f\151\x64\54\12\x9\x9\x9\x9\x9\154\x65\141\x76\x65\137\x6e\x61\x6d\x65\54\xa\11\x9\11\x9\x9\145\x6e\164\x65\x72\x79\137\144\x61\164\x65\x2c\xa\x9\11\11\x9\x9\x69\163\101\143\164\x69\166\x65\12\x9\x9\11\11\x46\x52\117\x4d\xa\11\11\11\x9\x9\162\x73\x5f\164\142\154\x5f\154\145\141\166\145\137\x74\171\160\x65\xa\x9\x9\x9\x9\x57\110\x45\122\x45\x20\12\11\11\11\11\11\x31\75\x31"; if ($this->isPropertySet("\154\145\141\166\x65\x5f\x74\171\x70\145\137\151\144", "\126")) { $Sql .= "\40\x41\116\104\40\154\x65\x61\x76\x65\137\x74\171\160\x65\137\151\144\x3d" . $this->getProperty("\154\x65\x61\x76\x65\137\x74\x79\x70\145\137\x69\x64"); } if ($this->isPropertySet("\165\163\145\x72\x5f\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x75\163\x65\162\x5f\x69\144\x3d" . $this->getProperty("\165\163\x65\x72\137\151\x64"); } if ($this->isPropertySet("\x69\163\x41\x63\x74\151\x76\145", "\x56")) { $Sql .= "\x20\101\116\104\x20\151\x73\x41\143\x74\151\x76\145\x3d" . $this->getProperty("\x69\163\x41\143\x74\151\x76\x65"); } if ($this->isPropertySet("\x4f\x52\x44\x45\122\x42\x59", "\126")) { $Sql .= "\x20\x4f\x52\x44\x45\x52\x20\102\131\x20" . $this->getProperty("\117\x52\x44\x45\122\x42\131"); } if ($this->isPropertySet("\x6c\151\155\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\x74")); } return $this->dbQuery($Sql); } public function lstHolidays() { $Sql = "\x53\x45\x4c\105\103\x54\40\xa\11\x9\11\x9\11\150\157\154\x69\x64\141\171\x5f\151\144\54\xa\11\x9\x9\11\x9\x75\x73\145\162\x5f\x69\x64\x2c\12\11\11\x9\x9\x9\150\x6f\154\151\x64\141\x79\137\x6e\141\155\x65\x2c\xa\x9\x9\11\11\x9\x68\x6f\154\x69\144\x61\171\137\163\x64\54\xa\x9\x9\x9\x9\11\150\157\154\x69\x64\x61\x79\x5f\145\144\x2c\12\11\11\x9\x9\x9\145\156\x74\145\162\171\x5f\x64\x61\x74\145\x2c\12\11\11\11\11\11\151\x73\x41\143\x74\151\x76\x65\12\x9\11\11\11\x46\x52\x4f\115\xa\x9\11\x9\x9\11\162\163\x5f\x74\142\154\x5f\150\x6f\x6c\x69\144\x61\x79\163\12\11\11\11\x9\x57\110\105\x52\x45\x20\xa\x9\x9\11\x9\x9\61\75\x31"; if ($this->isPropertySet("\x68\157\154\x69\144\141\x79\137\151\x64", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\150\157\x6c\151\x64\x61\x79\137\x69\x64\x3d" . $this->getProperty("\x68\157\x6c\x69\144\x61\x79\137\x69\144"); } if ($this->isPropertySet("\165\x73\x65\x72\137\151\x64", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\165\x73\x65\162\137\x69\x64\75" . $this->getProperty("\165\163\x65\162\x5f\x69\144"); } if ($this->isPropertySet("\x44\x41\124\x45\x46\111\x4c\124\105\122", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\150\x6f\154\x69\x64\141\171\x5f\163\144\x20\102\x45\124\127\105\x45\116\x20\x27" . $this->getProperty("\x53\124\101\x52\x54\104\x41\124\105") . "\x27\x20\101\x4e\x44\x20\47" . $this->getProperty("\x45\x4e\x44\x44\101\x54\x45") . "\47"; } if ($this->isPropertySet("\150\157\x6c\151\144\x61\171\137\x73\x64", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\x68\x6f\154\x69\144\141\171\x5f\x73\144\75\47" . $this->getProperty("\x68\157\x6c\x69\144\141\171\137\163\x64") . "\47"; } if ($this->isPropertySet("\150\x6f\x6c\x69\144\141\x79\x5f\x73\x64\x5f\165\160", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\150\x6f\154\x69\144\141\x79\137\x73\144\40\76\75\x20\47" . $this->getProperty("\150\157\154\x69\144\x61\171\137\163\x64\x5f\x75\x70") . "\x27"; } if ($this->isPropertySet("\x68\157\154\x69\144\x61\x79\x5f\145\144", "\126")) { $Sql .= "\40\101\x4e\x44\40\x68\157\154\x69\x64\141\171\137\x65\144\75\x27" . $this->getProperty("\150\157\x6c\151\144\x61\171\x5f\145\144") . "\47"; } if ($this->isPropertySet("\151\163\x41\143\164\151\x76\145", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\151\x73\x41\143\164\151\x76\145\x3d" . $this->getProperty("\151\163\x41\143\164\x69\166\x65"); } if ($this->isPropertySet("\x4f\x52\x44\x45\122\102\131", "\x56")) { $Sql .= "\x20\x4f\122\104\105\x52\x20\x42\x59\x20" . $this->getProperty("\117\122\x44\x45\x52\x42\x59"); } if ($this->isPropertySet("\154\x69\155\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstYearlyLeaveType() { $Sql = "\x53\x45\114\x45\x43\x54\x20\xa\x9\11\x9\11\11\x79\145\x61\x72\x6c\x79\137\x6c\145\x61\166\145\x5f\x74\171\160\x65\137\x69\144\54\12\x9\x9\11\x9\11\x75\x73\145\162\x5f\151\144\54\12\11\x9\x9\x9\x9\171\145\141\162\154\171\x5f\154\145\x61\166\145\x5f\156\141\x6d\145\54\12\x9\11\11\11\11\156\x75\155\x62\145\x72\x5f\x6f\146\x5f\x6c\x65\x61\x76\145\x2c\xa\11\x9\x9\x9\11\x65\x6e\164\145\162\171\137\x64\141\164\x65\54\12\x9\x9\x9\11\x9\151\x73\101\143\x74\x69\166\145\54\xa\x9\11\11\11\x9\x79\145\x61\162\x6c\171\137\x6c\x65\141\x76\145\137\164\171\x70\x65\xa\x9\x9\x9\11\x46\122\x4f\x4d\xa\11\x9\11\x9\x9\162\163\x5f\164\142\x6c\x5f\171\x65\x61\162\x6c\171\x5f\x6c\145\x61\x76\145\x5f\x74\171\160\145\xa\x9\x9\x9\x9\x57\110\x45\122\x45\40\12\x9\x9\11\11\x9\x31\75\x31"; if ($this->isPropertySet("\171\x65\141\x72\x6c\171\x5f\154\x65\141\166\x65\x5f\164\171\x70\x65\x5f\151\144", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\171\145\x61\x72\x6c\171\137\x6c\x65\x61\x76\145\x5f\x74\x79\x70\145\137\151\144\75" . $this->getProperty("\171\145\141\x72\154\x79\x5f\154\x65\141\x76\x65\x5f\x74\x79\160\x65\x5f\151\144"); } if ($this->isPropertySet("\x75\163\x65\162\137\x69\144", "\126")) { $Sql .= "\x20\101\x4e\x44\40\x75\x73\145\x72\137\x69\144\x3d" . $this->getProperty("\x75\163\x65\162\137\151\144"); } if ($this->isPropertySet("\x69\163\x41\x63\164\151\166\145", "\126")) { $Sql .= "\40\x41\116\x44\x20\x69\163\x41\143\x74\x69\166\x65\x3d" . $this->getProperty("\151\x73\x41\143\164\151\166\145"); } if ($this->isPropertySet("\171\145\141\x72\154\171\x5f\x6c\x65\x61\x76\x65\x5f\x74\171\x70\x65", "\x56")) { $Sql .= "\x20\101\116\x44\x20\171\x65\x61\162\154\171\137\x6c\x65\x61\166\145\x5f\x74\171\160\x65\x3d" . $this->getProperty("\x79\145\x61\x72\x6c\171\137\154\x65\141\x76\145\x5f\164\x79\x70\145"); } if ($this->isPropertySet("\117\x52\x44\x45\122\x42\131", "\126")) { $Sql .= "\40\x4f\122\x44\105\x52\40\x42\131\40" . $this->getProperty("\x4f\122\x44\105\122\102\x59"); } if ($this->isPropertySet("\154\151\155\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstUserLeaveRequest() { $Sql = "\x53\x45\x4c\105\x43\x54\12\x9\11\x9\x9\x9\165\x6c\162\56\154\x65\x61\166\145\x5f\x72\145\161\x75\x65\x73\164\x5f\x69\144\54\xa\11\x9\x9\11\x9\165\154\x72\56\x75\x73\145\162\137\x69\144\54\xa\x9\x9\11\11\11\165\x6c\x72\x2e\154\157\143\141\164\151\157\x6e\137\x69\144\54\12\11\11\11\11\11\165\x6c\x72\56\x6c\145\x61\x76\x65\x5f\x74\x79\x70\x65\x5f\151\144\54\xa\11\11\x9\x9\11\165\x6c\162\56\x79\x65\x61\162\x6c\x79\x5f\154\145\x61\x76\x65\x5f\x69\x64\54\xa\11\11\x9\x9\x9\165\x6c\x72\x2e\154\145\141\166\x65\x5f\162\x65\141\163\157\x6e\54\xa\11\11\11\x9\11\x75\154\162\56\154\x65\x61\x76\x65\x5f\x6f\146\x2c\12\x9\x9\x9\x9\x9\165\x6c\x72\x2e\154\x65\141\x76\x65\137\163\144\54\xa\x9\x9\11\11\11\165\x6c\162\56\154\145\141\x76\145\x5f\x65\x64\x2c\12\11\x9\x9\x9\x9\x75\154\162\56\146\x6f\x72\x77\141\x72\144\x5f\x64\151\x72\x65\x63\x74\x6f\x72\54\xa\x9\11\11\11\11\165\x6c\162\56\x63\157\155\160\141\x6e\171\137\x69\x64\x2c\12\x9\11\11\11\x9\x75\x6c\162\56\x64\x65\x70\x61\162\x74\x6d\145\x6e\164\x5f\x69\144\x2c\xa\11\x9\x9\x9\x9\165\154\162\x2e\x6c\x65\x61\x76\x65\x5f\x73\x74\x61\x74\165\163\54\xa\11\x9\x9\x9\x9\165\154\x72\x2e\x68\x72\x5f\151\x64\x2c\xa\11\x9\11\11\x9\x75\x6c\x72\x2e\145\x6e\164\x65\162\x79\x5f\x64\141\x74\x65\x2c\12\11\x9\x9\11\x9\x75\x6c\162\56\x69\163\101\143\x74\x69\166\x65\x2c\12\11\11\x9\x9\11\165\154\162\56\x6e\x6f\x6f\146\x6c\x65\141\166\145\x2c\xa\11\11\11\11\11\x6c\164\56\154\x65\141\x76\x65\137\x6e\x61\x6d\145\54\xa\x9\11\x9\x9\x9\171\x6c\x74\x2e\171\145\x61\162\x6c\x79\x5f\154\145\141\166\x65\x5f\x6e\141\x6d\x65\54\12\x9\x9\x9\x9\x9\x79\154\x74\56\x79\145\141\162\154\171\x5f\154\x65\x61\166\145\137\164\171\x70\145\xa\x9\x9\11\x9\x46\x52\117\115\12\x9\11\x9\x9\11\162\163\137\x74\x62\x6c\137\x75\x73\x65\162\137\154\x65\x61\x76\145\137\162\x65\161\x75\x65\x73\x74\x20\141\163\40\x75\x6c\x72\12\11\11\11\x9\11\x49\116\116\105\x52\x20\x4a\x4f\111\x4e\40\162\163\137\164\x62\x6c\137\154\145\141\166\x65\137\x74\x79\x70\x65\x20\141\x73\x20\154\164\12\x9\11\11\x9\11\x9\117\116\x20\x28\x75\x6c\162\x2e\x6c\145\x61\166\145\x5f\164\171\x70\x65\137\x69\x64\x20\75\x20\x6c\164\x2e\x6c\145\x61\x76\x65\137\x74\x79\x70\145\x5f\x69\x64\51\xa\11\11\11\x9\x9\x49\116\116\x45\122\x20\x4a\117\111\x4e\40\162\x73\137\164\142\154\137\x79\145\141\x72\154\171\x5f\x6c\145\141\166\x65\x5f\x74\171\160\145\40\x61\163\40\x79\x6c\x74\xa\11\x9\11\11\11\x9\x4f\x4e\40\x28\x75\154\162\x2e\x79\145\141\x72\154\x79\x5f\x6c\145\x61\166\x65\137\x69\x64\40\75\x20\x79\x6c\x74\x2e\x79\x65\x61\x72\154\171\x5f\154\x65\141\166\145\x5f\x74\171\160\145\137\x69\144\51\xa\11\x9\x9\11\x57\x48\105\122\105\40\xa\x9\11\x9\11\x9\61\75\x31"; if ($this->isPropertySet("\154\x65\141\166\145\x5f\162\x65\161\x75\145\x73\x74\137\151\144", "\126")) { $Sql .= "\x20\101\116\104\x20\x75\154\162\56\154\145\141\x76\x65\137\x72\x65\x71\x75\145\x73\x74\x5f\151\x64\75" . $this->getProperty("\154\x65\x61\166\x65\137\x72\x65\x71\x75\x65\163\x74\137\151\144"); } if ($this->isPropertySet("\165\163\x65\x72\137\x69\144", "\x56")) { $Sql .= "\40\101\116\x44\40\x75\154\162\x2e\x75\163\x65\162\x5f\151\144\x3d" . $this->getProperty("\165\163\145\162\x5f\151\x64"); } if ($this->isPropertySet("\165\x73\x65\x72\137\151\x64\137\x6e\157\x74", "\x56")) { $Sql .= "\x20\x41\116\x44\40\x75\x6c\162\56\165\x73\145\x72\137\151\144\41\75" . $this->getProperty("\x75\163\145\x72\x5f\x69\144\x5f\x6e\x6f\164"); } if ($this->isPropertySet("\x6c\x65\141\x76\x65\x5f\163\x64\137\x75\160", "\126")) { $Sql .= "\x20\101\x4e\x44\40\x75\154\x72\56\154\x65\x61\166\x65\x5f\x73\x64\40\76\x3d\x27" . $this->getProperty("\154\x65\x61\166\145\137\163\144\137\x75\x70") . "\x27"; } if ($this->isPropertySet("\154\145\x61\166\x65\x5f\x65\x64\137\x64\x77", "\126")) { $Sql .= "\x20\x41\116\104\40\x75\154\162\x2e\x6c\145\141\166\145\137\x65\144\x20\x3c\x3d\x27" . $this->getProperty("\154\x65\141\x76\145\137\x65\144\137\x64\x77") . "\47"; } if ($this->isPropertySet("\x6c\x6f\143\x61\164\151\157\x6e\x5f\x69\144", "\126")) { $Sql .= "\x20\101\x4e\x44\40\165\x6c\162\x2e\x6c\157\x63\x61\x74\151\157\156\137\151\144\75" . $this->getProperty("\x6c\157\143\x61\164\151\x6f\156\137\x69\144"); } if ($this->isPropertySet("\x6c\145\141\x76\145\x5f\157\x66", "\126")) { $Sql .= "\40\101\116\x44\40\165\154\x72\56\x6c\145\x61\x76\x65\137\x6f\x66\75" . $this->getProperty("\154\x65\x61\166\145\x5f\x6f\146"); } if ($this->isPropertySet("\154\x65\x61\166\145\137\x74\x79\160\x65\137\x69\144", "\126")) { $Sql .= "\x20\x41\116\x44\x20\x75\x6c\162\56\x6c\x65\141\x76\145\137\164\x79\160\x65\137\x69\x64\75" . $this->getProperty("\154\145\x61\x76\145\x5f\164\171\160\x65\137\x69\x64"); } if ($this->isPropertySet("\146\157\x72\167\x61\162\144\137\144\x69\162\x65\x63\x74\x6f\162", "\126")) { $Sql .= "\x20\x41\116\x44\x20\165\154\x72\x2e\146\157\162\x77\x61\x72\144\x5f\x64\151\162\x65\x63\164\157\x72\x3d" . $this->getProperty("\x66\x6f\x72\167\141\162\144\137\x64\x69\162\x65\x63\164\x6f\162"); } if ($this->isPropertySet("\x63\157\155\160\141\156\x79\137\x69\144", "\x56")) { $Sql .= "\40\x41\116\x44\40\165\154\162\x2e\x63\x6f\x6d\160\x61\x6e\171\x5f\x69\x64\75" . $this->getProperty("\x63\157\155\160\x61\x6e\x79\137\x69\x64"); } if ($this->isPropertySet("\x64\x65\x70\141\x72\164\155\x65\156\164\x5f\x69\144", "\x56")) { $Sql .= "\40\x41\116\x44\x20\165\x6c\162\x2e\x64\x65\160\141\162\x74\x6d\x65\x6e\x74\x5f\x69\144\75" . $this->getProperty("\x64\145\x70\x61\162\x74\155\x65\x6e\164\x5f\151\x64"); } if ($this->getProperty("\x64\145\160\x61\162\164\x6d\x65\156\164\137\x69\144\x5f\x61\x72\x72\141\171", "\126")) { $Sql .= "\x20\101\116\x44\40\x75\154\x72\56\144\145\x70\141\x72\164\x6d\x65\156\164\137\x69\144\40\x49\116\x20\50" . $this->getProperty("\144\x65\160\141\x72\164\155\145\156\164\x5f\x69\144\x5f\x61\162\x72\141\x79") . "\51"; } if ($this->isPropertySet("\x6c\145\141\x76\145\x5f\163\164\x61\164\x75\x73", "\x56")) { $Sql .= "\x20\x41\116\x44\40\x75\154\162\x2e\154\x65\x61\166\x65\x5f\x73\164\141\164\165\x73\75" . $this->getProperty("\154\145\141\x76\x65\137\163\x74\x61\x74\x75\x73"); } if ($this->isPropertySet("\x68\x72\137\151\x64", "\126")) { $Sql .= "\40\101\x4e\104\x20\x75\154\162\56\150\x72\137\151\x64\75" . $this->getProperty("\150\x72\137\151\x64"); } if ($this->isPropertySet("\x69\163\101\143\164\x69\166\145", "\126")) { $Sql .= "\40\101\116\x44\x20\x75\x6c\x72\x2e\x69\163\x41\x63\x74\x69\166\x65\x3d" . $this->getProperty("\x69\163\101\143\164\151\x76\x65"); } if ($this->isPropertySet("\x69\x73\101\x63\164\151\166\x65\x5f\156\157\164", "\126")) { $Sql .= "\x20\x41\116\104\x20\165\x6c\162\56\x69\x73\101\x63\164\x69\x76\145\41\x3d" . $this->getProperty("\151\163\x41\x63\x74\x69\x76\x65\x5f\156\157\164"); } if ($this->isPropertySet("\x4f\x52\x44\x45\122\102\131", "\x56")) { $Sql .= "\x20\117\x52\x44\105\122\x20\x42\x59\40" . $this->getProperty("\x4f\x52\x44\105\122\x42\x59"); } if ($this->isPropertySet("\154\x69\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\151\164")); } return $this->dbQuery($Sql); } public function lstLeads() { $Sql = "\x53\105\114\x45\x43\124\x20\12\11\11\11\11\x9\x6c\145\141\144\163\137\x69\144\x2c\xa\x9\11\x9\x9\11\x64\x6d\155\137\x75\163\145\x72\x5f\x69\144\54\xa\x9\x9\x9\11\11\143\154\151\145\156\x74\137\x6e\141\x6d\145\x2c\xa\11\11\x9\11\11\143\x6c\151\145\x6e\164\137\160\150\157\x6e\145\137\x6e\x75\155\x62\x65\162\x2c\xa\11\11\11\11\11\x63\154\x69\145\x6e\164\137\x65\155\141\x69\154\x2c\12\x9\x9\x9\11\11\x63\x6c\x69\x65\x6e\164\x5f\x6d\145\x73\x73\x61\147\145\x2c\12\x9\11\11\x9\11\x6c\145\141\144\137\x64\x61\x74\145\x2c\12\11\x9\x9\11\x9\154\145\141\x64\137\146\162\x6f\155\x5f\x69\x64\x2c\xa\x9\x9\11\x9\11\145\x6e\164\145\162\171\137\144\x61\164\145\164\151\x6d\x65\x2c\12\11\11\x9\x9\11\162\x6d\137\165\163\x65\162\x5f\151\x64\x2c\xa\11\11\x9\11\x9\x72\155\137\154\145\141\x64\x5f\x73\164\x61\x74\165\x73\54\12\11\11\x9\x9\11\x72\x6d\x5f\x6c\145\x61\144\137\166\x69\145\167\137\144\141\164\x65\164\x69\155\x65\54\xa\11\11\x9\11\x9\162\x6d\137\x61\143\164\151\x6f\156\x5f\x64\141\x74\145\x74\x69\155\x65\x2c\xa\11\x9\11\11\11\x72\x6d\x5f\154\145\141\144\137\x66\x77\144\x5f\163\x74\x61\x74\x75\x73\x2c\12\x9\x9\x9\11\x9\x72\x6d\137\154\145\141\144\137\x66\x77\x64\x5f\144\141\164\145\x74\151\155\145\x2c\xa\x9\x9\11\11\x9\x61\163\163\x69\147\156\137\x6c\157\x63\x61\x74\151\157\x6e\x5f\151\x64\54\xa\x9\11\11\x9\11\x61\163\x73\x69\147\156\137\164\x65\141\155\x5f\x6c\x65\141\144\137\151\x64\54\12\x9\x9\x9\11\x9\141\x73\x73\x69\x67\156\x5f\164\145\x61\155\x6c\145\x61\x64\137\x64\141\x74\145\164\x69\155\145\54\12\x9\11\11\11\x9\x61\x73\x73\151\x67\156\x5f\x61\x67\x65\156\164\x5f\163\164\141\x74\x75\163\x2c\12\x9\11\x9\11\11\141\x73\163\151\147\x6e\x5f\144\x61\164\x65\x74\x69\155\x65\54\xa\x9\11\11\11\11\x69\x73\x41\143\x74\x69\166\x65\x2c\12\11\x9\11\11\x9\x6c\145\141\144\x5f\163\164\x61\x74\x75\x73\xa\11\11\11\x9\106\x52\x4f\115\xa\11\11\x9\x9\11\162\x73\x5f\164\142\x6c\x5f\x6c\145\x61\x64\x73\xa\x9\11\11\x9\127\x48\x45\x52\105\x20\xa\x9\11\11\11\11\61\75\x31"; if ($this->isPropertySet("\154\145\x61\144\x73\x5f\151\x64", "\x56")) { $Sql .= "\x20\x41\x4e\104\x20\154\x65\141\144\x73\137\151\144\x3d" . $this->getProperty("\x6c\x65\x61\x64\163\x5f\151\144"); } if ($this->isPropertySet("\144\x6d\155\137\165\163\145\162\x5f\x69\x64", "\126")) { $Sql .= "\40\x41\x4e\104\x20\x64\x6d\x6d\137\165\x73\x65\x72\x5f\151\144\x3d" . $this->getProperty("\x64\155\x6d\137\165\163\x65\x72\x5f\x69\x64"); } if ($this->isPropertySet("\154\145\x61\x64\x5f\146\162\x6f\155\137\x69\x64", "\126")) { $Sql .= "\40\101\116\104\40\154\145\x61\x64\x5f\x66\x72\157\155\x5f\x69\144\75" . $this->getProperty("\x6c\x65\x61\144\137\146\x72\157\x6d\137\x69\x64"); } if ($this->isPropertySet("\x72\155\x5f\165\x73\x65\x72\137\151\144", "\126")) { $Sql .= "\x20\101\x4e\104\40\x72\x6d\137\x75\x73\145\162\x5f\x69\x64\x3d" . $this->getProperty("\x72\x6d\x5f\165\x73\x65\x72\x5f\151\144"); } if ($this->isPropertySet("\162\x6d\x5f\x6c\145\x61\144\137\x73\x74\141\164\165\x73", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\162\x6d\x5f\154\x65\141\144\137\163\164\x61\164\165\163\75" . $this->getProperty("\162\x6d\137\x6c\145\141\144\x5f\163\x74\x61\164\165\x73"); } if ($this->isPropertySet("\162\155\137\x6c\145\x61\x64\137\163\x74\x61\x74\165\x73\x5f\156\x6f\x74", "\126")) { $Sql .= "\x20\x41\116\x44\x20\x72\x6d\137\x6c\145\141\x64\137\163\164\141\164\x75\163\x21\75" . $this->getProperty("\x72\155\137\x6c\145\141\144\x5f\x73\164\141\x74\165\x73\x5f\156\x6f\x74"); } if ($this->isPropertySet("\x72\155\x5f\154\x65\141\144\x5f\x66\167\x64\x5f\163\164\141\164\165\163", "\x56")) { $Sql .= "\x20\101\116\104\40\162\x6d\137\x6c\x65\x61\x64\x5f\x66\x77\x64\137\x73\164\141\164\165\x73\x3d" . $this->getProperty("\162\x6d\137\154\x65\x61\144\137\x66\x77\144\137\x73\164\x61\164\x75\163"); } if ($this->isPropertySet("\x61\x73\163\151\147\x6e\x5f\x6c\x6f\x63\141\164\x69\x6f\156\x5f\x69\x64", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\141\x73\163\x69\x67\x6e\x5f\x6c\157\143\141\164\x69\157\x6e\137\151\x64\x3d" . $this->getProperty("\141\163\163\x69\x67\x6e\x5f\154\157\x63\141\x74\151\x6f\x6e\137\151\144"); } if ($this->isPropertySet("\141\163\x73\151\147\x6e\x5f\164\x65\x61\155\137\x6c\x65\x61\144\137\151\x64", "\x56")) { $Sql .= "\40\101\x4e\104\x20\x61\163\x73\x69\147\x6e\137\x74\x65\x61\155\x5f\x6c\145\x61\x64\137\151\144\x3d" . $this->getProperty("\141\163\x73\151\x67\x6e\x5f\164\145\141\155\137\154\x65\141\x64\137\151\144"); } if ($this->isPropertySet("\141\x73\x73\x69\147\x6e\x5f\141\147\x65\x6e\164\x5f\x73\164\x61\164\165\163", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\141\x73\x73\x69\x67\x6e\x5f\141\147\145\156\164\137\x73\164\141\164\x75\x73\75" . $this->getProperty("\x61\163\x73\x69\x67\156\x5f\x61\147\145\156\x74\x5f\163\164\x61\x74\165\163"); } if ($this->isPropertySet("\x69\163\101\143\164\x69\166\x65", "\x56")) { $Sql .= "\40\x41\116\104\40\151\x73\x41\143\x74\x69\x76\145\x3d" . $this->getProperty("\151\163\x41\x63\x74\151\x76\145"); } if ($this->isPropertySet("\154\145\141\x64\137\163\x74\x61\164\x75\x73", "\x56")) { $Sql .= "\x20\101\x4e\104\x20\x6c\x65\141\144\x5f\x73\x74\141\x74\165\x73\x3d" . $this->getProperty("\x6c\145\141\144\137\163\x74\141\x74\165\163"); } if ($this->isPropertySet("\x4f\x52\x44\x45\x52\x42\x59", "\x56")) { $Sql .= "\x20\117\122\x44\x45\x52\x20\102\131\x20" . $this->getProperty("\117\x52\x44\x45\122\x42\131"); } if ($this->isPropertySet("\154\x69\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\x74")); } return $this->dbQuery($Sql); } public function lstCountAssigndLeads() { $Sql = "\x53\105\x4c\105\x43\x54\12\11\11\11\x9\11\x72\x73\137\164\142\x6c\x5f\x6c\x65\141\x64\x73\x2e\x61\163\163\151\x67\x6e\x5f\x6c\x6f\x63\141\x74\x69\x6f\156\x5f\151\144\12\x9\x9\11\x9\x9\54\x20\162\x73\137\x74\142\154\137\154\145\x61\144\x73\x5f\141\x73\x73\x69\x67\x6e\56\x61\163\163\x69\147\x6e\137\141\143\164\151\x6f\156\x5f\x73\164\141\164\x75\x73\12\x9\x9\11\11\x9\x2c\x20\x72\163\137\164\x62\x6c\x5f\x6c\x65\x61\x64\x73\x2e\x69\x73\101\143\164\151\166\145\xa\11\x9\x9\x9\106\x52\117\115\12\11\11\11\x9\x9\162\163\137\164\142\x6c\x5f\x6c\145\141\x64\163\xa\x9\11\11\11\x9\111\116\116\105\122\40\x4a\x4f\111\116\40\162\163\137\164\142\x6c\137\154\x65\x61\x64\163\x5f\141\x73\x73\151\x67\156\40\12\x9\11\11\11\x9\11\x4f\116\40\x28\x72\x73\137\x74\x62\154\137\154\145\141\x64\x73\x2e\154\x65\x61\x64\163\x5f\x69\x64\x20\75\40\162\163\137\x74\142\x6c\137\154\145\141\x64\x73\x5f\x61\163\163\x69\x67\156\56\x6c\145\141\144\137\151\144\x29\12\x9\x9\11\x9\x57\110\x45\122\105\40\12\x9\x9\x9\11\x9\61\75\x31"; if ($this->isPropertySet("\141\x73\163\x69\147\x6e\x5f\x6c\x6f\143\x61\x74\151\x6f\x6e\137\151\x64", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x72\163\x5f\x74\142\x6c\137\x6c\145\141\144\x73\56\141\163\163\151\x67\156\137\154\x6f\x63\141\x74\151\x6f\x6e\137\151\144\x3d" . $this->getProperty("\141\x73\x73\x69\147\156\137\154\x6f\143\x61\x74\x69\157\x6e\137\151\144"); } if ($this->isPropertySet("\x61\x73\163\151\x67\x6e\137\x61\x63\x74\x69\157\x6e\x5f\163\164\141\x74\165\x73", "\x56")) { $Sql .= "\x20\101\x4e\104\40\162\163\x5f\164\142\154\x5f\154\x65\x61\x64\x73\137\141\163\163\x69\147\156\56\x61\x73\x73\x69\147\156\137\141\x63\164\151\157\x6e\137\163\164\141\164\x75\x73\75" . $this->getProperty("\x61\x73\163\151\147\156\x5f\141\143\x74\x69\157\156\137\163\164\141\164\165\x73"); } return $this->dbQuery($Sql); } public function lstLeadsAssign() { $Sql = "\123\x45\114\x45\x43\124\xa\x9\11\11\11\x9\x6c\141\163\x2e\141\163\163\151\x67\x6e\x5f\154\x65\x61\144\x5f\151\144\x2c\xa\x9\x9\11\11\11\x6c\141\x73\x2e\154\145\x61\144\x5f\151\x64\x2c\xa\x9\x9\11\11\x9\154\x61\163\x2e\x61\163\x73\x69\147\156\x5f\165\x73\145\162\137\x69\144\x2c\12\11\x9\11\11\11\154\x61\x73\x2e\x61\x73\x73\151\x67\156\137\x66\162\x6f\x6d\x5f\x75\x73\x65\x72\137\x69\144\x2c\12\11\x9\x9\11\11\x6c\x61\163\56\141\x73\x73\151\147\156\x5f\x62\x79\x2c\12\x9\11\11\11\x9\x6c\141\x73\56\141\163\x73\151\x67\156\137\144\x61\x74\x65\x2c\xa\x9\x9\11\x9\x9\154\141\x73\x2e\141\163\x73\x69\147\156\137\x74\151\x6d\145\x2c\12\11\11\11\x9\x9\154\x61\163\56\141\163\x73\151\x67\x6e\x5f\x6c\x65\141\x64\137\163\x74\141\x74\165\163\54\xa\x9\x9\x9\11\x9\x6c\141\163\x2e\x65\156\164\x65\162\171\x5f\144\x61\x74\x65\54\xa\11\x9\11\11\x9\154\141\x73\56\151\163\101\x63\x74\x69\x76\x65\x2c\12\11\x9\x9\11\11\154\141\x73\56\x61\x73\x73\151\147\x6e\137\141\143\x74\x69\x6f\156\x5f\x73\164\x61\164\x75\x73\x2c\12\11\x9\x9\x9\11\x6c\x61\163\x2e\x61\143\164\151\x6f\156\137\x64\x61\x74\145\x2c\xa\x9\x9\11\x9\x9\154\x61\x73\56\x61\143\x74\151\157\156\x5f\164\x69\155\x65\54\12\x9\x9\x9\x9\11\154\141\x2e\x61\163\163\x69\147\156\x5f\154\157\x63\x61\x74\151\x6f\156\137\151\144\12\11\x9\11\11\106\122\x4f\x4d\12\11\x9\11\11\x9\x72\163\137\164\x62\x6c\x5f\154\x65\x61\144\163\137\x61\163\x73\x69\x67\x6e\40\141\163\40\x6c\x61\163\xa\x9\11\x9\x9\11\111\x4e\x4e\x45\122\x20\112\x4f\x49\x4e\x20\x72\x73\x5f\164\142\154\137\x6c\145\141\144\163\40\154\x61\xa\x9\x9\11\11\11\x9\117\116\x20\x28\154\141\x73\56\154\145\141\144\x5f\151\144\x20\x3d\x20\x6c\141\56\154\x65\141\144\x73\137\x69\x64\x29\xa\11\x9\11\11\x57\x48\x45\122\105\x20\12\11\x9\x9\x9\x9\x31\75\x31"; if ($this->isPropertySet("\x61\163\x73\x69\x67\x6e\137\x6c\x65\x61\x64\x5f\151\144", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\154\141\x73\56\141\163\163\x69\x67\156\137\x6c\145\141\x64\137\x69\x64\75" . $this->getProperty("\x61\163\x73\x69\x67\x6e\137\x6c\x65\141\x64\x5f\x69\144"); } if ($this->isPropertySet("\154\x65\x61\144\137\x69\x64", "\x56")) { $Sql .= "\40\101\116\x44\x20\154\141\163\x2e\x6c\145\x61\144\x5f\151\144\75" . $this->getProperty("\x6c\x65\x61\x64\137\151\x64"); } if ($this->isPropertySet("\x61\163\x73\x69\x67\156\x5f\x75\163\145\162\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\154\141\x73\x2e\x61\x73\x73\x69\147\x6e\137\x75\163\145\x72\137\x69\x64\x3d" . $this->getProperty("\x61\163\x73\151\147\156\x5f\165\x73\x65\x72\137\151\x64"); } if ($this->isPropertySet("\x61\163\x73\x69\x67\156\x5f\154\x65\x61\x64\137\x73\164\141\164\x75\163", "\126")) { $Sql .= "\x20\101\x4e\104\x20\154\x61\163\56\x61\x73\x73\151\147\x6e\137\x6c\145\141\x64\x5f\x73\164\141\x74\165\x73\75" . $this->getProperty("\141\x73\163\151\147\x6e\137\154\x65\x61\x64\x5f\x73\x74\141\164\165\163"); } if ($this->isPropertySet("\x61\x73\163\x69\147\156\x5f\154\145\141\144\x5f\163\164\x61\164\165\x73\137\156\157\164", "\126")) { $Sql .= "\x20\101\x4e\104\x20\x6c\141\163\x2e\x61\x73\163\151\147\x6e\x5f\154\145\141\x64\137\163\164\x61\x74\165\x73\x21\x3d" . $this->getProperty("\x61\163\163\x69\147\156\x5f\x6c\x65\141\x64\x5f\163\164\141\x74\165\163\137\156\157\x74"); } if ($this->isPropertySet("\141\163\x73\x69\x67\x6e\x5f\146\x72\157\155\137\165\x73\145\x72\x5f\151\x64", "\x56")) { $Sql .= "\40\x41\116\104\40\154\141\163\x2e\x61\163\163\151\147\156\x5f\x66\162\157\x6d\x5f\165\x73\x65\162\137\x69\144\75" . $this->getProperty("\141\x73\163\151\147\156\137\x66\162\x6f\x6d\x5f\x75\x73\145\x72\x5f\151\x64"); } if ($this->isPropertySet("\141\x73\163\x69\x67\156\x5f\142\x79", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\x6c\x61\163\x2e\141\x73\163\151\147\156\137\142\x79\75" . $this->getProperty("\141\163\163\151\147\x6e\x5f\x62\171"); } if ($this->isPropertySet("\141\x73\x73\151\147\156\137\x64\x61\164\145", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\x6c\141\x73\x2e\x61\x73\x73\x69\x67\x6e\x5f\x64\141\164\145\75\x27" . $this->getProperty("\141\x73\163\x69\147\x6e\137\144\141\164\145") . "\x27"; } if ($this->isPropertySet("\141\x73\163\x69\x67\x6e\x5f\164\151\155\145", "\126")) { $Sql .= "\40\x41\x4e\x44\40\x6c\141\163\x2e\x61\x73\x73\151\x67\x6e\x5f\164\x69\x6d\x65\x3d\x27" . $this->getProperty("\141\163\x73\x69\147\x6e\x5f\x74\151\155\145") . "\47"; } if ($this->isPropertySet("\151\163\101\143\x74\x69\166\x65", "\x56")) { $Sql .= "\x20\x41\116\104\40\x6c\x61\163\x2e\151\163\101\143\x74\151\x76\145\75" . $this->getProperty("\x69\163\101\143\x74\x69\x76\x65"); } if ($this->isPropertySet("\141\163\x73\151\147\x6e\137\x61\143\164\151\x6f\x6e\x5f\x73\x74\141\164\165\163", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\x6c\x61\163\x2e\141\x73\163\x69\147\x6e\137\141\143\164\x69\157\x6e\x5f\163\x74\141\x74\165\x73\x3d" . $this->getProperty("\141\x73\x73\151\x67\156\x5f\x61\x63\164\151\157\156\x5f\x73\164\x61\x74\x75\163"); } if ($this->isPropertySet("\x61\x73\x73\x69\x67\156\137\154\x6f\x63\x61\164\151\157\x6e\137\x69\x64", "\126")) { $Sql .= "\x20\101\116\x44\x20\154\141\x2e\141\163\163\x69\x67\156\x5f\154\157\x63\x61\x74\151\x6f\156\137\x69\x64\75" . $this->getProperty("\x61\163\x73\151\147\x6e\x5f\x6c\x6f\143\141\164\151\x6f\x6e\x5f\x69\144"); } if ($this->isPropertySet("\117\x52\x44\x45\x52\102\x59", "\x56")) { $Sql .= "\x20\117\122\104\105\122\40\102\x59\x20" . $this->getProperty("\x4f\122\x44\x45\122\102\x59"); } if ($this->isPropertySet("\154\151\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\151\x74")); } return $this->dbQuery($Sql); } public function lstAssignAssetscomb() { $Sql = "\x53\x45\114\105\103\124\xa\x9\x9\x9\11\11\154\x61\x73\163\x2e\x61\x73\x73\x69\147\156\137\x61\163\163\x65\x74\137\x69\144\54\12\x9\11\x9\x9\11\x6c\x61\x73\x73\56\141\163\163\145\x74\x5f\151\x64\x2c\12\11\x9\11\x9\11\x6c\x61\163\x73\56\141\x73\x73\151\x67\x6e\137\164\157\54\12\x9\x9\11\11\x9\154\141\163\x73\x2e\141\163\x73\151\147\x6e\x5f\142\x79\54\xa\x9\11\x9\11\x9\154\x61\x73\x73\56\143\x75\x72\162\x65\x6e\x74\137\x73\x74\141\164\165\x73\54\xa\11\11\11\11\x9\x6c\141\163\x73\x2e\x61\x73\163\151\x67\156\x5f\x64\141\x74\x65\x2c\12\x9\x9\11\11\11\x6c\x61\163\x73\56\144\157\143\165\x6d\145\x6e\164\x5f\x66\x69\154\145\x5f\156\141\x6d\145\54\12\x9\11\x9\x9\11\x6c\141\x73\x73\x2e\x64\x6f\x63\165\x6d\145\156\164\137\x66\x69\154\145\x2c\xa\11\x9\x9\x9\11\154\141\163\163\56\151\163\x41\143\164\151\166\145\x2c\xa\x9\x9\x9\x9\x9\141\x64\x2e\141\163\x73\145\164\x5f\156\x61\x6d\x65\x2c\12\11\x9\11\x9\11\x61\144\56\141\163\x73\x65\x74\x5f\163\164\141\x74\165\x73\54\12\x9\x9\11\x9\11\141\144\56\155\x61\x6e\x75\x66\141\x63\x74\x75\x72\x65\162\54\12\11\11\x9\11\11\141\x64\x2e\142\x72\x61\156\144\x2c\12\x9\11\11\11\x9\141\144\x2e\141\163\x73\145\x74\x5f\156\157\x2c\12\x9\x9\x9\x9\11\x61\144\x2e\x73\x65\x72\151\x61\x6c\x5f\x6e\157\54\xa\11\11\x9\x9\x9\141\144\56\x63\141\x74\x61\147\157\x72\171\137\x69\x64\x2c\12\11\x9\11\11\11\141\144\x2e\141\163\x73\145\164\x5f\164\171\x70\145\137\x69\144\54\xa\11\x9\x9\x9\11\x61\x64\56\141\163\x73\145\x74\137\143\x6f\x6e\144\x69\164\x69\157\x6e\12\11\x9\11\x9\106\122\x4f\115\xa\x9\x9\x9\11\162\163\137\164\x62\x6c\x5f\141\163\163\x65\x74\x73\x5f\141\163\x73\x69\147\156\40\x61\163\x20\x6c\141\x73\x73\12\11\x9\x9\x9\x9\x49\116\x4e\105\x52\x20\x4a\x4f\111\116\40\162\x73\x5f\x74\x62\x6c\137\x61\163\163\145\164\163\x20\x61\x64\12\x9\11\x9\11\x9\11\117\x4e\x20\50\x6c\x61\x73\x73\x2e\x61\163\163\x65\164\137\x69\144\x20\75\40\x61\x64\56\141\x73\163\x65\164\x5f\x69\144\51\xa\x9\x9\x9\x9\127\x48\x45\122\105\40\xa\11\11\11\11\11\61\75\61"; if ($this->isPropertySet("\141\x73\163\x69\147\156\137\x61\163\x73\x65\x74\137\x69\x64", "\126")) { $Sql .= "\40\x41\116\104\40\x6c\141\x73\163\x2e\x61\163\163\x69\x67\x6e\137\141\x73\x73\x65\164\137\151\x64\75" . $this->getProperty("\x61\x73\x73\151\x67\x6e\x5f\x61\x73\163\x65\x74\137\x69\144"); } if ($this->isPropertySet("\x61\x73\163\x65\x74\137\151\144", "\x56")) { $Sql .= "\40\x41\116\104\x20\x6c\141\x73\x73\x2e\x61\x73\x73\145\164\137\151\x64\x3d" . $this->getProperty("\141\x73\163\x65\x74\137\151\144"); } if ($this->isPropertySet("\x61\163\163\x69\147\156\137\x74\157", "\126")) { $Sql .= "\x20\101\116\x44\40\154\x61\163\x73\56\x61\x73\163\151\x67\156\137\x74\157\x3d" . $this->getProperty("\x61\x73\x73\151\x67\x6e\x5f\164\157"); } if ($this->isPropertySet("\141\x73\x73\x69\147\x6e\x5f\x62\x79", "\126")) { $Sql .= "\x20\101\x4e\x44\40\154\141\x73\x73\x2e\141\x73\163\151\147\x6e\x5f\x62\x79\75" . $this->getProperty("\x61\x73\x73\151\x67\156\x5f\x62\x79"); } if ($this->isPropertySet("\x63\165\x72\162\x65\x6e\x74\x5f\163\164\x61\x74\165\x73", "\x56")) { $Sql .= "\x20\101\116\104\40\154\141\x73\163\56\x63\x75\162\x72\145\156\x74\x5f\163\164\141\x74\165\x73\x3d" . $this->getProperty("\x63\165\162\x72\x65\x6e\164\x5f\163\x74\141\x74\x75\x73"); } if ($this->isPropertySet("\x61\x73\x73\151\147\x6e\x5f\x64\141\x74\145", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\x6c\x61\x73\163\56\x61\x73\163\151\x67\x6e\137\144\x61\164\x65\75" . $this->getProperty("\x61\x73\x73\151\x67\x6e\137\144\141\x74\145"); } if ($this->isPropertySet("\151\x73\x41\x63\x74\151\x76\x65", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x6c\141\x73\x73\56\151\x73\101\143\x74\151\x76\145\75" . $this->getProperty("\x69\x73\101\143\164\x69\166\145"); } if ($this->isPropertySet("\163\x65\162\151\141\x6c\x5f\x6e\x6f", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\x61\x64\56\163\x65\162\151\141\154\x5f\156\x6f\75" . $this->getProperty("\163\145\x72\x69\x61\x6c\137\x6e\x6f"); } if ($this->isPropertySet("\143\x61\x74\x61\x67\x6f\x72\171\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\116\104\x20\141\144\56\143\x61\164\141\x67\x6f\162\x79\137\151\x64\x3d\x27" . $this->getProperty("\143\141\x74\x61\147\157\162\171\137\x69\144") . "\x27"; } if ($this->isPropertySet("\141\x73\x73\x65\x74\137\x74\171\x70\145\x5f\151\144", "\x56")) { $Sql .= "\40\101\x4e\104\40\141\x64\56\141\x73\x73\145\x74\x5f\x74\171\x70\145\x5f\x69\x64\75" . $this->getProperty("\141\163\x73\145\x74\137\164\171\x70\x65\x5f\x69\144"); } if ($this->isPropertySet("\x61\163\x73\145\164\137\143\157\x6e\x64\151\164\151\x6f\156", "\126")) { $Sql .= "\x20\x41\116\x44\x20\x61\x64\x2e\141\x73\x73\x65\x74\137\143\157\x6e\x64\x69\164\151\x6f\156\75" . $this->getProperty("\x61\x73\x73\x65\x74\x5f\x63\157\x6e\144\x69\164\151\x6f\156"); } if ($this->isPropertySet("\117\122\104\105\122\x42\131", "\x56")) { $Sql .= "\x20\117\122\x44\105\x52\40\102\x59\40" . $this->getProperty("\117\x52\x44\x45\122\102\131"); } if ($this->isPropertySet("\154\151\155\x69\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lstReturnAssetscomb() { $Sql = "\x53\105\x4c\105\x43\124\xa\11\11\x9\x9\x9\x6c\162\141\56\141\x73\163\x69\147\x6e\137\x61\x73\x73\x65\164\137\151\144\54\12\11\11\11\x9\11\154\x72\x61\56\x61\x73\x73\145\x74\x5f\x69\144\54\xa\x9\x9\11\x9\x9\154\162\x61\56\x72\x65\x63\x65\x69\x76\145\x64\137\142\x79\x2c\xa\11\x9\11\11\11\x6c\162\141\56\x72\145\x74\x75\x72\156\145\x64\x5f\144\x61\x74\x65\x2c\xa\x9\x9\11\11\x9\154\162\141\56\x72\145\164\165\162\x6e\137\x72\x65\x61\163\157\156\x2c\xa\x9\x9\x9\11\x9\x6c\162\x61\x2e\x64\x6f\143\165\x6d\x65\x6e\x74\x5f\x66\151\x6c\x65\x2c\12\11\x9\11\x9\x9\x6c\x72\141\x2e\x69\x73\101\143\164\x69\166\x65\x2c\12\x9\x9\11\x9\11\x61\x64\x2e\x61\163\x73\145\164\x5f\x6e\x61\x6d\145\54\xa\11\11\11\11\x9\141\144\56\141\163\x73\x65\x74\137\x73\164\x61\164\x75\163\54\12\11\11\x9\11\x9\x61\144\56\155\x61\x6e\165\146\141\143\x74\165\x72\145\162\x2c\xa\x9\11\11\11\x9\141\x64\56\x62\x72\141\x6e\144\54\xa\x9\x9\11\11\x9\x61\144\x2e\141\x73\x73\x65\x74\x5f\156\157\54\12\x9\11\11\11\11\x61\x64\x2e\x73\145\x72\151\x61\x6c\x5f\156\x6f\54\12\11\x9\x9\11\x9\141\144\x2e\143\141\x74\141\147\x6f\162\171\137\x69\144\x2c\xa\x9\x9\x9\11\x9\x61\x64\x2e\x61\x73\x73\x65\164\x5f\164\171\x70\x65\137\151\144\54\12\11\11\x9\x9\x9\x61\144\x2e\x61\163\x73\x65\x74\x5f\x63\x6f\x6e\144\151\164\151\x6f\156\xa\x9\x9\11\x9\106\x52\117\115\12\x9\11\11\x9\x72\x73\137\x74\x62\x6c\x5f\x72\145\x74\x75\x72\156\137\141\x73\163\145\x74\x20\x61\x73\x20\154\x72\141\12\x9\x9\x9\11\11\111\x4e\116\105\122\x20\112\117\x49\116\40\162\x73\x5f\164\x62\x6c\x5f\x61\x73\163\145\x74\163\40\x61\x64\12\11\11\x9\x9\x9\x9\x4f\116\40\x28\x6c\162\141\56\141\x73\x73\145\x74\137\x69\x64\40\75\40\x61\144\x2e\x61\163\x73\x65\x74\x5f\x69\x64\51\xa\x9\x9\11\x9\x57\x48\x45\122\x45\x20\xa\11\11\x9\11\x9\x31\75\61"; if ($this->isPropertySet("\x61\x73\x73\151\147\156\137\x61\163\163\145\164\137\x69\x64", "\126")) { $Sql .= "\x20\101\x4e\104\40\x6c\x72\x61\x2e\x61\x73\x73\x69\x67\156\137\141\163\163\145\164\137\x69\x64\75" . $this->getProperty("\141\x73\163\x69\147\x6e\x5f\141\163\x73\145\x74\x5f\x69\144"); } if ($this->isPropertySet("\141\x73\x73\x65\164\137\x69\x64", "\x56")) { $Sql .= "\40\x41\116\104\40\x6c\x72\x61\56\x61\163\x73\x65\x74\x5f\151\144\75" . $this->getProperty("\x61\163\163\x65\164\x5f\x69\x64"); } if ($this->isPropertySet("\162\145\143\x65\151\x76\145\x64\137\142\171", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\154\162\x61\56\162\x65\x63\x65\151\166\x65\144\x5f\x62\171\75" . $this->getProperty("\162\145\143\145\151\166\x65\144\137\x62\171"); } if ($this->isPropertySet("\x72\145\164\x75\162\x6e\x65\x64\137\144\x61\164\x65", "\x56")) { $Sql .= "\x20\101\116\104\x20\154\162\x61\x2e\162\145\164\165\162\x6e\x65\144\x5f\x64\x61\x74\145\x3d" . $this->getProperty("\162\x65\164\x75\162\x6e\145\144\137\144\141\x74\145"); } if ($this->isPropertySet("\x72\145\x74\165\x72\156\137\x72\145\141\163\157\156", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\x6c\162\141\56\x72\145\x74\x75\162\x6e\137\x72\x65\x61\163\x6f\156\x3d" . $this->getProperty("\162\145\164\x75\x72\156\137\162\145\141\x73\x6f\x6e"); } if ($this->isPropertySet("\x73\145\162\x69\x61\154\137\156\157", "\126")) { $Sql .= "\40\x41\x4e\x44\40\141\144\56\x73\x65\x72\151\x61\154\x5f\156\x6f\75" . $this->getProperty("\163\x65\162\x69\141\x6c\137\x6e\157"); } if ($this->isPropertySet("\143\x61\164\x61\x67\x6f\x72\x79\137\151\x64", "\x56")) { $Sql .= "\x20\x41\116\104\40\141\x64\x2e\143\x61\164\141\x67\157\x72\171\x5f\151\144\75\x27" . $this->getProperty("\143\x61\164\141\147\x6f\162\171\137\x69\x64") . "\x27"; } if ($this->isPropertySet("\141\163\x73\145\x74\x5f\164\171\x70\x65\137\151\x64", "\x56")) { $Sql .= "\x20\101\116\x44\40\141\x64\x2e\141\163\x73\145\x74\x5f\164\x79\x70\145\137\x69\x64\x3d" . $this->getProperty("\141\163\x73\145\x74\137\164\171\160\x65\137\x69\x64"); } if ($this->isPropertySet("\x61\x73\163\x65\164\x5f\143\x6f\x6e\144\151\x74\x69\x6f\156", "\x56")) { $Sql .= "\40\101\116\x44\x20\x61\144\x2e\141\163\163\x65\164\137\x63\157\x6e\x64\151\x74\x69\157\x6e\75" . $this->getProperty("\141\x73\x73\145\164\x5f\143\157\x6e\x64\151\x74\151\157\156"); } if ($this->isPropertySet("\x4f\122\x44\x45\122\102\x59", "\x56")) { $Sql .= "\x20\x4f\122\104\105\122\x20\x42\131\x20" . $this->getProperty("\117\122\104\105\x52\102\131"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstLeadComments() { $Sql = "\x53\105\x4c\x45\103\x54\x20\12\11\11\x9\11\11\x6c\145\141\x64\137\143\x6f\155\x6d\145\156\164\137\x69\x64\x2c\xa\x9\11\x9\x9\11\154\x65\141\144\x73\137\x69\x64\54\xa\11\x9\11\x9\x9\141\163\163\151\x67\156\137\154\x65\141\144\x5f\x69\144\54\xa\x9\x9\x9\11\x9\x75\x73\x65\162\x5f\151\x64\54\12\11\x9\11\11\x9\154\145\141\x64\137\x63\x6f\x6d\x6d\x65\x6e\164\x2c\xa\11\11\11\x9\x9\145\x6e\164\145\162\171\x5f\144\x61\164\x65\54\12\11\11\11\11\11\141\x73\163\x69\x67\x6e\137\x6c\145\141\144\137\x73\164\x61\164\165\x73\54\12\11\11\x9\11\x9\x69\163\101\x63\x74\x69\x76\x65\xa\x9\11\x9\x9\x46\122\117\x4d\xa\11\11\11\x9\11\162\x73\137\164\x62\x6c\137\x6c\145\x61\x64\x5f\x63\x6f\x6d\x6d\145\x6e\164\163\xa\11\x9\x9\11\127\110\x45\x52\105\x20\xa\x9\11\11\11\11\61\x3d\61"; if ($this->isPropertySet("\x6c\x65\141\144\x5f\143\x6f\155\x6d\145\x6e\x74\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\x6c\145\141\144\x5f\143\157\x6d\x6d\x65\156\x74\137\x69\x64\x3d" . $this->getProperty("\154\145\x61\x64\x5f\143\157\x6d\x6d\145\156\164\x5f\x69\x64"); } if ($this->isPropertySet("\154\x65\141\144\x73\137\151\x64", "\126")) { $Sql .= "\x20\x41\116\104\x20\154\x65\x61\x64\x73\137\x69\144\x3d" . $this->getProperty("\x6c\x65\141\144\x73\x5f\x69\x64"); } if ($this->isPropertySet("\x61\x73\x73\151\147\x6e\x5f\x6c\x65\x61\144\137\x69\x64", "\126")) { $Sql .= "\40\101\116\x44\x20\x61\x73\x73\x69\147\x6e\137\x6c\145\x61\x64\137\x69\x64\x3d" . $this->getProperty("\x61\163\163\151\x67\156\x5f\x6c\x65\x61\x64\x5f\x69\x64"); } if ($this->isPropertySet("\x75\163\145\x72\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\165\163\145\162\137\151\144\75" . $this->getProperty("\165\x73\x65\x72\137\151\x64"); } if ($this->isPropertySet("\151\163\101\143\164\x69\166\x65", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\x69\163\101\x63\x74\x69\166\145\75" . $this->getProperty("\151\x73\x41\x63\164\x69\x76\x65"); } if ($this->isPropertySet("\x4f\122\x44\x45\x52\102\131", "\x56")) { $Sql .= "\x20\117\122\104\x45\x52\x20\x42\131\x20" . $this->getProperty("\117\x52\x44\x45\x52\x42\131"); } if ($this->isPropertySet("\x6c\x69\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstAgentAssignLeads() { $Sql = "\123\x45\x4c\105\103\124\xa\x9\x9\11\x9\11\154\x61\x2e\141\x73\x73\151\147\156\137\x6c\145\141\144\137\x69\144\x2c\xa\11\11\11\x9\11\x6c\x61\x2e\154\x65\141\144\x5f\151\144\54\xa\11\11\11\x9\11\x6c\141\x2e\x61\x73\x73\151\147\156\137\x75\x73\x65\x72\137\x69\144\x2c\12\x9\x9\11\11\x9\x6c\141\x2e\x61\x73\163\x69\147\156\x5f\x66\162\x6f\155\137\165\163\x65\162\137\151\x64\x2c\12\x9\x9\x9\x9\11\x6c\x61\x2e\x61\163\163\151\147\x6e\x5f\142\x79\54\12\x9\x9\x9\11\11\x6c\141\56\x61\163\163\x69\147\x6e\137\144\141\164\x65\54\12\x9\x9\11\x9\11\154\x61\x2e\x61\163\163\x69\x67\156\137\x74\151\155\145\54\xa\x9\11\x9\x9\11\154\x61\x2e\x61\x73\x73\x69\x67\156\137\154\145\141\144\137\163\x74\x61\164\x75\x73\54\12\11\11\x9\11\x9\x6c\x61\x2e\x65\156\164\145\x72\x79\137\x64\x61\x74\x65\x2c\12\x9\x9\11\11\11\x6c\x61\56\x69\x73\101\x63\x74\151\x76\145\54\12\x9\11\x9\11\11\x6c\141\56\141\163\163\151\147\156\137\141\x63\x74\x69\157\x6e\137\x73\164\141\x74\x75\163\x2c\xa\x9\x9\x9\11\11\x6c\141\x2e\141\x63\164\151\x6f\156\x5f\x64\141\x74\145\x2c\xa\11\11\11\x9\x9\x6c\141\56\x61\143\x74\x69\157\x6e\137\164\x69\x6d\145\54\xa\11\x9\11\x9\11\154\56\144\155\x6d\137\x75\163\145\x72\x5f\x69\144\x2c\12\x9\x9\11\x9\x9\154\56\x63\x6c\151\145\156\164\x5f\x6e\x61\155\145\54\12\11\x9\x9\11\x9\154\x2e\x63\154\x69\145\156\x74\137\x70\150\x6f\156\145\x5f\x6e\x75\155\142\x65\x72\x2c\12\11\11\11\x9\11\x6c\x2e\x63\x6c\151\145\156\164\x5f\x65\x6d\141\x69\x6c\54\12\x9\x9\11\x9\11\154\56\143\x6c\151\145\156\164\x5f\x6d\145\x73\163\141\x67\x65\x2c\xa\11\x9\x9\x9\11\154\x2e\154\145\x61\144\x5f\x66\x72\157\155\x5f\x69\144\x2c\xa\11\x9\x9\11\11\154\x2e\x72\155\x5f\165\163\x65\x72\x5f\151\144\x2c\xa\x9\11\x9\x9\x9\154\x2e\x72\155\137\x6c\x65\141\x64\137\163\x74\141\x74\165\163\54\xa\11\11\11\x9\11\154\56\x72\x6d\x5f\154\145\x61\x64\137\x76\x69\145\x77\137\x64\141\x74\145\164\x69\155\145\54\12\11\x9\x9\11\11\x6c\x2e\162\x6d\137\x61\x63\164\151\157\x6e\x5f\144\141\x74\x65\164\x69\155\x65\x2c\xa\11\11\11\11\11\x6c\x2e\162\155\137\x6c\145\141\144\x5f\x66\x77\144\x5f\x73\164\141\x74\x75\x73\54\12\x9\11\11\11\11\x6c\56\x72\155\137\154\145\141\x64\137\x66\x77\x64\137\144\x61\x74\x65\164\151\155\145\x2c\xa\x9\x9\x9\x9\11\x6c\x2e\x61\x73\x73\151\147\156\137\x6c\157\143\141\164\x69\x6f\156\x5f\151\x64\54\xa\11\11\11\11\x9\x6c\x2e\141\x73\x73\x69\147\x6e\137\x74\x65\141\155\137\154\145\141\144\137\151\144\x2c\12\11\11\11\11\x9\154\56\141\x73\163\x69\x67\x6e\x5f\141\x67\145\x6e\164\137\x73\164\141\x74\x75\163\54\xa\11\x9\11\x9\11\x6c\56\141\x73\163\x69\x67\156\x5f\144\x61\x74\145\x74\x69\155\145\x2c\12\x9\11\11\11\x9\x6c\x2e\154\x65\x61\144\x5f\x73\x74\x61\164\x75\x73\12\x9\11\11\11\106\122\x4f\115\xa\x9\x9\x9\11\x9\162\x73\x5f\164\142\154\137\x6c\145\141\x64\x73\x5f\x61\163\163\x69\x67\156\40\x61\x73\x20\154\141\12\11\11\11\x9\x9\111\x4e\x4e\105\x52\40\x4a\x4f\x49\116\40\162\x73\x5f\x74\x62\154\x5f\x6c\x65\x61\144\163\x20\154\12\x9\11\x9\11\x9\11\117\116\x20\50\154\x61\x2e\154\x65\x61\144\137\x69\144\x20\x3d\40\x6c\56\x6c\145\141\x64\163\x5f\x69\x64\51\12\11\x9\x9\x9\127\110\105\122\105\40\12\x9\11\x9\x9\x9\61\75\61"; if ($this->isPropertySet("\141\163\x73\x69\147\156\x5f\x6c\x65\x61\144\137\x69\x64", "\126")) { $Sql .= "\x20\x41\116\104\x20\154\141\56\141\163\x73\151\x67\x6e\137\x6c\145\x61\144\137\x69\x64\75" . $this->getProperty("\141\163\163\x69\147\x6e\x5f\154\145\141\x64\137\151\x64"); } if ($this->isPropertySet("\x6c\145\141\144\137\x69\x64", "\x56")) { $Sql .= "\x20\x41\116\104\40\154\141\56\154\145\141\144\137\x69\144\75" . $this->getProperty("\x6c\145\141\x64\x5f\151\144"); } if ($this->isPropertySet("\x61\x73\x73\x69\147\156\137\165\x73\145\x72\x5f\x69\144", "\x56")) { $Sql .= "\40\101\116\x44\40\x6c\141\x2e\141\163\163\x69\147\x6e\137\165\163\145\x72\x5f\x69\x64\75" . $this->getProperty("\141\163\163\151\147\156\137\165\163\x65\162\137\151\x64"); } if ($this->isPropertySet("\x61\163\163\151\x67\156\137\154\x65\x61\144\x5f\x73\164\141\164\165\x73", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\x6c\141\x2e\141\163\163\151\147\x6e\x5f\154\145\141\144\x5f\163\x74\141\x74\165\x73\75" . $this->getProperty("\141\x73\x73\x69\147\156\x5f\x6c\x65\141\144\x5f\x73\164\x61\164\165\163"); } if ($this->isPropertySet("\x61\163\163\151\x67\156\x5f\154\x65\141\144\x5f\x73\x74\141\164\165\163\x5f\x6e\157\x74", "\x56")) { $Sql .= "\x20\x41\116\x44\40\154\x61\56\141\163\x73\151\x67\156\x5f\x6c\145\x61\x64\x5f\163\164\141\164\165\x73\41\x3d" . $this->getProperty("\x61\163\x73\x69\x67\156\x5f\x6c\x65\x61\144\x5f\x73\164\141\164\x75\x73\x5f\156\157\x74"); } if ($this->isPropertySet("\141\163\163\x69\x67\x6e\137\146\x72\x6f\155\x5f\165\x73\145\x72\x5f\x69\144", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\154\141\56\141\163\163\151\147\156\137\146\x72\157\x6d\x5f\165\x73\x65\x72\x5f\151\144\x3d" . $this->getProperty("\141\163\x73\151\x67\156\x5f\x66\162\157\155\137\x75\x73\x65\x72\x5f\x69\144"); } if ($this->isPropertySet("\141\163\x73\151\147\156\137\142\x79", "\x56")) { $Sql .= "\40\101\x4e\x44\40\154\x61\56\141\163\163\x69\x67\x6e\137\142\x79\x3d" . $this->getProperty("\x61\x73\163\x69\x67\x6e\137\x62\171"); } if ($this->isPropertySet("\141\x73\163\x69\147\x6e\137\x64\x61\x74\145", "\x56")) { $Sql .= "\40\x41\116\104\x20\154\141\56\141\163\163\151\147\x6e\137\144\141\x74\x65\75\x27" . $this->getProperty("\141\163\163\x69\x67\156\x5f\x64\x61\164\x65") . "\47"; } if ($this->isPropertySet("\141\163\163\x69\147\x6e\x5f\164\151\x6d\145", "\126")) { $Sql .= "\x20\101\116\104\x20\154\x61\56\141\163\x73\x69\147\156\x5f\x74\x69\x6d\145\x3d\x27" . $this->getProperty("\141\163\163\x69\147\156\x5f\164\x69\155\145") . "\x27"; } if ($this->isPropertySet("\151\x73\x41\143\164\x69\x76\145", "\126")) { $Sql .= "\40\101\116\104\x20\x6c\141\x2e\x69\163\101\143\x74\151\166\x65\x3d" . $this->getProperty("\x69\x73\x41\x63\164\151\166\x65"); } if ($this->isPropertySet("\141\163\x73\x69\x67\156\137\154\x65\x61\144\x5f\163\164\x61\164\165\163", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\154\x61\56\141\163\x73\151\x67\x6e\137\x6c\x65\141\144\x5f\x73\164\141\164\165\x73\75" . $this->getProperty("\x61\163\x73\151\x67\156\137\154\x65\141\144\x5f\163\164\x61\164\x75\x73"); } if ($this->isPropertySet("\x61\163\163\x69\x67\156\x5f\x61\x63\164\x69\x6f\156\137\163\164\x61\x74\x75\163", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\154\x61\x2e\141\163\x73\151\x67\x6e\x5f\x61\143\x74\x69\157\156\x5f\x73\164\x61\164\x75\x73\75" . $this->getProperty("\141\x73\163\x69\147\x6e\x5f\141\143\164\151\157\x6e\137\163\164\x61\164\x75\x73"); } if ($this->isPropertySet("\144\x6d\x6d\137\165\163\145\162\137\x69\x64", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\x6c\x2e\x64\x6d\x6d\x5f\165\x73\x65\x72\137\x69\144\75" . $this->getProperty("\x64\155\155\x5f\165\x73\x65\x72\137\151\144"); } if ($this->isPropertySet("\154\145\x61\144\137\146\x72\x6f\x6d\137\x69\x64", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\x6c\56\x6c\145\141\144\137\x66\x72\157\155\x5f\x69\144\75" . $this->getProperty("\x6c\x65\x61\144\137\x66\162\157\x6d\137\151\144"); } if ($this->isPropertySet("\162\x6d\x5f\165\163\145\x72\137\x69\144", "\126")) { $Sql .= "\x20\101\x4e\104\40\x6c\56\x72\155\x5f\165\x73\145\x72\x5f\x69\144\x3d" . $this->getProperty("\162\x6d\x5f\x75\163\145\x72\137\x69\x64"); } if ($this->isPropertySet("\162\x6d\137\154\145\x61\144\x5f\x73\164\141\x74\165\163", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\154\56\162\x6d\x5f\154\x65\x61\x64\x5f\x73\164\x61\164\x75\x73\x3d" . $this->getProperty("\162\x6d\x5f\154\145\x61\144\x5f\x73\164\141\164\165\163"); } if ($this->isPropertySet("\x72\x6d\137\154\x65\x61\144\x5f\146\x77\x64\137\x73\164\141\x74\x75\163", "\126")) { $Sql .= "\40\101\116\104\x20\154\56\162\x6d\x5f\x6c\x65\x61\144\137\146\x77\x64\x5f\163\x74\141\164\165\163\x3d" . $this->getProperty("\x72\x6d\137\154\145\x61\x64\x5f\146\x77\144\137\163\x74\141\x74\165\x73"); } if ($this->isPropertySet("\141\x73\163\151\147\x6e\137\154\x6f\143\141\164\x69\157\x6e\137\151\x64", "\126")) { $Sql .= "\40\x41\x4e\104\x20\154\56\x61\163\x73\x69\147\156\x5f\x6c\157\x63\141\x74\151\157\156\x5f\x69\x64\x3d" . $this->getProperty("\141\163\163\x69\x67\156\137\x6c\x6f\x63\x61\164\151\157\156\137\151\144"); } if ($this->isPropertySet("\141\163\163\151\x67\x6e\137\164\x65\x61\x6d\137\x6c\145\x61\144\x5f\151\x64", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\x6c\x2e\x61\x73\163\151\x67\156\x5f\x74\x65\x61\155\x5f\x6c\x65\141\x64\137\151\x64\x3d" . $this->getProperty("\141\163\x73\151\x67\x6e\x5f\x74\145\141\155\x5f\x6c\145\x61\x64\137\151\144"); } if ($this->isPropertySet("\141\x73\163\151\147\x6e\137\141\x67\x65\156\164\x5f\x73\164\x61\164\x75\163", "\x56")) { $Sql .= "\40\101\x4e\104\x20\154\56\141\x73\163\x69\x67\x6e\x5f\141\x67\145\x6e\164\137\x73\x74\141\x74\165\163\75" . $this->getProperty("\x61\x73\x73\151\x67\156\137\x61\x67\145\x6e\x74\x5f\x73\x74\141\x74\165\163"); } if ($this->isPropertySet("\154\145\x61\144\x5f\x73\164\x61\164\x75\163", "\126")) { $Sql .= "\x20\101\116\x44\40\154\56\x6c\145\141\x64\137\x73\x74\x61\x74\x75\163\x3d" . $this->getProperty("\x6c\x65\141\144\137\163\164\x61\164\165\163"); } if ($this->isPropertySet("\117\x52\x44\105\x52\x42\x59", "\x56")) { $Sql .= "\40\x4f\x52\104\105\x52\40\102\131\x20" . $this->getProperty("\117\x52\104\105\x52\102\131"); } if ($this->isPropertySet("\154\x69\x6d\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function lstLeadAssignedCom() { $Sql = "\123\105\x4c\105\103\124\12\11\x9\11\x9\x9\x6c\144\56\162\155\137\154\145\x61\x64\137\x73\164\x61\x74\x75\163\54\xa\11\x9\x9\11\11\x6c\x64\x61\163\x2e\141\x73\x73\151\x67\x6e\x5f\x75\163\145\162\x5f\x69\144\x2c\12\x9\x9\11\x9\x9\x6c\144\141\163\56\x61\163\x73\151\147\156\x5f\154\x65\x61\144\137\x69\144\x2c\xa\x9\x9\11\x9\11\154\144\x2e\143\x6c\151\145\156\164\x5f\156\141\155\x65\x2c\xa\11\11\x9\x9\x9\154\144\x2e\x63\x6c\151\145\x6e\164\137\x70\150\x6f\156\145\137\156\x75\155\x62\x65\x72\x2c\12\x9\x9\11\x9\x9\x6c\144\x2e\143\x6c\x69\145\x6e\164\x5f\x65\155\141\151\x6c\54\12\x9\x9\x9\11\11\x6c\144\x2e\154\x65\141\x64\163\137\151\144\54\12\x9\x9\11\11\11\x6c\144\x2e\x6c\145\141\x64\137\x66\162\157\x6d\x5f\x69\x64\x2c\xa\x9\x9\11\11\x9\154\x64\x2e\143\x6c\151\145\x6e\x74\x5f\155\145\x73\163\x61\x67\x65\54\12\11\x9\x9\x9\x9\154\x64\x61\x73\56\141\163\163\151\147\156\x5f\x64\x61\164\145\x2c\xa\x9\x9\x9\11\x9\154\144\141\163\56\141\163\x73\x69\x67\156\x5f\x74\151\x6d\x65\x2c\12\11\x9\x9\x9\11\x6c\x64\x2e\141\x73\x73\x69\x67\156\x5f\x64\x61\164\x65\164\x69\155\x65\x2c\xa\11\x9\11\x9\x9\x6c\144\141\163\x2e\141\x73\x73\x69\x67\156\137\x6c\x65\141\144\x5f\x73\164\x61\164\x75\163\x2c\12\11\11\11\x9\11\154\x64\x61\163\x2e\141\x73\163\151\147\x6e\x5f\x61\143\164\x69\x6f\x6e\137\x73\x74\x61\164\x75\x73\xa\x9\11\11\11\x46\122\117\115\12\x9\x9\x9\x9\11\x72\163\x5f\x74\142\154\137\154\x65\x61\x64\163\x20\141\163\x20\154\x64\xa\11\11\11\11\x9\x49\x4e\116\105\x52\40\x4a\x4f\111\x4e\x20\x72\x73\x5f\x74\x62\x6c\x5f\x6c\x65\141\x64\163\x5f\x61\x73\163\151\x67\156\40\141\163\x20\x6c\x64\141\x73\12\11\x9\x9\11\x9\11\117\x4e\40\50\x6c\144\x2e\x6c\145\x61\x64\x73\x5f\151\144\x20\75\x20\154\144\141\163\x2e\154\145\x61\144\x5f\x69\144\x29\12\11\x9\11\11\127\x48\x45\x52\x45\x20\xa\11\x9\x9\11\11\x31\x3d\x31"; if ($this->isPropertySet("\162\x6d\x5f\x6c\x65\141\x64\x5f\163\x74\x61\x74\165\163", "\126")) { $Sql .= "\40\101\x4e\x44\40\x6c\144\x2e\162\x6d\x5f\x6c\x65\x61\144\137\163\164\141\x74\165\x73\x3d" . $this->getProperty("\x72\x6d\137\154\x65\x61\x64\x5f\x73\x74\x61\x74\x75\163"); } if ($this->isPropertySet("\154\145\141\x64\137\x66\x72\157\x6d\x5f\x69\144", "\126")) { $Sql .= "\x20\101\x4e\x44\40\154\x64\x2e\154\x65\x61\144\137\146\x72\x6f\155\x5f\x69\x64\75" . $this->getProperty("\x6c\x65\x61\144\x5f\146\162\157\x6d\137\x69\x64"); } if ($this->isPropertySet("\141\163\163\x69\x67\x6e\137\x75\x73\145\x72\137\151\144", "\x56")) { $Sql .= "\40\x41\116\104\x20\x6c\x64\141\x73\56\x61\x73\163\151\147\156\x5f\x75\163\145\x72\137\x69\x64\x3d" . $this->getProperty("\x61\x73\163\x69\x67\x6e\137\165\x73\145\x72\x5f\x69\x64"); } if ($this->isPropertySet("\x61\163\163\x69\x67\x6e\137\x6c\x65\141\144\137\163\164\x61\x74\x75\163", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x6c\144\141\163\56\141\x73\163\151\147\x6e\137\x6c\x65\x61\x64\x5f\x73\x74\141\x74\x75\163\75" . $this->getProperty("\141\163\x73\151\x67\156\137\x6c\x65\141\x64\x5f\x73\x74\141\164\x75\163"); } if ($this->isPropertySet("\x61\x73\x73\x69\147\156\137\141\x63\x74\151\x6f\156\137\x73\164\x61\x74\x75\x73", "\126")) { $Sql .= "\40\x41\116\x44\40\154\144\141\163\x2e\x61\163\x73\x69\x67\x6e\x5f\141\143\164\x69\157\x6e\137\163\x74\141\164\165\x73\x3d" . $this->getProperty("\x61\163\x73\x69\x67\156\137\x61\143\x74\x69\x6f\156\137\163\x74\x61\x74\165\x73"); } if ($this->isPropertySet("\117\x52\x44\x45\122\x42\131", "\126")) { $Sql .= "\40\x4f\122\x44\x45\122\40\102\x59\x20" . $this->getProperty("\117\122\x44\x45\122\102\131"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstSalary() { $Sql = "\123\105\x4c\105\103\124\x20\xa\11\11\x9\x9\11\x75\x73\145\x72\137\x73\x61\x6c\141\x72\171\137\151\144\x2c\12\x9\11\x9\11\x9\165\x73\x65\x72\x5f\151\144\54\12\x9\x9\11\x9\11\163\141\154\x61\x72\171\x5f\141\155\x6f\x75\x6e\x74\54\12\x9\x9\x9\11\11\x66\x6f\157\x64\137\x61\x6c\157\x77\141\x6e\143\145\54\12\x9\11\x9\x9\11\x68\157\165\163\x69\x6e\x67\137\141\x6c\157\x77\x61\x6e\143\x65\x2c\xa\11\x9\x9\x9\x9\x74\162\141\x6e\163\160\x6f\x72\164\x5f\141\x6c\157\x77\x61\156\x63\145\x2c\12\11\11\x9\x9\x9\163\x65\143\x75\x72\151\x74\171\137\x61\154\x6f\x77\141\156\x63\x65\54\12\11\11\11\11\x9\163\150\151\146\x74\x5f\141\x6c\157\167\x61\x6e\x63\145\54\xa\11\x9\11\x9\x9\x68\141\162\144\163\x68\x69\x70\x5f\141\x6c\x6f\167\141\156\143\x65\x2c\12\x9\11\11\x9\11\155\x6f\142\x69\x6c\x65\137\x61\x6c\x6f\167\x61\156\x63\x65\54\xa\11\x9\11\11\11\x73\141\x6c\141\162\x79\137\164\171\x70\x65\x2c\xa\x9\11\x9\x9\x9\x73\141\x6c\141\162\171\137\x6d\157\144\145\x2c\xa\11\11\x9\x9\11\141\160\160\154\171\137\146\162\x6f\155\x2c\xa\x9\11\11\11\x9\143\x75\x74\164\151\x6e\147\137\155\157\x64\x65\x2c\xa\x9\11\11\11\x9\163\141\154\x61\x72\x79\x5f\163\x74\x61\164\x75\163\54\12\x9\x9\11\11\x9\145\156\164\x65\x72\x79\137\x64\x61\x74\x65\x2c\12\11\11\x9\x9\11\151\163\x41\143\x74\x69\x76\145\xa\x9\x9\x9\x9\106\122\x4f\x4d\xa\x9\x9\11\x9\x9\162\x73\x5f\164\x62\154\x5f\165\163\145\x72\137\163\141\154\141\162\x79\xa\x9\x9\11\11\127\110\105\122\x45\40\12\x9\11\x9\x9\11\x31\x3d\x31"; if ($this->isPropertySet("\165\x73\145\162\137\163\141\154\x61\x72\171\x5f\151\144", "\x56")) { $Sql .= "\40\101\116\x44\40\165\163\x65\162\x5f\163\x61\x6c\x61\x72\x79\x5f\x69\x64\x3d" . $this->getProperty("\x75\163\x65\x72\137\163\141\x6c\x61\162\171\137\x69\144"); } if ($this->isPropertySet("\x75\163\145\162\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\116\104\x20\x75\x73\x65\162\137\151\144\x3d" . $this->getProperty("\165\163\145\x72\137\x69\144"); } if ($this->isPropertySet("\x73\x61\x6c\141\162\171\137\x61\x6d\x6f\165\x6e\x74", "\126")) { $Sql .= "\x20\101\116\104\40\x73\x61\x6c\141\x72\171\x5f\141\155\x6f\165\x6e\164\x3d\47" . $this->getProperty("\x73\141\154\141\162\171\137\141\x6d\157\x75\156\x74") . "\47"; } if ($this->isPropertySet("\146\157\157\x64\137\x61\x6c\157\167\x61\x6e\x63\x65", "\126")) { $Sql .= "\x20\101\116\104\40\x66\x6f\157\144\x5f\141\x6c\x6f\x77\x61\156\143\x65\x3d\x27" . $this->getProperty("\x66\157\157\x64\137\141\154\157\x77\141\156\143\145") . "\x27"; } if ($this->isPropertySet("\x68\157\165\163\x69\156\147\137\141\154\x6f\x77\x61\156\143\145", "\126")) { $Sql .= "\40\x41\x4e\104\40\x68\x6f\165\163\x69\x6e\x67\137\x61\154\157\167\x61\156\x63\145\x3d\47" . $this->getProperty("\x68\157\x75\163\x69\x6e\147\137\141\x6c\157\167\x61\x6e\x63\x65") . "\x27"; } if ($this->isPropertySet("\x74\162\x61\x6e\x73\160\x6f\x72\164\137\141\x6c\157\167\x61\156\143\145", "\126")) { $Sql .= "\40\101\116\x44\x20\164\x72\x61\x6e\163\x70\x6f\x72\x74\137\141\x6c\x6f\167\141\x6e\143\x65\75\47" . $this->getProperty("\164\x72\x61\156\x73\160\x6f\x72\x74\137\x61\x6c\x6f\167\x61\156\x63\x65") . "\47"; } if ($this->isPropertySet("\163\x65\x63\x75\162\x69\x74\171\137\141\154\157\x77\x61\x6e\x63\145", "\126")) { $Sql .= "\x20\101\x4e\104\x20\163\145\x63\x75\x72\x69\164\171\137\141\154\x6f\x77\141\x6e\143\x65\x3d\47" . $this->getProperty("\163\145\x63\165\162\151\164\171\137\x61\x6c\x6f\167\141\156\143\145") . "\x27"; } if ($this->isPropertySet("\x63\165\164\164\151\156\x67\137\155\157\x64\145", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\143\x75\164\x74\x69\156\x67\x5f\x6d\157\144\x65\x3d\47" . $this->getProperty("\x63\x75\x74\164\151\x6e\147\x5f\155\x6f\x64\145") . "\x27"; } if ($this->isPropertySet("\x73\x61\x6c\141\x72\x79\137\164\x79\x70\145", "\126")) { $Sql .= "\x20\x41\116\104\40\x73\141\154\141\x72\171\x5f\x74\x79\160\x65\x3d" . $this->getProperty("\x73\141\154\141\x72\171\137\x74\x79\160\145"); } if ($this->isPropertySet("\163\x61\x6c\x61\x72\171\137\x6d\157\x64\145", "\x56")) { $Sql .= "\40\x41\x4e\104\40\163\x61\x6c\141\162\x79\137\x6d\x6f\x64\145\75" . $this->getProperty("\163\141\x6c\x61\x72\x79\x5f\x6d\157\144\x65"); } if ($this->isPropertySet("\163\141\154\141\x72\x79\x5f\x73\x74\x61\x74\165\163", "\126")) { $Sql .= "\40\x41\x4e\104\40\x73\x61\x6c\x61\x72\171\x5f\x73\164\x61\x74\165\x73\75" . $this->getProperty("\x73\x61\154\141\162\171\137\163\164\x61\164\165\x73"); } if ($this->isPropertySet("\141\x70\160\154\x79\x5f\x66\x72\x6f\x6d", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\141\x70\x70\x6c\x79\137\146\x72\157\155\x3d\x27" . $this->getProperty("\x61\160\160\x6c\171\137\x66\162\x6f\155") . "\47"; } if ($this->isPropertySet("\151\x73\x41\x63\x74\x69\x76\x65", "\126")) { $Sql .= "\x20\x41\116\x44\x20\151\x73\101\143\x74\151\x76\145\75" . $this->getProperty("\151\x73\101\x63\164\151\166\145"); } if ($this->isPropertySet("\x4f\x52\104\x45\x52\x42\x59", "\126")) { $Sql .= "\x20\117\122\104\x45\122\40\102\x59\x20" . $this->getProperty("\117\122\x44\105\x52\102\x59"); } if ($this->isPropertySet("\x6c\x69\x6d\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\155\151\x74")); } return $this->dbQuery($Sql); } public function lstBonus() { $Sql = "\123\x45\x4c\x45\x43\124\40\12\11\11\11\x9\11\x75\163\x65\x72\x5f\142\x6f\156\x75\x73\137\151\144\54\xa\11\11\x9\x9\x9\165\163\x65\x72\137\x69\144\54\12\11\x9\x9\11\x9\142\157\x6e\165\163\137\141\155\x6f\165\x6e\x74\x2c\xa\x9\11\11\11\11\142\x6f\x6e\x75\x73\137\163\164\141\164\165\163\54\xa\x9\x9\11\11\x9\145\156\x74\145\x72\x79\x5f\144\141\x74\145\54\xa\11\11\11\11\x9\x69\163\x41\143\x74\x69\x76\145\xa\11\11\11\11\x46\122\117\x4d\12\x9\x9\11\11\x9\162\x73\137\x74\142\x6c\137\x75\163\x65\x72\137\x73\141\154\141\162\171\x5f\142\x6f\x6e\165\x73\12\11\11\x9\11\x57\110\x45\122\105\x20\xa\11\x9\x9\11\x9\x31\x3d\61"; if ($this->isPropertySet("\x75\163\x65\x72\137\x62\157\x6e\x75\x73\137\x69\144", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x75\x73\x65\x72\x5f\142\x6f\x6e\165\163\x5f\151\144\75" . $this->getProperty("\165\163\145\x72\137\x62\157\x6e\x75\x73\x5f\151\x64"); } if ($this->isPropertySet("\165\x73\145\162\137\151\144", "\x56")) { $Sql .= "\x20\101\116\x44\x20\165\163\145\x72\137\151\144\x3d" . $this->getProperty("\x75\163\145\162\137\x69\144"); } if ($this->isPropertySet("\x62\x6f\156\x75\163\x5f\141\155\x6f\x75\156\x74", "\x56")) { $Sql .= "\40\101\116\104\x20\x62\157\x6e\165\163\x5f\x61\155\x6f\165\x6e\164\75\x27" . $this->getProperty("\x62\x6f\156\x75\163\137\141\155\x6f\x75\156\x74") . "\x27"; } if ($this->isPropertySet("\142\157\x6e\165\163\x5f\x73\x74\141\x74\165\163", "\x56")) { $Sql .= "\40\101\116\x44\x20\142\x6f\156\165\163\137\163\164\141\164\165\163\x3d" . $this->getProperty("\142\157\156\165\163\137\x73\x74\141\x74\x75\x73"); } if ($this->isPropertySet("\x69\163\x41\143\164\151\x76\145", "\x56")) { $Sql .= "\x20\101\116\x44\x20\x69\163\101\143\x74\151\x76\145\75" . $this->getProperty("\151\x73\101\x63\x74\151\x76\x65"); } if ($this->isPropertySet("\117\x52\104\x45\122\x42\x59", "\x56")) { $Sql .= "\x20\117\122\104\105\x52\x20\102\x59\40" . $this->getProperty("\x4f\x52\x44\x45\x52\102\x59"); } if ($this->isPropertySet("\x6c\151\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\x69\x74")); } return $this->dbQuery($Sql); } public function lstProspectDetail() { $Sql = "\x53\x45\x4c\105\103\124\40\xa\x9\11\x9\11\x9\x70\162\157\163\160\145\143\164\x5f\x69\144\54\xa\11\11\11\x9\11\x70\162\157\163\160\x65\143\x74\x5f\x6e\x61\x6d\145\54\xa\11\11\11\x9\x9\x70\x72\157\163\160\145\143\x74\137\x65\155\141\x69\x6c\54\xa\11\11\x9\x9\11\x70\162\x6f\163\160\145\143\164\137\x70\x68\157\156\145\54\xa\11\x9\11\x9\11\x70\x72\x6f\163\x70\145\x63\x74\x5f\x6d\163\147\54\xa\x9\x9\x9\11\11\160\x72\157\x73\160\145\143\164\x5f\146\x6f\x72\155\x69\x64\54\xa\x9\x9\11\11\11\145\156\x74\x65\162\171\x5f\144\x61\x74\145\54\xa\x9\x9\x9\x9\x9\x69\163\x41\143\164\x69\166\x65\xa\11\11\x9\11\x46\x52\117\115\12\11\x9\11\x9\x9\162\x73\x5f\x74\x62\154\x5f\160\x72\157\163\x70\x65\x63\x74\137\x64\145\x74\x61\151\x6c\x73\12\x9\x9\x9\x9\127\x48\105\x52\105\x20\12\11\11\x9\x9\11\x31\75\61"; if ($this->isPropertySet("\160\x72\x6f\163\160\145\143\164\x5f\x69\x64", "\126")) { $Sql .= "\40\x41\116\104\x20\160\162\x6f\x73\160\x65\x63\x74\137\151\144\75" . $this->getProperty("\x70\162\157\163\x70\x65\x63\x74\x5f\151\144"); } if ($this->isPropertySet("\x70\x72\x6f\163\x70\145\143\x74\137\146\x6f\x72\x6d\x69\x64", "\126")) { $Sql .= "\x20\x41\116\104\x20\160\162\157\163\x70\145\143\164\137\x66\x6f\x72\x6d\151\144\x3d" . $this->getProperty("\x70\x72\157\x73\160\x65\143\x74\137\x66\157\x72\155\x69\x64"); } if ($this->isPropertySet("\151\163\x41\143\164\151\x76\x65", "\126")) { $Sql .= "\40\101\x4e\104\40\x69\x73\x41\x63\x74\x69\x76\145\75\47" . $this->getProperty("\151\163\101\143\x74\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\117\122\x44\x45\122\x42\131", "\x56")) { $Sql .= "\x20\x4f\x52\104\x45\122\x20\102\x59\x20" . $this->getProperty("\x4f\122\x44\105\x52\x42\x59"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\164")); } return $this->dbQuery($Sql); } public function lstUserAdvanceSalary() { $Sql = "\123\105\x4c\x45\x43\124\40\12\x9\x9\11\x9\11\141\x64\166\141\x6e\x63\145\x5f\163\x61\154\x61\162\x79\x5f\x69\144\54\xa\11\11\x9\x9\x9\x75\163\x65\162\137\151\144\x2c\xa\x9\11\x9\x9\11\x73\141\x6c\141\162\171\x5f\141\155\x6f\165\x6e\164\54\12\x9\x9\11\x9\x9\160\141\171\x69\156\147\137\x64\141\164\x65\54\xa\x9\11\x9\11\11\x61\x64\x76\x61\x6e\143\x65\137\x6d\x6f\x6e\164\x68\54\xa\11\11\x9\11\11\141\144\x76\141\x6e\143\145\137\162\145\x61\163\157\x6e\54\xa\x9\11\x9\11\11\x70\x61\171\142\141\143\153\x5f\157\x70\164\x69\x6f\x6e\x2c\12\11\11\11\x9\x9\160\x61\171\142\x61\143\153\x5f\151\x6e\x5f\x6d\157\156\x74\150\x73\54\12\x9\11\x9\11\x9\160\x61\x79\142\141\x63\153\137\x61\x6d\157\165\156\x74\x2c\12\11\11\x9\x9\11\141\x64\166\x61\156\x63\x65\x5f\x73\x61\154\141\162\x79\137\x73\164\x61\x74\x75\163\x2c\12\11\x9\x9\11\x9\145\156\164\145\x72\x79\137\x64\141\x74\145\x2c\xa\11\x9\11\x9\x9\151\163\101\x63\164\x69\x76\x65\xa\x9\x9\x9\11\x46\x52\117\x4d\xa\11\x9\x9\11\11\162\x73\137\x74\x62\x6c\137\x75\163\x65\x72\137\141\144\166\x61\156\x63\145\x5f\163\141\x6c\x61\x72\171\12\x9\11\x9\x9\x57\110\105\122\105\40\xa\11\11\x9\11\11\x31\75\61"; if ($this->isPropertySet("\141\x64\x76\141\156\143\145\x5f\x73\x61\x6c\141\162\x79\x5f\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\104\40\141\x64\166\x61\156\x63\x65\137\x73\x61\154\x61\x72\171\137\151\x64\75" . $this->getProperty("\141\144\x76\141\x6e\x63\x65\137\x73\141\x6c\x61\x72\x79\x5f\x69\x64"); } if ($this->isPropertySet("\x75\x73\x65\x72\x5f\151\x64", "\x56")) { $Sql .= "\x20\101\116\104\40\165\x73\x65\162\x5f\151\144\75" . $this->getProperty("\x75\163\x65\x72\137\151\144"); } if ($this->isPropertySet("\160\141\x79\151\156\x67\x5f\x64\141\x74\x65", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\x70\141\x79\151\x6e\x67\x5f\144\141\164\145\x3d\47" . $this->getProperty("\160\141\171\151\x6e\147\x5f\144\x61\x74\x65") . "\47"; } if ($this->isPropertySet("\x70\141\x79\142\x61\143\153\x5f\157\x70\x74\151\157\156", "\x56")) { $Sql .= "\x20\101\x4e\104\x20\160\x61\x79\x62\x61\x63\x6b\x5f\x6f\160\x74\151\157\x6e\x3d\47" . $this->getProperty("\x70\x61\x79\142\141\x63\153\137\157\x70\x74\x69\x6f\156") . "\x27"; } if ($this->isPropertySet("\160\141\171\142\141\x63\153\137\x69\x6e\x5f\x6d\157\156\x74\x68\163", "\x56")) { $Sql .= "\x20\x41\116\x44\40\160\x61\x79\142\x61\143\x6b\137\151\156\137\x6d\x6f\x6e\164\x68\163\x3d\47" . $this->getProperty("\x70\141\x79\x62\x61\143\153\137\x69\156\137\155\x6f\156\164\150\163") . "\x27"; } if ($this->isPropertySet("\x61\144\x76\141\156\x63\x65\x5f\155\x6f\x6e\x74\150", "\126")) { $Sql .= "\40\101\116\x44\40\x61\x64\x76\x61\x6e\x63\145\137\x6d\157\x6e\x74\x68\x3d" . $this->getProperty("\141\x64\x76\141\x6e\x63\145\x5f\x6d\x6f\x6e\164\150"); } if ($this->isPropertySet("\104\101\x54\105\106\111\x4c\x54\105\x52", "\x56")) { $Sql .= "\40\x41\116\x44\40\160\x61\171\151\156\x67\137\x64\141\x74\145\x20\x42\x45\x54\x57\105\x45\116\x20\x27" . $this->getProperty("\x53\124\x41\122\x54\x44\101\x54\105") . "\x27\40\101\x4e\104\40\x27" . $this->getProperty("\x45\116\x44\104\101\124\x45") . "\x27"; } if ($this->isPropertySet("\x61\144\x76\x61\156\143\x65\137\163\x61\154\141\x72\171\x5f\x73\x74\141\x74\165\x73", "\x56")) { $Sql .= "\40\x41\116\104\40\x61\144\x76\x61\156\143\145\x5f\163\x61\154\x61\162\x79\x5f\163\164\141\164\x75\163\75" . $this->getProperty("\x61\x64\x76\141\156\x63\145\137\163\141\154\x61\162\x79\x5f\163\x74\141\164\x75\x73"); } if ($this->isPropertySet("\151\163\101\143\x74\x69\x76\145", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\151\x73\x41\x63\164\x69\166\x65\x3d\47" . $this->getProperty("\151\163\101\143\x74\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\x69\x73\101\x63\x74\151\x76\x65\x5f\156\x6f\164", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x69\x73\x41\x63\x74\151\166\145\41\x3d\x27" . $this->getProperty("\151\163\101\x63\164\151\166\x65\x5f\x6e\x6f\x74") . "\47"; } if ($this->isPropertySet("\x4f\x52\104\105\x52\102\x59", "\x56")) { $Sql .= "\40\x4f\122\104\x45\x52\x20\102\x59\40" . $this->getProperty("\x4f\122\x44\105\122\102\x59"); } if ($this->isPropertySet("\154\151\x6d\151\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\155\151\x74")); } return $this->dbQuery($Sql); } public function lstUserAdvanceSalaryPayBack() { $Sql = "\123\x45\114\105\x43\124\x20\xa\11\x9\x9\11\x9\x70\x61\171\x62\x61\143\153\x5f\155\x6f\156\x74\x68\154\171\137\151\144\x2c\xa\11\x9\11\11\11\x75\163\145\x72\x5f\x69\x64\54\12\11\x9\11\11\11\x61\x64\x76\141\156\143\145\137\x73\141\x6c\x61\x72\x79\137\x69\x64\x2c\xa\x9\x9\x9\11\11\155\157\x6e\x74\x68\x6c\x79\137\141\x6d\x6f\x75\156\164\54\xa\11\x9\x9\x9\11\x70\x61\171\x62\x61\x63\153\137\163\x74\141\164\165\163\54\12\11\x9\11\x9\x9\x70\x61\x79\x62\141\x63\153\x5f\x64\141\164\145\x2c\xa\11\11\x9\x9\11\x69\x73\x41\143\164\x69\x76\145\x2c\xa\x9\x9\11\x9\11\145\x6e\x74\x65\x72\171\137\144\x61\x74\x65\12\11\11\11\11\x46\122\117\115\12\x9\11\11\x9\x9\162\x73\137\164\x62\x6c\137\165\163\x65\x72\137\141\144\166\141\156\x63\x65\137\163\141\x6c\x61\162\x79\137\x70\141\x79\x62\x61\x63\x6b\12\11\11\11\x9\x57\x48\105\x52\x45\x20\12\11\x9\11\x9\11\61\75\61"; if ($this->isPropertySet("\141\144\166\x61\156\x63\x65\x5f\163\x61\x6c\x61\162\x79\x5f\151\144", "\x56")) { $Sql .= "\40\101\x4e\104\x20\141\x64\166\141\x6e\x63\x65\x5f\163\x61\154\141\x72\171\137\151\x64\75" . $this->getProperty("\141\x64\166\x61\x6e\143\x65\x5f\163\x61\154\x61\162\x79\137\x69\144"); } if ($this->isPropertySet("\x75\x73\x65\x72\x5f\151\144", "\126")) { $Sql .= "\x20\101\x4e\104\40\165\163\x65\162\x5f\x69\x64\x3d" . $this->getProperty("\165\163\x65\x72\137\x69\x64"); } if ($this->isPropertySet("\x70\x61\x79\142\141\143\153\x5f\x64\x61\x74\145", "\126")) { $Sql .= "\40\x41\x4e\104\40\x70\141\x79\142\x61\x63\x6b\x5f\144\141\x74\145\75\47" . $this->getProperty("\160\x61\171\142\141\x63\x6b\x5f\144\x61\164\145") . "\x27"; } if ($this->isPropertySet("\x70\141\171\142\141\x63\153\137\x73\x74\141\164\165\x73", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\160\x61\171\142\x61\x63\x6b\137\x73\164\141\x74\x75\163\75\47" . $this->getProperty("\160\x61\171\x62\141\143\x6b\137\x73\x74\x61\x74\x75\x73") . "\x27"; } if ($this->isPropertySet("\104\x41\x54\105\x46\111\x4c\x54\x45\x52", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\x70\x61\171\142\x61\143\153\x5f\144\x61\164\145\x20\x42\105\x54\x57\x45\105\116\40\47" . $this->getProperty("\x53\124\x41\122\x54\x44\101\124\105") . "\x27\x20\x41\x4e\x44\x20\47" . $this->getProperty("\105\x4e\104\x44\x41\x54\105") . "\x27"; } if ($this->isPropertySet("\151\x73\101\143\x74\x69\x76\x65", "\x56")) { $Sql .= "\40\101\116\x44\x20\151\163\x41\x63\x74\151\x76\x65\75\x27" . $this->getProperty("\x69\x73\101\143\x74\151\166\145") . "\47"; } if ($this->isPropertySet("\151\x73\101\x63\164\x69\166\145\x5f\156\x6f\164", "\x56")) { $Sql .= "\40\101\116\104\x20\x69\163\101\143\x74\151\x76\x65\x21\x3d\47" . $this->getProperty("\151\x73\101\143\164\151\x76\x65\137\156\157\x74") . "\x27"; } if ($this->isPropertySet("\117\122\104\105\122\102\131", "\x56")) { $Sql .= "\x20\x4f\122\104\105\122\x20\102\x59\40" . $this->getProperty("\117\x52\104\105\x52\102\x59"); } if ($this->isPropertySet("\x6c\x69\155\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstAgentLeadsOverView() { $Sql = "\x53\x45\x4c\x45\x43\x54\x20\xa\11\x9\x9\x9\11\11\x75\163\145\x72\137\x69\x64\54\xa\x9\11\11\x9\x9\x9\x75\x73\x65\x72\137\x74\171\x70\x65\x5f\x69\x64\x2c\xa\x9\11\x9\x9\11\11\154\x6f\143\141\164\151\x6f\x6e\137\x69\x64\x2c\12\x9\x9\11\x9\11\x9\x75\x73\145\x72\137\x66\x6e\141\x6d\145\54\xa\x9\11\x9\x9\11\11\x75\163\x65\x72\137\x6c\156\x61\155\x65\54\xa\11\11\11\x9\11\x9\x43\117\x4e\103\101\x54\x28\x75\163\x65\162\137\x66\156\x61\155\x65\54\47\x20\47\x2c\165\x73\x65\162\137\154\x6e\x61\x6d\145\x29\x20\101\123\40\x66\x75\x6c\154\156\141\155\x65\x2c\xa\x9\11\x9\11\x9\x9\x61\163\x73\x69\147\x6e\137\141\x63\164\151\157\156\137\163\x74\x61\164\165\163\54\xa\11\11\x9\x9\11\11\x61\x73\163\151\x67\x6e\137\x6c\x65\141\144\x5f\151\144\54\12\11\11\x9\11\x9\x9\x6c\x65\x61\x64\x5f\x69\144\x2c\xa\x9\11\x9\11\11\11\160\x65\x6e\x64\x69\156\147\x5f\154\x65\141\144\163\x2c\xa\x9\11\11\11\11\x9\146\x6f\154\154\157\x77\137\x75\160\137\154\x65\141\x64\x73\x2c\12\11\11\x9\x9\11\11\x6e\157\x74\x5f\162\x65\x73\x70\157\156\144\151\156\x67\x5f\x6c\x65\x61\144\x73\x2c\xa\x9\x9\x9\11\x9\x9\x69\156\164\x65\x72\x65\163\x74\x65\144\x5f\154\145\x61\x64\x73\54\xa\11\11\x9\11\x9\11\156\x6f\x74\137\151\156\164\145\162\x65\163\x74\145\144\x5f\x6c\145\x61\x64\x73\x2c\12\x9\x9\11\x9\11\11\143\x6f\x6e\166\145\x72\164\x65\x64\x5f\x6c\x65\141\x64\163\54\12\11\11\x9\11\x9\x9\123\x55\x4d\x28\160\x65\x6e\144\151\x6e\x67\x5f\154\x65\141\144\163\51\x20\x61\x73\x20\160\x65\x6e\144\151\156\x67\137\154\145\x61\144\x73\x5f\x73\x75\155\54\12\11\x9\x9\x9\x9\11\x53\x55\115\50\146\157\x6c\x6c\x6f\x77\x5f\x75\160\137\x6c\145\141\144\163\51\40\141\163\x20\146\x6f\154\154\157\167\x5f\165\x70\x5f\154\145\141\x64\x73\x5f\163\165\155\54\xa\11\11\x9\x9\x9\x9\x53\x55\115\x28\156\x6f\x74\137\x72\x65\163\160\x6f\156\144\151\156\147\x5f\x6c\145\141\x64\x73\x29\x20\141\163\40\x6e\x6f\164\137\x72\x65\x73\160\157\x6e\144\151\x6e\147\x5f\x6c\x65\141\x64\x73\137\163\x75\155\x2c\xa\x9\x9\x9\x9\11\x9\123\125\x4d\x28\x69\x6e\164\145\x72\145\163\164\x65\x64\137\154\145\141\x64\x73\51\x20\141\x73\40\151\x6e\164\145\x72\145\x73\x74\x65\144\137\x6c\x65\141\x64\163\x5f\x73\x75\155\54\12\11\x9\x9\x9\x9\11\x53\x55\x4d\x28\x6e\x6f\164\137\x69\156\164\x65\x72\x65\x73\x74\x65\x64\137\x6c\x65\x61\144\163\x29\x20\141\x73\x20\156\x6f\164\x5f\x69\x6e\164\145\162\145\x73\164\145\144\x5f\x6c\145\x61\144\163\137\163\x75\x6d\54\12\11\x9\11\x9\11\11\x53\125\115\x28\x63\x6f\156\166\145\x72\164\x65\x64\137\154\145\x61\x64\x73\51\x20\x61\163\40\x63\x6f\x6e\x76\x65\162\x74\145\x64\x5f\154\145\141\x64\163\137\163\165\155\12\x9\11\x9\x9\11\106\122\117\x4d\xa\x9\11\11\11\x9\x9\x76\167\x5f\141\147\145\x6e\x74\137\154\145\141\x64\x73\x5f\157\x76\145\162\x76\x69\x65\167\12\x9\x9\x9\11\x9\x57\x48\105\x52\105\40\12\x9\x9\11\11\11\x9\x31\75\61"; if ($this->isPropertySet("\x75\x73\145\x72\x5f\x69\x64", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\x75\163\x65\162\x5f\x69\x64\75" . $this->getProperty("\x75\x73\145\x72\137\151\144"); } if ($this->isPropertySet("\165\163\x65\x72\137\x74\171\x70\x65\x5f\151\x64", "\x56")) { $Sql .= "\x20\x41\116\104\40\x75\x73\145\x72\x5f\x74\x79\160\x65\137\151\144\x3d" . $this->getProperty("\x75\x73\x65\162\x5f\164\x79\160\x65\137\x69\x64"); } if ($this->isPropertySet("\x6c\157\x63\x61\164\151\157\x6e\137\x69\x64", "\x56")) { $Sql .= "\x20\x41\116\104\x20\x6c\x6f\143\x61\164\151\x6f\x6e\x5f\x69\x64\75" . $this->getProperty("\x6c\157\x63\x61\164\151\157\x6e\x5f\151\144"); } if ($this->isPropertySet("\x61\163\x73\151\x67\156\137\154\x65\x61\x64\137\x69\144", "\x56")) { $Sql .= "\40\x41\x4e\104\40\141\x73\x73\151\x67\x6e\137\154\x65\x61\144\137\x69\144\75" . $this->getProperty("\141\x73\x73\151\147\156\x5f\x6c\x65\141\x64\137\x69\x64"); } if ($this->isPropertySet("\x61\x73\x73\x69\147\156\137\x61\x63\x74\x69\x6f\156\137\163\164\x61\164\x75\x73", "\x56")) { $Sql .= "\x20\x41\116\x44\40\141\x73\x73\151\x67\x6e\137\x61\143\164\x69\x6f\x6e\137\x73\x74\141\164\165\x73\x3d\x27" . $this->getProperty("\x61\163\163\151\x67\x6e\x5f\141\x63\164\x69\x6f\156\x5f\x73\x74\x61\164\165\x73") . "\x27"; } if ($this->isPropertySet("\154\145\x61\144\137\x69\144", "\126")) { $Sql .= "\40\x41\116\104\x20\x6c\x65\x61\144\x5f\x69\x64\x3d\x27" . $this->getProperty("\154\x65\x61\x64\137\x69\144") . "\x27"; } if ($this->isPropertySet("\x75\x73\145\x72\137\x69\x64\137\156\x6f\164", "\126")) { $Sql .= "\x20\x41\116\104\40\x75\x73\145\162\x5f\151\x64\x21\75" . $this->getProperty("\165\x73\145\162\137\x69\144\137\156\x6f\x74"); } if ($this->isPropertySet("\117\x52\x44\105\122\102\x59", "\126")) { $Sql .= "\40\117\122\x44\x45\122\40\x42\131\40" . $this->getProperty("\x4f\x52\104\105\x52\x42\131"); } if ($this->isPropertySet("\x47\122\x4f\125\x50\x42\131", "\126")) { $Sql .= "\40\x47\122\117\x55\120\40\102\131\40" . $this->getProperty("\107\x52\x4f\x55\x50\102\131"); } if ($this->isPropertySet("\x6c\x69\x6d\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstUserOverTimeDetail() { $Sql = "\x53\105\x4c\105\103\124\x20\xa\11\11\x9\11\x9\x9\x65\x6d\x70\137\x6f\166\145\x72\x74\151\x6d\145\x5f\x69\144\54\12\x9\x9\11\x9\11\x9\x75\163\x65\162\137\x69\x64\x2c\xa\x9\x9\x9\x9\11\11\141\164\164\x5f\x69\x64\x2c\xa\11\x9\11\11\11\11\141\164\x74\x5f\x64\x61\164\145\54\xa\x9\11\11\x9\x9\x9\x6e\x6f\137\157\x66\137\150\x72\x73\x2c\xa\x9\11\x9\x9\x9\11\x72\141\164\x65\x5f\160\145\162\x5f\x68\x72\x2c\12\11\x9\x9\11\x9\11\160\145\162\137\x64\x61\x79\x5f\x73\x61\x6c\x61\x72\171\x2c\xa\11\11\11\11\x9\x9\x65\156\164\145\162\x79\137\x64\141\x74\145\54\12\x9\11\x9\x9\x9\11\x69\163\101\x63\x74\151\x76\x65\xa\11\x9\x9\x9\11\106\x52\117\115\12\11\x9\x9\11\11\11\x72\x73\x5f\164\142\x6c\137\165\163\145\x72\137\x6f\166\x65\162\164\151\x6d\x65\x5f\144\145\164\x61\x69\154\xa\11\11\x9\x9\x9\x57\110\105\122\105\x20\12\11\11\11\11\11\11\61\75\61"; if ($this->isPropertySet("\165\x73\145\162\137\151\x64", "\126")) { $Sql .= "\40\x41\116\x44\x20\165\163\145\162\137\x69\144\x3d" . $this->getProperty("\165\163\x65\x72\x5f\151\x64"); } if ($this->isPropertySet("\x61\x74\164\137\151\144", "\126")) { $Sql .= "\40\101\x4e\104\40\141\x74\164\137\151\144\75" . $this->getProperty("\x61\x74\x74\137\x69\144"); } if ($this->isPropertySet("\104\101\124\105\x46\111\x4c\124\x45\x52", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\x61\164\x74\137\144\141\164\145\x20\x42\x45\x54\x57\105\x45\116\x20\x27" . $this->getProperty("\x53\124\x41\122\124\x44\101\x54\x45") . "\x27\40\101\116\104\40\x27" . $this->getProperty("\105\x4e\104\104\101\124\x45") . "\47"; } if ($this->isPropertySet("\x69\x73\x41\x63\x74\151\x76\x65", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\151\x73\x41\x63\x74\151\x76\x65\75\47" . $this->getProperty("\x69\163\101\x63\164\151\166\145") . "\47"; } if ($this->isPropertySet("\x4f\x52\104\105\122\102\x59", "\x56")) { $Sql .= "\x20\x4f\122\x44\105\122\40\102\131\40" . $this->getProperty("\x4f\x52\104\x45\x52\102\131"); } if ($this->isPropertySet("\x47\x52\117\125\120\x42\131", "\x56")) { $Sql .= "\40\x47\122\117\125\x50\x20\x42\x59\x20" . $this->getProperty("\107\x52\117\125\x50\102\x59"); } if ($this->isPropertySet("\154\x69\x6d\x69\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\x6d\151\x74")); } return $this->dbQuery($Sql); } public function lstUserRequestFlow() { $Sql = "\x53\x45\114\105\103\124\x20\12\x9\x9\11\11\x9\x9\x72\x65\x71\165\145\163\x74\137\146\x6c\x6f\x77\137\151\144\54\12\x9\11\11\11\x9\x9\x75\163\145\162\137\151\144\x2c\12\11\x9\11\x9\x9\11\143\x6f\155\160\x61\156\x79\x5f\x69\x64\x2c\12\x9\x9\11\x9\x9\11\x64\x65\x70\141\162\164\x6d\145\x6e\164\137\x69\144\54\12\x9\x9\11\11\11\x9\162\x65\161\x75\145\x73\164\x5f\146\x6c\157\x77\137\x74\x79\x70\x65\54\xa\11\x9\x9\11\11\x9\145\x6d\160\x6c\157\x79\145\145\x5f\x69\x64\54\xa\x9\11\11\11\11\x9\x6c\x65\141\x76\x65\x5f\x72\145\x71\x75\x65\x73\x74\137\164\x6f\54\xa\11\11\x9\x9\11\x9\157\x76\145\162\164\x69\x6d\x65\x5f\x72\x65\161\x75\145\x73\164\137\x74\x6f\x2c\xa\11\11\11\x9\11\x9\151\163\x41\x63\164\151\x76\145\54\xa\x9\11\11\11\x9\11\x65\156\164\x65\162\x79\x5f\x64\x61\x74\x65\12\x9\x9\11\11\x9\106\122\x4f\x4d\12\x9\x9\11\11\x9\x9\x72\163\x5f\x74\x62\x6c\x5f\x75\x73\145\x72\137\x72\x65\x71\165\145\163\x74\137\x66\154\157\x77\xa\x9\x9\x9\x9\11\127\x48\x45\x52\105\x20\12\x9\11\11\x9\x9\11\x31\75\61"; if ($this->isPropertySet("\x72\145\x71\165\145\163\x74\x5f\146\x6c\157\167\137\151\144", "\x56")) { $Sql .= "\x20\x41\116\104\40\x72\145\161\165\x65\x73\164\137\x66\154\x6f\x77\137\x69\144\75" . $this->getProperty("\162\145\x71\165\145\x73\164\x5f\146\x6c\x6f\x77\x5f\151\144"); } if ($this->isPropertySet("\x75\x73\145\x72\x5f\x69\x64", "\x56")) { $Sql .= "\40\101\x4e\x44\40\x75\x73\x65\162\137\x69\x64\75" . $this->getProperty("\x75\163\145\162\x5f\151\x64"); } if ($this->isPropertySet("\x63\x6f\x6d\160\x61\156\x79\137\151\144", "\126")) { $Sql .= "\40\101\116\x44\40\x63\157\155\x70\x61\156\x79\137\151\144\x3d\47" . $this->getProperty("\143\157\x6d\x70\141\x6e\171\137\x69\x64") . "\x27"; } if ($this->isPropertySet("\144\x65\x70\x61\162\164\155\x65\156\x74\x5f\151\144", "\x56")) { $Sql .= "\x20\101\x4e\x44\x20\144\x65\x70\x61\x72\164\155\145\156\164\x5f\151\144\x3d\x27" . $this->getProperty("\x64\145\x70\x61\162\x74\155\145\156\164\137\x69\144") . "\47"; } if ($this->isPropertySet("\x72\x65\x71\x75\145\163\164\137\x66\154\157\x77\137\164\171\x70\145", "\126")) { $Sql .= "\40\101\x4e\x44\40\x72\145\161\x75\145\x73\164\137\146\x6c\157\x77\137\x74\x79\x70\x65\75\x27" . $this->getProperty("\x72\145\161\165\x65\x73\164\x5f\146\154\x6f\x77\137\164\x79\160\x65") . "\47"; } if ($this->isPropertySet("\x65\155\160\x6c\x6f\171\x65\x65\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\116\104\x20\x65\155\x70\154\x6f\171\145\145\x5f\x69\x64\x3d\47" . $this->getProperty("\145\155\x70\154\x6f\171\x65\145\137\151\x64") . "\47"; } if ($this->isPropertySet("\x6c\x65\141\x76\145\x5f\x72\145\161\165\145\x73\x74\137\164\157", "\x56")) { $Sql .= "\x20\101\116\104\40\x6c\x65\141\166\145\137\x72\x65\x71\165\145\x73\x74\137\x74\x6f\x3d\x27" . $this->getProperty("\x6c\145\x61\x76\x65\x5f\x72\x65\161\x75\145\163\164\x5f\164\157") . "\x27"; } if ($this->isPropertySet("\x6f\166\x65\162\x74\x69\x6d\x65\137\162\145\161\x75\145\x73\x74\137\x74\157", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x6f\x76\x65\x72\164\151\155\145\137\162\x65\161\165\145\x73\164\137\x74\x6f\75\47" . $this->getProperty("\x6f\x76\x65\x72\164\151\155\x65\x5f\x72\x65\x71\x75\145\163\x74\137\x74\x6f") . "\47"; } if ($this->isPropertySet("\151\163\x41\143\164\x69\x76\x65", "\126")) { $Sql .= "\x20\101\x4e\x44\40\x69\x73\x41\x63\x74\151\x76\x65\x3d\47" . $this->getProperty("\151\x73\x41\x63\164\151\x76\x65") . "\x27"; } if ($this->isPropertySet("\117\122\x44\x45\122\x42\x59", "\x56")) { $Sql .= "\40\x4f\x52\104\x45\122\x20\102\x59\x20" . $this->getProperty("\117\x52\x44\x45\x52\102\x59"); } if ($this->isPropertySet("\107\x52\x4f\125\x50\102\x59", "\x56")) { $Sql .= "\40\x47\x52\117\x55\x50\40\x42\x59\x20" . $this->getProperty("\107\x52\117\125\120\x42\x59"); } if ($this->isPropertySet("\x6c\x69\x6d\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstUserRequestFlowLog() { $Sql = "\123\x45\114\105\x43\x54\40\12\11\11\11\x9\11\x9\162\x65\161\x75\x65\163\164\137\x66\154\x6f\x77\x5f\x6c\157\x67\x5f\151\x64\54\12\x9\11\11\11\11\11\165\163\145\x72\137\151\x64\54\12\x9\11\11\11\11\x9\x72\x65\161\x75\x65\163\x74\137\x66\154\x6f\x77\x5f\151\x64\54\xa\11\11\x9\11\11\x9\x61\143\x74\151\166\x69\x74\171\137\x64\x65\164\141\151\x6c\54\xa\11\x9\11\11\11\x9\x69\x73\101\x63\x74\151\166\x65\x2c\xa\11\11\11\x9\11\x9\145\156\x74\x65\x72\x79\x5f\144\x61\164\145\12\11\11\11\x9\11\106\x52\x4f\115\12\11\11\11\x9\x9\11\162\x73\137\x74\x62\x6c\137\165\163\x65\162\x5f\x72\x65\161\165\145\163\164\x5f\x66\x6c\x6f\167\137\154\x6f\147\12\11\x9\11\x9\x9\x57\x48\105\122\105\x20\xa\11\x9\x9\11\x9\11\61\x3d\x31"; if ($this->isPropertySet("\x72\x65\x71\x75\145\x73\164\x5f\x66\154\x6f\167\137\x6c\157\x67\137\x69\x64", "\x56")) { $Sql .= "\40\101\x4e\x44\x20\x72\x65\161\165\145\163\x74\x5f\x66\154\x6f\x77\x5f\154\157\147\137\x69\x64\75" . $this->getProperty("\x72\x65\161\165\x65\x73\x74\x5f\146\154\157\x77\137\154\x6f\x67\x5f\151\144"); } if ($this->isPropertySet("\165\x73\x65\162\x5f\x69\144", "\126")) { $Sql .= "\40\101\x4e\x44\x20\165\163\x65\162\x5f\x69\144\75" . $this->getProperty("\x75\x73\x65\162\137\151\144"); } if ($this->isPropertySet("\162\x65\161\165\x65\x73\164\137\146\x6c\x6f\167\137\151\144", "\x56")) { $Sql .= "\40\101\116\x44\40\x72\145\161\x75\145\x73\164\137\x66\x6c\x6f\167\137\151\144\75\47" . $this->getProperty("\x72\x65\161\165\145\163\164\137\146\154\157\167\137\x69\x64") . "\x27"; } if ($this->isPropertySet("\x69\163\101\x63\x74\151\166\145", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x69\163\101\143\x74\x69\166\x65\75\x27" . $this->getProperty("\151\163\101\x63\164\151\166\x65") . "\47"; } if ($this->isPropertySet("\x4f\x52\104\105\122\x42\131", "\x56")) { $Sql .= "\x20\117\x52\x44\105\122\40\x42\x59\40" . $this->getProperty("\x4f\x52\x44\x45\x52\x42\131"); } if ($this->isPropertySet("\x47\122\117\x55\120\x42\131", "\126")) { $Sql .= "\40\107\122\117\125\x50\x20\102\131\x20" . $this->getProperty("\x47\122\117\x55\120\102\x59"); } if ($this->isPropertySet("\x6c\151\155\x69\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\x69\x6d\151\164")); } return $this->dbQuery($Sql); } public function lstUserBankAccountDetail() { $Sql = "\123\105\x4c\105\x43\124\40\xa\x9\x9\x9\x9\11\11\145\x6d\x70\x6c\x6f\171\x65\x65\x5f\142\x61\x6e\153\137\151\144\x2c\xa\11\11\11\11\11\11\165\163\145\162\137\151\144\54\xa\11\11\x9\11\x9\x9\x62\141\156\x6b\137\x69\x64\54\12\11\x9\11\x9\11\11\141\143\x63\x6f\x75\x6e\x74\137\156\x6f\x2c\12\x9\x9\x9\11\11\11\x61\x63\143\x6f\165\x6e\164\x5f\164\151\x74\x6c\x65\x2c\xa\11\x9\11\x9\11\x9\151\x62\x61\156\137\x6e\x6f\x2c\xa\x9\11\11\11\x9\x9\145\156\x74\145\x72\x79\137\x64\x61\164\x65\x2c\xa\11\x9\11\x9\11\11\x69\163\101\x63\164\x69\166\x65\xa\x9\x9\x9\11\11\x46\x52\117\115\12\x9\11\11\11\x9\x9\162\163\137\164\x62\x6c\x5f\165\163\145\162\137\x62\x61\156\153\137\x61\x63\x63\x6f\165\x6e\x74\x5f\144\x65\164\x61\x69\x6c\xa\x9\11\x9\x9\11\127\x48\x45\122\x45\40\12\11\x9\11\11\11\x9\x31\75\x31"; if ($this->isPropertySet("\x65\x6d\x70\154\157\x79\145\145\x5f\142\x61\x6e\x6b\x5f\x69\x64", "\x56")) { $Sql .= "\40\101\x4e\104\x20\145\155\160\x6c\157\x79\145\x65\137\x62\141\x6e\x6b\137\x69\144\75" . $this->getProperty("\145\155\160\154\157\171\x65\x65\137\x62\x61\156\x6b\137\151\x64"); } if ($this->isPropertySet("\x75\163\145\x72\x5f\151\144", "\x56")) { $Sql .= "\40\x41\116\x44\40\x75\163\x65\x72\137\151\144\x3d" . $this->getProperty("\165\163\x65\x72\137\151\144"); } if ($this->isPropertySet("\x62\141\156\153\x5f\151\144", "\126")) { $Sql .= "\40\x41\116\x44\x20\142\x61\156\153\137\x69\x64\75\47" . $this->getProperty("\x62\x61\156\x6b\x5f\x69\x64") . "\47"; } if ($this->isPropertySet("\151\163\x41\x63\x74\x69\166\x65", "\x56")) { $Sql .= "\x20\101\116\104\x20\x69\163\101\x63\x74\151\166\145\x3d\x27" . $this->getProperty("\x69\163\x41\143\x74\x69\x76\x65") . "\x27"; } if ($this->isPropertySet("\117\122\x44\x45\122\102\x59", "\x56")) { $Sql .= "\x20\117\x52\x44\x45\122\40\102\131\40" . $this->getProperty("\117\x52\x44\x45\122\102\x59"); } if ($this->isPropertySet("\107\x52\x4f\125\120\x42\x59", "\126")) { $Sql .= "\40\x47\x52\x4f\x55\120\x20\x42\131\40" . $this->getProperty("\107\122\117\125\x50\x42\x59"); } if ($this->isPropertySet("\154\151\x6d\x69\x74", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\x69\164")); } return $this->dbQuery($Sql); } public function lstEmployeeSalaryDetail() { $Sql = "\x53\x45\114\x45\x43\x54\12\11\x9\11\11\11\40\40\x20\x20\x75\163\x2e\165\x73\x65\x72\x5f\151\x64\54\xa\11\x9\11\11\11\11\165\163\x2e\145\155\x70\154\x6f\x79\145\x65\x5f\x69\144\54\xa\11\x9\11\11\11\11\x75\163\56\x69\x71\141\155\x61\x5f\160\162\157\x66\145\x73\x73\x69\x6f\x6e\54\12\11\x9\x9\x9\11\x9\165\x73\x2e\165\163\145\162\137\x66\x6e\141\155\x65\x2c\12\11\11\11\11\11\x9\165\x73\x2e\165\x73\x65\x72\x5f\x64\145\x73\151\x67\156\141\x74\151\157\x6e\x2c\xa\11\x9\11\11\x9\x9\x75\163\56\157\x72\151\x67\137\x75\156\151\164\54\12\x9\x9\x9\x9\11\11\x75\x73\56\x6c\157\x63\x61\164\x69\157\x6e\137\x69\x64\x2c\12\x9\x9\11\11\x9\11\x75\163\x2e\143\157\x73\x74\x5f\143\145\156\x74\x65\x72\54\12\x9\x9\11\x9\11\x9\165\x73\x2e\160\141\171\162\x6f\154\x6c\137\x61\x72\145\x61\x2c\xa\x9\x9\11\11\11\x9\x75\163\56\x69\161\x61\x6d\x61\137\x6e\x6f\x2c\xa\x9\11\11\11\x9\x9\165\163\56\160\141\x79\162\157\154\x6c\x5f\141\162\x65\x61\54\xa\x9\11\x9\11\11\11\165\163\56\x73\165\x62\x5f\x61\162\145\141\54\xa\11\x9\11\x9\x9\11\x75\163\56\x75\163\145\x72\137\x6e\141\164\x69\x6f\x6e\x61\154\x69\164\x79\54\12\11\x9\11\x9\11\x9\165\163\163\56\163\x61\x6c\x61\162\x79\x5f\141\155\x6f\165\156\164\54\12\x9\11\11\x9\x9\11\165\x73\163\56\x66\157\x6f\144\x5f\x61\x6c\157\x77\x61\156\143\x65\54\12\11\11\x9\x9\x9\x9\165\163\163\56\x68\x6f\165\x73\x69\x6e\x67\137\141\x6c\157\x77\141\156\x63\145\x2c\xa\11\x9\11\11\11\x9\x75\x73\x73\x2e\164\x72\x61\156\163\160\157\x72\164\x5f\141\x6c\x6f\x77\141\156\143\x65\x2c\xa\x9\x9\11\x9\11\x9\x75\163\x73\56\x73\145\x63\x75\x72\x69\x74\x79\137\141\154\x6f\x77\x61\x6e\143\x65\54\xa\11\x9\x9\11\11\11\165\x73\x73\x2e\163\150\151\x66\x74\137\141\154\157\167\x61\x6e\x63\x65\54\12\11\x9\11\11\x9\x9\165\163\x73\x2e\x68\141\x72\144\163\150\x69\160\x5f\141\154\157\167\141\156\143\145\x2c\12\11\x9\x9\x9\x9\11\x75\163\163\x2e\155\157\x62\151\x6c\x65\x5f\x61\x6c\157\167\x61\156\x63\x65\x2c\xa\11\x9\11\x9\x9\11\165\x73\163\56\x69\x73\101\x63\x74\151\x76\145\x2c\xa\11\11\x9\x9\11\x9\x75\x62\x61\x64\56\142\141\x6e\153\137\151\144\54\12\11\x9\11\11\11\x9\x75\142\x61\144\56\x61\x63\x63\157\165\x6e\x74\x5f\156\157\x2c\12\x9\11\11\11\x9\11\165\142\141\x64\56\151\142\141\156\x5f\156\x6f\x2c\xa\11\11\x9\x9\x9\11\x75\142\x61\x64\x2e\141\143\143\x6f\165\156\x74\137\164\151\164\x6c\145\x2c\12\11\x9\11\11\11\11\x75\142\141\144\56\151\142\141\x6e\x5f\156\x6f\12\11\x9\11\x9\x9\x46\x52\117\115\12\11\11\x9\11\x9\11\x72\163\x5f\x74\142\154\137\x75\163\x65\162\x73\40\x61\x73\40\165\163\12\11\x9\x9\11\11\11\x49\x4e\116\x45\122\x20\x4a\x4f\x49\116\x20\162\x73\x5f\164\x62\154\x5f\x75\x73\145\162\137\163\x61\x6c\x61\162\171\x20\x61\x73\x20\x75\x73\x73\12\11\x9\11\x9\x9\11\11\x4f\x4e\x20\50\x75\x73\x2e\x75\163\x65\162\137\x69\x64\x20\x3d\40\165\x73\x73\x2e\x75\x73\x65\162\x5f\151\144\51\xa\11\x9\x9\11\11\11\114\105\106\124\x20\x4a\117\x49\116\40\x72\163\137\x74\x62\154\137\165\x73\x65\162\x5f\142\x61\x6e\x6b\x5f\141\x63\143\157\165\x6e\x74\x5f\x64\x65\x74\x61\151\154\40\x61\163\x20\x75\142\141\x64\xa\x9\11\11\x9\11\x9\x9\117\x4e\40\x28\x75\163\56\165\163\x65\162\x5f\x69\x64\x20\75\x20\x75\142\x61\x64\56\165\x73\145\x72\137\151\x64\51\xa\11\x9\x9\x9\xa\11\x9\x9\x9\11\x57\110\x45\122\105\40\12\x9\11\11\x9\11\x9\61\75\61"; if ($this->isPropertySet("\165\163\145\162\x5f\151\144", "\x56")) { $Sql .= "\40\x41\116\104\x20\x75\x73\x2e\165\163\145\x72\x5f\151\144\75" . $this->getProperty("\x75\x73\x65\x72\137\x69\x64"); } if ($this->isPropertySet("\x69\x73\101\143\164\x69\x76\145", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\x75\163\x73\56\151\x73\x41\143\164\x69\166\x65\x3d" . $this->getProperty("\x69\x73\101\143\164\x69\x76\145"); } if ($this->isPropertySet("\151\163\101\143\164\151\166\145", "\x56")) { $Sql .= "\40\x41\x4e\x44\x20\x75\x73\56\151\x73\x41\x63\x74\x69\x76\145\75\x27" . $this->getProperty("\151\163\101\x63\164\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\117\x52\104\105\122\102\131", "\126")) { $Sql .= "\40\117\x52\x44\x45\x52\40\x42\x59\40" . $this->getProperty("\117\x52\104\x45\x52\x42\x59"); } if ($this->isPropertySet("\107\x52\117\125\x50\x42\131", "\126")) { $Sql .= "\40\x47\122\117\125\x50\40\x42\131\x20" . $this->getProperty("\x47\122\117\125\x50\x42\x59"); } if ($this->isPropertySet("\x6c\151\155\151\164", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\155\151\x74")); } return $this->dbQuery($Sql); } public function tamimiDetail() { $Sql = "\123\105\114\105\x43\124\x20\x63\x2e\52\x2c\x20\x70\x2e\x2a\x2c\40\x69\56\52\12\40\40\x20\40\40\40\40\40\x46\122\x4f\115\40\164\x61\155\x69\x6d\151\x5f\x63\x6f\155\x70\141\156\x79\x20\x41\123\40\x63\xa\x20\x20\x20\x20\40\x20\x20\x20\114\105\106\124\x20\x4a\x4f\x49\x4e\x20\x74\141\x6d\x69\x6d\x69\137\160\x72\157\152\x65\143\x74\x73\40\x41\x53\40\x70\40\x4f\116\x20\143\56\143\157\x6d\x70\141\156\x79\137\151\144\40\75\x20\x70\56\143\x6f\x6d\160\x61\156\171\x5f\151\144\12\x20\x20\x20\x20\x20\x20\x20\40\114\105\106\x54\40\112\x4f\111\116\40\164\x61\x6d\151\155\x69\137\160\x72\x6f\x6a\145\x63\164\x5f\x69\155\141\x67\x65\163\x20\101\x53\x20\x69\x20\x4f\116\x20\x70\x2e\160\162\x6f\152\145\x63\164\x5f\x69\144\40\x3d\40\151\56\x70\162\x6f\x6a\x65\143\x74\x5f\x69\144\12\12\11\x9\11\x57\x48\105\x52\105\40\61\75\x31\x20\40\x4f\x52\x44\x45\x52\40\102\x59\40\x63\56\143\157\155\160\x61\156\171\137\151\144\x2c\x20\160\x2e\160\162\x6f\152\x65\x63\164\x5f\x69\144\x2c\x20\151\56\151\x6d\141\147\x65\x5f\151\x64"; if ($this->isPropertySet("\x63\x6f\155\160\141\156\x79\137\x69\144", "\126")) { $Sql .= "\x20\x41\116\104\40\x75\163\56\x63\157\155\160\141\156\171\137\151\x64\75" . $this->getProperty("\143\157\x6d\x70\x61\156\171\137\x69\144"); } if ($this->isPropertySet("\151\163\x41\x63\164\151\166\145", "\x56")) { $Sql .= "\40\101\116\104\40\165\x73\x2e\x69\163\x41\x63\x74\x69\166\145\75\x27" . $this->getProperty("\151\x73\101\143\x74\x69\166\x65") . "\x27"; } if ($this->isPropertySet("\x47\x52\117\125\120\x42\x59", "\x56")) { $Sql .= "\40\x47\122\117\x55\120\40\x42\131\x20" . $this->getProperty("\x47\122\x4f\125\x50\x42\x59"); } if ($this->isPropertySet("\154\x69\x6d\151\x74", "\126")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\155\151\164")); } return $this->dbQuery($Sql); } public function lstUserMonthlyPaidSalary() { $Sql = "\123\105\x4c\105\x43\x54\x20\xa\x9\x9\x9\11\x9\11\x6d\157\x6e\x74\x68\154\x79\137\x73\141\154\141\x72\171\137\x69\x64\x2c\xa\x9\x9\11\11\11\x9\x65\156\164\x65\162\x79\x5f\165\x73\x65\x72\x5f\x69\144\x2c\xa\x9\x9\x9\11\x9\11\x66\154\164\137\163\x74\x61\162\x74\x5f\144\141\164\x65\54\12\x9\x9\x9\x9\11\11\x66\x6c\164\137\x65\x6e\x64\x5f\144\x61\x74\145\x2c\12\x9\11\x9\11\x9\11\145\156\164\145\x72\171\x5f\144\141\x74\145\x2c\xa\x9\11\11\11\11\11\151\163\x41\x63\x74\x69\166\145\xa\11\11\11\x9\x9\106\x52\117\115\xa\11\x9\11\11\11\11\162\163\x5f\x74\142\x6c\x5f\165\x73\x65\x72\x5f\x6d\157\156\164\150\x6c\171\137\160\x61\151\144\x5f\163\141\154\x61\162\x79\xa\x9\11\x9\x9\11\x57\x48\x45\x52\x45\40\12\11\11\x9\11\x9\11\x31\x3d\x31"; if ($this->isPropertySet("\155\x6f\156\x74\x68\x6c\171\137\x73\141\154\x61\x72\x79\137\x69\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\x6d\x6f\156\x74\x68\x6c\x79\x5f\x73\141\x6c\x61\162\x79\x5f\151\x64\x3d" . $this->getProperty("\155\x6f\156\164\x68\154\x79\137\163\141\154\x61\x72\171\137\151\x64"); } if ($this->isPropertySet("\x65\156\x74\x65\162\171\137\165\x73\x65\162\137\x69\x64", "\126")) { $Sql .= "\40\x41\116\x44\40\145\x6e\164\x65\162\x79\x5f\x75\x73\x65\x72\137\x69\x64\75" . $this->getProperty("\145\x6e\164\145\x72\x79\x5f\165\x73\x65\162\x5f\x69\x64"); } if ($this->isPropertySet("\x66\154\x74\x5f\163\x74\141\162\164\x5f\x64\141\164\145", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\146\154\x74\137\163\164\x61\x72\164\137\x64\x61\x74\x65\75\47" . $this->getProperty("\146\x6c\164\137\163\164\141\162\164\137\x64\141\x74\145") . "\47"; } if ($this->isPropertySet("\146\x6c\164\137\145\156\144\137\144\141\164\x65", "\x56")) { $Sql .= "\40\x41\x4e\x44\40\x66\154\164\137\x65\x6e\144\137\144\141\164\145\75\x27" . $this->getProperty("\146\154\x74\137\145\x6e\x64\137\x64\141\x74\x65") . "\x27"; } if ($this->isPropertySet("\x69\x73\x41\143\164\151\166\x65", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\151\x73\101\143\x74\151\166\x65\x3d\x27" . $this->getProperty("\x69\x73\101\x63\164\x69\x76\145") . "\x27"; } if ($this->isPropertySet("\117\x52\x44\x45\x52\x42\131", "\126")) { $Sql .= "\40\117\x52\104\x45\122\x20\102\131\40" . $this->getProperty("\x4f\x52\104\x45\x52\x42\x59"); } if ($this->isPropertySet("\107\x52\117\125\x50\x42\131", "\x56")) { $Sql .= "\40\107\122\117\125\x50\x20\102\131\40" . $this->getProperty("\x47\122\117\125\x50\x42\131"); } if ($this->isPropertySet("\x6c\151\x6d\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\x6c\151\x6d\x69\164")); } return $this->dbQuery($Sql); } public function lstUserMonthlyPaidSalaryDetail() { $Sql = "\x53\105\x4c\105\x43\x54\x20\12\x9\11\x9\x9\x9\11\x70\141\x69\144\x5f\x73\141\x6c\141\x72\171\x5f\144\x65\x74\x61\x69\x6c\x5f\151\x64\54\12\x9\11\x9\x9\11\11\155\x6f\156\164\150\x6c\171\137\x73\141\154\x61\x72\x79\x5f\151\144\x2c\xa\x9\x9\x9\x9\11\x9\165\163\x65\162\137\x69\144\x2c\12\11\11\11\x9\x9\11\145\155\160\137\x6c\x69\x65\x6f\54\12\x9\x9\x9\11\11\x9\x65\155\160\x5f\141\142\163\x65\x6e\164\x2c\xa\x9\11\11\11\11\11\x65\x6d\x70\137\141\160\162\x76\x5f\154\145\141\166\145\163\x2c\xa\x9\11\11\x9\x9\11\145\x6d\160\x5f\141\144\166\x5f\141\x6d\x6f\165\156\164\54\xa\x9\x9\x9\x9\11\11\145\155\160\x5f\x61\x64\x76\x5f\160\141\171\142\141\x63\x6b\137\151\144\x2c\xa\x9\x9\x9\x9\11\11\145\x6d\160\137\144\x65\144\165\143\164\x69\157\x6e\x2c\xa\x9\11\x9\x9\11\11\145\155\160\x5f\x63\x75\164\164\x69\x6e\147\137\x6d\157\144\145\54\12\11\x9\x9\11\x9\11\145\x6d\160\137\x6d\x6f\156\164\150\154\x79\x5f\163\x61\x6c\141\162\171\54\xa\x9\11\x9\11\11\11\x65\x6d\x70\x5f\142\x6f\x6e\165\163\x5f\x69\144\54\12\11\x9\11\11\11\x9\145\x6d\x70\x5f\x62\x6f\x6e\x75\163\54\12\11\11\x9\11\11\x9\145\x6d\160\137\x6f\166\145\x72\164\151\x6d\145\x2c\xa\11\11\x9\11\x9\11\x70\141\171\x5f\x6d\157\x64\145\54\12\11\11\x9\x9\11\x9\x74\162\x61\156\163\141\x63\x74\151\x6f\156\137\163\164\141\164\165\x73\x2c\xa\11\x9\x9\x9\11\11\164\162\141\156\163\141\x63\x74\x69\x6f\x6e\137\x6e\x75\x6d\x62\x65\162\54\12\11\11\x9\11\11\x9\145\156\x74\x65\x72\x79\137\x64\x61\164\x65\x2c\xa\11\11\11\11\11\11\x69\163\101\x63\164\151\x76\145\12\x9\x9\x9\x9\x9\106\122\117\x4d\12\x9\x9\11\11\11\x9\162\163\137\x74\x62\x6c\137\165\163\x65\x72\137\155\x6f\156\164\x68\154\171\x5f\160\141\151\144\x5f\163\x61\154\141\162\171\137\x64\x65\164\141\x69\154\xa\x9\x9\11\11\11\127\110\105\x52\x45\x20\xa\11\11\x9\11\x9\x9\x31\75\x31"; if ($this->isPropertySet("\x70\x61\151\x64\x5f\163\141\154\141\x72\x79\x5f\144\x65\x74\x61\151\x6c\x5f\x69\144", "\126")) { $Sql .= "\40\x41\x4e\104\40\160\x61\x69\144\x5f\163\141\154\141\x72\x79\137\144\145\x74\141\151\154\137\151\144\75" . $this->getProperty("\160\141\x69\x64\x5f\163\141\x6c\141\162\x79\137\144\x65\164\x61\151\154\x5f\x69\x64"); } if ($this->isPropertySet("\x6d\157\x6e\x74\x68\154\171\137\x73\141\154\x61\x72\x79\x5f\151\x64", "\x56")) { $Sql .= "\x20\x41\116\104\40\155\157\x6e\164\150\x6c\171\137\163\141\x6c\141\162\171\x5f\151\x64\x3d" . $this->getProperty("\155\157\x6e\x74\150\154\x79\137\163\141\x6c\x61\x72\171\x5f\x69\144"); } if ($this->isPropertySet("\165\x73\145\162\137\x69\144", "\x56")) { $Sql .= "\x20\x41\116\104\40\x75\x73\145\162\x5f\151\144\x3d\47" . $this->getProperty("\165\x73\x65\x72\137\151\144") . "\47"; } if ($this->isPropertySet("\x70\x61\171\137\x6d\x6f\144\x65", "\126")) { $Sql .= "\40\101\x4e\x44\40\160\141\171\137\x6d\x6f\x64\x65\75\x27" . $this->getProperty("\160\x61\x79\x5f\x6d\157\x64\145") . "\47"; } if ($this->isPropertySet("\151\x73\101\x63\x74\x69\166\145", "\x56")) { $Sql .= "\x20\x41\x4e\x44\x20\x69\163\x41\x63\x74\x69\166\145\75\x27" . $this->getProperty("\x69\163\101\x63\164\x69\x76\x65") . "\x27"; } if ($this->isPropertySet("\x74\162\x61\156\x73\141\x63\164\151\157\156\137\x73\164\141\x74\165\x73", "\x56")) { $Sql .= "\40\x41\116\104\x20\164\162\x61\156\x73\x61\143\x74\151\x6f\156\x5f\163\164\x61\164\165\163\75\x27" . $this->getProperty("\x74\x72\x61\156\163\141\x63\x74\151\x6f\x6e\x5f\x73\x74\x61\x74\165\163") . "\x27"; } if ($this->isPropertySet("\164\x72\x61\x6e\x73\141\143\x74\151\x6f\156\x5f\x6e\x75\x6d\x62\x65\162", "\126")) { $Sql .= "\40\101\116\104\40\x74\x72\141\156\163\x61\143\164\x69\157\x6e\137\156\165\x6d\x62\145\x72\75\47" . $this->getProperty("\x74\x72\x61\156\x73\141\x63\x74\151\x6f\x6e\137\156\165\x6d\142\x65\x72") . "\x27"; } if ($this->isPropertySet("\117\x52\x44\105\x52\x42\x59", "\126")) { $Sql .= "\x20\x4f\122\x44\105\x52\x20\102\131\40" . $this->getProperty("\x4f\x52\x44\x45\122\x42\x59"); } if ($this->isPropertySet("\107\122\117\125\120\102\131", "\x56")) { $Sql .= "\40\107\122\x4f\125\x50\x20\x42\131\x20" . $this->getProperty("\x47\x52\117\125\x50\x42\x59"); } if ($this->isPropertySet("\154\x69\x6d\151\164", "\x56")) { $Sql .= $this->appendLimit($this->getProperty("\154\151\x6d\x69\x74")); } return $this->dbQuery($Sql); } public function actUser($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\x53\x45\122\124\x20\111\x4e\124\x4f\40\162\163\x5f\164\142\x6c\x5f\x75\x73\145\162\163\x28\12\11\x9\11\11\11\11\165\163\145\x72\137\151\x64\x2c\xa\11\11\11\11\x9\x9\x65\x6e\164\x65\x72\x5f\x75\163\x65\x72\137\x69\144\54\12\11\x9\11\11\x9\11\144\145\x76\151\143\145\137\x75\151\x64\x2c\xa\11\11\11\11\x9\x9\165\x73\145\x72\x5f\145\x6d\x61\151\x6c\x2c\xa\x9\11\11\x9\11\11\165\163\x65\x72\137\x6d\x6f\142\x69\x6c\x65\54\xa\x9\11\11\x9\11\11\x75\x73\145\162\137\x70\141\163\163\x2c\12\11\x9\11\11\x9\11\x75\163\145\x72\137\146\x6e\141\x6d\x65\x2c\xa\11\x9\11\11\x9\11\165\x73\x65\162\137\154\x6e\x61\155\x65\x2c\xa\11\x9\11\11\x9\11\165\x73\145\162\137\x61\x64\x64\x72\145\163\x73\54\12\11\11\x9\x9\11\x9\x75\163\x65\162\137\x70\150\157\x6e\x65\54\xa\11\x9\x9\11\11\11\165\163\x65\x72\x5f\x63\156\151\x63\54\12\11\11\11\11\x9\11\x75\x73\x65\x72\x5f\x74\x79\160\145\x5f\x69\x64\54\xa\x9\x9\11\x9\x9\11\x75\x73\145\x72\x5f\144\145\x73\151\147\x6e\x61\x74\x69\157\156\54\12\11\11\x9\x9\11\x9\x75\163\145\162\137\x73\x69\147\x6e\x61\164\x75\162\x65\54\xa\x9\x9\x9\x9\x9\11\x75\163\x65\x72\137\160\x72\157\x66\151\154\x65\137\x69\x6d\147\x2c\xa\11\11\11\x9\11\11\x73\155\163\137\x76\x65\162\151\146\x69\x63\x61\x74\x69\x6f\x6e\x2c\12\x9\11\x9\11\x9\x9\163\x68\x6f\x72\164\x5f\143\x6f\x64\x65\54\12\11\x9\11\x9\x9\11\x6c\157\x63\x61\x74\151\157\x6e\137\x69\144\x2c\xa\11\x9\x9\x9\x9\x9\154\157\x67\x69\156\x5f\x72\145\x71\165\151\x72\x65\144\54\xa\11\x9\11\x9\11\x9\x69\x73\x41\143\164\151\x76\x65\54\xa\x9\x9\11\x9\11\x9\162\x65\147\x5f\x64\x61\x74\x65\x2c\xa\11\x9\x9\11\11\11\165\x73\x65\x72\137\143\157\144\x65\x2c\xa\x9\11\x9\x9\11\11\x75\163\x65\x72\x5f\x67\x65\x6e\144\x65\162\54\12\x9\11\x9\11\11\11\x75\163\x65\x72\137\144\x6f\x62\54\12\x9\11\x9\x9\x9\x9\x75\163\x65\x72\137\x6d\141\x72\x69\164\x61\154\x5f\x73\164\141\x74\x75\163\x2c\12\x9\x9\11\x9\11\11\142\x6c\x6f\x6f\144\x5f\147\162\157\165\x70\x2c\xa\x9\x9\11\x9\11\11\143\156\151\x63\x5f\146\162\157\x6e\x74\137\x73\x69\x64\x65\54\xa\11\11\x9\11\x9\x9\143\x6e\x69\143\x5f\142\141\x63\x6b\x5f\163\x69\x64\145\x2c\xa\11\11\11\x9\x9\11\x75\163\145\x72\x5f\143\166\54\xa\x9\x9\11\11\x9\11\164\x65\141\155\154\x65\141\144\137\x73\x74\x61\x74\x75\x73\51\x20\xa\11\11\11\11\x9\11\x56\x41\114\x55\105\x53\50"; $Sql .= $this->isPropertySet("\165\163\145\162\137\151\144", "\126") ? $this->getProperty("\165\x73\145\162\137\x69\144") : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\164\145\x72\137\165\x73\x65\162\137\x69\x64", "\126") ? $this->getProperty("\145\x6e\164\x65\x72\137\x75\x73\145\162\x5f\151\144") : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\144\145\x76\x69\x63\x65\x5f\x75\x69\144", "\x56") ? $this->getProperty("\x64\x65\x76\x69\143\145\137\165\151\144") : "\60"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\x65\162\137\x65\155\141\151\x6c", "\126") ? "\47" . $this->getProperty("\x75\163\x65\162\137\x65\x6d\x61\151\x6c") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\x5f\x6d\157\x62\151\x6c\x65", "\126") ? "\x27" . $this->getProperty("\165\x73\x65\162\x5f\x6d\x6f\142\x69\x6c\x65") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\x65\162\137\160\141\163\163", "\126") ? "\47" . $this->getProperty("\165\x73\145\162\137\x70\x61\x73\163") . "\47" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\x65\x72\x5f\x66\x6e\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\165\x73\x65\162\x5f\x66\x6e\141\x6d\145") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\145\x72\137\x6c\156\x61\155\145", "\126") ? "\47" . $this->getProperty("\x75\x73\145\x72\x5f\154\156\141\x6d\x65") . "\47" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\137\141\x64\x64\x72\x65\x73\163", "\x56") ? "\x27" . $this->getProperty("\165\x73\x65\x72\x5f\141\x64\144\162\x65\x73\163") . "\x27" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\162\137\160\150\x6f\156\145", "\126") ? "\47" . $this->getProperty("\165\163\145\162\x5f\x70\150\x6f\x6e\145") . "\47" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\x65\162\x5f\x63\x6e\151\x63", "\126") ? "\47" . $this->getProperty("\x75\x73\x65\162\137\x63\156\151\x63") . "\x27" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\162\x5f\164\171\160\x65\137\151\144", "\x56") ? "\47" . $this->getProperty("\165\163\145\162\137\x74\171\160\x65\137\x69\144") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\x65\x72\x5f\144\145\x73\x69\147\156\141\164\151\x6f\x6e", "\x56") ? "\47" . $this->getProperty("\x75\x73\145\162\137\x64\x65\x73\x69\x67\x6e\x61\164\151\x6f\x6e") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\145\162\137\x73\151\x67\x6e\141\164\165\162\x65", "\x56") ? "\x27" . $this->getProperty("\165\x73\145\x72\x5f\x73\151\x67\x6e\x61\x74\165\162\145") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\x65\162\x5f\x70\162\157\146\x69\x6c\x65\x5f\151\x6d\x67", "\x56") ? "\47" . $this->getProperty("\165\163\145\x72\x5f\x70\162\157\146\x69\154\x65\x5f\x69\155\147") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x6d\163\x5f\x76\x65\162\x69\x66\151\x63\141\x74\151\x6f\156", "\126") ? "\x27" . $this->getProperty("\163\x6d\x73\x5f\166\x65\x72\x69\146\151\x63\x61\x74\151\x6f\x6e") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\150\x6f\x72\x74\137\143\157\144\145", "\x56") ? "\x27" . $this->getProperty("\163\x68\x6f\162\x74\137\143\x6f\x64\145") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\157\x63\x61\164\x69\157\156\137\151\144", "\126") ? "\47" . $this->getProperty("\154\157\x63\141\x74\x69\157\156\x5f\x69\x64") . "\x27" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x6f\147\151\x6e\x5f\x72\145\x71\x75\x69\162\x65\x64", "\x56") ? "\47" . $this->getProperty("\x6c\157\147\x69\156\x5f\162\x65\161\165\151\x72\x65\x64") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\x73\101\143\x74\151\166\145", "\x56") ? "\x27" . $this->getProperty("\x69\x73\101\x63\164\x69\166\145") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x72\x65\x67\137\x64\x61\x74\145", "\x56") ? "\47" . $this->getProperty("\x72\x65\147\137\x64\141\x74\x65") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\162\137\x63\x6f\x64\145", "\126") ? "\x27" . $this->getProperty("\x75\163\x65\162\137\x63\x6f\144\x65") . "\x27" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\145\x72\x5f\147\145\156\x64\145\162", "\x56") ? "\47" . $this->getProperty("\165\163\x65\162\137\x67\145\156\x64\x65\x72") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\145\162\x5f\144\x6f\142", "\x56") ? "\47" . $this->getProperty("\x75\x73\145\162\137\x64\157\142") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\x6d\141\162\x69\164\x61\154\137\163\x74\x61\164\165\163", "\x56") ? "\x27" . $this->getProperty("\x75\x73\x65\x72\137\x6d\x61\162\151\x74\141\x6c\137\x73\164\x61\x74\165\163") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\142\x6c\x6f\157\144\x5f\x67\162\157\165\x70", "\126") ? "\47" . $this->getProperty("\142\154\157\157\x64\137\147\162\157\165\x70") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6e\x69\143\x5f\146\162\157\x6e\x74\x5f\163\151\144\x65", "\x56") ? "\x27" . $this->getProperty("\x63\156\x69\143\137\x66\162\157\x6e\x74\x5f\163\x69\x64\x65") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\156\151\x63\x5f\142\141\143\x6b\x5f\x73\x69\144\x65", "\x56") ? "\x27" . $this->getProperty("\x63\x6e\x69\143\137\x62\141\x63\x6b\x5f\163\x69\x64\145") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\145\162\x5f\143\166", "\126") ? "\x27" . $this->getProperty("\x75\x73\145\162\137\x63\x76") . "\x27" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x74\145\141\155\x6c\x65\x61\x64\137\163\x74\x61\x74\165\163", "\126") ? "\x27" . $this->getProperty("\x74\145\141\155\x6c\145\141\x64\x5f\163\x74\141\x74\165\163") . "\47" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\120\x44\101\124\x45\x20\162\163\137\x74\142\x6c\x5f\165\163\x65\x72\163\40\x53\105\x54\40"; if ($this->isPropertySet("\x75\163\145\x72\x5f\x65\x6d\141\151\x6c", "\x4b")) { $Sql .= "{$con}\x20\x75\x73\x65\162\x5f\145\x6d\x61\x69\x6c\75\x27" . $this->getProperty("\x75\x73\x65\162\x5f\x65\155\141\x69\x6c") . "\47"; $con = "\54"; } if ($this->isPropertySet("\144\145\166\x69\143\x65\x5f\x75\151\144", "\x4b")) { $Sql .= "{$con}\40\144\145\166\x69\143\x65\x5f\165\x69\144\x3d\47" . $this->getProperty("\144\145\x76\151\x63\145\x5f\165\151\144") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x75\163\x65\162\x5f\160\x61\x73\163", "\x4b")) { $Sql .= "{$con}\40\165\x73\145\x72\x5f\160\x61\x73\163\75\47" . $this->getProperty("\165\x73\145\x72\x5f\x70\x61\163\x73") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\163\x65\162\137\x66\x6e\141\155\x65", "\x4b")) { $Sql .= "{$con}\40\x75\163\145\162\x5f\146\x6e\141\155\145\75\x27" . $this->getProperty("\165\163\145\162\137\146\156\x61\x6d\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\165\163\145\x72\x5f\154\156\x61\155\145", "\x4b")) { $Sql .= "{$con}\40\165\163\x65\x72\x5f\x6c\156\x61\x6d\x65\x3d\47" . $this->getProperty("\x75\163\145\x72\137\154\156\141\155\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\165\163\145\x72\x5f\141\x64\x64\x72\x65\163\x73", "\113")) { $Sql .= "{$con}\x20\x75\x73\145\x72\137\141\144\144\162\x65\163\163\x3d\47" . $this->getProperty("\x75\163\x65\x72\x5f\141\x64\x64\x72\145\x73\x73") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\x73\145\162\137\160\150\157\x6e\145", "\x4b")) { $Sql .= "{$con}\x20\x75\163\x65\x72\137\160\x68\157\x6e\145\75\x27" . $this->getProperty("\x75\163\145\x72\137\160\x68\x6f\x6e\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\165\x73\145\162\x5f\143\x6e\151\143", "\x4b")) { $Sql .= "{$con}\40\x75\x73\145\162\x5f\x63\x6e\x69\x63\75\47" . $this->getProperty("\165\x73\x65\162\x5f\143\x6e\x69\143") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x75\163\145\162\x5f\x74\x79\x70\x65\137\151\x64", "\x4b")) { $Sql .= "{$con}\x20\x75\163\x65\x72\137\x74\171\160\145\x5f\151\144\x3d\47" . $this->getProperty("\165\x73\145\162\x5f\x74\x79\160\x65\137\x69\144") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x75\163\145\x72\137\x64\x65\x73\151\147\156\141\164\x69\x6f\x6e", "\113")) { $Sql .= "{$con}\40\x75\x73\x65\162\137\x64\145\x73\x69\147\x6e\x61\164\x69\157\x6e\75\47" . $this->getProperty("\x75\163\145\162\x5f\x64\145\x73\x69\x67\156\x61\x74\151\x6f\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\x73\x65\x72\137\x73\x69\147\x6e\141\164\x75\162\145", "\113")) { $Sql .= "{$con}\x20\x75\x73\145\x72\x5f\163\151\x67\156\x61\164\165\x72\x65\x3d\47" . $this->getProperty("\165\x73\145\162\137\163\x69\147\156\141\x74\x75\x72\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\165\163\145\162\x5f\x70\162\157\146\151\x6c\145\x5f\x69\x6d\x67", "\x4b")) { $Sql .= "{$con}\x20\x75\x73\145\x72\137\160\x72\x6f\146\151\x6c\x65\137\151\155\x67\x3d\47" . $this->getProperty("\165\163\145\x72\x5f\x70\162\157\x66\151\x6c\x65\137\x69\x6d\x67") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\163\x6d\x73\137\166\x65\162\151\x66\151\143\x61\x74\x69\x6f\x6e", "\x4b")) { $Sql .= "{$con}\x20\x73\x6d\163\137\x76\x65\x72\151\x66\151\143\141\x74\x69\157\156\75\x27" . $this->getProperty("\x73\155\163\x5f\x76\145\x72\151\x66\151\143\141\164\151\x6f\156") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\163\x68\x6f\162\164\137\x63\x6f\144\145", "\113")) { $Sql .= "{$con}\x20\x73\150\x6f\x72\x74\137\x63\x6f\144\145\x3d\47" . $this->getProperty("\x73\x68\157\162\x74\137\143\x6f\144\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x6c\157\x63\x61\x74\151\x6f\x6e\137\151\144", "\113")) { $Sql .= "{$con}\40\154\x6f\143\x61\164\151\x6f\156\137\151\x64\x3d\x27" . $this->getProperty("\154\x6f\x63\x61\164\151\157\156\137\x69\144") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\157\147\x69\x6e\137\x72\x65\x71\165\151\x72\145\144", "\113")) { $Sql .= "{$con}\40\154\x6f\x67\x69\156\137\x72\x65\x71\x75\x69\x72\145\x64\75\x27" . $this->getProperty("\154\x6f\147\x69\x6e\137\162\145\x71\165\151\x72\145\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\x41\x63\x74\x69\166\145", "\113")) { $Sql .= "{$con}\40\151\163\x41\x63\x74\x69\166\x65\x3d" . $this->getProperty("\151\x73\101\143\x74\x69\x76\x65"); $con = "\x2c"; } if ($this->isPropertySet("\165\x73\145\162\x5f\x63\x6f\144\x65", "\x4b")) { $Sql .= "{$con}\40\x75\x73\x65\162\137\143\157\144\x65\x3d\x27" . $this->getProperty("\x75\x73\x65\x72\x5f\143\157\144\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x75\163\x65\162\x5f\147\145\156\144\x65\x72", "\x4b")) { $Sql .= "{$con}\x20\x75\x73\145\162\x5f\147\145\x6e\x64\x65\162\75\47" . $this->getProperty("\x75\x73\x65\162\137\x67\x65\156\x64\145\x72") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x75\x73\x65\162\x5f\144\x6f\142", "\x4b")) { $Sql .= "{$con}\40\165\x73\x65\162\x5f\144\157\142\x3d\47" . $this->getProperty("\165\163\x65\162\x5f\144\157\142") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\163\145\162\137\155\x61\x72\151\164\x61\154\137\x73\164\141\x74\x75\163", "\x4b")) { $Sql .= "{$con}\40\x75\x73\x65\x72\137\x6d\x61\162\151\x74\x61\x6c\137\x73\164\x61\x74\x75\x73\75\x27" . $this->getProperty("\x75\163\x65\162\137\x6d\141\162\151\x74\x61\154\137\163\164\141\x74\165\163") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\142\154\157\157\144\x5f\x67\162\157\x75\x70", "\x4b")) { $Sql .= "{$con}\40\x62\154\x6f\157\144\x5f\x67\x72\x6f\x75\x70\x3d\x27" . $this->getProperty("\x62\154\x6f\x6f\x64\x5f\x67\162\157\x75\160") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x63\156\x69\x63\x5f\146\x72\157\156\164\137\x73\x69\x64\x65", "\113")) { $Sql .= "{$con}\x20\143\156\x69\143\x5f\146\x72\x6f\156\x74\137\163\151\144\145\x3d\47" . $this->getProperty("\x63\156\x69\x63\137\146\x72\157\156\164\137\x73\151\x64\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x63\x6e\151\143\x5f\142\141\x63\x6b\137\163\x69\x64\x65", "\113")) { $Sql .= "{$con}\x20\x63\156\x69\143\x5f\142\x61\x63\x6b\x5f\x73\151\144\x65\x3d\x27" . $this->getProperty("\143\156\x69\x63\137\x62\141\143\153\137\163\151\x64\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\165\x73\x65\162\137\x63\x76", "\113")) { $Sql .= "{$con}\x20\x75\x73\x65\x72\137\143\166\75\x27" . $this->getProperty("\x75\163\145\162\137\143\166") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\164\x65\141\x6d\154\x65\141\x64\x5f\163\164\x61\x74\165\x73", "\x4b")) { $Sql .= "{$con}\x20\x74\x65\141\155\154\145\x61\x64\x5f\163\164\x61\x74\x75\163\x3d\47" . $this->getProperty("\164\x65\x61\155\x6c\145\x61\144\137\163\164\141\164\x75\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x74\145\x61\x6d\x6c\x65\141\144\x5f\144\141\164\145", "\x4b")) { $Sql .= "{$con}\40\164\x65\x61\155\154\145\x61\x64\x5f\144\141\164\145\75\x27" . $this->getProperty("\x74\145\141\155\154\x65\x61\144\137\x64\141\x74\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\164\x65\x61\x6d\154\x65\x61\x64\137\151\x64", "\x4b")) { $Sql .= "{$con}\x20\x74\145\141\x6d\x6c\x65\141\144\137\151\144\75\x27" . $this->getProperty("\x74\x65\141\x6d\154\145\141\x64\137\151\144") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x74\145\x61\155\154\145\141\x64\x5f\x69\144\137\172\145\x72\x6f", "\113")) { $Sql .= "{$con}\40\x74\x65\141\155\154\x65\x61\x64\x5f\151\144\75\47\x30\x27"; $con = "\x2c"; } if ($this->isPropertySet("\165\163\x65\162\x5f\x73\145\x63\165\x72\151\x74\171\x5f\143\157\x64\x65", "\x4b")) { $Sql .= "{$con}\40\x75\x73\145\162\137\x73\x65\x63\165\x72\x69\164\x79\x5f\143\x6f\144\145\75\47" . $this->getProperty("\165\163\x65\162\137\163\x65\143\165\x72\x69\x74\x79\137\143\x6f\144\145") . "\47"; $con = "\x2c"; } $Sql .= "\40\x57\x48\x45\122\x45\40\x31\75\61"; if ($this->isPropertySet("\165\163\x65\162\x5f\x6d\157\142\151\x6c\145", "\x56")) { $Sql .= "\40\101\x4e\x44\40\x75\x73\x65\162\x5f\x6d\x6f\x62\151\x6c\x65\x3d\47" . $this->getProperty("\x75\x73\x65\x72\x5f\x6d\157\142\151\x6c\x65") . "\47"; } else { $Sql .= "\40\x41\x4e\104\x20\x75\163\145\162\137\151\x64\75" . $this->getProperty("\x75\163\145\162\x5f\x69\144"); } break; case "\111\101\125": $Sql = "\125\x50\104\101\x54\x45\40\162\163\137\164\x62\x6c\137\x75\163\x65\162\x73\40\x53\x45\x54\x20\12\x9\x9\x9\x9\x9\11\11\x69\163\x41\x63\164\x69\x76\x65\75\62\xa\x9\11\11\x9\x9\x9\x57\110\105\x52\105\xa\x9\x9\11\11\11\x9\11\61\75\x31"; $Sql .= "\40\101\x4e\104\40\165\163\145\x72\137\x69\144\75" . $this->getProperty("\165\x73\x65\x72\x5f\x69\x64"); break; case "\x41\125": $Sql = "\125\120\104\x41\x54\105\40\x72\163\x5f\164\142\x6c\137\x75\163\145\x72\163\40\123\105\x54\x20\12\x9\x9\x9\x9\x9\11\11\151\163\x41\x63\x74\x69\166\x65\x3d\x31\xa\x9\x9\11\11\x9\11\127\x48\x45\122\105\xa\x9\x9\x9\11\11\x9\x9\61\x3d\x31"; $Sql .= "\40\x41\x4e\x44\40\165\x73\x65\x72\x5f\151\144\75" . $this->getProperty("\x75\x73\145\x72\x5f\151\144"); break; case "\x44\105\x4c": $Sql = "\x55\120\104\101\x54\x45\40\x72\163\137\164\x62\x6c\x5f\165\163\x65\162\x73\x20\123\105\x54\40\xa\11\x9\x9\11\11\x9\x9\x69\163\101\x63\164\151\x76\x65\75\x33\12\x9\11\x9\x9\11\11\x57\110\x45\122\x45\xa\11\11\x9\x9\11\x9\x9\x31\x3d\x31"; $Sql .= "\x20\101\x4e\x44\x20\165\163\145\x72\x5f\151\144\x3d" . $this->getProperty("\x75\x73\x65\162\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyinfo($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\116\x53\x45\122\x54\40\x49\x4e\124\117\40\x74\x61\x6d\x69\x6d\151\x5f\143\157\x6d\160\x61\x6e\x79\x28\xa\11\x9\x9\x9\x9\11\143\157\155\x70\x61\156\171\137\151\x64\x2c\12\11\x9\x9\11\x9\x9\x63\157\x6d\160\x61\x6e\x79\x5f\x6e\141\x6d\x65\x2c\12\x9\x9\11\11\x9\x9\x63\157\155\x70\x61\156\171\137\x64\145\163\143\162\151\x70\x74\151\157\x6e\x2c\xa\x9\11\x9\11\x9\11\x63\x6f\155\x70\x61\x6e\x79\x5f\160\162\145\163\151\x64\145\156\x74\x2c\xa\11\x9\x9\x9\x9\11\160\162\145\x73\151\x64\145\156\164\137\151\156\x66\x6f\x2c\xa\x9\11\11\11\x9\11\143\157\155\x70\141\x6e\171\x5f\x63\150\x61\x69\x72\x6d\141\156\54\12\x9\x9\11\11\11\x9\x63\x68\141\x69\x72\x6d\x61\156\137\x69\156\x66\x6f\x2c\xa\11\x9\11\11\x9\x9\x63\x6f\x6d\x70\141\x6e\171\x5f\x67\x6d\x2c\xa\11\x9\x9\11\x9\11\142\157\162\144\x5f\157\x66\137\x64\x69\162\x65\143\164\x6f\x72\163\54\xa\11\x9\11\11\11\11\143\x6f\155\160\x61\x6e\171\x5f\164\171\x70\x65\x2c\xa\x9\x9\11\x9\x9\11\x68\145\x69\x72\141\x72\143\x68\171\x5f\143\150\x61\x72\164\54\xa\x9\11\x9\x9\11\x9\x64\157\x63\165\155\x65\x6e\164\x5f\146\x69\154\145\137\156\141\x6d\x65\54\xa\11\x9\11\x9\11\11\x64\157\143\165\x6d\x65\x6e\x74\137\x66\x69\154\x65\54\12\11\x9\11\x9\11\11\143\157\155\160\141\x6e\x79\x5f\160\157\154\x69\143\x79\54\xa\x9\x9\x9\11\x9\x9\143\157\x6d\160\x61\156\x79\137\164\145\x72\x6d\163\54\xa\11\11\x9\x9\11\11\x77\145\142\163\x69\x74\145\137\x6c\151\x6e\153\54\12\x9\x9\11\11\11\11\x69\x73\101\143\x74\151\166\145\51\40\xa\11\11\11\11\x9\x9\126\101\x4c\125\105\123\50"; $Sql .= $this->isPropertySet("\143\157\155\160\141\x6e\171\x5f\x69\x64", "\x56") ? $this->getProperty("\x63\157\x6d\160\141\156\x79\x5f\151\144") : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\157\155\160\x61\x6e\x79\x5f\156\141\155\145", "\126") ? "\x27" . $this->getProperty("\x63\157\155\160\x61\x6e\171\x5f\x6e\x61\155\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\157\x6d\x70\x61\156\171\x5f\x64\145\x73\x63\x72\151\x70\164\151\157\x6e", "\126") ? "\x27" . $this->getProperty("\x63\157\x6d\160\x61\x6e\x79\x5f\x64\145\x73\x63\162\x69\160\x74\x69\157\156") . "\47" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\157\155\x70\x61\x6e\x79\x5f\x70\x72\x65\163\151\144\x65\x6e\x74", "\126") ? "\x27" . $this->getProperty("\143\x6f\155\x70\x61\x6e\x79\x5f\x70\162\x65\163\x69\x64\145\156\164") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\162\x65\163\151\144\145\x6e\x74\x5f\x69\x6e\x66\157", "\126") ? "\x27" . $this->getProperty("\x70\162\145\x73\x69\x64\145\x6e\164\137\x69\x6e\x66\157") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6f\x6d\160\x61\156\171\x5f\x63\150\141\151\x72\155\x61\156", "\x56") ? "\47" . $this->getProperty("\143\157\155\160\x61\x6e\171\x5f\x63\x68\x61\x69\x72\x6d\x61\x6e") . "\47" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\150\x61\151\x72\x6d\x61\156\x5f\151\x6e\x66\157", "\x56") ? "\47" . $this->getProperty("\x63\x68\141\151\162\155\x61\x6e\137\151\156\146\x6f") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\157\155\x70\141\156\171\137\147\x6d", "\126") ? "\47" . $this->getProperty("\x63\157\155\160\x61\156\x79\137\147\155") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x62\157\162\x64\137\x6f\146\137\x64\x69\162\145\x63\164\x6f\x72\x73", "\x56") ? "\47" . $this->getProperty("\142\x6f\x72\x64\x5f\157\146\x5f\x64\x69\x72\145\x63\164\x6f\x72\163") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\x6f\x6d\x70\x61\x6e\x79\137\164\171\160\x65", "\x56") ? "\x27" . $this->getProperty("\x63\x6f\x6d\160\x61\156\171\137\x74\171\160\145") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x68\145\x69\x72\141\162\143\150\x79\x5f\x63\150\x61\x72\164", "\x56") ? "\47" . $this->getProperty("\150\x65\x69\162\141\162\x63\150\171\x5f\143\150\141\162\x74") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\157\143\x75\x6d\x65\156\x74\137\x66\x69\x6c\145\137\156\141\x6d\x65", "\126") ? "\47" . $this->getProperty("\144\x6f\143\x75\x6d\145\156\x74\137\146\151\x6c\145\x5f\156\141\x6d\x65") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\x6f\143\165\155\x65\156\x74\137\146\x69\154\x65", "\x56") ? "\47" . $this->getProperty("\144\157\x63\x75\x6d\145\x6e\164\x5f\146\151\x6c\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\x6f\155\160\x61\x6e\x79\x5f\160\x6f\x6c\x69\x63\171", "\126") ? "\47" . $this->getProperty("\143\x6f\x6d\x70\141\x6e\x79\137\x70\x6f\x6c\151\x63\x79") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\155\160\x61\x6e\x79\x5f\164\145\x72\155\x73", "\126") ? "\x27" . $this->getProperty("\143\x6f\x6d\x70\x61\x6e\171\x5f\x74\145\x72\x6d\x73") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x77\x65\142\x73\151\x74\x65\x5f\x6c\x69\x6e\153", "\126") ? "\47" . $this->getProperty("\167\x65\x62\163\x69\164\145\137\154\x69\156\x6b") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\101\x63\x74\x69\166\x65", "\x56") ? "\47" . $this->getProperty("\151\x73\101\143\164\x69\x76\145") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\120\x44\x41\124\105\40\164\x61\155\x69\155\x69\x5f\143\157\155\160\141\x6e\x79\x20\x53\105\124\x20"; if ($this->isPropertySet("\x63\x6f\x6d\160\141\156\171\x5f\156\141\155\x65", "\113")) { $Sql .= "{$con}\40\x63\x6f\155\160\141\x6e\171\x5f\x6e\x61\155\145\x3d\47" . $this->getProperty("\x63\157\155\160\141\156\171\137\156\x61\155\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x63\157\x6d\160\141\x6e\x79\x5f\144\x65\163\143\x72\151\x70\x74\151\157\156", "\113")) { $Sql .= "{$con}\40\x63\x6f\155\160\141\156\171\137\144\x65\163\x63\x72\x69\x70\x74\151\157\156\x3d\x27" . $this->getProperty("\x63\157\155\160\x61\156\x79\x5f\144\x65\x73\143\162\x69\160\164\151\x6f\x6e") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\143\157\155\x70\x61\x6e\x79\137\160\162\x65\163\x69\144\145\x6e\164", "\113")) { $Sql .= "{$con}\40\143\x6f\155\x70\x61\x6e\x79\x5f\160\x72\x65\x73\x69\144\x65\156\x74\x3d\47" . $this->getProperty("\x63\157\x6d\x70\141\x6e\171\137\160\162\x65\x73\151\x64\145\156\x74") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\160\162\145\x73\x69\x64\x65\156\164\x5f\151\x6e\146\x6f", "\x4b")) { $Sql .= "{$con}\40\x70\x72\x65\163\151\x64\145\156\x74\137\x69\x6e\x66\x6f\x3d\x27" . $this->getProperty("\x70\162\145\163\151\144\x65\156\164\137\151\156\146\157") . "\47"; $con = "\54"; } if ($this->isPropertySet("\143\x6f\155\x70\141\x6e\x79\x5f\x63\150\x61\151\x72\155\x61\x6e", "\x4b")) { $Sql .= "{$con}\40\x63\157\155\x70\141\x6e\x79\137\x63\x68\141\x69\162\155\x61\156\x3d\47" . $this->getProperty("\143\157\x6d\160\x61\x6e\x79\137\143\x68\141\x69\162\155\x61\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\143\x68\x61\x69\162\155\x61\156\x5f\151\156\x66\157", "\113")) { $Sql .= "{$con}\x20\x63\x68\x61\x69\x72\155\141\156\x5f\151\156\146\x6f\x3d\47" . $this->getProperty("\143\150\x61\x69\162\x6d\x61\156\137\x69\x6e\146\x6f") . "\47"; $con = "\54"; } if ($this->isPropertySet("\143\157\155\160\x61\x6e\171\x5f\x67\155", "\113")) { $Sql .= "{$con}\40\143\157\x6d\160\141\x6e\x79\x5f\147\155\75\x27" . $this->getProperty("\x63\157\x6d\160\141\x6e\x79\x5f\147\x6d") . "\47"; $con = "\54"; } if ($this->isPropertySet("\142\x6f\x72\144\137\157\x66\x5f\144\151\x72\x65\x63\164\157\x72\x73", "\113")) { $Sql .= "{$con}\x20\142\x6f\x72\144\137\157\x66\137\144\151\x72\145\x63\x74\x6f\x72\x73\x3d\x27" . $this->getProperty("\142\x6f\162\144\137\x6f\146\x5f\x64\x69\x72\145\x63\x74\x6f\162\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x63\157\x6d\160\141\156\x79\x5f\164\171\160\x65", "\x4b")) { $Sql .= "{$con}\x20\x63\x6f\x6d\160\141\x6e\x79\x5f\164\x79\160\145\x3d\x27" . $this->getProperty("\143\157\155\x70\141\x6e\x79\137\x74\x79\160\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\150\x65\151\162\x61\x72\x63\x68\x79\137\143\x68\x61\x72\x74", "\x4b")) { $Sql .= "{$con}\x20\150\145\x69\162\x61\162\x63\x68\171\x5f\x63\150\141\x72\x74\x3d\x27" . $this->getProperty("\x68\145\151\162\x61\162\143\150\171\x5f\143\x68\141\162\164") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\144\157\x63\x75\155\x65\156\x74\137\x66\151\154\145", "\x4b")) { $Sql .= "{$con}\40\x64\x6f\x63\x75\x6d\x65\x6e\164\137\x66\151\x6c\x65\137\x6e\141\x6d\145\75\x27" . $this->getProperty("\x64\x6f\143\165\155\145\x6e\164\x5f\x66\x69\154\145\x5f\x6e\x61\x6d\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\144\157\143\x75\x6d\145\x6e\164\137\x66\151\x6c\145", "\x4b")) { $Sql .= "{$con}\40\x64\x6f\143\x75\155\145\x6e\164\137\146\x69\154\145\x3d\x27" . $this->getProperty("\x64\157\143\x75\155\145\156\x74\137\146\151\154\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\143\x6f\155\160\141\x6e\171\137\x70\x6f\154\151\143\171", "\x4b")) { $Sql .= "{$con}\x20\x63\157\x6d\x70\141\x6e\x79\137\160\x6f\x6c\151\143\x79\75\47" . $this->getProperty("\143\157\155\x70\x61\156\x79\137\160\x6f\154\151\x63\x79") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x63\x6f\x6d\160\x61\x6e\171\137\164\x65\x72\x6d\x73", "\x4b")) { $Sql .= "{$con}\40\143\157\155\x70\141\156\x79\137\x74\145\x72\155\163\75\x27" . $this->getProperty("\x63\x6f\x6d\160\141\x6e\x79\137\164\x65\162\155\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\167\x65\x62\163\x69\164\x65\x5f\x6c\x69\156\x6b", "\113")) { $Sql .= "{$con}\40\x77\145\x62\163\151\x74\145\137\154\151\156\x6b\75\x27" . $this->getProperty("\x77\x65\142\163\151\164\x65\137\154\151\156\153") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\x41\143\164\151\166\145", "\113")) { $Sql .= "{$con}\40\x69\x73\101\x63\x74\151\x76\x65\x3d" . $this->getProperty("\151\x73\x41\143\164\x69\x76\x65"); $con = "\54"; } $Sql .= "\40\x57\x48\105\x52\105\40\x31\x3d\x31"; $Sql .= "\40\x41\x4e\104\40\143\x6f\155\160\x61\156\171\x5f\x69\x64\75" . $this->getProperty("\143\x6f\x6d\x70\141\x6e\171\137\x69\144"); break; case "\x49\101\x55": $Sql = "\x55\120\x44\x41\x54\105\x20\164\x61\155\151\155\151\x5f\x63\x6f\x6d\x70\x61\x6e\x79\x20\123\105\x54\x20\xa\x9\x9\11\11\x9\x9\x9\151\x73\101\x63\x74\151\166\145\75\x32\xa\x9\x9\x9\11\x9\x9\x57\x48\105\x52\105\xa\x9\11\x9\11\x9\x9\x9\x31\75\x31"; $Sql .= "\x20\101\116\104\40\x63\x6f\x6d\160\x61\x6e\171\x5f\x69\x64\x3d" . $this->getProperty("\x63\157\x6d\x70\x61\156\171\x5f\x69\x64"); break; case "\x41\x55": $Sql = "\x55\120\104\x41\x54\x45\40\x74\141\x6d\x69\155\x69\x5f\143\x6f\x6d\160\x61\156\x79\40\x53\105\124\40\12\11\x9\11\x9\x9\x9\11\x69\163\x41\143\164\x69\x76\x65\75\61\xa\x9\11\11\x9\x9\11\x57\110\x45\x52\x45\xa\11\x9\x9\11\11\x9\11\x31\75\x31"; $Sql .= "\x20\x41\116\104\40\x63\157\x6d\160\x61\156\171\137\x69\144\75" . $this->getProperty("\143\157\155\x70\141\x6e\x79\x5f\x69\144"); break; case "\x44\x45\114": $Sql = "\x55\120\104\x41\x54\x45\40\x74\x61\155\x69\x6d\x69\x5f\143\157\x6d\160\x61\156\x79\40\x53\x45\124\x20\xa\x9\11\x9\x9\x9\11\x9\151\x73\101\143\164\151\166\x65\x3d\63\12\x9\x9\11\x9\x9\11\127\110\105\122\x45\12\x9\x9\11\x9\11\11\11\61\75\x31"; $Sql .= "\40\x41\x4e\x44\x20\143\157\155\x70\x61\x6e\171\x5f\x69\144\x3d" . $this->getProperty("\x63\x6f\x6d\160\x61\x6e\x79\137\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyevents($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\x53\x45\x52\124\x20\111\116\124\x4f\40\x74\141\155\x69\x6d\x69\x5f\x65\x76\x65\156\x74\x73\50\12\x9\x9\11\x9\x9\x9\145\x76\x65\156\164\137\151\x64\x2c\12\11\x9\11\x9\x9\11\x65\x76\x65\x6e\164\137\164\171\x70\145\54\12\x9\11\11\11\x9\11\x63\x6f\x6d\x70\x61\156\171\137\x69\x64\x2c\xa\x9\x9\11\x9\x9\11\x65\x76\x65\156\164\137\x6e\x61\x6d\145\x2c\xa\11\11\11\x9\11\x9\145\x76\145\156\x74\x5f\x64\145\163\143\162\x69\160\164\151\x6f\x6e\54\12\11\x9\11\11\x9\x9\145\166\x65\x6e\x74\137\x64\x61\x74\x65\54\12\11\x9\11\x9\11\11\x65\x76\x65\x6e\x74\x5f\151\155\141\147\145\54\xa\x9\11\x9\11\11\11\151\163\101\x63\164\x69\x76\x65\x29\x20\12\11\x9\11\11\11\11\126\101\114\125\105\x53\x28"; $Sql .= $this->isPropertySet("\145\x76\145\x6e\164\x5f\x69\x64", "\126") ? $this->getProperty("\145\x76\x65\156\164\x5f\x69\144") : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x76\145\x6e\x74\x5f\164\171\x70\145", "\x56") ? "\x27" . $this->getProperty("\145\166\x65\156\164\137\x74\x79\x70\x65") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6f\155\160\x61\x6e\x79\137\151\x64", "\126") ? "\x27" . $this->getProperty("\x63\x6f\x6d\x70\x61\x6e\171\137\151\x64") . "\47" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x76\145\x6e\x74\137\x6e\141\x6d\145", "\126") ? "\47" . $this->getProperty("\145\166\x65\x6e\164\137\156\x61\x6d\x65") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\166\145\x6e\x74\x5f\144\145\x73\x63\x72\x69\x70\x74\151\157\156", "\x56") ? "\x27" . $this->getProperty("\x65\x76\145\156\164\x5f\x64\145\163\143\x72\151\160\x74\151\157\x6e") . "\47" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\x76\x65\x6e\164\137\x64\x61\164\x65", "\126") ? "\x27" . $this->getProperty("\x65\x76\145\x6e\x74\x5f\x64\x61\164\145") . "\x27" : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x76\145\156\x74\137\x69\155\141\x67\x65", "\x56") ? "\47" . $this->getProperty("\145\x76\x65\156\x74\x5f\151\x6d\141\147\145") . "\x27" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\x73\x41\x63\x74\x69\x76\x65", "\126") ? "\x27" . $this->getProperty("\x69\x73\x41\x63\x74\151\166\145") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\x50\104\x41\124\105\x20\x74\x61\x6d\151\x6d\151\x5f\x65\x76\x65\156\x74\163\40\123\105\x54\40"; if ($this->isPropertySet("\x65\x76\x65\156\164\137\164\171\x70\x65", "\x4b")) { $Sql .= "{$con}\40\145\x76\145\156\164\x5f\164\171\160\145\75\47" . $this->getProperty("\145\x76\x65\x6e\164\x5f\164\171\160\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x63\157\x6d\x70\x61\x6e\171\137\x69\144", "\113")) { $Sql .= "{$con}\40\x63\x6f\155\x70\141\x6e\171\137\151\144\75\47" . $this->getProperty("\x63\157\x6d\x70\x61\156\171\x5f\x69\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\145\166\x65\x6e\164\137\x6e\141\x6d\145", "\x4b")) { $Sql .= "{$con}\x20\145\166\x65\x6e\x74\x5f\156\x61\155\x65\75\47" . $this->getProperty("\x65\166\x65\x6e\164\x5f\x6e\x61\x6d\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x65\166\145\156\x74\137\x64\x65\x73\x63\162\x69\x70\164\x69\x6f\x6e", "\113")) { $Sql .= "{$con}\x20\145\x76\145\x6e\164\137\x64\145\163\x63\162\151\160\x74\151\157\156\x3d\47" . $this->getProperty("\145\x76\145\x6e\x74\137\144\x65\x73\x63\x72\x69\160\164\x69\157\156") . "\47"; $con = "\54"; } if ($this->isPropertySet("\145\166\x65\156\164\x5f\144\x61\x74\x65", "\113")) { $Sql .= "{$con}\40\145\x76\145\x6e\164\x5f\x64\141\164\145\x3d\47" . $this->getProperty("\x65\x76\x65\x6e\x74\x5f\144\x61\164\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\145\166\x65\156\x74\137\151\x6d\141\147\x65", "\113")) { $Sql .= "{$con}\40\145\x76\145\x6e\x74\137\151\x6d\x61\147\145\x3d\47" . $this->getProperty("\x65\166\x65\x6e\164\x5f\151\x6d\141\147\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\151\163\x41\x63\164\x69\x76\x65", "\113")) { $Sql .= "{$con}\x20\x69\x73\101\143\x74\151\x76\x65\75" . $this->getProperty("\x69\163\101\x63\x74\x69\x76\x65"); $con = "\54"; } $Sql .= "\40\x57\x48\x45\x52\105\x20\61\x3d\61"; $Sql .= "\40\101\116\104\40\x65\166\145\156\164\x5f\x69\x64\x3d" . $this->getProperty("\x65\166\x65\x6e\164\x5f\x69\x64"); break; case "\111\101\x55": $Sql = "\x55\120\x44\x41\124\105\x20\164\141\155\x69\155\x69\x5f\x65\166\145\x6e\164\x73\40\x53\x45\x54\x20\12\x9\x9\x9\11\11\x9\11\151\x73\x41\x63\164\x69\166\x65\x3d\62\xa\11\x9\11\x9\x9\x9\127\110\x45\122\x45\xa\x9\x9\x9\11\x9\11\x9\61\75\61"; $Sql .= "\40\x41\x4e\x44\x20\145\x76\145\x6e\164\137\151\144\x3d" . $this->getProperty("\145\166\145\156\x74\137\151\x64"); break; case "\x41\x55": $Sql = "\125\120\x44\x41\124\105\x20\164\141\155\151\x6d\151\137\x65\166\145\x6e\x74\x73\x20\123\105\x54\40\12\x9\x9\11\11\x9\11\x9\151\163\x41\143\164\x69\x76\x65\75\x31\xa\11\x9\11\x9\x9\x9\127\110\x45\122\x45\xa\11\11\x9\11\x9\11\x9\61\x3d\61"; $Sql .= "\40\101\116\x44\40\145\x76\x65\156\164\137\151\x64\75" . $this->getProperty("\x65\x76\x65\x6e\x74\137\151\144"); break; case "\104\x45\114": $Sql = "\125\x50\x44\101\x54\x45\x20\x74\141\155\151\x6d\151\137\145\166\145\x6e\x74\163\x20\123\105\x54\x20\xa\x9\x9\11\x9\x9\11\x9\x69\x73\x41\x63\164\x69\x76\x65\x3d\63\12\11\x9\11\11\11\x9\127\x48\x45\x52\x45\12\11\11\x9\x9\x9\11\11\x31\75\61"; $Sql .= "\x20\x41\x4e\x44\40\x65\x76\x65\x6e\x74\137\x69\144\x3d" . $this->getProperty("\145\x76\145\156\x74\137\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanyprojects($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\123\105\x52\124\x20\111\116\124\x4f\40\x74\141\155\x69\155\x69\x5f\x70\162\157\152\x65\x63\164\163\50\12\11\11\x9\11\x9\x9\x70\x72\x6f\152\x65\143\x74\137\x69\144\x2c\12\x9\x9\x9\x9\x9\x9\143\x6f\x6d\x70\141\x6e\171\x5f\151\144\x2c\12\11\x9\x9\11\11\11\160\x72\x6f\152\145\x63\x74\137\x6e\x61\x6d\x65\x2c\12\x9\x9\x9\11\x9\11\x70\162\x6f\152\x65\143\x74\137\x64\x65\163\x63\162\x69\x70\x74\151\157\156\54\xa\11\11\x9\x9\x9\11\x70\162\x6f\152\x65\x63\164\137\164\x79\x70\145\x2c\xa\11\11\11\11\x9\x9\163\164\141\x72\164\x5f\144\141\164\x65\54\12\11\x9\11\x9\x9\11\x65\156\144\x5f\144\141\x74\145\x2c\12\x9\x9\11\11\11\x9\x63\157\x6d\160\x6c\145\x74\151\157\x6e\137\x70\x65\162\143\145\156\164\x61\x67\145\54\xa\x9\11\11\x9\x9\11\x70\162\157\x65\x63\164\137\x6d\141\x6e\x61\147\145\x72\x2c\12\11\11\11\11\x9\11\143\157\162\145\137\164\145\x61\155\x2c\12\11\11\x9\11\11\x9\160\162\x6f\x6a\x65\143\x74\137\163\x74\141\x74\165\x73\54\xa\x9\x9\x9\x9\x9\x9\151\x73\x41\143\x74\151\166\x65\x29\40\12\11\x9\x9\x9\x9\x9\126\x41\114\x55\105\123\x28"; $Sql .= $this->isPropertySet("\160\x72\157\x6a\x65\143\164\x5f\x69\x64", "\x56") ? $this->getProperty("\160\162\x6f\152\x65\143\164\x5f\151\144") : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\157\155\160\141\156\171\137\x69\144", "\x56") ? "\x27" . $this->getProperty("\x63\x6f\x6d\160\x61\156\171\137\151\144") . "\47" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\x72\157\x6a\145\x63\164\137\156\x61\x6d\145", "\126") ? "\47" . $this->getProperty("\x70\162\x6f\x6a\x65\x63\x74\137\156\x61\x6d\x65") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x70\162\157\x6a\145\143\x74\137\x64\x65\x73\x63\x72\151\160\x74\151\157\x6e", "\x56") ? "\x27" . $this->getProperty("\x70\162\157\x6a\x65\143\x74\x5f\144\x65\x73\143\x72\x69\160\164\151\157\x6e") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\160\x72\x6f\152\x65\143\x74\x5f\164\171\x70\145", "\126") ? "\x27" . $this->getProperty("\x70\x72\x6f\152\145\143\164\137\164\x79\160\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\164\141\162\164\137\x64\x61\164\x65", "\x56") ? "\47" . $this->getProperty("\x73\164\141\162\164\137\x64\141\x74\x65") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\156\144\137\x64\x61\x74\145", "\x56") ? "\x27" . $this->getProperty("\x65\156\144\x5f\144\x61\164\x65") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\x6f\155\x70\154\x65\x74\x69\157\156\x5f\160\145\162\143\145\156\164\141\x67\x65", "\x56") ? "\x27" . $this->getProperty("\x63\x6f\x6d\160\154\x65\164\x69\x6f\156\x5f\160\145\x72\143\145\156\164\141\x67\145") . "\x27" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\160\162\157\x65\143\164\x5f\155\x61\x6e\141\x67\x65\162", "\x56") ? "\47" . $this->getProperty("\160\x72\157\x65\143\164\x5f\155\141\x6e\x61\x67\145\162") . "\47" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\157\x72\145\x5f\x74\145\141\x6d", "\x56") ? "\47" . $this->getProperty("\143\x6f\x72\x65\x5f\164\x65\x61\x6d") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x70\162\x6f\x6a\145\143\x74\x5f\x73\x74\141\164\165\x73", "\126") ? "\47" . $this->getProperty("\160\x72\x6f\x6a\x65\143\164\x5f\x73\x74\141\164\165\x73") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\101\143\x74\x69\x76\x65", "\126") ? "\47" . $this->getProperty("\151\x73\x41\x63\x74\x69\x76\x65") . "\47" : "\116\x55\x4c\114"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\x50\x44\x41\124\105\x20\x74\141\155\x69\155\151\x5f\x70\x72\157\152\145\x63\x74\163\40\x53\105\x54\x20"; if ($this->isPropertySet("\143\157\155\160\141\156\171\137\x69\144", "\x4b")) { $Sql .= "{$con}\x20\143\157\155\160\x61\156\x79\x5f\x69\x64\75\x27" . $this->getProperty("\x63\157\x6d\x70\x61\156\x79\x5f\151\144") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x70\x72\x6f\x6a\x65\143\164\x5f\x6e\x61\x6d\x65", "\x4b")) { $Sql .= "{$con}\40\160\x72\157\152\x65\143\164\137\x6e\141\x6d\x65\75\47" . $this->getProperty("\160\x72\x6f\152\145\143\x74\x5f\156\x61\x6d\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x70\x72\157\x6a\145\143\164\137\x64\145\x73\143\x72\x69\x70\x74\x69\157\x6e", "\113")) { $Sql .= "{$con}\40\x70\162\x6f\152\145\143\164\x5f\x64\x65\x73\x63\162\151\160\164\x69\157\156\75\x27" . $this->getProperty("\x70\162\x6f\x6a\x65\143\164\x5f\x64\145\163\x63\x72\x69\160\164\x69\x6f\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\160\162\157\152\x65\143\x74\137\x74\x79\x70\145", "\x4b")) { $Sql .= "{$con}\40\160\x72\x6f\152\145\143\164\137\164\x79\160\145\x3d\47" . $this->getProperty("\x70\162\x6f\152\x65\x63\164\x5f\x74\171\x70\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\163\164\x61\162\x74\137\x64\141\164\x65", "\113")) { $Sql .= "{$con}\40\x73\x74\141\162\164\x5f\x64\x61\x74\145\75\x27" . $this->getProperty("\x73\164\x61\x72\x74\x5f\x64\x61\x74\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\145\156\x64\137\x64\x61\164\145", "\x4b")) { $Sql .= "{$con}\40\x65\156\x64\x5f\144\x61\x74\145\75\x27" . $this->getProperty("\145\x6e\144\x5f\x64\141\164\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x63\157\155\160\x6c\145\x74\x69\157\x6e\x5f\160\x65\x72\x63\145\156\164\141\147\145", "\113")) { $Sql .= "{$con}\x20\x63\157\x6d\160\x6c\x65\x74\x69\157\x6e\137\160\145\162\143\x65\156\x74\x61\147\x65\75\x27" . $this->getProperty("\x63\157\155\x70\x6c\145\164\x69\x6f\156\x5f\x70\145\x72\143\x65\x6e\164\x61\x67\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x70\162\x6f\x65\x63\x74\137\155\x61\x6e\x61\x67\145\x72", "\x4b")) { $Sql .= "{$con}\40\160\x72\x6f\x65\143\x74\x5f\155\x61\x6e\141\x67\145\162\75\x27" . $this->getProperty("\x70\162\x6f\x65\143\x74\x5f\x6d\x61\156\x61\147\145\162") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\143\x6f\162\145\x5f\164\145\x61\155", "\x4b")) { $Sql .= "{$con}\x20\x63\x6f\162\x65\x5f\164\x65\x61\x6d\75\47" . $this->getProperty("\x63\157\x72\x65\137\x74\145\x61\x6d") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\160\162\157\x6a\x65\143\164\137\x73\x74\141\x74\165\x73", "\x4b")) { $Sql .= "{$con}\x20\x70\162\157\x6a\145\x63\164\137\163\164\141\164\165\163\x3d\47" . $this->getProperty("\160\162\x6f\152\145\x63\x74\137\163\164\141\x74\165\x73") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x69\163\x41\x63\164\151\x76\x65", "\113")) { $Sql .= "{$con}\x20\x69\x73\101\x63\x74\x69\166\x65\x3d" . $this->getProperty("\x69\163\x41\x63\164\x69\166\145"); $con = "\x2c"; } $Sql .= "\40\x57\110\x45\122\x45\x20\61\x3d\x31"; $Sql .= "\40\101\116\x44\40\160\162\157\x6a\x65\x63\164\137\151\x64\x3d" . $this->getProperty("\x70\x72\x6f\152\145\x63\x74\137\151\144"); break; case "\111\101\x55": $Sql = "\x55\120\x44\101\x54\x45\x20\x74\x61\x6d\151\x6d\x69\x5f\x70\162\157\152\145\x63\164\163\x20\123\x45\x54\x20\12\11\11\11\x9\x9\x9\x9\x69\x73\x41\x63\x74\x69\x76\x65\x3d\62\12\11\x9\x9\11\x9\11\x57\110\x45\122\x45\xa\x9\11\x9\x9\x9\11\x9\61\x3d\x31"; $Sql .= "\40\101\116\x44\x20\160\162\157\x6a\145\143\164\x5f\x69\x64\x3d" . $this->getProperty("\160\162\157\x6a\145\143\x74\x5f\151\144"); break; case "\x41\x55": $Sql = "\x55\x50\x44\101\124\x45\x20\164\x61\155\x69\155\151\x5f\x70\x72\157\x6a\x65\x63\x74\163\40\x53\105\x54\40\12\x9\11\11\11\11\x9\x9\151\x73\x41\143\164\x69\x76\145\75\61\12\x9\11\x9\x9\11\11\127\110\x45\122\105\xa\11\x9\11\11\11\11\11\x31\x3d\61"; $Sql .= "\40\101\x4e\x44\x20\160\162\157\152\145\143\164\x5f\151\x64\75" . $this->getProperty("\x70\x72\x6f\152\145\143\164\x5f\151\144"); break; case "\104\x45\114": $Sql = "\x55\x50\x44\101\124\105\x20\x74\x61\x6d\151\x6d\151\x5f\160\162\157\152\145\143\x74\x73\x20\123\105\x54\x20\xa\11\x9\x9\x9\11\11\x9\151\163\x41\143\x74\151\x76\145\x3d\x33\12\x9\x9\11\x9\11\11\x57\110\x45\122\105\xa\11\x9\x9\x9\x9\x9\11\x31\x3d\61"; $Sql .= "\40\101\x4e\x44\x20\x70\162\x6f\x6a\145\x63\164\x5f\151\x64\x3d" . $this->getProperty("\160\162\x6f\x6a\x65\143\164\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actAssets($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\x53\105\122\x54\x20\x49\116\124\117\40\x72\163\137\164\x62\x6c\137\x61\x73\x73\x65\x74\x73\x28\xa\x9\11\11\x9\11\x9\141\x73\163\x65\164\137\151\x64\x2c\12\x9\11\x9\x9\11\x9\141\163\163\145\164\137\156\141\155\x65\x2c\xa\x9\x9\x9\11\x9\11\x61\163\x73\x65\x74\137\x73\164\141\x74\165\x73\x2c\xa\x9\11\x9\11\x9\11\155\x61\x6e\165\146\141\x63\164\x75\162\145\x72\54\12\11\11\11\11\x9\11\142\x72\x61\156\144\54\12\x9\x9\x9\x9\11\11\141\x73\x73\x65\164\137\156\x6f\x2c\12\11\11\x9\x9\x9\11\x6d\x6f\x64\141\154\x5f\x6e\157\x2c\xa\11\11\11\x9\11\x9\163\x65\162\151\141\x6c\x5f\x6e\x6f\54\12\x9\x9\11\x9\x9\x9\141\163\x73\163\145\x74\x5f\x69\x6d\147\54\12\x9\11\11\11\11\11\x63\157\155\x6d\x65\x6e\x74\x73\54\12\x9\11\x9\11\x9\x9\x65\x6e\x74\x65\162\x79\137\151\144\x2c\xa\x9\x9\x9\11\11\11\143\x61\x74\x61\x67\x6f\x72\x79\137\151\144\x2c\12\x9\11\x9\11\x9\x9\x61\163\x73\145\x74\137\164\x79\x70\x65\x5f\151\144\54\xa\x9\11\11\x9\11\11\141\163\163\x65\164\137\143\157\x6e\144\151\x74\151\157\156\x2c\12\x9\11\x9\11\x9\11\145\156\x74\162\171\137\x64\x61\x74\x65\54\12\x9\11\11\x9\x9\x9\x64\157\x63\x75\155\145\x6e\x74\137\146\151\154\x65\137\156\x61\155\x65\x2c\xa\x9\x9\11\x9\11\x9\144\x6f\x63\x75\x6d\145\156\x74\x5f\146\151\154\145\54\xa\11\x9\x9\x9\11\x9\x69\163\x41\143\x74\151\166\145\x29\x20\xa\x9\x9\x9\11\x9\x9\126\101\x4c\x55\105\123\x28"; $Sql .= $this->isPropertySet("\x61\x73\x73\x65\x74\137\x69\x64", "\126") ? $this->getProperty("\x61\163\163\x65\x74\137\x69\x64") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\x73\x65\x74\137\x6e\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\141\x73\x73\x65\x74\x5f\x6e\x61\x6d\x65") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\x73\145\x74\x5f\163\164\141\164\165\x73", "\126") ? "\47" . $this->getProperty("\141\x73\163\145\x74\137\163\164\141\164\165\x73") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\155\x61\x6e\165\x66\141\x63\164\165\162\145\x72", "\126") ? "\x27" . $this->getProperty("\155\x61\x6e\165\146\x61\143\x74\165\162\x65\162") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\142\x72\x61\156\144", "\126") ? "\47" . $this->getProperty("\142\162\x61\x6e\x64") . "\x27" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\163\x73\x65\x74\137\156\x6f", "\126") ? "\47" . $this->getProperty("\x61\x73\x73\x65\164\x5f\156\x6f") . "\47" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x65\x72\x69\141\x6c\x5f\156\157", "\126") ? "\47" . $this->getProperty("\163\145\162\151\x61\154\x5f\x6e\x6f") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6d\157\x64\x61\154\x5f\x6e\x6f", "\x56") ? "\47" . $this->getProperty("\155\x6f\144\x61\154\137\156\157") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\163\x73\145\164\137\151\x6d\x67", "\x56") ? "\x27" . $this->getProperty("\x61\x73\163\x73\145\x74\137\151\155\147") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\x6f\x6d\155\x65\x6e\x74\x73", "\x56") ? "\x27" . $this->getProperty("\143\157\x6d\x6d\x65\x6e\x74\x73") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\x74\145\x72\x79\137\151\x64", "\126") ? "\47" . $this->getProperty("\145\156\164\145\x72\171\x5f\x69\144") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\141\x74\141\147\157\x72\x79\x5f\151\144", "\x56") ? "\x27" . $this->getProperty("\143\x61\x74\x61\x67\x6f\x72\x79\137\151\x64") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x61\x73\x73\x65\x74\137\x74\171\160\145\x5f\x69\x64", "\x56") ? "\x27" . $this->getProperty("\x61\163\x73\x65\164\x5f\x74\171\160\145\137\151\144") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\163\145\164\x5f\x63\x6f\x6e\x64\151\x74\151\x6f\x6e", "\126") ? "\x27" . $this->getProperty("\141\163\163\x65\x74\137\x63\157\156\144\x69\x74\x69\x6f\156") . "\47" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\164\162\x79\x5f\144\141\x74\145", "\126") ? "\x27" . $this->getProperty("\145\x6e\164\x72\x79\x5f\144\x61\x74\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\144\157\143\x75\155\145\x6e\164\x5f\146\x69\x6c\x65\x5f\156\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\144\x6f\143\165\x6d\x65\x6e\x74\137\146\x69\154\145\137\156\x61\x6d\145") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\144\157\143\165\155\x65\x6e\164\x5f\146\x69\x6c\x65", "\x56") ? "\x27" . $this->getProperty("\144\157\x63\165\x6d\145\156\164\137\146\151\x6c\145") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\163\101\x63\164\151\x76\x65", "\126") ? "\47" . $this->getProperty("\x69\163\101\143\x74\x69\x76\145") . "\47" : "\116\125\x4c\114"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\120\104\x41\x54\105\40\162\163\x5f\x74\142\x6c\x5f\141\163\163\145\164\x73\x20\123\105\124\40"; if ($this->isPropertySet("\141\x73\x73\x65\164\137\x6e\141\155\145", "\x4b")) { $Sql .= "{$con}\40\x61\163\x73\145\164\x5f\x6e\141\x6d\145\75\47" . $this->getProperty("\x61\x73\x73\x65\x74\137\x6e\141\155\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\141\163\x73\x65\x74\137\163\x74\141\x74\165\163", "\x4b")) { $Sql .= "{$con}\x20\141\163\x73\x65\x74\137\163\164\141\x74\x75\x73\x3d\x27" . $this->getProperty("\141\163\x73\x65\164\x5f\x73\164\x61\x74\165\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6d\x61\x6e\165\x66\141\143\x74\165\162\145\162", "\113")) { $Sql .= "{$con}\x20\155\x61\156\165\146\x61\x63\164\165\x72\x65\x72\75\47" . $this->getProperty("\x6d\x61\156\x75\146\x61\143\164\x75\x72\145\x72") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\142\162\141\x6e\x64", "\x4b")) { $Sql .= "{$con}\x20\x62\x72\141\156\x64\x3d\x27" . $this->getProperty("\x62\x72\141\x6e\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\141\x73\163\x65\164\x5f\156\157", "\113")) { $Sql .= "{$con}\40\141\163\163\145\164\137\x6e\x6f\x3d\x27" . $this->getProperty("\x61\163\163\145\164\137\x6e\x6f") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x6d\x6f\x64\x61\x6c\137\x6e\157", "\113")) { $Sql .= "{$con}\x20\x6d\157\144\141\154\x5f\x6e\157\x3d\47" . $this->getProperty("\x6d\x6f\144\x61\154\137\156\157") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x73\145\x72\x69\x61\154\137\x6e\x6f", "\x4b")) { $Sql .= "{$con}\x20\x73\145\x72\151\141\x6c\137\x6e\157\x3d\x27" . $this->getProperty("\163\145\162\x69\141\154\137\x6e\157") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\141\163\x73\163\145\x74\x5f\x69\x6d\x67", "\x4b")) { $Sql .= "{$con}\x20\141\x73\163\x73\145\x74\x5f\151\x6d\x67\x3d\x27" . $this->getProperty("\141\163\x73\163\x65\x74\x5f\x69\x6d\x67") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\144\157\x63\165\x6d\145\x6e\164\x5f\x66\151\x6c\145", "\113")) { $Sql .= "{$con}\x20\144\157\143\x75\155\x65\156\164\137\146\151\154\x65\x5f\x6e\141\x6d\x65\x3d\47" . $this->getProperty("\x64\x6f\143\165\x6d\x65\x6e\x74\x5f\x66\x69\x6c\x65\137\156\141\155\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x64\157\x63\165\155\x65\156\164\x5f\x66\x69\x6c\x65", "\x4b")) { $Sql .= "{$con}\40\144\x6f\x63\165\155\145\156\x74\x5f\146\x69\154\145\x3d\47" . $this->getProperty("\144\x6f\143\165\155\x65\156\x74\x5f\146\x69\154\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\143\157\155\155\145\x6e\x74\x73", "\113")) { $Sql .= "{$con}\40\x63\157\x6d\155\145\156\x74\163\x3d\47" . $this->getProperty("\x63\157\x6d\x6d\x65\156\164\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\145\x6e\164\x65\x72\171\x5f\151\x64", "\113")) { $Sql .= "{$con}\x20\145\x6e\164\145\x72\171\137\x69\x64\75\47" . $this->getProperty("\145\x6e\164\145\x72\x79\137\151\144") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\143\x61\164\x61\147\x6f\x72\x79\137\151\144", "\113")) { $Sql .= "{$con}\x20\x63\x61\x74\141\147\157\x72\x79\137\151\x64\x3d\x27" . $this->getProperty("\x63\x61\164\x61\147\157\162\171\137\x69\x64") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x61\x73\163\x65\x74\x5f\x74\171\160\145\x5f\x69\x64", "\113")) { $Sql .= "{$con}\40\141\163\163\x65\x74\x5f\164\171\160\x65\137\x69\144\x3d\47" . $this->getProperty("\x61\163\x73\x65\x74\137\164\171\x70\x65\x5f\x69\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x61\x73\x73\145\164\x5f\x63\157\x6e\144\x69\x74\x69\157\x6e", "\x4b")) { $Sql .= "{$con}\40\x61\163\x73\x65\164\137\143\x6f\x6e\x64\151\x74\151\157\x6e\x3d\x27" . $this->getProperty("\x61\x73\x73\x65\x74\137\143\157\x6e\x64\x69\164\151\157\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\101\x63\x74\x69\166\x65", "\113")) { $Sql .= "{$con}\40\151\163\x41\143\164\x69\x76\x65\75" . $this->getProperty("\x69\x73\x41\x63\164\x69\x76\x65"); $con = "\x2c"; } $Sql .= "\x20\x57\x48\x45\x52\105\40\61\75\61"; $Sql .= "\x20\x41\x4e\104\40\x61\163\163\145\164\137\x69\144\x3d" . $this->getProperty("\141\163\x73\x65\164\137\x69\x64"); break; case "\111\x41\x55": $Sql = "\125\x50\x44\x41\x54\x45\40\x72\x73\x5f\x74\142\x6c\x5f\141\x73\x73\x65\164\163\40\x53\105\124\40\12\x9\x9\x9\11\11\11\x9\x69\163\x41\x63\164\x69\166\145\75\x32\xa\x9\x9\x9\x9\11\11\x57\x48\105\122\105\xa\11\11\11\11\11\x9\x9\61\75\x31"; $Sql .= "\40\x41\x4e\104\40\141\163\163\145\164\137\151\144\75" . $this->getProperty("\141\163\163\145\x74\x5f\151\144"); break; case "\101\x55": $Sql = "\x55\x50\x44\x41\124\x45\x20\162\x73\x5f\164\x62\154\x5f\141\163\163\x65\164\163\40\x53\x45\x54\x20\xa\x9\11\11\x9\x9\11\11\x69\x73\101\143\x74\151\166\x65\x3d\x31\xa\11\11\x9\x9\x9\11\x57\x48\105\122\x45\12\x9\11\x9\x9\11\11\11\61\75\61"; $Sql .= "\40\101\116\104\x20\141\x73\x73\145\164\x5f\x69\x64\x3d" . $this->getProperty("\141\163\163\x65\164\x5f\x69\144"); break; case "\x44\105\114": $Sql = "\125\x50\104\x41\x54\105\40\162\x73\x5f\x74\x62\154\x5f\141\163\163\145\x74\163\x20\x53\x45\124\x20\12\11\11\11\11\x9\x9\x9\151\x73\101\143\x74\151\x76\x65\x3d\63\12\11\11\x9\11\x9\11\x57\x48\x45\x52\105\xa\11\11\x9\11\x9\x9\x9\x31\75\x31"; $Sql .= "\x20\101\116\104\40\141\163\x73\x65\x74\x5f\x69\x64\75" . $this->getProperty("\141\x73\163\x65\164\x5f\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actAssignAssets($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\x53\x45\122\x54\x20\111\x4e\124\117\40\x72\163\137\x74\x62\154\137\141\x73\x73\145\164\x73\137\141\x73\163\151\147\x6e\x28\12\11\x9\x9\x9\x9\11\141\x73\163\x69\147\x6e\137\141\x73\163\x65\164\x5f\x69\144\x2c\xa\x9\x9\x9\11\x9\x9\141\163\x73\145\x74\x5f\x69\144\54\xa\11\11\11\11\x9\x9\x61\163\163\x69\147\156\x5f\164\x6f\x2c\xa\11\11\x9\x9\x9\11\x61\x73\x73\151\x67\156\137\x62\x79\x2c\xa\x9\11\11\11\x9\x9\x63\165\x72\162\x65\156\164\x5f\x73\x74\141\x74\165\x73\54\xa\x9\x9\x9\x9\11\x9\141\x73\x73\151\147\156\137\144\x61\x74\x65\54\12\11\11\x9\11\11\11\141\163\163\x69\147\156\137\x74\x69\155\145\x2c\xa\11\11\x9\11\x9\11\x64\157\x63\x75\155\145\x6e\x74\137\x66\151\x6c\145\137\x6e\x61\155\145\54\12\x9\x9\11\11\11\x9\144\x6f\x63\165\155\x65\156\164\x5f\146\151\154\x65\54\xa\11\x9\x9\x9\x9\11\151\x73\101\143\x74\151\x76\145\x29\x20\12\x9\11\x9\x9\x9\x9\126\101\114\x55\x45\x53\50"; $Sql .= $this->isPropertySet("\141\x73\163\x69\x67\x6e\137\x61\163\163\145\164\x5f\x69\x64", "\x56") ? $this->getProperty("\x61\163\163\x69\x67\x6e\137\141\x73\x73\145\164\137\151\144") : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\x73\145\164\x5f\x69\144", "\126") ? "\47" . $this->getProperty("\141\163\x73\145\x74\137\x69\x64") . "\x27" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\163\x73\151\x67\156\x5f\164\157", "\x56") ? "\47" . $this->getProperty("\x61\163\163\151\147\x6e\x5f\164\157") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\163\151\x67\156\x5f\142\x79", "\x56") ? "\47" . $this->getProperty("\x61\x73\x73\x69\x67\156\x5f\142\x79") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\165\x72\x72\x65\x6e\x74\x5f\163\164\141\164\165\163", "\126") ? "\47" . $this->getProperty("\x63\x75\162\162\x65\x6e\164\137\x73\164\141\164\165\x73") . "\x27" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\163\163\151\x67\x6e\137\x64\141\164\x65", "\126") ? "\47" . $this->getProperty("\x61\x73\163\151\147\x6e\x5f\x64\x61\164\x65") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x61\x73\163\x69\147\x6e\137\x74\x69\x6d\x65", "\126") ? "\x27" . $this->getProperty("\141\163\x73\151\x67\156\137\164\151\155\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\x6f\143\x75\x6d\145\156\x74\x5f\146\151\154\145\x5f\156\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\144\157\x63\165\x6d\145\x6e\x74\x5f\146\151\154\x65\137\x6e\141\155\145") . "\47" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x64\157\x63\x75\155\x65\x6e\x74\x5f\x66\x69\x6c\x65", "\x56") ? "\47" . $this->getProperty("\144\x6f\143\x75\x6d\x65\x6e\x74\x5f\146\x69\x6c\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\x41\x63\x74\x69\x76\x65", "\x56") ? "\x27" . $this->getProperty("\x69\x73\101\143\x74\151\x76\145") . "\47" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\120\x44\101\124\105\40\162\x73\137\164\x62\x6c\137\x61\x73\163\x65\164\163\137\141\x73\x73\151\147\x6e\40\123\x45\x54\x20"; if ($this->isPropertySet("\141\x73\x73\x65\164\x5f\x69\x64", "\113")) { $Sql .= "{$con}\x20\141\x73\163\x65\164\137\151\x64\x3d\47" . $this->getProperty("\141\x73\x73\x65\x74\x5f\x69\144") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\141\163\163\x69\x67\x6e\137\x74\157", "\113")) { $Sql .= "{$con}\40\141\x73\x73\x69\x67\x6e\137\x74\x6f\75\x27" . $this->getProperty("\141\163\x73\x69\147\x6e\x5f\164\157") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x61\x73\163\151\x67\156\x5f\142\171", "\113")) { $Sql .= "{$con}\40\141\x73\163\151\x67\x6e\137\142\x79\75\x27" . $this->getProperty("\x61\163\x73\151\x67\x6e\x5f\x62\171") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x63\x75\x72\x72\x65\x6e\x74\137\x73\x74\x61\164\x75\163", "\x4b")) { $Sql .= "{$con}\40\143\165\x72\x72\x65\x6e\164\137\x73\x74\x61\x74\x75\x73\x3d\47" . $this->getProperty("\143\165\x72\x72\145\x6e\164\137\163\164\x61\164\x75\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x61\x73\163\x69\x67\156\137\144\x61\164\145", "\113")) { $Sql .= "{$con}\x20\141\x73\x73\x69\x67\156\137\x64\x61\164\145\75\47" . $this->getProperty("\x61\163\x73\151\147\x6e\x5f\x64\141\x74\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\141\163\163\x69\147\156\137\x74\x69\x6d\145", "\113")) { $Sql .= "{$con}\40\x61\x73\163\x69\147\156\137\x74\151\x6d\145\75\47" . $this->getProperty("\141\163\163\151\x67\x6e\137\164\151\x6d\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x64\157\x63\165\155\145\x6e\x74\x5f\146\151\154\x65\x5f\156\141\155\145", "\x4b")) { $Sql .= "{$con}\x20\144\x6f\x63\165\x6d\145\156\164\x5f\x66\x69\x6c\x65\137\156\x61\155\x65\75\47" . $this->getProperty("\x64\x6f\143\x75\155\145\x6e\164\x5f\146\x69\x6c\145\137\x6e\x61\155\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x64\x6f\143\x75\155\x65\156\164\x5f\146\151\154\145", "\113")) { $Sql .= "{$con}\x20\144\157\143\x75\155\145\x6e\x74\x5f\146\151\x6c\x65\75\47" . $this->getProperty("\x64\157\143\x75\155\x65\156\164\137\146\x69\154\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\x73\101\143\x74\151\x76\x65", "\113")) { $Sql .= "{$con}\40\x69\163\101\143\164\x69\166\145\75" . $this->getProperty("\x69\163\101\x63\x74\151\x76\x65"); $con = "\x2c"; } $Sql .= "\40\127\110\105\122\x45\40\x31\75\x31"; if ($this->isPropertySet("\141\163\163\x69\147\x6e\x5f\141\163\x73\x65\x74\x5f\x69\144", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\x61\163\163\x69\147\x6e\x5f\141\163\163\145\164\137\x69\144\x3d\47" . $this->getProperty("\x61\163\163\x69\x67\156\137\141\x73\163\145\164\137\x69\144") . "\47"; } else { $Sql .= "\x20\x41\116\x44\40\141\163\x73\151\x67\156\x5f\x61\163\x73\145\x74\137\x69\x64\x3d" . $this->getProperty("\x61\x73\x73\x69\x67\x6e\137\141\163\x73\145\164\x5f\151\x64"); } break; case "\111\x41\x55": $Sql = "\125\x50\104\x41\124\105\40\x72\x73\x5f\x74\x62\154\137\141\163\x73\x65\x74\163\137\x61\163\x73\151\147\x6e\x20\123\105\124\x20\xa\x9\x9\11\11\11\11\11\151\x73\101\143\164\151\x76\145\75\62\xa\x9\11\x9\11\11\x9\127\x48\105\122\x45\xa\x9\11\11\x9\x9\11\x9\x31\75\x31"; $Sql .= "\x20\x41\x4e\x44\x20\141\x73\163\x69\x67\x6e\x5f\141\163\x73\145\164\x5f\x69\144\x3d" . $this->getProperty("\141\163\163\151\147\x6e\137\141\x73\163\x65\x74\x5f\151\144"); break; case "\x41\x55": $Sql = "\x55\x50\x44\101\124\105\x20\x72\x73\x5f\x74\x62\154\137\141\163\x73\145\x74\x73\x5f\141\163\x73\x69\147\156\40\x53\x45\124\40\xa\x9\x9\x9\x9\x9\11\x9\x69\x73\101\143\x74\x69\x76\x65\x3d\x31\12\x9\11\x9\x9\x9\x9\x57\110\105\122\x45\12\11\11\11\11\11\11\x9\x31\75\61"; $Sql .= "\x20\101\x4e\104\40\141\x73\x73\x69\x67\156\137\x61\163\x73\145\x74\x5f\x69\144\75" . $this->getProperty("\141\163\x73\x69\x67\156\137\x61\163\x73\145\x74\x5f\x69\144"); break; case "\104\105\114": $Sql = "\x55\120\104\x41\124\x45\x20\162\163\x5f\x74\x62\154\137\x61\163\163\x65\x74\163\137\141\163\x73\x69\x67\x6e\40\123\105\x54\x20\xa\x9\11\11\11\11\11\x9\151\x73\x41\143\x74\x69\x76\145\75\63\12\11\11\11\x9\11\x9\x57\x48\105\122\105\12\11\x9\11\x9\x9\x9\x9\61\x3d\61"; $Sql .= "\x20\x41\x4e\104\40\141\163\x73\x69\147\156\x5f\x61\163\x73\x65\x74\x5f\151\144\x3d" . $this->getProperty("\141\163\163\151\147\x6e\x5f\141\163\163\x65\x74\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actReturnAssets($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\123\x45\x52\124\40\x49\116\124\117\x20\x72\163\x5f\x74\x62\154\137\162\145\x74\165\x72\156\137\141\x73\163\145\x74\x28\xa\11\x9\11\x9\x9\11\162\145\x74\x75\162\x6e\x5f\141\163\163\x65\164\137\x69\144\x2c\xa\x9\x9\x9\11\x9\11\x61\x73\163\x69\x67\x6e\x5f\141\x73\x73\145\164\x5f\151\144\54\xa\11\11\11\11\x9\11\141\x73\163\x65\x74\x5f\x69\x64\x2c\12\11\x9\x9\11\x9\11\162\x65\x63\145\x69\x76\x65\144\x5f\x62\x79\54\12\x9\11\11\x9\11\11\x63\x75\x72\162\145\x6e\164\x5f\163\164\141\164\x75\163\x2c\12\x9\x9\11\11\x9\11\x72\x65\x74\x75\x72\156\x65\144\137\144\141\164\145\54\xa\x9\11\11\x9\x9\11\162\x65\x74\165\162\156\x65\x64\x5f\143\157\x6e\144\x69\164\151\x6f\156\x2c\xa\11\11\11\11\x9\11\162\145\164\x75\x72\156\x5f\162\x65\141\163\x6f\156\54\12\x9\11\11\x9\x9\11\144\x6f\x63\x75\x6d\x65\x6e\x74\x5f\146\151\x6c\x65\137\x6e\x61\155\145\54\12\x9\11\x9\x9\x9\x9\x64\x6f\143\165\x6d\145\x6e\x74\137\x66\x69\x6c\145\x2c\12\11\x9\11\11\x9\x9\151\x73\x41\x63\164\151\166\x65\x29\x20\12\11\x9\x9\x9\11\11\126\101\x4c\x55\105\x53\50"; $Sql .= $this->isPropertySet("\162\145\164\x75\162\x6e\137\x61\x73\163\x65\164\x5f\151\144", "\126") ? $this->getProperty("\x72\145\164\165\162\x6e\137\141\163\x73\x65\x74\x5f\x69\144") : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\x73\151\x67\x6e\137\x61\x73\163\x65\x74\137\151\144", "\126") ? "\47" . $this->getProperty("\141\x73\x73\151\x67\x6e\x5f\141\x73\163\x65\164\137\x69\144") . "\47" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\x73\x73\145\164\137\151\x64", "\x56") ? "\x27" . $this->getProperty("\141\x73\163\x65\164\x5f\151\x64") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x72\x65\143\x65\x69\166\x65\x64\137\142\171", "\126") ? "\x27" . $this->getProperty("\162\145\143\145\151\x76\x65\144\x5f\142\x79") . "\x27" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\x75\x72\162\145\x6e\164\x5f\x73\164\141\x74\x75\x73", "\126") ? "\47" . $this->getProperty("\143\165\x72\162\145\x6e\x74\x5f\163\164\141\164\165\x73") . "\x27" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x72\x65\164\x75\162\x6e\x65\144\137\144\141\x74\x65", "\126") ? "\47" . $this->getProperty("\x72\145\164\165\162\x6e\x65\x64\137\144\x61\164\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\162\145\164\x75\162\156\145\x64\x5f\143\157\x6e\x64\151\164\151\x6f\x6e", "\x56") ? "\x27" . $this->getProperty("\x72\x65\x74\165\x72\156\145\x64\x5f\x63\157\156\144\151\x74\151\x6f\x6e") . "\47" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x72\145\x74\x75\162\156\137\162\145\x61\x73\157\156", "\126") ? "\x27" . $this->getProperty("\162\145\x74\165\162\156\x5f\x72\145\141\x73\157\156") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\157\x63\165\155\x65\156\164\137\x66\151\154\x65\137\x6e\141\155\145", "\x56") ? "\x27" . $this->getProperty("\x64\157\143\x75\155\x65\156\164\137\x66\151\x6c\x65\137\x6e\141\x6d\x65") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\x6f\x63\x75\155\145\x6e\x74\137\146\x69\x6c\145", "\x56") ? "\x27" . $this->getProperty("\144\157\x63\x75\x6d\x65\x6e\164\x5f\x66\x69\154\145") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\x41\x63\x74\x69\x76\x65", "\x56") ? "\x27" . $this->getProperty("\x69\x73\101\x63\x74\x69\x76\145") . "\x27" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\104\x41\x54\105\x20\x72\163\x5f\x74\142\154\137\162\x65\x74\x75\x72\156\137\141\x73\x73\145\x74\40\123\105\x54\x20"; if ($this->isPropertySet("\162\x65\143\145\151\x76\x65\x64\x5f\x62\x79", "\113")) { $Sql .= "{$con}\40\162\145\x63\x65\x69\166\145\x64\137\x62\171\x3d\47" . $this->getProperty("\x72\145\143\x65\x69\166\x65\144\x5f\142\x79") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\143\x75\x72\x72\x65\x6e\164\137\163\x74\x61\164\165\163", "\x4b")) { $Sql .= "{$con}\x20\143\x75\162\162\x65\156\x74\x5f\163\164\x61\164\x75\x73\x3d\47" . $this->getProperty("\x63\165\x72\x72\145\x6e\x74\137\163\x74\x61\x74\165\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\162\x65\x74\x75\162\156\x65\144\137\x64\141\164\145", "\x4b")) { $Sql .= "{$con}\x20\162\145\164\x75\x72\156\145\x64\x5f\144\x61\164\145\x3d\x27" . $this->getProperty("\x72\145\164\x75\162\x6e\x65\144\x5f\144\x61\164\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x72\x65\x74\165\x72\x6e\145\144\137\x63\x6f\x6e\x64\x69\164\x69\x6f\156", "\113")) { $Sql .= "{$con}\40\x72\x65\x74\x75\x72\156\x65\144\137\143\x6f\x6e\x64\x69\164\151\157\156\x3d\x27" . $this->getProperty("\162\x65\x74\165\162\x6e\145\x64\x5f\143\157\156\x64\x69\164\x69\157\156") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\162\x65\x74\x75\162\156\137\x72\x65\141\163\x6f\156", "\x4b")) { $Sql .= "{$con}\x20\162\145\164\165\x72\156\137\162\145\x61\x73\157\x6e\x3d\x27" . $this->getProperty("\162\145\164\165\162\x6e\x5f\162\x65\x61\163\x6f\156") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\144\x6f\143\x75\x6d\x65\156\x74\137\x66\151\154\145\x5f\156\141\155\x65", "\x4b")) { $Sql .= "{$con}\40\x64\x6f\143\x75\155\x65\156\x74\x5f\146\151\154\145\137\x6e\x61\155\145\75\x27" . $this->getProperty("\x64\157\x63\165\155\145\156\x74\x5f\146\x69\x6c\145\137\156\141\x6d\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x64\x6f\143\165\155\x65\x6e\164\137\x66\x69\154\145", "\x4b")) { $Sql .= "{$con}\x20\144\x6f\x63\x75\155\145\x6e\x74\137\x66\x69\154\145\75\x27" . $this->getProperty("\144\157\x63\165\155\145\x6e\x74\137\x66\x69\x6c\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x69\x73\x41\143\x74\151\166\x65", "\x4b")) { $Sql .= "{$con}\x20\151\x73\x41\x63\x74\x69\166\x65\75" . $this->getProperty("\151\163\101\143\164\x69\166\x65"); $con = "\54"; } $Sql .= "\x20\x57\x48\105\122\x45\x20\61\x3d\x31"; if ($this->isPropertySet("\x72\x65\164\x75\162\156\x5f\x61\x73\x73\x65\x74\x5f\x69\144", "\126")) { $Sql .= "\x20\101\116\x44\40\x72\145\x74\x75\162\156\x5f\141\163\163\x65\164\137\x69\144\x3d\x27" . $this->getProperty("\x72\x65\164\x75\x72\156\x5f\141\x73\x73\x65\164\x5f\x69\144") . "\47"; } else { $Sql .= "\40\101\116\x44\40\x72\145\164\165\x72\x6e\x5f\x61\x73\x73\x65\x74\137\x69\144\x3d" . $this->getProperty("\162\145\x74\165\162\156\137\x61\x73\163\x65\x74\x5f\x69\x64"); } break; case "\111\x41\125": $Sql = "\125\x50\x44\x41\124\x45\40\x72\163\x5f\164\142\x6c\x5f\162\145\x74\x75\162\156\x5f\141\163\163\145\164\x20\x53\105\x54\x20\xa\x9\11\11\x9\x9\x9\11\151\163\x41\143\x74\x69\x76\145\75\62\12\x9\x9\11\x9\x9\11\x57\110\x45\122\x45\12\x9\11\x9\x9\11\x9\x9\x31\x3d\61"; $Sql .= "\x20\101\116\x44\40\x72\x65\164\x75\162\x6e\137\x61\163\x73\x65\164\x5f\151\144\x3d" . $this->getProperty("\x72\x65\x74\x75\x72\x6e\x5f\x61\x73\163\x65\x74\137\x69\x64"); break; case "\101\125": $Sql = "\x55\x50\104\x41\x54\105\40\x72\x73\x5f\x74\142\154\x5f\162\145\164\165\162\156\x5f\141\163\x73\145\x74\x20\123\x45\124\x20\12\11\x9\x9\x9\11\11\11\x69\163\x41\x63\164\x69\x76\x65\75\x31\xa\x9\x9\11\x9\x9\x9\127\x48\105\x52\105\12\11\11\11\x9\11\11\11\61\75\x31"; $Sql .= "\x20\101\116\104\40\x72\145\x74\x75\x72\156\137\x61\x73\163\x65\x74\137\x69\144\x3d" . $this->getProperty("\162\x65\164\x75\x72\x6e\137\141\163\163\x65\x74\137\151\x64"); break; case "\104\x45\114": $Sql = "\125\x50\x44\x41\x54\105\x20\x72\163\137\164\142\x6c\137\162\145\164\165\x72\x6e\137\141\163\163\x65\164\x20\123\x45\124\40\12\11\x9\11\11\11\11\11\x69\163\x41\x63\x74\x69\166\145\75\x33\xa\11\11\x9\11\11\11\x57\x48\105\x52\105\12\x9\11\x9\x9\x9\11\11\61\x3d\x31"; $Sql .= "\40\101\x4e\x44\x20\x72\145\164\x75\x72\156\137\x61\x73\x73\145\x74\x5f\x69\x64\75" . $this->getProperty("\x72\x65\164\x75\x72\156\137\141\x73\x73\145\164\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUser_HR($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\116\x53\105\122\124\x20\111\x4e\124\117\x20\x72\x73\x5f\x74\142\x6c\x5f\x75\x73\x65\x72\163\50\xa\x9\x9\x9\11\x9\11\x75\x73\x65\162\x5f\x69\x64\x2c\12\x9\11\x9\x9\11\11\x65\x6e\x74\145\x72\x5f\x75\x73\145\x72\137\x69\x64\x2c\12\x9\x9\11\11\x9\11\x65\x6d\160\154\157\171\145\x65\x5f\151\x64\x2c\12\x9\x9\x9\11\11\x9\x69\x71\x61\155\x61\x5f\x70\x72\x6f\146\145\x73\x73\x69\x6f\156\54\xa\x9\x9\11\11\x9\11\165\163\145\x72\x5f\x66\156\141\155\145\54\xa\x9\11\11\11\x9\11\165\163\145\x72\137\144\145\163\151\x67\x6e\141\x74\x69\x6f\156\x2c\xa\11\x9\11\11\11\x9\x6f\162\x69\147\137\165\156\x69\164\54\12\11\x9\11\x9\11\11\154\x6f\143\x61\164\151\157\x6e\137\151\x64\x2c\12\11\x9\11\11\x9\11\x63\x6f\x73\x74\x5f\x63\145\x6e\164\x65\162\54\xa\11\x9\x9\x9\11\11\x70\x61\171\x72\157\x6c\154\x5f\141\x72\145\x61\x2c\xa\x9\x9\x9\x9\x9\11\163\x75\142\137\141\162\145\x61\54\12\x9\11\11\11\11\x9\x75\x73\145\162\x5f\164\171\160\x65\137\x69\144\54\xa\x9\x9\11\11\11\11\x75\x73\145\x72\x5f\x67\x65\156\x64\145\x72\54\xa\11\11\11\11\11\11\165\x73\x65\162\x5f\156\x61\x74\151\x6f\x6e\141\x6c\x69\x74\171\x2c\12\x9\11\x9\x9\11\11\165\x73\x65\x72\x5f\162\145\x6c\151\x67\x69\x6f\x6e\54\12\x9\11\x9\x9\11\x9\165\x73\145\162\x5f\155\x6f\142\x69\x6c\145\54\xa\x9\x9\x9\x9\11\11\165\163\x65\x72\137\144\x6f\142\x2c\12\11\11\x9\11\x9\x9\151\161\x61\155\x61\137\x6e\x6f\x2c\12\11\x9\11\x9\x9\x9\151\161\141\x6d\x61\x5f\145\170\160\x69\x72\x79\54\xa\11\x9\11\x9\x9\x9\160\x61\163\163\x70\x6f\x72\x74\x5f\x6e\157\54\xa\11\x9\11\x9\x9\11\160\x61\163\163\160\157\162\164\x5f\145\x78\x70\x69\x72\x79\x2c\12\11\11\x9\x9\x9\x9\x72\145\147\x5f\x64\141\x74\145\x2c\12\x9\x9\x9\11\x9\11\165\x73\145\x72\x5f\151\x6e\163\x75\162\141\x6e\x63\x65\x2c\12\11\x9\11\11\11\x9\x75\x73\x65\x72\x5f\x65\x6d\x61\x69\x6c\x2c\xa\11\11\11\x9\x9\11\x6c\x69\x63\x65\x6e\143\145\x5f\x6e\x6f\x2c\12\x9\11\x9\11\11\11\x67\157\x73\x69\137\x6e\x6f\x2c\xa\11\11\11\11\x9\x9\143\x6f\x6e\x74\162\141\143\164\x5f\x74\x79\160\145\x2c\12\11\11\x9\11\x9\x9\x6a\157\x62\x53\164\141\x74\x75\163\x2c\xa\x9\x9\11\11\11\x9\x68\x69\162\x65\137\x64\141\x74\145\54\12\11\x9\11\x9\x9\11\x75\x73\145\162\x5f\160\162\157\x66\151\x6c\145\137\x69\x6d\x67\x2c\12\11\x9\x9\11\11\x9\143\x6e\x69\x63\137\x66\162\x6f\x6e\x74\137\x73\x69\x64\x65\54\12\11\x9\x9\x9\11\11\165\163\145\x72\137\x63\166\x2c\12\x9\x9\11\x9\x9\11\151\x73\101\143\x74\x69\166\145\x29\x20\xa\11\11\x9\x9\11\x9\126\x41\114\x55\x45\x53\x28"; $Sql .= $this->isPropertySet("\x75\163\x65\x72\137\151\144", "\126") ? $this->getProperty("\165\x73\x65\162\x5f\x69\144") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\x74\x65\x72\x5f\x75\x73\145\162\x5f\x69\144", "\x56") ? $this->getProperty("\x65\x6e\x74\145\162\137\165\163\x65\162\x5f\x69\x64") : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x6d\160\154\157\x79\x65\145\x5f\x69\144", "\126") ? "\x27" . $this->getProperty("\145\155\160\x6c\157\x79\x65\145\x5f\x69\x64") . "\47" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x71\x61\155\141\137\x70\162\x6f\x66\145\x73\163\x69\157\156", "\x56") ? "\47" . $this->getProperty("\151\161\141\x6d\x61\137\160\162\x6f\146\145\163\163\x69\x6f\156") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\163\145\162\137\x66\156\141\x6d\145", "\126") ? "\x27" . $this->getProperty("\165\163\145\162\137\146\x6e\x61\155\145") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\163\145\162\x5f\x64\x65\x73\151\147\156\x61\x74\x69\157\156", "\126") ? "\47" . $this->getProperty("\165\x73\x65\162\137\144\145\163\151\147\x6e\x61\164\x69\157\x6e") . "\47" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\157\x72\151\x67\137\165\x6e\x69\x74", "\x56") ? "\47" . $this->getProperty("\x6f\x72\151\x67\137\165\156\x69\x74") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\157\143\x61\x74\151\x6f\x6e\x5f\151\x64", "\126") ? "\47" . $this->getProperty("\154\157\x63\141\164\151\157\x6e\137\x69\144") . "\x27" : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6f\163\164\137\143\x65\x6e\164\x65\162", "\x56") ? "\x27" . $this->getProperty("\143\157\x73\x74\x5f\x63\x65\156\164\x65\162") . "\x27" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\141\x79\x72\157\154\x6c\137\141\x72\145\141", "\x56") ? "\x27" . $this->getProperty("\160\x61\x79\x72\x6f\154\154\137\141\162\145\x61") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x75\x62\x5f\141\162\145\x61", "\126") ? "\x27" . $this->getProperty("\x73\165\x62\x5f\x61\x72\145\141") . "\x27" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\162\x5f\x74\171\160\145\x5f\151\x64", "\126") ? "\x27" . $this->getProperty("\x75\x73\x65\x72\x5f\164\x79\x70\x65\137\x69\x64") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\147\x65\x6e\144\x65\x72", "\x56") ? "\x27" . $this->getProperty("\165\163\x65\162\137\x67\145\156\144\145\162") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\162\x5f\x6e\141\x74\x69\157\x6e\x61\x6c\151\164\x79", "\126") ? "\x27" . $this->getProperty("\165\x73\145\162\137\156\x61\164\151\x6f\156\141\154\151\164\x79") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\145\x72\x5f\x72\x65\154\151\147\151\x6f\156", "\126") ? "\x27" . $this->getProperty("\x75\163\145\162\137\162\145\x6c\x69\147\151\157\x6e") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\137\x6d\157\142\x69\154\145", "\x56") ? "\x27" . $this->getProperty("\x75\x73\x65\162\137\x6d\157\x62\x69\x6c\145") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\x65\x72\x5f\x64\157\x62", "\126") ? "\47" . $this->getProperty("\165\163\x65\x72\x5f\x64\157\142") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x71\141\x6d\141\x5f\156\x6f", "\126") ? "\47" . $this->getProperty("\x69\x71\x61\155\141\137\156\157") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\161\x61\155\x61\x5f\145\x78\160\151\162\x79", "\x56") ? "\47" . $this->getProperty("\151\x71\x61\x6d\141\137\x65\x78\160\x69\x72\x79") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\x61\163\163\160\157\162\164\137\156\157", "\126") ? "\47" . $this->getProperty("\x70\x61\x73\x73\160\x6f\x72\164\137\156\157") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\141\x73\x73\x70\x6f\x72\164\137\x65\x78\160\151\162\x79", "\126") ? "\x27" . $this->getProperty("\x70\x61\163\x73\x70\157\x72\164\137\145\170\x70\x69\x72\171") . "\47" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\x65\147\137\144\141\x74\x65", "\126") ? "\x27" . $this->getProperty("\x72\x65\x67\x5f\144\141\164\x65") . "\47" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\x5f\x69\x6e\163\165\162\x61\x6e\143\145", "\x56") ? "\x27" . $this->getProperty("\165\x73\145\162\x5f\151\156\x73\x75\162\x61\156\x63\145") . "\47" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\145\x72\137\x65\155\141\151\x6c", "\x56") ? "\47" . $this->getProperty("\165\x73\145\162\x5f\x65\x6d\141\151\154") . "\x27" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\151\x63\x65\x6e\143\x65\x5f\156\157", "\126") ? "\47" . $this->getProperty("\154\151\x63\x65\x6e\143\145\x5f\x6e\157") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\147\157\x73\x69\x5f\x6e\157", "\x56") ? "\47" . $this->getProperty("\147\157\x73\x69\x5f\156\157") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\157\x6e\x74\x72\x61\143\x74\x5f\164\171\x70\x65", "\126") ? "\x27" . $this->getProperty("\x63\x6f\x6e\164\x72\x61\143\164\x5f\164\x79\x70\x65") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\152\157\x62\123\164\141\164\x75\x73", "\x56") ? "\x27" . $this->getProperty("\152\157\x62\123\164\141\x74\x75\x73") . "\47" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x68\x69\162\x65\x5f\x64\x61\164\x65", "\x56") ? "\x27" . $this->getProperty("\150\x69\162\145\137\144\141\x74\x65") . "\x27" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\x70\162\x6f\x66\x69\154\145\x5f\x69\x6d\147", "\x56") ? "\x27" . $this->getProperty("\x75\x73\x65\162\x5f\160\x72\x6f\146\x69\x6c\x65\137\151\155\x67") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\156\151\x63\137\146\162\x6f\156\x74\137\163\151\144\x65\x2c", "\126") ? "\47" . $this->getProperty("\143\x6e\x69\x63\137\x66\162\x6f\156\164\x5f\163\x69\144\x65\54") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\137\x63\166", "\x56") ? "\x27" . $this->getProperty("\x75\163\145\162\137\143\x76") . "\x27" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\101\143\164\x69\x76\145", "\x56") ? "\47" . $this->getProperty("\151\163\x41\x63\x74\x69\x76\145") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\x50\x44\101\x54\x45\x20\162\163\137\x74\142\154\137\165\x73\x65\x72\x73\40\x53\105\124\40"; if ($this->isPropertySet("\145\155\160\154\157\x79\x65\145\137\151\144", "\x4b")) { $Sql .= "{$con}\40\145\x6d\160\x6c\157\171\x65\x65\x5f\151\144\x3d\x27" . $this->getProperty("\x65\x6d\160\x6c\x6f\x79\x65\x65\x5f\151\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\x71\141\155\141\137\160\x72\x6f\x66\145\x73\163\151\157\156", "\113")) { $Sql .= "{$con}\40\151\161\141\155\141\x5f\160\162\157\x66\145\163\163\151\x6f\156\x3d\x27" . $this->getProperty("\x69\x71\141\155\x61\x5f\160\x72\157\x66\145\163\x73\151\x6f\156") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x75\163\x65\x72\x5f\146\x6e\141\x6d\145", "\x4b")) { $Sql .= "{$con}\x20\x75\x73\145\162\137\x66\156\141\x6d\x65\x3d\x27" . $this->getProperty("\165\x73\145\162\x5f\x66\156\141\155\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\165\163\x65\x72\x5f\x64\145\x73\151\147\x6e\141\x74\x69\x6f\x6e", "\x4b")) { $Sql .= "{$con}\x20\x75\163\145\162\137\144\x65\163\151\147\156\x61\x74\x69\x6f\156\x3d\x27" . $this->getProperty("\165\x73\x65\162\137\144\x65\163\151\x67\156\141\164\151\157\x6e") . "\47"; $con = "\54"; } if ($this->isPropertySet("\157\162\x69\x67\137\x75\x6e\x69\164", "\x4b")) { $Sql .= "{$con}\x20\157\x72\x69\147\x5f\x75\x6e\x69\164\75\x27" . $this->getProperty("\x6f\162\151\x67\137\165\x6e\x69\164") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\154\x6f\x63\x61\164\x69\x6f\156\137\x69\x64", "\x4b")) { $Sql .= "{$con}\40\154\157\143\x61\164\x69\x6f\x6e\137\x69\x64\75\47" . $this->getProperty("\154\x6f\x63\x61\x74\151\157\156\137\x69\144") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x63\157\163\164\x5f\x63\145\x6e\164\x65\162", "\113")) { $Sql .= "{$con}\40\x63\157\163\164\137\143\145\x6e\164\145\x72\75\x27" . $this->getProperty("\x63\x6f\163\164\137\x63\x65\x6e\164\145\162") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x70\x61\x79\162\x6f\x6c\x6c\x5f\x61\x72\x65\x61", "\x4b")) { $Sql .= "{$con}\x20\x70\141\x79\162\x6f\154\154\x5f\x61\162\x65\141\75\47" . $this->getProperty("\x70\x61\x79\162\157\x6c\x6c\137\141\x72\x65\141") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\163\165\x62\x5f\141\162\145\x61", "\x4b")) { $Sql .= "{$con}\40\163\165\142\137\x61\162\145\x61\75\47" . $this->getProperty("\163\165\x62\x5f\141\x72\145\x61") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\165\163\x65\162\137\147\145\156\144\145\162", "\x4b")) { $Sql .= "{$con}\40\x75\163\x65\162\x5f\x67\x65\x6e\x64\x65\162\x3d\47" . $this->getProperty("\x75\163\x65\x72\x5f\147\145\x6e\x64\145\x72") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\165\x73\145\x72\x5f\x6e\x61\164\151\157\156\141\x6c\x69\x74\x79", "\x4b")) { $Sql .= "{$con}\x20\165\163\145\x72\x5f\156\x61\x74\x69\x6f\156\141\154\151\164\x79\x3d\47" . $this->getProperty("\165\163\145\162\137\x6e\141\x74\x69\x6f\156\141\x6c\151\x74\x79") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\x73\x65\162\137\162\x65\x6c\151\x67\151\157\156", "\x4b")) { $Sql .= "{$con}\x20\165\x73\x65\162\137\x72\x65\x6c\151\147\x69\157\x6e\x3d\47" . $this->getProperty("\x75\x73\x65\162\137\x72\x65\x6c\x69\x67\x69\157\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\163\x65\162\137\x6d\x6f\x62\151\154\x65", "\113")) { $Sql .= "{$con}\40\165\x73\x65\162\137\155\x6f\x62\x69\x6c\x65\x3d\x27" . $this->getProperty("\165\x73\145\162\137\x6d\x6f\142\151\x6c\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x75\x73\145\x72\x5f\x64\x6f\142", "\113")) { $Sql .= "{$con}\x20\x75\x73\145\162\x5f\144\x6f\142\x3d\47" . $this->getProperty("\x75\x73\145\x72\x5f\x64\157\x62") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x69\161\141\x6d\141\x5f\156\157", "\113")) { $Sql .= "{$con}\40\x69\161\x61\155\x61\137\156\x6f\x3d\x27" . $this->getProperty("\151\x71\x61\x6d\x61\137\x6e\x6f") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\161\141\x6d\x61\x5f\x65\170\x70\151\x72\171", "\x4b")) { $Sql .= "{$con}\x20\x69\161\141\x6d\141\x5f\145\x78\x70\x69\x72\171\x3d\47" . $this->getProperty("\151\x71\141\x6d\x61\x5f\145\x78\160\x69\x72\x79") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\160\x61\163\x73\x70\x6f\162\x74\x5f\x6e\x6f", "\x4b")) { $Sql .= "{$con}\40\x70\141\x73\x73\160\157\162\x74\x5f\x6e\157\75\x27" . $this->getProperty("\160\x61\163\x73\160\157\162\164\137\156\x6f") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\160\x61\x73\x73\x70\157\x72\x74\137\145\170\160\151\162\171", "\113")) { $Sql .= "{$con}\x20\160\141\163\163\x70\157\162\164\x5f\145\170\160\x69\162\x79\75\47" . $this->getProperty("\x70\141\163\x73\160\157\162\164\137\145\170\160\151\162\x79") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\165\163\145\x72\137\151\156\x73\165\162\x61\156\143\145", "\113")) { $Sql .= "{$con}\x20\x75\x73\145\x72\x5f\x69\156\x73\165\162\x61\x6e\x63\x65\x3d\47" . $this->getProperty("\165\x73\145\162\x5f\x69\x6e\163\165\x72\141\x6e\x63\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x75\163\145\162\137\145\x6d\141\151\154", "\113")) { $Sql .= "{$con}\x20\x75\163\x65\x72\137\x65\x6d\141\151\x6c\x3d\47" . $this->getProperty("\x75\x73\145\x72\x5f\145\155\x61\151\154") . "\47"; $con = "\54"; } if ($this->isPropertySet("\154\151\x63\x65\x6e\143\x65\x5f\156\157", "\113")) { $Sql .= "{$con}\40\154\x69\x63\x65\x6e\143\145\x5f\156\157\75\47" . $this->getProperty("\x6c\x69\x63\x65\x6e\143\x65\137\x6e\x6f") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\147\157\163\151\137\156\157", "\113")) { $Sql .= "{$con}\x20\x67\157\163\151\x5f\x6e\x6f\75\x27" . $this->getProperty("\147\157\163\x69\x5f\x6e\157") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\143\x6f\156\x74\162\x61\x63\x74\137\164\x79\x70\145", "\x4b")) { $Sql .= "{$con}\x20\x63\x6f\x6e\x74\162\141\x63\x74\x5f\x74\171\160\145\75\47" . $this->getProperty("\x63\x6f\156\x74\162\141\x63\164\137\x74\x79\x70\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6a\157\142\123\164\141\164\165\x73", "\x4b")) { $Sql .= "{$con}\40\152\157\x62\x53\164\141\x74\165\163\x3d\x27" . $this->getProperty("\152\x6f\142\123\x74\x61\x74\x75\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x68\151\x72\x65\x5f\x64\141\x74\145", "\113")) { $Sql .= "{$con}\40\150\x69\162\145\137\x64\x61\x74\145\x3d\47" . $this->getProperty("\x68\x69\162\145\137\x64\141\164\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\165\163\145\x72\x5f\x70\x72\x6f\146\151\x6c\x65\137\x69\155\x67", "\x4b")) { $Sql .= "{$con}\40\x75\x73\145\x72\137\160\162\x6f\x66\151\154\x65\137\x69\155\147\x3d\47" . $this->getProperty("\165\163\x65\162\137\160\162\x6f\x66\151\154\145\x5f\151\x6d\147") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x63\156\151\143\137\x66\162\x6f\156\164\x5f\163\x69\x64\145", "\x4b")) { $Sql .= "{$con}\40\x63\156\x69\143\137\146\162\157\156\x74\x5f\x73\151\144\x65\x3d\47" . $this->getProperty("\x63\x6e\x69\143\137\146\x72\157\156\164\137\x73\x69\144\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x75\x73\x65\162\x5f\x63\166", "\113")) { $Sql .= "{$con}\x20\165\x73\145\162\137\x63\x76\x3d\47" . $this->getProperty("\x75\163\145\162\137\143\x76") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\163\101\143\164\151\166\x65", "\113")) { $Sql .= "{$con}\40\x69\163\101\x63\x74\151\166\x65\x3d" . $this->getProperty("\151\x73\101\143\x74\151\166\x65"); $con = "\x2c"; } $Sql .= "\40\x57\110\105\x52\x45\x20\x31\x3d\x31"; if ($this->isPropertySet("\165\x73\145\x72\137\x69\144", "\126")) { $Sql .= "\x20\101\x4e\x44\x20\165\163\145\x72\x5f\x69\x64\x3d\47" . $this->getProperty("\x75\163\x65\162\137\x69\144") . "\47"; } else { $Sql .= "\40\101\x4e\x44\40\x75\163\145\162\x5f\151\144\x3d" . $this->getProperty("\165\163\x65\162\x5f\x69\144"); } break; case "\111\101\125": $Sql = "\x55\x50\104\x41\124\x45\40\162\163\137\x74\142\154\137\165\x73\x65\x72\163\x20\x53\105\x54\x20\xa\11\x9\x9\11\11\11\x9\151\x73\101\143\164\x69\166\145\x3d\62\12\11\11\x9\x9\11\x9\127\110\x45\122\105\12\x9\11\11\11\x9\x9\11\61\x3d\x31"; $Sql .= "\x20\x41\116\x44\x20\165\163\145\162\x5f\x69\x64\x3d" . $this->getProperty("\165\163\145\x72\137\151\x64"); break; case "\x41\125": $Sql = "\125\x50\104\x41\124\x45\40\162\163\x5f\x74\142\154\x5f\165\163\145\x72\x73\x20\x53\105\124\40\xa\x9\x9\x9\x9\x9\11\x9\151\163\101\143\164\151\x76\145\75\x31\12\x9\x9\x9\11\11\11\127\110\105\122\x45\12\11\x9\11\x9\x9\11\x9\61\75\x31"; $Sql .= "\x20\x41\x4e\104\40\165\163\145\162\137\151\144\75" . $this->getProperty("\x75\x73\145\x72\x5f\x69\144"); break; case "\104\x45\114": $Sql = "\125\120\x44\101\x54\x45\40\162\x73\x5f\x74\142\154\x5f\x75\x73\x65\x72\x73\40\123\x45\x54\40\xa\x9\x9\x9\11\x9\x9\11\151\163\101\x63\x74\151\x76\145\x3d\63\12\x9\11\11\x9\x9\x9\127\110\x45\x52\x45\xa\x9\x9\x9\x9\x9\x9\11\61\x3d\61"; $Sql .= "\x20\x41\116\104\x20\x75\x73\x65\162\x5f\151\144\75" . $this->getProperty("\x75\x73\x65\x72\137\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserLog($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\123\105\122\x54\40\x49\116\124\117\40\x72\x73\x5f\164\142\154\137\165\163\x65\x72\x5f\x6c\x6f\147\50\xa\11\11\11\x9\x9\11\165\163\145\x72\x5f\151\x64\x2c\xa\x9\11\11\11\11\11\141\143\x74\151\166\x69\164\171\137\x64\x65\164\x61\151\x6c\x2c\xa\x9\11\x9\11\11\x9\151\x73\x41\143\x74\151\x76\x65\54\xa\x9\x9\x9\x9\11\11\x65\x6e\x74\145\x72\x79\137\x64\141\164\x65\x2c\xa\x9\11\x9\x9\11\x9\x6c\157\x63\141\x74\x69\157\156\137\151\144\51\40\xa\x9\x9\11\x9\11\x9\126\101\114\125\105\123\x28"; $Sql .= $this->isPropertySet("\165\163\145\162\x5f\x69\144", "\x56") ? $this->getProperty("\165\x73\145\x72\x5f\x69\x64") : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\143\164\151\x76\x69\164\x79\x5f\x64\145\164\141\151\x6c", "\126") ? "\47" . $this->getProperty("\x61\143\x74\x69\166\x69\x74\171\x5f\144\x65\x74\x61\x69\154") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\x41\143\164\151\x76\145", "\x56") ? "\x27" . $this->getProperty("\151\163\x41\x63\x74\151\x76\x65") . "\x27" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\x74\x65\162\x79\137\144\x61\x74\145", "\x56") ? "\47" . $this->getProperty("\x65\x6e\x74\145\162\171\x5f\x64\141\164\x65") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\154\x6f\143\x61\164\151\157\156\137\x69\144", "\x56") ? "\x27" . $this->getProperty("\154\x6f\143\141\164\151\157\x6e\x5f\x69\144") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\51"; break; case "\101\x55": $Sql = "\125\120\x44\x41\x54\105\x20\x72\x73\137\164\142\x6c\137\x75\163\x65\162\x5f\154\157\147\40\123\105\x54\x20\12\11\11\11\x9\11\x9\x9\x69\x73\101\x63\x74\x69\166\x65\75\x32\xa\x9\11\x9\11\11\x9\x57\110\x45\122\x45\xa\11\x9\11\11\x9\x9\x9\61\x3d\61"; $Sql .= "\x20\101\116\x44\x20\x75\163\x65\x72\x5f\151\x64\75" . $this->getProperty("\x75\163\x65\x72\x5f\x69\x64"); break; case "\x44\105\x4c": $Sql = "\125\x50\x44\x41\124\105\40\162\x73\x5f\164\x62\x6c\x5f\x75\163\145\162\137\154\x6f\147\x20\x53\105\124\40\12\x9\11\x9\11\x9\11\x9\151\163\x41\143\164\151\166\x65\x3d\63\12\11\x9\x9\11\x9\11\x57\110\x45\x52\105\12\x9\x9\x9\11\11\x9\11\61\75\x31"; $Sql .= "\x20\101\116\x44\40\165\x73\x65\x72\x5f\x69\144\x3d" . $this->getProperty("\x75\163\x65\x72\137\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actMailBox($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\x53\105\x52\x54\40\x49\116\124\117\40\162\163\137\164\x62\154\137\x6d\141\151\x6c\142\157\170\x28\12\11\11\x9\x9\11\11\x6d\x61\151\x6c\137\151\144\x2c\12\11\11\11\11\x9\11\x73\145\x6e\144\x65\x72\137\151\x64\x2c\12\x9\11\11\x9\11\11\162\145\143\145\x69\166\x65\x72\x5f\x69\x64\54\xa\11\x9\x9\x9\x9\x9\x6d\x61\x69\x6c\137\x73\x75\142\152\145\x63\x74\x2c\12\x9\11\11\11\x9\x9\x6d\141\151\154\x5f\x64\145\x74\141\x69\x6c\x2c\12\x9\11\11\11\11\11\155\141\x69\154\x5f\151\163\146\151\x6c\x65\54\12\11\x9\x9\11\11\11\x69\163\x5f\x72\145\x61\144\54\xa\x9\11\x9\11\11\11\x72\145\x61\144\137\x64\x61\x74\145\x2c\12\11\x9\11\x9\x9\11\163\x65\156\144\x65\162\137\144\145\154\x2c\xa\x9\x9\x9\x9\x9\11\162\145\x63\145\x69\166\x65\162\x5f\x64\x65\x6c\54\12\x9\x9\x9\11\x9\x9\151\163\x5f\144\x72\141\146\164\x2c\xa\x9\11\11\x9\x9\x9\x65\156\164\x65\x72\171\x5f\x64\141\x74\145\x29\40\12\x9\x9\x9\x9\11\11\126\101\x4c\x55\x45\123\x28"; $Sql .= $this->isPropertySet("\155\x61\151\154\x5f\151\144", "\126") ? $this->getProperty("\155\x61\151\x6c\137\151\x64") : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x73\145\x6e\144\x65\x72\x5f\x69\x64", "\126") ? $this->getProperty("\x73\x65\156\144\145\162\x5f\151\x64") : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x72\x65\x63\x65\x69\166\145\x72\x5f\x69\144", "\126") ? $this->getProperty("\162\x65\x63\x65\x69\166\145\162\x5f\151\x64") : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\155\x61\151\x6c\137\163\165\142\x6a\x65\x63\164", "\x56") ? "\47" . $this->getProperty("\155\x61\x69\154\x5f\x73\x75\x62\152\x65\143\164") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6d\141\151\x6c\137\144\x65\164\141\x69\x6c", "\x56") ? "\47" . $this->getProperty("\155\x61\x69\154\137\x64\x65\x74\x61\151\x6c") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\155\141\151\x6c\x5f\x69\x73\146\x69\x6c\145", "\126") ? $this->getProperty("\155\x61\151\x6c\137\x69\x73\146\x69\x6c\x65") : "\62"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\137\162\145\x61\144", "\126") ? $this->getProperty("\x69\163\x5f\x72\145\x61\144") : "\x32"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x72\145\x61\144\137\x64\x61\x74\x65", "\126") ? "\47" . $this->getProperty("\x72\145\x61\144\x5f\144\141\164\x65") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\145\x6e\x64\145\x72\137\144\145\x6c", "\x56") ? $this->getProperty("\x73\x65\x6e\x64\145\x72\137\144\x65\154") : "\62"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x72\x65\143\x65\151\x76\145\162\137\x64\145\154", "\126") ? $this->getProperty("\162\x65\143\145\x69\166\x65\162\137\x64\145\x6c") : "\62"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\x5f\x64\x72\141\146\x74", "\126") ? $this->getProperty("\151\x73\137\x64\x72\x61\146\164") : "\x32"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\164\145\162\x79\137\x64\x61\164\x65", "\x56") ? "\x27" . $this->getProperty("\x65\x6e\x74\145\162\171\x5f\x64\141\x74\145") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\120\x44\101\x54\105\40\x72\x73\137\x74\142\154\137\x6d\x61\151\154\142\x6f\x78\40\123\105\124\x20"; if ($this->isPropertySet("\151\x73\x5f\x72\145\141\144", "\113")) { $Sql .= "{$con}\x20\x69\163\x5f\x72\x65\x61\x64\75\x27" . $this->getProperty("\x69\163\x5f\162\x65\x61\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x72\145\141\144\x5f\144\x61\x74\145", "\x4b")) { $Sql .= "{$con}\x20\162\145\141\x64\x5f\144\141\164\145\75\47" . $this->getProperty("\162\x65\x61\x64\x5f\144\141\164\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\163\145\x6e\144\x65\x72\x5f\144\x65\x6c", "\x4b")) { $Sql .= "{$con}\40\163\x65\156\x64\145\162\137\x64\145\x6c\x3d" . $this->getProperty("\x73\145\156\x64\x65\x72\x5f\144\x65\x6c"); $con = "\x2c"; } if ($this->isPropertySet("\162\x65\x63\x65\x69\166\x65\x72\x5f\x64\145\x6c", "\113")) { $Sql .= "{$con}\x20\x72\x65\x63\145\151\x76\x65\162\x5f\144\145\154\75" . $this->getProperty("\162\145\x63\145\x69\166\145\162\x5f\144\145\x6c"); $con = "\x2c"; } if ($this->isPropertySet("\x69\163\137\x64\162\x61\146\164", "\x4b")) { $Sql .= "{$con}\40\151\x73\x5f\144\162\x61\146\164\x3d" . $this->getProperty("\x69\x73\x5f\144\162\x61\146\164"); $con = "\x2c"; } $Sql .= "\x20\x57\110\x45\122\x45\x20\61\75\61"; if ($this->isPropertySet("\155\141\151\154\137\151\x64", "\126")) { $Sql .= "\40\x41\116\104\40\x6d\x61\151\154\137\x69\144\x3d" . $this->getProperty("\x6d\x61\x69\x6c\x5f\x69\x64"); } break; default: break; } return $this->dbQuery($Sql); } public function actMailBoxFile($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\x45\x52\x54\40\111\116\x54\x4f\x20\162\x73\x5f\x74\142\154\x5f\x6d\x61\151\x6c\142\x6f\170\x5f\x66\151\x6c\145\50\12\x9\x9\11\11\x9\x9\x6d\141\151\154\137\x66\x69\154\145\x5f\x69\144\x2c\12\11\11\x9\11\x9\11\x6d\141\151\154\137\151\144\54\xa\11\x9\x9\11\11\x9\x6d\x61\151\x6c\137\146\x69\154\x65\164\171\160\x65\54\xa\11\11\x9\x9\x9\11\155\x61\151\x6c\x5f\146\x69\154\x65\156\x61\155\x65\x2c\12\x9\x9\11\11\11\x9\151\163\101\143\164\x69\166\145\54\12\11\11\x9\11\11\11\145\156\x74\145\x72\x79\137\144\x61\x74\x65\51\40\12\x9\11\x9\11\11\x9\126\x41\114\x55\x45\x53\x28"; $Sql .= $this->isPropertySet("\155\x61\x69\x6c\137\x66\151\x6c\145\x5f\151\x64", "\x56") ? $this->getProperty("\155\141\151\x6c\x5f\x66\x69\x6c\x65\137\x69\x64") : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\155\x61\151\154\137\x69\x64", "\126") ? $this->getProperty("\155\141\x69\154\x5f\151\144") : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6d\x61\151\154\x5f\146\x69\154\145\164\x79\160\x65", "\x56") ? $this->getProperty("\x6d\141\151\x6c\x5f\x66\151\x6c\x65\x74\171\160\x65") : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6d\x61\151\x6c\x5f\x66\151\154\x65\156\141\x6d\x65", "\126") ? "\47" . $this->getProperty("\x6d\141\x69\154\137\x66\x69\154\145\x6e\x61\x6d\x65") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\x41\143\164\x69\166\x65", "\126") ? "\47" . $this->getProperty("\151\x73\x41\x63\164\151\166\145") . "\x27" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\x74\x65\162\171\137\x64\x61\x74\145", "\126") ? "\47" . $this->getProperty("\x65\156\164\x65\162\171\x5f\x64\x61\x74\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\51"; break; case "\125": $Sql = "\125\120\104\101\124\105\x20\162\163\x5f\x74\142\154\137\155\141\x69\x6c\x62\157\170\137\146\x69\154\x65\x20\123\105\x54\40"; if ($this->isPropertySet("\151\163\x41\x63\x74\151\166\x65", "\x4b")) { $Sql .= "{$con}\40\151\x73\x41\143\x74\x69\x76\x65\x3d" . $this->getProperty("\x69\x73\101\x63\x74\151\166\145"); $con = "\54"; } $Sql .= "\40\127\110\105\x52\105\40\x31\75\61"; if ($this->isPropertySet("\155\141\x69\154\137\151\144", "\x56")) { $Sql .= "\x20\x41\x4e\104\x20\155\141\151\154\x5f\x69\x64\75" . $this->getProperty("\155\141\151\154\137\151\144"); } if ($this->isPropertySet("\155\x61\151\x6c\137\x66\x69\x6c\145\x5f\x69\144", "\x56")) { $Sql .= "\40\101\x4e\x44\40\x6d\x61\x69\154\x5f\x66\x69\x6c\145\x5f\x69\144\x3d" . $this->getProperty("\x6d\x61\151\x6c\137\146\151\154\145\x5f\151\x64"); } break; default: break; } return $this->dbQuery($Sql); } public function actMailBoxFileType($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\116\x53\x45\x52\x54\x20\x49\x4e\x54\117\40\x72\163\137\x74\142\154\137\x6d\141\x69\x6c\x62\157\x78\137\x66\151\154\x65\137\164\x79\x70\145\50\12\x9\11\x9\x9\11\11\x66\151\x6c\145\x74\171\x70\x65\x5f\151\x64\54\12\x9\11\x9\x9\11\x9\165\163\145\x72\x5f\151\144\54\xa\x9\11\11\11\11\x9\164\171\160\x65\x5f\x6e\x61\155\145\54\xa\x9\11\11\11\x9\11\x74\x79\160\x65\137\x69\143\x6f\x6e\x2c\xa\11\11\x9\11\x9\11\x69\163\101\143\x74\x69\x76\x65\x2c\xa\x9\11\11\11\x9\11\x65\156\164\145\x72\x79\137\x64\x61\x74\x65\51\12\x9\x9\11\11\x9\11\126\x41\114\125\105\x53\x28"; $Sql .= $this->isPropertySet("\x66\151\x6c\x65\164\x79\x70\145\137\x69\144", "\x56") ? $this->getProperty("\146\x69\154\145\x74\x79\x70\x65\137\151\144") : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\163\x65\162\137\151\x64", "\x56") ? $this->getProperty("\x75\x73\145\162\137\x69\144") : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x74\x79\160\145\x5f\x6e\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\x74\x79\x70\145\x5f\156\x61\155\x65") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\164\x79\160\x65\137\151\x63\157\x6e", "\126") ? "\x27" . $this->getProperty("\164\171\x70\145\x5f\151\143\x6f\x6e") . "\47" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\101\x63\164\151\x76\145", "\x56") ? $this->getProperty("\x69\x73\101\143\164\x69\166\x65") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\x74\145\162\171\x5f\144\141\164\145", "\x56") ? "\47" . $this->getProperty("\x65\156\x74\145\x72\171\137\x64\x61\164\145") . "\x27" : "\116\125\x4c\114"; $Sql .= "\51"; break; case "\125": $Sql = "\125\120\x44\101\x54\105\40\162\x73\x5f\164\142\154\137\x6d\141\x69\154\x62\157\x78\137\146\151\154\145\x5f\164\171\160\145\40\123\105\124\40"; if ($this->isPropertySet("\x74\171\x70\145\137\x6e\141\155\x65", "\x4b")) { $Sql .= "{$con}\x20\164\x79\160\x65\x5f\x6e\x61\x6d\x65\x3d\x27" . $this->getProperty("\x74\x79\x70\145\137\156\x61\x6d\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x74\x79\160\x65\137\151\143\157\x6e", "\x4b")) { $Sql .= "{$con}\40\x74\x79\x70\145\137\x69\x63\x6f\156\75\47" . $this->getProperty("\164\171\x70\145\137\151\x63\157\x6e") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\x73\101\x63\x74\151\x76\x65", "\x4b")) { $Sql .= "{$con}\40\x69\x73\x41\x63\164\x69\x76\x65\x3d\47" . $this->getProperty("\x69\x73\x41\143\x74\151\166\145") . "\x27"; $con = "\54"; } $Sql .= "\40\127\110\105\122\x45\x20\x31\75\x31"; if ($this->isPropertySet("\146\151\154\145\x74\171\160\145\x5f\x69\x64", "\x56")) { $Sql .= "\x20\x41\116\x44\x20\146\x69\154\x65\164\171\x70\145\x5f\x69\x64\75" . $this->getProperty("\146\x69\154\x65\164\171\x70\x65\137\x69\x64"); } break; case "\x44": break; default: break; } return $this->dbQuery($Sql); } public function actLocation($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\116\123\x45\122\124\x20\111\116\x54\117\40\x72\163\137\x74\142\154\x5f\154\x6f\x63\x61\164\x69\x6f\156\50\12\11\x9\11\x9\x9\x9\154\157\x63\141\164\151\157\x6e\137\151\144\x2c\xa\x9\11\11\x9\x9\x9\x75\163\x65\x72\x5f\x69\144\54\xa\11\x9\11\x9\x9\x9\143\157\x6d\160\x61\156\171\x5f\x69\144\x2c\12\x9\x9\11\11\x9\x9\x6c\157\143\141\164\x69\157\156\137\156\141\x6d\x65\54\12\x9\11\x9\11\11\11\154\x6f\x63\141\x74\x69\x6f\x6e\137\141\x64\144\x72\x65\x73\x73\54\12\11\11\x9\11\11\11\154\157\143\141\x74\151\157\156\x5f\x70\150\157\x6e\145\x5f\x31\54\xa\11\x9\11\11\11\x9\154\157\x63\x61\164\x69\x6f\156\x5f\160\150\157\156\145\137\x32\x2c\12\x9\x9\x9\11\11\x9\x6c\x6f\x63\x61\164\x69\157\x6e\x5f\160\x68\x6f\x6e\145\x5f\63\x2c\xa\x9\x9\11\x9\11\x9\154\x6f\143\141\x74\151\157\156\137\146\x61\x78\x2c\12\x9\11\11\x9\11\11\x65\156\x74\x65\162\x79\137\144\141\x74\145\x2c\xa\x9\x9\x9\11\x9\11\x69\163\x41\x63\x74\151\x76\145\51\xa\11\11\x9\11\11\11\x56\x41\114\125\105\x53\x28"; $Sql .= $this->isPropertySet("\x6c\157\143\141\164\151\157\156\137\151\144", "\126") ? $this->getProperty("\x6c\x6f\143\141\x74\x69\x6f\156\137\x69\x64") : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\x5f\151\144", "\x56") ? $this->getProperty("\x75\x73\145\x72\137\x69\x64") : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\x6f\x6d\160\141\x6e\171\137\151\144", "\126") ? $this->getProperty("\143\157\155\x70\141\156\x79\137\x69\x64") : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\x6f\143\141\x74\151\x6f\156\x5f\x6e\x61\x6d\145", "\x56") ? "\47" . $this->getProperty("\x6c\157\143\141\164\151\x6f\156\137\156\141\155\x65") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x6f\143\x61\164\151\x6f\x6e\137\141\x64\x64\162\145\x73\x73", "\126") ? "\x27" . $this->getProperty("\x6c\x6f\143\x61\164\x69\x6f\x6e\137\141\144\x64\162\x65\x73\163") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\154\157\143\141\164\x69\x6f\156\x5f\160\x68\x6f\156\145\x5f\x31", "\x56") ? "\x27" . $this->getProperty("\x6c\157\143\141\164\x69\157\156\137\160\150\157\x6e\145\137\x31") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\154\x6f\143\x61\164\151\x6f\156\137\x70\150\x6f\156\145\137\62", "\126") ? "\x27" . $this->getProperty("\154\157\x63\141\x74\151\157\156\x5f\160\150\x6f\156\x65\137\x32") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\157\143\x61\x74\151\x6f\x6e\137\160\x68\x6f\156\x65\137\x33", "\126") ? "\47" . $this->getProperty("\154\157\x63\141\164\x69\157\156\x5f\x70\x68\157\x6e\x65\137\63") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\157\143\x61\164\151\x6f\x6e\x5f\x66\x61\x78", "\126") ? "\x27" . $this->getProperty("\154\157\143\x61\x74\x69\x6f\x6e\x5f\x66\x61\x78") . "\47" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\156\164\145\162\171\137\144\141\x74\x65", "\126") ? "\x27" . $this->getProperty("\145\x6e\164\x65\x72\x79\137\144\141\x74\x65") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\x41\143\164\151\x76\x65", "\126") ? "\47" . $this->getProperty("\151\163\x41\143\x74\151\x76\x65") . "\x27" : "\x31"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\120\104\x41\x54\105\x20\162\163\x5f\x74\142\x6c\137\x6c\157\x63\141\164\151\x6f\156\40\123\105\x54\x20"; if ($this->isPropertySet("\154\x6f\x63\x61\164\x69\x6f\x6e\137\x6e\x61\155\x65", "\113")) { $Sql .= "{$con}\40\x6c\x6f\x63\141\x74\151\x6f\156\137\x6e\x61\155\x65\75\x27" . $this->getProperty("\154\157\143\141\x74\151\157\156\137\156\141\x6d\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x63\157\x6d\x70\x61\x6e\x79\x5f\x69\144", "\113")) { $Sql .= "{$con}\x20\x63\157\x6d\160\x61\x6e\171\x5f\151\x64\x3d\x27" . $this->getProperty("\143\157\155\x70\141\x6e\x79\137\151\x64") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\154\x6f\143\x61\x74\151\157\x6e\137\x61\x64\144\162\x65\163\x73", "\x4b")) { $Sql .= "{$con}\x20\154\157\x63\x61\164\x69\157\156\x5f\141\144\144\x72\x65\x73\x73\x3d\47" . $this->getProperty("\x6c\x6f\143\x61\x74\151\157\156\x5f\141\144\x64\x72\145\x73\x73") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\x6f\x63\141\x74\x69\x6f\156\137\160\150\x6f\156\x65\137\x31", "\x4b")) { $Sql .= "{$con}\x20\154\157\x63\x61\164\151\157\156\x5f\x70\150\157\156\x65\137\x31\75\x27" . $this->getProperty("\154\157\143\x61\x74\151\157\156\x5f\x70\x68\157\x6e\x65\137\61") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x6c\157\143\141\164\151\x6f\x6e\x5f\160\x68\x6f\x6e\x65\x5f\62", "\113")) { $Sql .= "{$con}\x20\x6c\x6f\143\141\x74\x69\157\x6e\x5f\160\x68\157\156\x65\137\x32\x3d\x27" . $this->getProperty("\x6c\x6f\143\141\164\x69\x6f\156\x5f\x70\x68\x6f\x6e\x65\137\x32") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x6c\157\x63\141\164\151\x6f\x6e\137\x70\x68\x6f\x6e\x65\x5f\x33", "\113")) { $Sql .= "{$con}\x20\x6c\x6f\x63\x61\164\x69\x6f\x6e\137\160\x68\x6f\x6e\x65\137\63\x3d\x27" . $this->getProperty("\x6c\x6f\143\x61\164\x69\x6f\x6e\137\160\150\x6f\156\145\x5f\63") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\157\143\x61\x74\x69\157\156\137\146\141\170", "\x4b")) { $Sql .= "{$con}\40\x6c\x6f\143\x61\164\x69\x6f\156\x5f\146\x61\170\x3d\x27" . $this->getProperty("\154\157\143\141\164\151\x6f\156\137\146\x61\x78") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\151\163\x41\x63\164\x69\x76\x65", "\x4b")) { $Sql .= "{$con}\x20\x69\163\x41\143\x74\151\166\145\75\x27" . $this->getProperty("\151\x73\101\143\164\x69\166\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\x57\x48\105\x52\x45\40\x31\x3d\61"; if ($this->isPropertySet("\x6c\x6f\143\x61\164\x69\157\156\137\151\144", "\x56")) { $Sql .= "\x20\101\116\104\40\x6c\157\143\x61\164\151\157\156\137\x69\144\75" . $this->getProperty("\154\x6f\x63\x61\x74\x69\157\x6e\x5f\151\144"); } break; case "\104\x45\x4c": $Sql = "\125\x50\x44\101\124\x45\40\x72\163\x5f\x74\x62\x6c\x5f\x6c\157\x63\x61\164\x69\157\156\x20\123\105\124\x20\xa\x9\11\11\11\11\11\11\151\x73\x41\x63\x74\151\x76\x65\75\63\12\x9\x9\x9\11\x9\11\x57\x48\x45\x52\x45\xa\11\11\x9\11\11\11\11\61\x3d\61"; $Sql .= "\x20\x41\x4e\x44\40\x6c\x6f\x63\x61\x74\x69\157\156\x5f\151\x64\75" . $this->getProperty("\x6c\157\143\x61\164\x69\157\156\137\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actUserMigration($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\x53\x45\122\124\40\111\x4e\124\117\x20\x72\163\137\164\142\x6c\137\x75\x73\145\162\x5f\155\x69\147\162\x61\164\x69\x6f\156\x20\50\12\11\11\x9\x9\11\11\x6d\151\147\x72\x61\164\x69\157\156\x5f\151\x64\x2c\12\x9\x9\11\11\x9\11\x75\x73\145\x72\137\x69\x64\x2c\12\x9\x9\x9\x9\11\x9\x6d\x69\147\x72\141\x74\151\157\x6e\137\165\x73\x65\162\x5f\x69\x64\54\12\x9\x9\x9\11\x9\11\x63\x75\162\x72\145\x6e\164\x5f\154\157\x63\x61\x74\151\x6f\156\x5f\x69\x64\54\12\x9\x9\x9\11\x9\11\155\151\x67\x72\x61\164\151\x6f\156\x5f\154\x6f\143\x61\x74\x69\157\156\137\x69\144\54\xa\x9\x9\11\x9\x9\x9\155\x69\x67\x72\141\x74\151\x6f\x6e\x5f\x72\x65\141\163\x6f\x6e\x2c\xa\x9\x9\11\x9\x9\x9\155\x69\147\162\141\164\x69\157\156\137\144\141\x74\145\x2c\12\x9\x9\x9\x9\11\11\145\x6e\164\x65\x72\171\x5f\144\141\x74\145\x2c\xa\11\11\11\x9\11\11\x69\x73\101\143\164\x69\x76\145\x29\12\11\x9\x9\x9\11\x9\x56\x41\114\x55\105\x53\50"; $Sql .= $this->isPropertySet("\x6d\x69\147\x72\141\x74\x69\157\x6e\x5f\x69\x64", "\x56") ? $this->getProperty("\x6d\x69\147\x72\141\x74\151\157\156\137\x69\144") : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\145\x72\137\x69\x64", "\x56") ? $this->getProperty("\165\163\145\162\137\x69\144") : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6d\151\x67\162\x61\x74\x69\157\156\x5f\165\x73\x65\162\x5f\151\x64", "\126") ? "\x27" . $this->getProperty("\x6d\x69\x67\x72\141\164\x69\157\156\x5f\165\163\x65\162\x5f\x69\144") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\x75\162\x72\145\156\164\137\x6c\x6f\143\141\x74\151\157\156\137\151\x64", "\126") ? "\x27" . $this->getProperty("\143\x75\x72\162\145\x6e\164\x5f\x6c\157\x63\x61\x74\151\x6f\156\137\x69\x64") . "\x27" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6d\x69\x67\x72\141\x74\151\x6f\x6e\x5f\x6c\x6f\x63\141\164\x69\x6f\156\x5f\151\144", "\126") ? "\47" . $this->getProperty("\155\151\147\162\141\x74\x69\x6f\156\137\154\157\x63\x61\164\x69\x6f\x6e\x5f\x69\x64") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\155\151\147\x72\141\164\x69\157\156\137\x72\145\141\x73\x6f\x6e", "\x56") ? "\x27" . $this->getProperty("\155\151\x67\x72\x61\164\x69\x6f\x6e\137\x72\x65\x61\163\x6f\x6e") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6d\151\147\162\x61\x74\x69\x6f\x6e\x5f\x64\141\x74\145", "\x56") ? "\47" . $this->getProperty("\155\x69\x67\x72\x61\x74\151\157\x6e\137\144\141\164\145") . "\47" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\156\164\145\162\171\x5f\144\x61\164\145", "\126") ? "\x27" . $this->getProperty("\x65\156\164\x65\x72\171\137\x64\141\164\x65") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\x73\101\143\x74\151\166\x65", "\x56") ? "\x27" . $this->getProperty("\151\x73\x41\x63\164\151\166\x65") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\125": break; case "\x44\105\114": $Sql = "\125\120\x44\x41\124\105\40\162\x73\x5f\164\142\154\137\165\x73\x65\x72\x5f\155\151\147\162\141\x74\151\157\x6e\40\x53\105\124\40\12\x9\11\x9\x9\x9\x9\x9\x69\163\101\143\x74\151\x76\x65\x3d\63\12\11\11\x9\11\11\x9\x57\110\105\x52\x45\12\x9\11\11\11\11\11\11\x31\75\x31"; $Sql .= "\x20\x41\x4e\104\x20\x6d\151\x67\162\141\164\x69\x6f\156\x5f\151\144\75" . $this->getProperty("\x6d\151\x67\x72\x61\164\x69\157\156\137\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actCompanies($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\x53\105\x52\124\40\111\x4e\124\117\40\162\x73\137\164\x62\154\137\143\157\155\160\141\156\x69\x65\163\x28\12\x9\11\11\11\x9\x9\143\157\155\160\x61\x6e\x79\137\151\x64\x2c\12\x9\11\x9\x9\x9\11\165\163\x65\x72\x5f\151\144\54\xa\11\11\11\11\x9\x9\x63\x6f\x6d\x70\141\x6e\171\137\x6e\141\x6d\x65\54\xa\x9\x9\x9\11\x9\11\145\x6e\x74\x65\162\x79\137\x64\141\164\x65\x2c\12\x9\11\11\x9\11\x9\151\x73\101\x63\x74\x69\166\145\51\xa\11\x9\11\x9\11\x9\x56\101\114\x55\105\x53\x28"; $Sql .= $this->isPropertySet("\x63\x6f\155\x70\x61\x6e\x79\137\151\x64", "\126") ? $this->getProperty("\143\x6f\x6d\x70\141\x6e\171\137\151\x64") : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\162\x5f\x69\x64", "\126") ? $this->getProperty("\x75\163\145\x72\137\x69\x64") : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\155\x70\141\x6e\x79\137\156\141\155\x65", "\126") ? "\x27" . $this->getProperty("\143\x6f\155\x70\x61\156\171\x5f\156\x61\x6d\145") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x6e\x74\145\162\x79\x5f\x64\x61\164\x65", "\126") ? "\x27" . $this->getProperty("\145\156\x74\x65\162\x79\x5f\x64\141\x74\x65") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\x41\x63\164\151\166\x65", "\126") ? "\x27" . $this->getProperty("\x69\163\101\143\x74\x69\x76\x65") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\x55\120\x44\x41\x54\x45\40\x72\163\137\164\x62\154\x5f\143\157\155\160\x61\x6e\x69\x65\x73\40\x53\105\x54\40"; if ($this->isPropertySet("\x63\157\155\160\x61\x6e\171\137\156\x61\155\145", "\113")) { $Sql .= "{$con}\x20\143\x6f\155\x70\x61\156\171\x5f\156\141\x6d\x65\x3d\47" . $this->getProperty("\x63\x6f\x6d\160\x61\156\x79\x5f\x6e\141\x6d\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x69\163\101\143\x74\x69\166\145", "\x4b")) { $Sql .= "{$con}\x20\151\163\x41\x63\x74\151\166\145\x3d\x27" . $this->getProperty("\x69\x73\101\143\164\x69\166\x65") . "\47"; $con = "\x2c"; } $Sql .= "\40\x57\x48\105\122\x45\40\x31\75\61"; if ($this->isPropertySet("\143\157\x6d\160\x61\x6e\x79\137\x69\x64", "\126")) { $Sql .= "\x20\x41\x4e\x44\x20\x63\157\x6d\160\x61\156\x79\x5f\151\x64\75" . $this->getProperty("\143\157\155\160\141\x6e\171\137\151\144"); } break; case "\104\105\x4c": $Sql = "\125\120\104\101\124\105\x20\162\163\x5f\164\x62\x6c\x5f\x63\157\155\160\x61\x6e\151\145\163\x20\123\x45\x54\40\xa\x9\11\x9\11\x9\11\11\151\x73\101\x63\164\x69\x76\145\x3d\63\xa\11\11\11\11\11\11\127\x48\x45\122\105\xa\x9\x9\11\11\x9\11\x9\x31\75\x31"; $Sql .= "\x20\x41\116\x44\40\143\157\155\160\x61\156\x79\137\151\x64\75" . $this->getProperty("\x63\x6f\x6d\x70\141\156\x79\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actDepartments($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\x45\x52\x54\40\x49\x4e\124\x4f\40\x72\x73\137\x74\x62\x6c\x5f\144\x65\x70\x61\x72\164\155\145\x6e\x74\50\12\11\x9\x9\11\x9\11\x64\x65\160\141\x72\x74\x6d\x65\156\x74\x5f\151\144\x2c\12\11\11\x9\x9\x9\11\x75\x73\145\162\x5f\x69\x64\x2c\xa\11\11\x9\x9\11\11\143\157\x6d\160\x61\156\171\137\x69\144\x2c\12\x9\11\11\x9\x9\x9\144\x65\160\141\162\164\x6d\145\x6e\x74\x5f\x6e\x61\155\145\x2c\12\x9\11\11\x9\x9\11\x65\x6e\x74\x65\162\x79\137\x64\x61\164\145\54\12\x9\11\11\11\x9\11\x69\163\101\x63\164\x69\166\x65\51\xa\x9\x9\11\11\11\x9\x56\x41\x4c\125\105\x53\x28"; $Sql .= $this->isPropertySet("\144\145\x70\141\162\164\155\145\156\x74\137\151\144", "\x56") ? $this->getProperty("\144\145\160\141\x72\164\x6d\x65\x6e\164\x5f\151\144") : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\162\x5f\151\144", "\x56") ? $this->getProperty("\x75\163\x65\162\x5f\151\144") : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\155\x70\x61\156\171\137\151\144", "\126") ? $this->getProperty("\143\x6f\155\160\x61\156\171\x5f\x69\x64") : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\x65\160\x61\x72\164\x6d\x65\156\164\x5f\x6e\141\x6d\145", "\x56") ? "\x27" . $this->getProperty("\x64\x65\160\141\162\164\155\x65\156\164\137\156\x61\155\145") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\x74\145\162\171\137\144\x61\164\x65", "\126") ? "\x27" . $this->getProperty("\x65\156\164\145\x72\x79\137\144\141\164\145") . "\47" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\x41\x63\x74\151\166\x65", "\x56") ? "\47" . $this->getProperty("\151\163\x41\x63\164\x69\166\x65") . "\47" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\x50\x44\101\124\105\40\162\x73\x5f\x74\x62\x6c\x5f\144\145\160\x61\x72\164\155\x65\156\164\40\123\105\x54\x20"; if ($this->isPropertySet("\144\x65\x70\x61\x72\164\x6d\x65\x6e\x74\137\156\x61\x6d\145", "\113")) { $Sql .= "{$con}\x20\144\x65\160\141\x72\164\x6d\x65\x6e\x74\x5f\156\141\x6d\145\x3d\47" . $this->getProperty("\144\x65\x70\141\162\164\155\x65\156\x74\x5f\x6e\141\x6d\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x63\157\155\160\141\x6e\x79\137\x69\x64", "\x4b")) { $Sql .= "{$con}\40\x63\x6f\155\160\141\156\171\137\x69\144\x3d\x27" . $this->getProperty("\x63\x6f\155\160\141\x6e\171\137\x69\x64") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\101\143\164\x69\x76\145", "\x4b")) { $Sql .= "{$con}\40\x69\163\x41\143\164\x69\x76\x65\75\47" . $this->getProperty("\x69\163\x41\143\164\151\x76\145") . "\47"; $con = "\x2c"; } $Sql .= "\40\x57\110\105\x52\x45\x20\61\75\61"; if ($this->isPropertySet("\x64\145\x70\x61\162\164\x6d\x65\x6e\x74\x5f\151\144", "\x56")) { $Sql .= "\x20\101\116\104\40\144\145\x70\141\x72\164\155\x65\x6e\164\x5f\151\144\x3d" . $this->getProperty("\x64\x65\x70\x61\162\164\x6d\x65\156\164\137\151\144"); } break; case "\x44\x45\114": $Sql = "\125\120\x44\x41\x54\105\x20\162\x73\137\x74\142\x6c\x5f\x64\145\160\141\x72\164\x6d\145\x6e\x74\x20\x53\x45\124\x20\xa\11\x9\x9\11\x9\x9\x9\151\x73\x41\x63\164\x69\x76\145\x3d\x33\12\11\x9\x9\x9\11\11\x57\x48\105\x52\x45\xa\11\11\x9\11\11\11\11\61\75\61"; $Sql .= "\40\x41\116\104\40\x64\145\160\x61\162\164\155\x65\156\164\137\x69\x64\x3d" . $this->getProperty("\144\x65\x70\x61\162\x74\155\x65\156\x74\x5f\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actJobTitle($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\123\105\122\x54\x20\111\x4e\x54\x4f\40\x72\x73\x5f\164\x62\154\137\x6a\x6f\142\x5f\164\151\164\x6c\145\50\12\x9\11\11\x9\x9\11\x6a\x6f\x62\x5f\164\151\164\154\x65\x5f\x69\144\54\xa\11\x9\x9\x9\x9\x9\x75\163\x65\162\x5f\151\144\x2c\12\x9\11\x9\11\11\11\152\157\142\137\x74\151\164\154\x65\54\12\11\x9\11\x9\x9\x9\x65\156\164\145\162\171\x5f\x64\141\x74\x65\54\xa\11\11\x9\x9\x9\x9\151\163\101\143\x74\x69\x76\145\x29\12\11\x9\x9\11\11\11\126\101\x4c\125\x45\123\50"; $Sql .= $this->isPropertySet("\152\157\142\x5f\x74\151\164\154\x65\137\x69\144", "\126") ? $this->getProperty("\x6a\x6f\x62\137\x74\151\x74\x6c\145\x5f\x69\x64") : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\137\151\x64", "\126") ? $this->getProperty("\165\x73\x65\x72\x5f\x69\x64") : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\152\x6f\142\137\x74\x69\164\x6c\x65", "\126") ? "\x27" . $this->getProperty("\152\157\x62\x5f\x74\x69\x74\x6c\145") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\x74\x65\162\x79\137\x64\x61\x74\145", "\126") ? "\47" . $this->getProperty("\145\156\164\145\x72\x79\x5f\144\141\x74\x65") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\x41\143\164\x69\x76\145", "\126") ? "\x27" . $this->getProperty("\151\163\101\143\x74\x69\166\x65") . "\47" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\x44\101\124\105\40\x72\x73\137\x74\142\154\x5f\152\157\x62\137\164\x69\164\x6c\145\x20\123\105\124\x20"; if ($this->isPropertySet("\152\157\142\137\x74\x69\x74\x6c\x65", "\113")) { $Sql .= "{$con}\40\152\157\x62\x5f\164\151\164\x6c\145\x3d\47" . $this->getProperty("\x6a\x6f\x62\x5f\164\x69\x74\x6c\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\x73\x41\x63\x74\x69\166\145", "\x4b")) { $Sql .= "{$con}\x20\151\163\101\x63\164\x69\166\145\x3d\x27" . $this->getProperty("\151\163\101\143\164\x69\x76\145") . "\x27"; $con = "\x2c"; } $Sql .= "\40\127\x48\105\x52\x45\x20\x31\75\61"; if ($this->isPropertySet("\152\x6f\x62\137\164\151\164\154\x65\137\151\144", "\126")) { $Sql .= "\40\x41\116\x44\40\152\157\142\137\164\x69\x74\154\145\x5f\x69\144\x3d" . $this->getProperty("\x6a\x6f\142\137\x74\x69\x74\x6c\145\x5f\x69\144"); } break; case "\104\105\x4c": $Sql = "\125\120\x44\x41\124\x45\x20\162\x73\x5f\x74\x62\154\x5f\152\157\142\137\164\151\x74\x6c\145\x20\123\105\x54\x20\xa\x9\11\11\x9\11\x9\11\151\163\x41\x63\x74\x69\166\145\75\x33\12\11\11\x9\x9\11\x9\x57\x48\105\122\105\12\11\11\x9\11\x9\11\11\61\x3d\61"; $Sql .= "\40\x41\116\104\40\152\157\142\137\164\151\164\154\145\x5f\x69\144\75" . $this->getProperty("\x6a\157\x62\x5f\x74\x69\x74\154\145\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actAssetBrand($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\123\x45\122\x54\x20\x49\116\124\x4f\40\x72\x73\137\x74\142\x6c\x5f\141\x73\163\145\x74\137\142\162\141\156\144\163\x28\xa\x9\x9\11\x9\11\x9\x61\163\x73\145\164\137\x62\x72\x61\x6e\x64\x5f\151\144\54\xa\11\x9\11\x9\x9\11\165\x73\145\x72\x5f\x69\x64\54\12\x9\11\11\11\x9\x9\x61\x73\163\145\164\x5f\x62\162\x61\x6e\144\163\54\xa\x9\x9\x9\x9\11\11\145\156\x74\162\x79\137\144\141\x74\145\54\12\x9\x9\11\x9\x9\11\x69\x73\x41\143\x74\151\x76\145\x29\xa\11\x9\11\11\x9\11\126\x41\114\x55\x45\x53\50"; $Sql .= $this->isPropertySet("\141\x73\163\145\164\x5f\x62\x72\141\x6e\144\137\x69\x64", "\x56") ? $this->getProperty("\141\x73\x73\x65\164\x5f\x62\162\x61\156\144\137\151\144") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\145\x72\137\x69\144", "\x56") ? $this->getProperty("\x75\163\x65\162\x5f\151\144") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\x73\145\x74\137\x62\x72\141\156\x64\x73", "\x56") ? "\47" . $this->getProperty("\x61\x73\x73\145\164\137\x62\162\x61\x6e\x64\x73") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\156\x74\x72\171\137\144\x61\164\x65", "\x56") ? "\x27" . $this->getProperty("\x65\156\164\x72\171\x5f\144\x61\x74\145") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\163\101\x63\164\151\166\x65", "\x56") ? "\x27" . $this->getProperty("\151\x73\x41\143\x74\x69\x76\x65") . "\47" : "\x31"; $Sql .= "\51"; break; case "\x55": $Sql = "\125\x50\x44\101\124\105\40\x72\x73\137\x74\x62\x6c\137\141\163\163\x65\x74\137\142\162\x61\156\144\163\40\x53\x45\124\40"; if ($this->isPropertySet("\141\163\x73\x65\164\137\x62\x72\141\156\x64\163", "\x4b")) { $Sql .= "{$con}\x20\x61\163\x73\x65\x74\137\142\162\x61\156\144\163\75\x27" . $this->getProperty("\141\163\163\x65\x74\x5f\x62\162\x61\156\x64\x73") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\101\x63\164\151\x76\145", "\x4b")) { $Sql .= "{$con}\x20\x69\163\101\x63\164\151\x76\145\75\47" . $this->getProperty("\x69\163\101\x63\164\151\x76\x65") . "\x27"; $con = "\54"; } $Sql .= "\40\x57\110\105\x52\105\x20\x31\x3d\61"; if ($this->isPropertySet("\141\163\x73\x65\x74\x5f\x62\x72\x61\156\144\137\151\144", "\x56")) { $Sql .= "\40\x41\x4e\104\x20\141\x73\x73\x65\164\x5f\142\x72\x61\x6e\x64\x5f\151\x64\75" . $this->getProperty("\141\x73\163\145\164\x5f\142\x72\x61\x6e\x64\137\x69\x64"); } break; case "\x44\105\x4c": $Sql = "\125\x50\x44\101\x54\105\x20\x72\x73\x5f\164\142\154\137\141\163\163\145\x74\x5f\142\162\141\156\x64\163\40\x53\x45\124\40\xa\11\x9\11\11\11\x9\11\x69\x73\x41\143\x74\151\x76\x65\x3d\63\12\x9\11\11\x9\11\x9\127\110\105\122\x45\12\11\11\x9\11\x9\11\11\61\x3d\x31"; $Sql .= "\40\101\116\x44\40\141\x73\x73\x65\164\137\142\162\x61\x6e\x64\137\151\x64\75" . $this->getProperty("\141\163\x73\x65\x74\137\x62\162\x61\x6e\x64\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actCatagories($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\x53\105\122\124\x20\x49\116\124\x4f\40\162\163\x5f\x74\x62\x6c\x5f\x63\141\x74\141\x67\157\162\151\145\163\50\xa\x9\x9\x9\x9\x9\11\143\x61\164\137\x69\x64\54\12\11\11\x9\x9\x9\11\165\x73\x65\x72\x5f\151\144\x2c\12\11\x9\11\11\11\11\143\x61\x74\137\156\141\155\145\x2c\12\11\11\11\x9\11\x9\x65\156\164\x72\x79\x5f\x64\141\164\145\x2c\12\x9\x9\x9\11\x9\x9\x69\163\x41\x63\x74\151\166\x65\x29\12\x9\11\x9\11\x9\x9\126\x41\114\x55\105\x53\50"; $Sql .= $this->isPropertySet("\x63\141\164\137\x69\x64", "\x56") ? $this->getProperty("\x63\141\x74\x5f\151\x64") : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\x5f\x69\x64", "\126") ? $this->getProperty("\x75\163\145\x72\137\x69\144") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\141\x74\x5f\x6e\x61\155\145", "\126") ? "\x27" . $this->getProperty("\143\x61\164\x5f\156\x61\155\145") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\156\164\x72\x79\137\144\141\x74\145", "\x56") ? "\x27" . $this->getProperty("\145\156\x74\x72\171\x5f\x64\141\x74\145") . "\47" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\101\143\x74\x69\166\x65", "\x56") ? "\x27" . $this->getProperty("\x69\x73\101\143\164\151\166\x65") . "\47" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\x50\x44\x41\124\105\x20\x72\163\137\164\142\x6c\137\x63\141\164\141\x67\157\162\x69\x65\163\x20\123\105\124\40"; if ($this->isPropertySet("\143\141\164\x5f\156\x61\x6d\145", "\x4b")) { $Sql .= "{$con}\40\x63\141\x74\x5f\156\x61\155\145\x3d\x27" . $this->getProperty("\x63\141\x74\137\156\x61\x6d\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\163\x41\x63\x74\x69\166\145", "\113")) { $Sql .= "{$con}\x20\151\163\x41\143\164\x69\x76\145\x3d\x27" . $this->getProperty("\151\x73\101\143\x74\151\x76\x65") . "\x27"; $con = "\54"; } $Sql .= "\x20\x57\110\x45\122\105\40\61\75\61"; if ($this->isPropertySet("\143\141\x74\137\151\144", "\126")) { $Sql .= "\x20\x41\x4e\x44\40\143\141\x74\137\151\x64\75" . $this->getProperty("\x63\x61\164\137\x69\x64"); } break; case "\104\x45\x4c": $Sql = "\x55\x50\104\101\124\x45\40\x72\163\x5f\x74\x62\x6c\137\x63\141\x74\x61\x67\x6f\x72\151\x65\x73\x20\x53\x45\124\x20\xa\x9\11\11\11\x9\11\x9\x69\x73\x41\143\x74\x69\x76\145\75\63\12\11\11\x9\11\x9\x9\x57\x48\105\x52\x45\12\11\11\11\11\11\x9\11\61\75\61"; $Sql .= "\x20\x41\116\104\x20\143\141\x74\x5f\151\x64\x3d" . $this->getProperty("\x63\x61\x74\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actAssetType($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\105\x52\x54\x20\x49\x4e\124\117\x20\x72\x73\137\164\x62\x6c\137\x61\x73\163\145\164\163\x5f\x74\171\x70\145\x28\xa\11\11\11\x9\x9\x9\141\163\163\145\164\137\164\171\x70\145\x5f\x69\x64\x2c\xa\11\x9\x9\x9\11\x9\143\141\164\x5f\x69\144\54\xa\11\11\x9\x9\11\x9\165\x73\x65\x72\137\151\x64\54\12\11\11\11\x9\11\x9\x61\x73\x73\145\x74\x5f\164\171\160\145\x2c\12\x9\x9\x9\x9\x9\11\x65\156\164\x72\171\x5f\144\141\x74\x65\x2c\xa\x9\11\11\x9\11\11\151\x73\101\x63\164\x69\166\x65\51\xa\x9\x9\x9\x9\11\x9\x56\x41\114\125\105\123\50"; $Sql .= $this->isPropertySet("\x61\163\163\145\164\x5f\164\171\x70\145\x5f\x69\x64", "\x56") ? $this->getProperty("\x61\163\163\x65\164\x5f\x74\x79\x70\x65\137\x69\144") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\141\164\137\x69\144", "\126") ? $this->getProperty("\143\x61\x74\x5f\151\x64") : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\163\145\x72\137\151\x64", "\126") ? $this->getProperty("\x75\163\x65\x72\x5f\151\144") : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\x73\x73\145\164\x5f\x74\x79\x70\145", "\126") ? "\47" . $this->getProperty("\x61\x73\163\x65\x74\137\164\171\x70\x65") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\156\164\x72\171\137\x64\x61\x74\x65", "\126") ? "\x27" . $this->getProperty("\x65\x6e\x74\x72\x79\x5f\x64\141\x74\145") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\x41\143\x74\x69\166\x65", "\126") ? "\x27" . $this->getProperty("\x69\163\x41\x63\x74\x69\166\145") . "\47" : "\61"; $Sql .= "\x29"; break; case "\125": $Sql = "\x55\120\x44\x41\x54\105\40\x72\x73\x5f\164\x62\x6c\x5f\141\163\163\145\164\x73\x5f\164\x79\160\x65\x20\123\x45\x54\x20"; if ($this->isPropertySet("\x61\x73\163\x65\164\137\x74\x79\x70\x65", "\113")) { $Sql .= "{$con}\x20\141\x73\163\145\x74\137\x74\x79\160\145\75\x27" . $this->getProperty("\141\163\163\x65\x74\x5f\x74\171\x70\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\x73\101\143\164\151\166\145", "\x4b")) { $Sql .= "{$con}\40\151\163\x41\143\x74\x69\x76\145\75\x27" . $this->getProperty("\151\x73\x41\143\x74\151\x76\145") . "\47"; $con = "\54"; } $Sql .= "\40\x57\110\x45\122\105\40\x31\x3d\x31"; if ($this->isPropertySet("\x61\x73\163\x65\x74\137\x74\171\160\x65\137\x69\x64", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\x61\163\163\x65\x74\137\164\x79\160\x65\137\x69\144\x3d" . $this->getProperty("\141\163\163\145\164\x5f\x74\171\160\x65\137\x69\144"); } break; case "\104\105\x4c": $Sql = "\x55\120\x44\x41\x54\x45\40\162\163\x5f\164\142\154\137\x61\163\x73\145\x74\163\x5f\164\171\x70\x65\40\123\105\x54\40\xa\x9\x9\11\11\11\x9\x9\151\163\x41\143\x74\151\166\x65\75\63\12\x9\11\11\x9\11\x9\127\110\x45\x52\x45\xa\x9\x9\x9\x9\11\x9\11\61\75\x31"; $Sql .= "\x20\x41\116\104\40\141\163\163\145\x74\x5f\164\x79\160\145\137\151\144\75" . $this->getProperty("\141\163\x73\145\x74\x5f\164\171\160\145\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actprojectimage($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\x53\105\122\x54\40\111\x4e\124\x4f\x20\x74\x61\155\151\155\x69\x5f\x70\162\x6f\x6a\x65\x63\x74\137\x69\155\x61\147\x65\163\x28\xa\x9\x9\x9\x9\11\x9\151\155\x61\147\x65\x5f\x69\144\54\12\11\11\11\x9\x9\11\x70\162\x6f\152\x65\x63\164\137\x69\144\x2c\xa\x9\x9\11\x9\11\11\160\162\x6f\x6a\145\x63\x74\x5f\x69\x6d\141\x67\x65\54\xa\x9\11\x9\11\11\x9\151\x73\x41\x63\x74\151\x76\x65\x29\xa\11\11\11\11\x9\11\x56\x41\114\125\x45\x53\x28"; $Sql .= $this->isPropertySet("\151\155\x61\x67\x65\137\x69\144", "\x56") ? $this->getProperty("\x69\155\x61\x67\x65\x5f\151\x64") : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x70\x72\x6f\152\145\x63\164\137\151\x64", "\x56") ? $this->getProperty("\x70\x72\157\152\145\143\164\x5f\151\x64") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x70\x72\x6f\x6a\x65\x63\x74\137\151\155\x61\x67\145", "\x56") ? $this->getProperty("\160\162\157\x6a\145\x63\x74\x5f\151\155\x61\147\145") : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\101\x63\x74\151\166\x65", "\126") ? "\x27" . $this->getProperty("\x69\163\101\143\164\x69\166\145") . "\47" : "\x31"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\120\104\x41\124\105\40\x74\x61\x6d\151\155\151\137\160\x72\157\152\x65\143\164\x5f\151\155\x61\147\x65\163\40\x53\x45\124\x20"; if ($this->isPropertySet("\x70\162\157\x6a\x65\x63\x74\137\x69\x64", "\x4b")) { $Sql .= "{$con}\x20\160\x72\x6f\152\x65\143\164\137\151\144\x3d\x27" . $this->getProperty("\160\x72\157\152\145\x63\x74\x5f\151\144") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\160\162\157\x6a\145\x63\x74\137\x69\155\141\x67\x65", "\x4b")) { $Sql .= "{$con}\x20\x70\x72\157\152\x65\143\164\x5f\x69\x6d\x61\147\145\x3d\47" . $this->getProperty("\160\162\x6f\152\145\x63\x74\x5f\x69\155\141\x67\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\151\163\x41\x63\x74\151\166\145", "\113")) { $Sql .= "{$con}\40\x69\x73\101\143\x74\x69\166\145\75\47" . $this->getProperty("\x69\163\x41\143\164\x69\166\x65") . "\x27"; $con = "\54"; } $Sql .= "\x20\x57\110\105\x52\105\x20\x31\x3d\x31"; if ($this->isPropertySet("\x69\x6d\x61\x67\145\137\151\144", "\126")) { $Sql .= "\x20\101\x4e\104\x20\x69\x6d\141\147\x65\x5f\x69\x64\x3d" . $this->getProperty("\x69\x6d\141\147\x65\137\x69\x64"); } break; case "\x44\x45\114": $Sql = "\125\x50\x44\x41\x54\x45\x20\164\141\155\151\x6d\151\x5f\x70\162\157\152\x65\143\x74\x5f\x69\x6d\141\147\x65\x73\40\123\x45\x54\x20\xa\x9\x9\11\x9\11\11\11\151\163\x41\x63\x74\x69\166\x65\75\x33\12\x9\x9\x9\x9\11\11\x57\110\105\x52\x45\12\x9\x9\x9\11\11\11\11\61\75\61"; $Sql .= "\40\101\116\x44\x20\x69\155\x61\147\x65\x5f\x69\144\x3d" . $this->getProperty("\x69\155\141\x67\x65\x5f\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function acteventimage($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\x53\x45\x52\x54\40\x49\x4e\x54\117\x20\x74\x61\155\x69\x6d\151\x5f\x65\x76\x65\156\x74\x5f\151\x6d\141\147\x65\x73\x28\xa\11\11\x9\x9\x9\x9\x69\x6d\x61\147\145\x5f\x69\x64\54\12\x9\11\11\x9\x9\x9\x65\x76\145\156\x74\x5f\x69\144\54\12\11\x9\x9\x9\11\x9\x65\x76\145\x6e\164\137\x69\x6d\x61\147\145\54\xa\x9\x9\x9\11\11\11\x69\x73\101\x63\x74\151\166\x65\51\12\11\x9\11\11\11\x9\x56\x41\114\125\105\123\x28"; $Sql .= $this->isPropertySet("\x69\x6d\x61\147\145\137\151\144", "\x56") ? $this->getProperty("\x69\x6d\x61\x67\145\x5f\x69\144") : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\166\x65\x6e\164\x5f\x69\x64", "\126") ? $this->getProperty("\x65\166\x65\x6e\x74\x5f\151\144") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\166\145\x6e\x74\137\x69\x6d\141\x67\145", "\126") ? $this->getProperty("\145\x76\x65\156\164\x5f\x69\x6d\141\147\145") : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x73\x41\x63\x74\x69\166\145", "\126") ? "\47" . $this->getProperty("\151\163\x41\143\164\151\166\x65") . "\x27" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\x50\x44\101\124\105\40\164\x61\x6d\151\x6d\x69\x5f\x65\166\145\x6e\164\137\x69\x6d\x61\x67\145\x73\40\123\x45\124\40"; if ($this->isPropertySet("\x65\166\145\156\x74\x5f\x69\144", "\113")) { $Sql .= "{$con}\40\145\x76\x65\x6e\x74\x5f\151\144\x3d\47" . $this->getProperty("\145\x76\x65\x6e\x74\137\x69\x64") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x65\x76\145\x6e\164\137\151\x6d\141\x67\x65", "\x4b")) { $Sql .= "{$con}\40\x65\x76\x65\x6e\164\x5f\x69\155\141\x67\x65\75\x27" . $this->getProperty("\x65\166\145\156\164\137\x69\155\x61\147\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\163\x41\x63\164\x69\166\x65", "\113")) { $Sql .= "{$con}\x20\151\x73\x41\x63\164\151\166\145\x3d\x27" . $this->getProperty("\x69\x73\101\x63\x74\x69\x76\145") . "\x27"; $con = "\54"; } $Sql .= "\40\x57\110\x45\x52\105\x20\x31\x3d\61"; if ($this->isPropertySet("\151\x6d\141\147\x65\137\151\x64", "\126")) { $Sql .= "\40\101\116\x44\x20\151\155\x61\x67\x65\x5f\151\144\75" . $this->getProperty("\151\155\141\147\x65\137\151\144"); } break; case "\104\105\114": $Sql = "\x55\x50\104\101\x54\105\x20\164\x61\155\151\155\x69\x5f\x65\166\x65\156\x74\137\151\155\141\x67\145\x73\40\x53\x45\124\x20\12\11\11\x9\x9\11\11\x9\x69\x73\x41\x63\x74\x69\166\145\75\63\xa\11\x9\x9\11\11\x9\127\110\x45\122\x45\12\x9\x9\x9\x9\11\11\11\x31\x3d\x31"; $Sql .= "\x20\101\116\104\40\x69\155\141\147\145\137\x69\144\75" . $this->getProperty("\x69\155\141\x67\x65\x5f\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actiqprofession($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\x45\x52\x54\x20\111\116\x54\x4f\x20\x72\x73\x5f\164\x62\154\137\151\161\x70\162\157\x66\145\x73\163\x69\157\156\50\12\x9\x9\11\x9\x9\x9\151\x71\160\162\157\146\145\163\163\151\157\x6e\x5f\151\144\54\12\x9\x9\11\11\x9\x9\165\163\145\x72\137\x69\144\54\12\x9\x9\11\x9\x9\11\x69\161\x70\x72\x6f\146\145\163\163\151\157\156\x2c\12\11\11\x9\x9\x9\11\x65\x6e\x74\x65\x72\171\x5f\144\x61\164\145\x2c\12\x9\x9\11\11\x9\11\151\163\x41\x63\x74\x69\x76\x65\x29\xa\11\x9\11\11\11\11\x56\x41\114\125\105\123\x28"; $Sql .= $this->isPropertySet("\x69\161\x70\x72\157\x66\145\x73\163\151\157\156\x5f\x69\x64", "\x56") ? $this->getProperty("\x69\161\160\162\x6f\146\145\x73\163\151\x6f\156\x5f\x69\x64") : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\x72\137\151\x64", "\126") ? $this->getProperty("\165\163\145\162\137\151\x64") : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x71\160\x72\157\146\x65\163\x73\x69\x6f\156", "\126") ? "\47" . $this->getProperty("\151\161\x70\162\x6f\146\145\163\x73\151\157\x6e") . "\x27" : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\164\145\162\x79\137\x64\141\x74\x65", "\126") ? "\47" . $this->getProperty("\x65\x6e\x74\145\162\171\137\144\x61\x74\145") . "\47" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x73\x41\143\x74\x69\x76\x65", "\126") ? "\47" . $this->getProperty("\151\x73\x41\143\x74\x69\x76\145") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\120\x44\101\124\105\x20\162\x73\137\x74\x62\154\x5f\x69\161\160\x72\x6f\146\x65\163\x73\151\157\156\40\123\x45\x54\40"; if ($this->isPropertySet("\151\161\160\x72\x6f\146\145\163\x73\151\x6f\156", "\113")) { $Sql .= "{$con}\x20\x69\161\x70\x72\x6f\146\145\x73\163\x69\x6f\156\75\x27" . $this->getProperty("\151\161\x70\162\157\x66\x65\163\x73\x69\157\156") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\x73\101\x63\164\151\166\145", "\113")) { $Sql .= "{$con}\40\151\x73\x41\143\x74\x69\x76\145\75\47" . $this->getProperty("\x69\163\101\143\164\x69\x76\145") . "\47"; $con = "\x2c"; } $Sql .= "\40\x57\110\105\122\105\40\61\x3d\x31"; if ($this->isPropertySet("\x69\x71\160\162\157\x66\145\163\x73\151\157\x6e\137\151\x64", "\126")) { $Sql .= "\40\x41\116\x44\40\151\x71\160\x72\157\x66\x65\163\x73\151\x6f\x6e\x5f\151\144\75" . $this->getProperty("\151\x71\160\x72\157\x66\145\x73\x73\151\157\156\137\151\x64"); } break; case "\x44\x45\114": $Sql = "\x55\120\x44\101\x54\x45\40\151\161\160\x72\157\146\145\x73\163\x69\157\x6e\x5f\164\151\x74\x6c\x65\x20\123\x45\x54\x20\xa\x9\x9\x9\x9\x9\x9\x9\x69\x73\101\x63\164\151\x76\x65\x3d\x33\12\11\11\11\11\x9\x9\127\x48\105\x52\x45\xa\x9\11\11\11\x9\x9\x9\x31\x3d\x31"; $Sql .= "\x20\101\x4e\x44\40\x69\x71\160\162\x6f\x66\145\163\163\151\157\156\137\151\x64\75" . $this->getProperty("\151\x71\x70\162\157\x66\145\163\x73\151\x6f\x6e\x5f\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actsubarea($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\123\x45\122\124\40\111\116\124\x4f\x20\x72\x73\137\x74\x62\154\137\163\165\x62\141\162\145\x61\50\xa\x9\11\x9\x9\11\x9\163\x75\142\x61\162\145\141\137\x69\x64\54\xa\x9\11\x9\11\11\11\x75\x73\x65\x72\x5f\x69\144\x2c\xa\x9\x9\11\x9\11\11\x73\x75\142\141\x72\x65\141\x2c\12\11\x9\x9\x9\x9\11\145\156\164\x65\162\171\x5f\144\x61\164\x65\54\xa\x9\x9\x9\11\11\11\x69\x73\x41\x63\164\151\x76\x65\x29\xa\x9\11\x9\11\x9\x9\x56\101\x4c\125\105\x53\x28"; $Sql .= $this->isPropertySet("\163\x75\142\x61\162\145\141\x5f\x69\x64", "\x56") ? $this->getProperty("\x73\165\x62\x61\x72\x65\x61\x5f\x69\144") : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\x72\137\151\144", "\126") ? $this->getProperty("\165\x73\x65\162\x5f\151\x64") : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\165\x62\141\162\145\x61", "\x56") ? "\x27" . $this->getProperty("\163\x75\x62\141\162\145\141") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\156\x74\x65\x72\171\x5f\x64\141\x74\x65", "\x56") ? "\47" . $this->getProperty("\145\156\164\145\162\171\x5f\144\x61\164\145") . "\47" : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\163\x41\143\164\151\166\x65", "\x56") ? "\x27" . $this->getProperty("\151\163\101\x63\x74\x69\x76\145") . "\47" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\104\101\x54\105\x20\162\x73\137\x74\142\154\x5f\x73\165\x62\141\162\x65\141\40\x53\x45\x54\x20"; if ($this->isPropertySet("\x73\165\x62\141\162\x65\x61", "\x4b")) { $Sql .= "{$con}\40\x73\165\x62\x61\x72\145\141\75\47" . $this->getProperty("\x73\165\x62\141\162\145\x61") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\163\101\143\x74\x69\166\145", "\x4b")) { $Sql .= "{$con}\x20\151\163\x41\143\164\151\x76\145\75\47" . $this->getProperty("\x69\x73\x41\143\x74\x69\x76\145") . "\47"; $con = "\54"; } $Sql .= "\40\x57\x48\105\x52\x45\x20\x31\75\x31"; if ($this->isPropertySet("\163\x75\142\141\x72\x65\141\137\x69\x64", "\126")) { $Sql .= "\40\x41\x4e\x44\x20\x73\x75\x62\x61\x72\145\141\x5f\x69\x64\75" . $this->getProperty("\163\165\x62\141\x72\x65\141\137\151\144"); } break; case "\x44\x45\x4c": $Sql = "\125\x50\104\101\124\x45\x20\163\165\x62\x61\162\145\141\x20\123\x45\124\x20\xa\x9\11\x9\x9\x9\11\x9\151\x73\x41\143\164\x69\166\145\75\63\xa\11\x9\11\11\11\11\x57\110\x45\x52\105\xa\11\x9\11\x9\x9\x9\x9\x31\75\x31"; $Sql .= "\x20\x41\116\104\x20\163\x75\142\x61\x72\145\141\137\151\144\75" . $this->getProperty("\x73\165\x62\141\162\x65\141\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actorigunit($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\x53\105\x52\124\x20\111\116\124\117\40\x72\x73\x5f\164\142\x6c\137\x6f\x72\151\147\165\x6e\x69\x74\x28\12\11\x9\11\x9\11\11\157\162\151\x67\165\156\x69\x74\137\151\144\54\12\11\x9\11\11\x9\x9\165\163\x65\x72\x5f\x69\144\54\xa\x9\x9\x9\11\x9\x9\157\162\x69\147\165\156\151\164\x2c\xa\x9\11\x9\11\11\11\145\x6e\x74\x65\x72\171\137\144\x61\x74\145\54\12\x9\x9\x9\x9\11\x9\x69\x73\x41\143\x74\151\x76\145\51\12\x9\x9\x9\x9\11\11\x56\101\114\x55\x45\x53\50"; $Sql .= $this->isPropertySet("\x6f\x72\x69\x67\x75\156\151\164\137\x69\144", "\x56") ? $this->getProperty("\157\162\x69\x67\x75\x6e\151\x74\x5f\151\144") : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\x5f\151\x64", "\126") ? $this->getProperty("\165\x73\145\x72\137\x69\144") : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6f\x72\x69\x67\x75\x6e\x69\x74", "\x56") ? "\x27" . $this->getProperty("\157\162\x69\x67\x75\156\151\164") . "\47" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\164\x65\x72\x79\137\144\x61\x74\x65", "\126") ? "\47" . $this->getProperty("\145\x6e\x74\x65\x72\x79\x5f\x64\x61\164\x65") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x73\x41\143\164\x69\x76\145", "\x56") ? "\47" . $this->getProperty("\151\163\101\x63\164\x69\x76\145") . "\x27" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\120\x44\x41\x54\x45\x20\x72\x73\x5f\x74\142\x6c\137\157\x72\151\147\x75\156\x69\x74\40\123\x45\124\x20"; if ($this->isPropertySet("\x6f\162\151\x67\165\156\x69\x74", "\x4b")) { $Sql .= "{$con}\x20\157\162\151\x67\165\156\x69\x74\x3d\47" . $this->getProperty("\157\162\151\147\165\156\x69\x74") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\x41\x63\x74\x69\166\x65", "\113")) { $Sql .= "{$con}\40\x69\163\101\x63\164\x69\166\x65\x3d\47" . $this->getProperty("\151\x73\x41\143\164\151\x76\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\127\110\105\122\105\40\61\x3d\x31"; if ($this->isPropertySet("\x6f\162\151\x67\x75\156\x69\164\x5f\x69\x64", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\157\162\151\147\x75\x6e\x69\x74\x5f\x69\144\75" . $this->getProperty("\x6f\x72\x69\x67\165\156\151\x74\x5f\x69\144"); } break; case "\104\105\x4c": $Sql = "\x55\120\104\x41\124\x45\x20\x72\163\137\164\x62\x6c\x5f\x6f\x72\x69\147\x75\156\151\164\x20\123\105\124\40\xa\11\x9\x9\x9\11\11\x9\x69\x73\x41\x63\164\x69\x76\x65\75\x33\12\11\x9\11\11\x9\x9\x57\x48\105\x52\x45\xa\11\11\x9\x9\11\x9\11\x31\x3d\61"; $Sql .= "\x20\x41\x4e\104\x20\157\162\x69\x67\x75\156\151\x74\137\151\x64\75" . $this->getProperty("\x6f\x72\151\147\x75\x6e\151\164\137\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actloccode($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\123\x45\x52\124\x20\111\116\124\x4f\x20\162\163\137\x74\142\x6c\137\x6c\x6f\143\143\157\x64\x65\50\xa\11\x9\11\x9\11\11\x6c\157\143\x63\x6f\x64\x65\137\151\144\54\xa\x9\11\x9\11\11\11\x75\163\x65\x72\x5f\x69\x64\x2c\12\11\x9\x9\x9\x9\11\x6c\x6f\x63\x63\157\x64\x65\x2c\12\11\11\11\x9\x9\x9\145\156\164\x65\162\171\x5f\x64\141\x74\x65\54\xa\11\x9\11\11\x9\x9\x69\163\101\143\164\x69\166\x65\51\xa\x9\x9\x9\11\x9\x9\x56\101\x4c\x55\105\123\x28"; $Sql .= $this->isPropertySet("\154\x6f\143\143\157\144\145\137\x69\144", "\126") ? $this->getProperty("\x6c\x6f\x63\x63\157\x64\x65\137\151\144") : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\162\x5f\151\x64", "\x56") ? $this->getProperty("\x75\163\145\x72\137\x69\144") : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\x6f\143\143\157\144\145", "\126") ? "\x27" . $this->getProperty("\x6c\157\x63\x63\x6f\x64\145") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\x74\x65\x72\171\x5f\144\x61\164\145", "\x56") ? "\47" . $this->getProperty("\x65\x6e\164\x65\162\x79\137\x64\x61\164\x65") . "\47" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\163\x41\x63\x74\x69\x76\x65", "\126") ? "\x27" . $this->getProperty("\x69\x73\x41\143\164\151\166\x65") . "\47" : "\61"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\120\x44\101\x54\105\x20\x72\x73\137\164\x62\x6c\137\x6c\157\x63\143\157\144\x65\40\123\x45\x54\x20"; if ($this->isPropertySet("\154\x6f\143\x63\157\144\x65", "\x4b")) { $Sql .= "{$con}\x20\154\x6f\x63\143\x6f\144\x65\75\x27" . $this->getProperty("\154\157\x63\143\157\144\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\x73\x41\143\x74\151\166\145", "\113")) { $Sql .= "{$con}\x20\x69\x73\101\x63\x74\151\166\x65\75\x27" . $this->getProperty("\151\x73\101\x63\x74\x69\x76\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\x57\110\105\x52\x45\40\x31\75\61"; if ($this->isPropertySet("\x6c\x6f\x63\143\157\144\145\137\x69\144", "\126")) { $Sql .= "\x20\101\116\x44\40\154\157\143\143\157\144\145\137\151\x64\x3d" . $this->getProperty("\154\157\143\143\157\144\x65\137\x69\x64"); } break; case "\x44\x45\114": $Sql = "\x55\x50\x44\101\x54\x45\40\x72\x73\x5f\x74\x62\x6c\137\x6c\157\x63\x63\157\144\x65\40\123\x45\x54\x20\xa\x9\11\11\x9\x9\11\x9\x69\163\x41\143\164\151\x76\145\x3d\x33\xa\11\11\11\11\11\x9\127\110\x45\122\105\12\11\x9\x9\x9\11\11\11\61\75\x31"; $Sql .= "\x20\101\116\x44\x20\154\157\x63\x63\157\x64\145\137\151\x64\75" . $this->getProperty("\154\157\143\x63\157\x64\x65\x5f\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actcostcenter($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\x53\x45\x52\124\40\x49\x4e\x54\x4f\x20\162\163\x5f\164\142\154\x5f\x63\x6f\x73\x74\x63\145\x6e\164\x65\x72\50\12\x9\x9\x9\x9\11\x9\143\157\x73\164\143\145\156\x74\145\162\x5f\x69\x64\54\12\11\x9\11\11\x9\11\165\x73\x65\x72\137\151\x64\54\12\11\x9\11\x9\11\x9\143\157\x73\164\143\145\x6e\x74\145\162\54\12\11\11\11\11\x9\11\x65\156\164\145\x72\x79\x5f\x64\x61\x74\145\54\12\11\x9\11\x9\x9\11\151\163\x41\143\164\151\x76\x65\51\xa\11\x9\11\x9\11\11\x56\x41\x4c\125\x45\x53\x28"; $Sql .= $this->isPropertySet("\143\157\163\x74\x63\x65\156\164\145\x72\137\x69\x64", "\x56") ? $this->getProperty("\143\157\163\x74\143\x65\x6e\x74\145\162\x5f\151\144") : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\x5f\151\x64", "\126") ? $this->getProperty("\165\x73\x65\162\137\x69\x64") : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\157\x73\x74\143\145\x6e\x74\145\162", "\x56") ? "\x27" . $this->getProperty("\x63\x6f\x73\x74\x63\x65\x6e\x74\x65\x72") . "\x27" : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\x6e\164\x65\162\171\137\x64\x61\164\145", "\x56") ? "\47" . $this->getProperty("\x65\156\x74\x65\162\171\x5f\x64\141\x74\145") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\x41\143\164\x69\x76\145", "\x56") ? "\x27" . $this->getProperty("\x69\163\x41\143\164\x69\166\x65") . "\47" : "\61"; $Sql .= "\51"; break; case "\x55": $Sql = "\125\x50\104\101\124\x45\40\x72\x73\x5f\164\142\154\137\x63\157\163\164\x63\x65\x6e\x74\145\162\40\x53\105\124\x20"; if ($this->isPropertySet("\143\157\163\164\143\x65\x6e\x74\145\162", "\113")) { $Sql .= "{$con}\40\x63\157\163\164\143\145\x6e\x74\145\x72\x3d\x27" . $this->getProperty("\x63\157\163\164\143\x65\x6e\x74\145\x72") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\x73\x41\x63\x74\x69\166\145", "\113")) { $Sql .= "{$con}\x20\151\x73\101\143\x74\151\166\x65\x3d\47" . $this->getProperty("\151\x73\x41\x63\x74\x69\x76\x65") . "\47"; $con = "\54"; } $Sql .= "\40\127\110\105\122\x45\x20\x31\75\61"; if ($this->isPropertySet("\x63\157\163\x74\x63\145\156\164\145\x72\137\151\144", "\x56")) { $Sql .= "\x20\101\116\x44\x20\143\x6f\x73\x74\143\145\x6e\x74\145\x72\x5f\x69\144\75" . $this->getProperty("\143\x6f\x73\164\143\145\x6e\164\145\162\137\x69\144"); } break; case "\104\x45\x4c": $Sql = "\x55\120\x44\x41\x54\105\40\x72\163\137\x74\142\x6c\137\143\157\163\164\x63\x65\156\164\145\x72\40\x53\x45\x54\40\xa\x9\x9\11\x9\11\x9\11\151\x73\101\143\x74\x69\166\145\x3d\x33\12\11\x9\x9\x9\x9\x9\127\x48\105\122\105\xa\11\x9\x9\x9\11\11\x9\x31\75\61"; $Sql .= "\40\101\x4e\x44\x20\143\157\x73\164\x63\x65\156\164\x65\162\137\151\144\75" . $this->getProperty("\x63\157\x73\164\x63\x65\x6e\x74\x65\162\137\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actpayrollarea($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\123\105\x52\124\x20\111\x4e\124\117\40\162\163\x5f\x74\x62\x6c\137\x70\141\x79\162\x6f\154\x6c\141\162\x65\x61\x28\xa\11\11\11\11\x9\11\160\x61\171\x72\x6f\154\x6c\x61\x72\x65\141\x5f\151\x64\x2c\xa\x9\x9\11\11\11\x9\165\x73\145\x72\137\151\144\x2c\xa\x9\11\11\11\11\x9\x70\x61\x79\162\x6f\154\x6c\141\x72\145\x61\x2c\12\x9\x9\x9\11\x9\11\145\x6e\x74\x65\162\x79\x5f\x64\x61\164\145\54\12\11\11\11\11\11\x9\151\x73\x41\x63\164\151\166\x65\51\12\11\x9\x9\11\11\11\x56\101\x4c\125\x45\123\x28"; $Sql .= $this->isPropertySet("\160\x61\x79\162\x6f\154\154\x61\162\x65\x61\x5f\x69\144", "\126") ? $this->getProperty("\160\141\171\162\x6f\154\x6c\x61\x72\x65\x61\x5f\x69\x64") : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\x65\x72\x5f\x69\144", "\x56") ? $this->getProperty("\165\163\145\x72\x5f\151\144") : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\x61\x79\x72\157\154\x6c\x61\x72\x65\x61", "\126") ? "\47" . $this->getProperty("\x70\141\171\162\157\x6c\x6c\x61\162\145\x61") . "\47" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\x6e\x74\x65\x72\x79\x5f\x64\141\164\x65", "\126") ? "\47" . $this->getProperty("\x65\156\x74\145\x72\171\x5f\x64\x61\x74\145") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\x41\x63\164\x69\166\x65", "\126") ? "\x27" . $this->getProperty("\151\x73\101\x63\164\151\166\145") . "\47" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\x55\120\x44\x41\124\105\x20\162\x73\x5f\x74\x62\154\x5f\x70\x61\x79\162\x6f\154\154\141\x72\145\x61\40\x53\105\124\x20"; if ($this->isPropertySet("\x70\x61\171\162\157\154\x6c\141\x72\145\x61", "\x4b")) { $Sql .= "{$con}\40\x70\141\x79\162\x6f\154\154\x61\x72\145\x61\75\x27" . $this->getProperty("\160\x61\x79\162\x6f\154\x6c\x61\x72\x65\141") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\151\x73\101\x63\x74\151\x76\145", "\113")) { $Sql .= "{$con}\40\x69\x73\101\x63\x74\x69\x76\145\x3d\47" . $this->getProperty("\151\163\x41\143\164\x69\166\145") . "\47"; $con = "\54"; } $Sql .= "\40\127\x48\105\122\x45\x20\x31\75\x31"; if ($this->isPropertySet("\x70\x61\x79\x72\157\x6c\154\141\x72\x65\141\137\151\x64", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\x70\x61\171\162\x6f\x6c\154\141\x72\145\141\137\151\144\x3d" . $this->getProperty("\160\x61\171\x72\x6f\x6c\x6c\141\x72\145\x61\137\x69\144"); } break; case "\104\x45\x4c": $Sql = "\125\x50\104\x41\x54\x45\x20\x72\x73\x5f\164\x62\154\x5f\x70\x61\x79\162\157\154\154\x61\162\145\x61\40\x53\x45\124\x20\xa\x9\x9\11\11\11\x9\x9\x69\163\101\143\x74\151\166\x65\x3d\63\xa\x9\x9\11\11\11\11\127\110\x45\122\105\12\x9\x9\11\x9\11\11\x9\61\x3d\x31"; $Sql .= "\40\101\x4e\104\40\x70\141\x79\162\x6f\x6c\x6c\141\162\x65\141\x5f\x69\x64\75" . $this->getProperty("\x70\x61\171\162\x6f\154\x6c\141\x72\145\x61\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actempnationality($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\x53\105\122\x54\40\x49\x4e\124\x4f\40\162\163\137\x74\142\x6c\137\x65\x6d\x70\156\141\164\151\x6f\x6e\141\154\x69\x74\171\50\xa\x9\11\11\x9\11\11\145\155\160\x6e\141\x74\x69\157\x6e\x61\x6c\x69\164\171\137\151\x64\54\xa\11\x9\x9\x9\x9\11\x75\163\x65\162\137\151\x64\x2c\xa\x9\x9\x9\11\11\x9\145\x6d\x70\156\x61\164\x69\x6f\156\141\x6c\151\x74\x79\x2c\xa\11\x9\11\11\11\x9\145\156\164\x65\x72\171\137\144\x61\164\145\x2c\12\x9\11\x9\x9\11\x9\151\x73\x41\x63\164\x69\166\145\51\xa\11\11\11\x9\11\x9\126\101\x4c\x55\105\x53\x28"; $Sql .= $this->isPropertySet("\x65\155\160\156\141\164\151\x6f\156\141\x6c\151\x74\171\137\x69\x64", "\126") ? $this->getProperty("\145\x6d\160\x6e\x61\164\x69\157\156\x61\154\151\x74\171\137\151\x64") : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\162\x5f\x69\144", "\x56") ? $this->getProperty("\x75\x73\145\x72\137\x69\x64") : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\155\160\x6e\141\x74\x69\x6f\156\141\154\151\x74\171", "\x56") ? "\x27" . $this->getProperty("\145\x6d\160\x6e\x61\164\151\157\156\x61\154\151\164\171") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\164\145\x72\171\137\x64\x61\164\145", "\x56") ? "\47" . $this->getProperty("\x65\156\164\145\162\171\137\144\x61\164\145") . "\x27" : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\x73\101\143\x74\151\x76\145", "\126") ? "\47" . $this->getProperty("\x69\x73\101\x63\x74\151\x76\x65") . "\47" : "\x31"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\120\x44\101\x54\x45\40\162\163\x5f\x74\142\154\137\x65\x6d\x70\x6e\141\x74\x69\x6f\156\141\x6c\151\164\171\40\x53\x45\x54\40"; if ($this->isPropertySet("\x65\155\x70\156\141\164\151\157\x6e\141\x6c\x69\164\x79", "\113")) { $Sql .= "{$con}\x20\145\155\160\156\141\x74\x69\157\x6e\141\154\x69\x74\171\x3d\47" . $this->getProperty("\145\x6d\x70\x6e\141\x74\151\157\x6e\141\154\x69\164\x79") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\x41\143\164\x69\x76\x65", "\x4b")) { $Sql .= "{$con}\x20\151\x73\101\x63\x74\151\x76\145\75\x27" . $this->getProperty("\151\x73\x41\x63\164\151\166\145") . "\47"; $con = "\x2c"; } $Sql .= "\40\127\110\x45\x52\105\x20\x31\75\61"; if ($this->isPropertySet("\145\155\160\156\x61\x74\151\x6f\x6e\x61\154\x69\x74\171\x5f\x69\x64", "\x56")) { $Sql .= "\40\x41\116\104\x20\x65\x6d\x70\x6e\141\164\x69\157\156\x61\x6c\151\164\171\x5f\x69\x64\75" . $this->getProperty("\145\x6d\160\156\x61\164\151\157\x6e\x61\x6c\151\x74\x79\137\151\144"); } break; case "\104\x45\114": $Sql = "\x55\120\104\x41\124\x45\40\x72\x73\137\x74\x62\154\137\x65\x6d\x70\156\x61\x74\151\157\x6e\141\x6c\x69\164\171\40\123\x45\x54\x20\12\11\11\11\11\x9\x9\11\151\x73\x41\x63\x74\x69\x76\x65\75\x33\12\x9\x9\11\11\x9\11\x57\x48\105\122\105\xa\11\x9\11\11\11\11\11\x31\x3d\x31"; $Sql .= "\x20\x41\x4e\104\40\x65\155\160\x6e\x61\x74\x69\x6f\156\141\x6c\151\x74\171\137\x69\144\75" . $this->getProperty("\x65\155\160\156\141\164\151\x6f\156\x61\154\151\164\x79\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actShifts($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\123\105\x52\124\40\111\x4e\124\117\40\x72\x73\137\164\142\154\x5f\163\150\151\146\x74\163\50\12\11\x9\11\11\11\11\163\x68\151\146\x74\137\151\x64\54\12\11\x9\x9\11\11\11\x75\x73\145\x72\137\151\144\x2c\xa\11\11\11\11\11\x9\x73\x68\x69\x66\x74\137\x6e\x61\x6d\145\54\xa\11\11\11\11\x9\x9\163\x68\151\146\x74\x5f\163\x74\54\xa\11\x9\x9\x9\x9\x9\x73\x68\151\146\x74\137\145\x74\54\xa\11\x9\x9\11\11\x9\163\x68\x69\x66\164\137\x6c\x69\147\x74\54\12\11\11\11\x9\x9\11\x73\150\151\146\164\x5f\154\157\x67\164\54\12\11\x9\x9\x9\x9\x9\x73\x68\x69\146\164\x5f\x65\151\x67\x74\54\xa\x9\x9\x9\11\x9\x9\x73\x68\x69\146\164\137\x65\x6f\x67\x74\x2c\xa\11\x9\x9\11\x9\x9\163\150\151\x66\x74\x5f\x62\x74\x2c\xa\11\11\x9\11\x9\11\x66\165\x6c\154\137\154\x61\164\145\x5f\x69\156\54\12\11\11\x9\x9\x9\11\150\x61\x6c\146\137\154\141\x74\x65\x5f\151\156\x2c\12\x9\11\x9\11\x9\11\x71\x75\164\162\137\154\x61\164\145\x5f\151\156\x2c\xa\11\x9\x9\x9\x9\x9\146\165\154\x6c\137\157\146\146\x5f\x62\145\x66\x2c\xa\x9\11\11\x9\x9\11\x68\141\x6c\x66\137\157\146\x66\137\142\145\146\137\x73\x74\x61\x72\x74\54\xa\11\x9\x9\11\11\x9\x68\141\x6c\146\x5f\157\146\146\x5f\142\x65\146\x5f\145\x6e\x64\x2c\xa\x9\x9\x9\x9\x9\x9\x71\x75\164\162\137\157\x66\x66\137\x62\145\146\137\x73\x74\x61\x72\164\x2c\12\11\11\11\11\x9\x9\161\x75\164\162\x5f\x6f\x66\x66\x5f\x62\145\x66\x5f\x65\156\x64\54\12\x9\11\x9\x9\11\x9\164\145\156\137\x6f\146\146\x5f\142\x65\x66\x5f\x73\x74\x61\162\164\54\12\11\x9\11\11\x9\11\x74\x65\x6e\137\x6f\146\146\x5f\x62\x65\146\x5f\x65\156\x64\54\xa\x9\x9\x9\11\x9\11\154\x69\x67\164\x5f\163\164\x61\164\x75\x73\x2c\12\11\11\x9\11\x9\11\x65\157\x67\164\137\x73\x74\141\164\165\x73\x2c\xa\x9\11\x9\x9\11\x9\x65\156\x74\x65\162\171\137\x64\141\x74\x65\x2c\12\11\x9\11\11\x9\x9\151\163\101\143\x74\x69\x76\x65\x29\12\11\11\x9\11\11\11\x56\x41\x4c\x55\105\x53\50"; $Sql .= $this->isPropertySet("\x73\150\151\x66\164\x5f\x69\x64", "\126") ? $this->getProperty("\x73\x68\x69\146\x74\x5f\151\x64") : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\x65\x72\x5f\x69\x64", "\126") ? $this->getProperty("\x75\x73\145\162\x5f\151\144") : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x73\150\151\x66\164\x5f\156\x61\155\145", "\126") ? "\x27" . $this->getProperty("\163\150\151\x66\164\137\x6e\141\155\x65") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x68\151\146\x74\x5f\x73\x74", "\x56") ? "\47" . $this->getProperty("\x73\150\151\x66\x74\137\x73\164") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\150\151\x66\x74\137\145\x74", "\x56") ? "\x27" . $this->getProperty("\163\150\x69\x66\164\137\x65\x74") . "\x27" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\163\x68\151\146\164\x5f\154\151\147\x74", "\126") ? "\x27" . $this->getProperty("\163\150\151\146\x74\x5f\154\151\147\164") . "\47" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x68\151\146\x74\x5f\x6c\x6f\x67\x74", "\126") ? "\47" . $this->getProperty("\163\x68\151\x66\164\x5f\x6c\157\x67\164") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\x68\151\146\164\137\145\151\x67\x74", "\126") ? "\x27" . $this->getProperty("\163\150\x69\146\x74\x5f\x65\151\147\x74") . "\47" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x73\x68\151\x66\x74\137\x65\x6f\x67\x74", "\126") ? "\47" . $this->getProperty("\163\x68\x69\146\x74\137\x65\157\147\164") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\x68\x69\146\164\137\142\x74", "\126") ? "\47" . $this->getProperty("\163\x68\151\146\x74\137\x62\x74") . "\47" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x66\165\x6c\154\x5f\x6c\x61\x74\145\137\x69\x6e", "\126") ? "\x27" . $this->getProperty("\146\165\x6c\x6c\137\x6c\141\164\x65\137\151\156") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\150\x61\x6c\146\137\x6c\x61\x74\145\137\151\156", "\126") ? "\47" . $this->getProperty("\x68\x61\x6c\146\x5f\154\x61\164\145\x5f\x69\x6e") . "\47" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\161\165\x74\162\137\x6c\141\164\145\137\151\x6e", "\x56") ? "\x27" . $this->getProperty("\161\x75\164\162\x5f\x6c\x61\164\x65\137\x69\x6e") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x66\x75\154\x6c\137\157\x66\x66\x5f\x62\145\146", "\126") ? "\47" . $this->getProperty("\146\x75\154\x6c\x5f\x6f\146\146\x5f\142\145\x66") . "\47" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\150\x61\x6c\x66\x5f\157\x66\146\x5f\142\x65\x66\137\x73\164\x61\x72\164", "\126") ? "\x27" . $this->getProperty("\150\141\x6c\x66\x5f\x6f\x66\146\137\142\145\x66\137\163\164\141\162\164") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\150\x61\154\x66\x5f\157\x66\x66\x5f\142\145\146\x5f\x65\156\144", "\126") ? "\x27" . $this->getProperty("\150\141\x6c\146\137\x6f\146\x66\137\x62\x65\x66\137\145\x6e\144") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\161\165\164\162\137\x6f\146\146\137\x62\145\146\x5f\x73\x74\141\162\x74", "\x56") ? "\x27" . $this->getProperty("\161\x75\164\x72\137\x6f\x66\x66\137\142\145\146\137\x73\x74\141\162\164") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x71\165\x74\162\x5f\157\x66\x66\x5f\x62\145\x66\137\145\156\x64", "\x56") ? "\47" . $this->getProperty("\161\x75\x74\162\137\157\146\x66\x5f\x62\145\x66\137\145\x6e\x64") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x74\145\156\137\x6f\146\146\x5f\142\x65\146\x5f\163\x74\x61\162\164", "\126") ? "\47" . $this->getProperty("\164\x65\x6e\137\157\146\x66\x5f\142\145\146\137\163\164\141\162\x74") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x74\145\x6e\x5f\157\146\146\x5f\142\x65\x66\137\145\x6e\x64", "\x56") ? "\47" . $this->getProperty("\164\x65\x6e\x5f\x6f\x66\x66\x5f\x62\145\x66\x5f\145\156\144") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\151\147\164\x5f\x73\x74\x61\164\x75\x73", "\x56") ? "\47" . $this->getProperty("\154\x69\147\164\137\163\x74\141\x74\x75\163") . "\x27" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\157\147\x74\137\163\x74\x61\164\x75\x73", "\x56") ? "\x27" . $this->getProperty("\x65\157\x67\x74\137\163\x74\141\x74\165\x73") . "\47" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\x74\145\162\x79\137\144\x61\164\145", "\126") ? "\47" . $this->getProperty("\x65\156\x74\145\x72\x79\x5f\x64\x61\164\x65") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\x41\x63\164\x69\166\145", "\x56") ? "\47" . $this->getProperty("\x69\x73\101\143\x74\x69\166\145") . "\x27" : "\x31"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\x50\104\101\x54\x45\x20\162\163\x5f\x74\142\154\137\163\x68\x69\146\164\163\x20\123\x45\124\x20"; if ($this->isPropertySet("\x73\x68\x69\x66\x74\137\156\x61\x6d\x65", "\x4b")) { $Sql .= "{$con}\x20\163\150\151\x66\x74\137\x6e\141\155\145\75\47" . $this->getProperty("\163\x68\x69\x66\x74\x5f\156\141\155\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\152\x6f\x62\x5f\x74\151\x74\x6c\145", "\113")) { $Sql .= "{$con}\x20\x6a\x6f\x62\137\164\x69\164\154\x65\75\47" . $this->getProperty("\152\157\142\137\x74\151\x74\x6c\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x73\150\151\146\164\137\163\164", "\113")) { $Sql .= "{$con}\x20\163\x68\x69\x66\164\x5f\x73\164\x3d\47" . $this->getProperty("\x73\150\x69\x66\164\137\163\164") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x73\150\x69\x66\x74\x5f\x65\164", "\x4b")) { $Sql .= "{$con}\x20\x73\150\151\x66\164\x5f\x65\x74\x3d\x27" . $this->getProperty("\x73\150\x69\x66\x74\137\x65\164") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x73\x68\151\146\164\137\154\x69\147\x74", "\113")) { $Sql .= "{$con}\x20\x73\150\x69\146\164\x5f\x6c\151\x67\x74\75\47" . $this->getProperty("\x73\150\151\146\164\137\x6c\151\147\x74") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x73\150\x69\x66\164\x5f\154\157\x67\x74", "\x4b")) { $Sql .= "{$con}\x20\163\150\151\x66\164\x5f\x6c\157\x67\164\75\x27" . $this->getProperty("\x73\x68\151\x66\x74\x5f\154\157\147\164") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x73\x68\151\x66\164\137\145\x69\x67\164", "\113")) { $Sql .= "{$con}\40\x73\150\x69\x66\164\x5f\145\151\147\164\75\47" . $this->getProperty("\163\x68\151\146\x74\x5f\145\x69\147\x74") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\163\x68\x69\x66\164\x5f\145\x6f\147\x74", "\x4b")) { $Sql .= "{$con}\x20\163\x68\x69\x66\x74\x5f\x65\157\x67\164\x3d\47" . $this->getProperty("\163\x68\x69\x66\164\137\145\157\x67\164") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\163\x68\x69\x66\164\137\x62\164", "\113")) { $Sql .= "{$con}\x20\163\x68\151\146\x74\137\142\x74\x3d\47" . $this->getProperty("\163\x68\x69\146\164\x5f\142\x74") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x66\165\154\x6c\x5f\x6c\141\x74\x65\x5f\151\156", "\x4b")) { $Sql .= "{$con}\40\x66\165\154\x6c\x5f\154\x61\x74\145\137\151\156\x3d\47" . $this->getProperty("\x66\165\154\x6c\137\x6c\x61\164\x65\x5f\151\x6e") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\150\141\x6c\x66\x5f\x6c\141\x74\x65\x5f\x69\156", "\113")) { $Sql .= "{$con}\x20\150\x61\154\146\x5f\154\x61\x74\145\137\x69\x6e\75\x27" . $this->getProperty("\150\x61\x6c\x66\137\x6c\141\x74\x65\137\x69\156") . "\47"; $con = "\54"; } if ($this->isPropertySet("\161\x75\164\x72\137\154\141\164\x65\137\x69\156", "\113")) { $Sql .= "{$con}\40\161\165\x74\x72\x5f\x6c\x61\164\145\137\151\156\75\x27" . $this->getProperty("\x71\x75\x74\x72\x5f\154\x61\164\145\x5f\151\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\146\165\x6c\x6c\137\x6f\x66\x66\137\x62\145\x66", "\113")) { $Sql .= "{$con}\x20\x66\165\x6c\x6c\x5f\157\x66\146\137\142\145\x66\75\x27" . $this->getProperty("\146\165\x6c\154\x5f\157\146\146\137\x62\145\146") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x68\x61\154\x66\x5f\x6f\x66\146\x5f\x62\145\146\x5f\163\164\141\x72\x74", "\x4b")) { $Sql .= "{$con}\40\150\x61\x6c\146\137\157\x66\146\x5f\142\x65\x66\x5f\163\164\141\162\164\75\x27" . $this->getProperty("\150\141\154\x66\137\x6f\x66\146\x5f\142\x65\146\137\163\x74\x61\162\164") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\150\x61\x6c\x66\x5f\157\x66\x66\x5f\x62\145\146\137\x65\156\x64", "\113")) { $Sql .= "{$con}\x20\150\141\x6c\146\137\157\146\146\137\142\145\x66\x5f\145\156\x64\75\47" . $this->getProperty("\x68\x61\x6c\x66\x5f\x6f\146\146\137\x62\x65\146\x5f\145\156\144") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x71\165\x74\162\x5f\x6f\146\x66\137\142\x65\x66\137\x73\164\141\162\164", "\113")) { $Sql .= "{$con}\40\x71\165\164\162\x5f\157\x66\146\x5f\142\145\x66\x5f\x73\x74\x61\162\x74\75\x27" . $this->getProperty("\161\165\164\162\x5f\157\146\x66\x5f\x62\145\x66\137\x73\164\141\162\x74") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\161\x75\164\x72\x5f\x6f\x66\146\137\142\145\x66\137\x65\156\144", "\113")) { $Sql .= "{$con}\40\x71\165\164\x72\137\x6f\146\146\137\142\145\x66\137\x65\x6e\x64\75\x27" . $this->getProperty("\161\165\164\x72\137\157\146\x66\137\142\145\x66\137\x65\x6e\x64") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\164\x65\x6e\x5f\x6f\146\x66\137\142\145\x66\x5f\163\164\x61\x72\164", "\x4b")) { $Sql .= "{$con}\40\x74\x65\x6e\137\x6f\x66\x66\x5f\x62\x65\146\x5f\x73\164\x61\x72\164\x3d\47" . $this->getProperty("\164\145\x6e\x5f\x6f\146\146\137\x62\x65\x66\137\163\164\x61\162\x74") . "\47"; $con = "\54"; } if ($this->isPropertySet("\164\x65\156\137\157\146\146\137\x62\x65\146\x5f\x65\x6e\144", "\x4b")) { $Sql .= "{$con}\40\x74\x65\x6e\137\x6f\x66\x66\x5f\x62\145\x66\x5f\x65\156\144\x3d\47" . $this->getProperty("\x74\145\156\137\x6f\146\146\137\x62\145\146\137\x65\156\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\154\151\x67\164\137\x73\164\x61\x74\165\163", "\113")) { $Sql .= "{$con}\40\154\151\147\x74\137\x73\x74\x61\164\165\163\75\x27" . $this->getProperty("\154\151\147\x74\137\x73\x74\x61\164\165\x73") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x65\x6f\x67\164\137\163\x74\141\164\165\x73", "\113")) { $Sql .= "{$con}\x20\x65\x6f\x67\x74\x5f\x73\164\141\164\165\x73\x3d\47" . $this->getProperty("\145\x6f\147\x74\137\163\x74\x61\x74\x75\163") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\163\x41\x63\x74\151\166\x65", "\x4b")) { $Sql .= "{$con}\x20\x69\163\101\x63\164\151\x76\x65\75\47" . $this->getProperty("\151\163\x41\x63\x74\151\x76\x65") . "\47"; $con = "\54"; } $Sql .= "\x20\x57\x48\x45\x52\x45\x20\x31\x3d\x31"; if ($this->isPropertySet("\x73\x68\151\x66\x74\x5f\x69\144", "\x56")) { $Sql .= "\40\x41\116\104\40\x73\x68\151\146\x74\x5f\x69\144\x3d" . $this->getProperty("\x73\150\x69\x66\x74\137\151\144"); } break; case "\x44\105\114": $Sql = "\x55\120\104\101\124\105\x20\x72\163\x5f\164\142\154\137\x73\150\151\146\164\x73\x20\123\105\124\40\xa\x9\x9\11\11\x9\11\11\151\163\x41\x63\x74\151\166\145\75\63\xa\11\x9\11\11\x9\11\127\x48\105\x52\x45\xa\11\11\11\x9\11\x9\11\x31\x3d\x31"; $Sql .= "\40\x41\116\x44\40\163\x68\151\146\164\x5f\151\144\x3d" . $this->getProperty("\163\x68\151\x66\164\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actLeaveType($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\123\105\x52\124\x20\111\x4e\x54\117\x20\162\x73\137\164\142\154\137\x6c\x65\x61\166\145\x5f\x74\171\x70\x65\50\12\11\11\11\11\11\11\x6c\145\141\166\145\137\164\171\x70\x65\x5f\151\144\54\12\11\11\x9\11\11\x9\165\163\x65\162\x5f\x69\144\x2c\12\11\x9\x9\x9\x9\x9\x6c\145\x61\x76\x65\x5f\156\141\x6d\x65\54\12\11\x9\11\x9\x9\11\x65\x6e\x74\x65\x72\171\x5f\144\x61\164\145\54\xa\x9\x9\11\x9\x9\x9\151\163\101\x63\x74\151\166\145\51\12\11\x9\11\x9\11\11\x56\x41\x4c\x55\x45\x53\x28"; $Sql .= $this->isPropertySet("\154\145\141\166\x65\137\164\171\160\x65\x5f\151\144", "\x56") ? $this->getProperty("\154\x65\141\x76\x65\x5f\x74\x79\160\x65\x5f\x69\144") : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\x5f\x69\144", "\x56") ? $this->getProperty("\x75\163\x65\162\137\151\x64") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\x61\166\x65\x5f\156\x61\x6d\x65", "\126") ? "\47" . $this->getProperty("\x6c\145\x61\166\x65\x5f\156\141\x6d\x65") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\164\x65\x72\171\x5f\x64\141\x74\x65", "\126") ? "\47" . $this->getProperty("\145\x6e\164\145\162\x79\x5f\x64\x61\x74\145") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\101\143\164\x69\166\x65", "\x56") ? "\x27" . $this->getProperty("\x69\163\101\143\164\151\x76\x65") . "\x27" : "\61"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\x50\104\x41\x54\x45\40\162\163\x5f\x74\x62\154\137\x6c\145\x61\x76\145\x5f\164\x79\x70\x65\x20\x53\x45\124\x20"; if ($this->isPropertySet("\154\x65\141\x76\145\137\x6e\141\155\145", "\x4b")) { $Sql .= "{$con}\x20\154\x65\141\x76\x65\x5f\156\141\155\x65\75\x27" . $this->getProperty("\x6c\145\x61\x76\x65\x5f\156\x61\155\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\151\163\101\143\164\151\166\x65", "\x4b")) { $Sql .= "{$con}\x20\151\x73\101\x63\164\151\166\x65\75\47" . $this->getProperty("\x69\x73\101\143\164\151\166\x65") . "\47"; $con = "\54"; } $Sql .= "\x20\x57\110\x45\x52\105\40\61\75\61"; if ($this->isPropertySet("\x6c\x65\141\x76\145\137\164\171\160\x65\x5f\151\144", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\154\x65\141\166\145\137\x74\x79\x70\145\x5f\x69\144\75" . $this->getProperty("\x6c\x65\x61\x76\145\137\x74\171\x70\145\137\x69\144"); } break; case "\x44\x45\x4c": $Sql = "\x55\120\x44\x41\124\x45\x20\162\163\x5f\164\x62\154\137\154\x65\x61\166\145\137\x74\171\160\x65\40\x53\x45\x54\40\12\11\x9\x9\11\11\x9\x9\151\x73\101\143\x74\x69\166\145\75\x33\12\11\11\11\x9\x9\11\127\x48\x45\x52\x45\12\11\x9\11\x9\x9\11\11\x31\x3d\x31"; $Sql .= "\40\x41\x4e\104\x20\x6c\145\141\166\x65\x5f\164\x79\x70\145\137\151\x64\x3d" . $this->getProperty("\154\x65\x61\x76\x65\x5f\x74\x79\x70\145\137\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actHolidays($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\x53\x45\122\124\40\x49\116\124\117\x20\162\x73\x5f\164\x62\154\x5f\x68\x6f\x6c\x69\x64\141\x79\163\x28\xa\11\x9\11\x9\11\x9\x68\x6f\x6c\151\x64\141\x79\137\x69\x64\54\12\11\11\x9\11\11\x9\165\x73\145\162\137\151\144\x2c\xa\x9\11\x9\11\x9\11\x68\x6f\154\x69\x64\x61\171\x5f\x6e\x61\x6d\145\x2c\xa\x9\11\x9\11\x9\11\x68\157\x6c\x69\144\141\171\x5f\163\144\54\12\11\11\x9\x9\x9\11\x68\x6f\x6c\151\x64\141\x79\137\145\x64\54\12\11\x9\x9\11\11\x9\145\156\164\x65\162\x79\137\144\x61\x74\x65\54\12\11\11\x9\11\x9\x9\151\163\101\143\x74\x69\166\145\51\xa\x9\x9\x9\x9\x9\11\x56\101\x4c\125\105\x53\x28"; $Sql .= $this->isPropertySet("\x68\x6f\154\x69\144\x61\171\137\x69\x64", "\126") ? $this->getProperty("\x68\157\154\x69\x64\141\171\137\151\144") : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\x5f\x69\144", "\x56") ? $this->getProperty("\165\163\145\x72\x5f\151\x64") : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\150\x6f\154\151\x64\141\171\x5f\156\x61\155\x65", "\x56") ? "\x27" . $this->getProperty("\x68\157\154\151\144\141\171\x5f\156\141\x6d\145") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x68\157\x6c\x69\144\141\x79\x5f\x73\x64", "\126") ? "\47" . $this->getProperty("\x68\x6f\x6c\151\x64\x61\171\x5f\x73\144") . "\47" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x68\157\x6c\x69\144\x61\171\137\x65\x64", "\x56") ? "\x27" . $this->getProperty("\x68\x6f\x6c\151\144\141\171\137\145\x64") . "\x27" : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\x74\x65\x72\x79\137\144\141\164\x65", "\x56") ? "\x27" . $this->getProperty("\145\156\164\145\162\171\x5f\x64\141\x74\x65") . "\x27" : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x73\x41\x63\x74\151\x76\x65", "\x56") ? "\47" . $this->getProperty("\151\x73\x41\x63\x74\x69\166\145") . "\x27" : "\61"; $Sql .= "\51"; break; case "\x55": $Sql = "\125\x50\x44\101\x54\105\40\x72\163\x5f\164\142\x6c\x5f\x68\x6f\x6c\x69\x64\x61\171\163\40\x53\x45\x54\x20"; if ($this->isPropertySet("\150\x6f\x6c\151\144\x61\171\x5f\x6e\141\x6d\x65", "\x4b")) { $Sql .= "{$con}\x20\x68\x6f\154\x69\x64\x61\x79\x5f\x6e\x61\x6d\x65\75\47" . $this->getProperty("\x68\157\x6c\151\144\141\171\x5f\x6e\x61\155\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\150\157\x6c\x69\x64\x61\x79\137\163\x64", "\113")) { $Sql .= "{$con}\x20\x68\157\154\151\x64\141\171\x5f\x73\144\x3d\x27" . $this->getProperty("\150\157\154\x69\x64\x61\171\137\x73\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x68\157\x6c\x69\144\141\171\x5f\x65\144", "\113")) { $Sql .= "{$con}\x20\150\157\x6c\151\144\x61\x79\x5f\145\x64\75\x27" . $this->getProperty("\x68\x6f\154\x69\x64\141\x79\x5f\145\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\151\163\101\143\x74\x69\x76\x65", "\113")) { $Sql .= "{$con}\x20\151\x73\x41\x63\x74\151\x76\145\75\x27" . $this->getProperty("\x69\163\101\143\x74\x69\x76\x65") . "\47"; $con = "\x2c"; } $Sql .= "\x20\127\x48\105\122\x45\40\61\75\61"; if ($this->isPropertySet("\150\x6f\x6c\151\x64\x61\171\x5f\x69\x64", "\126")) { $Sql .= "\x20\x41\116\x44\40\x68\x6f\154\151\x64\141\x79\137\x69\x64\75" . $this->getProperty("\150\x6f\x6c\151\144\141\x79\137\x69\x64"); } break; case "\x44\105\114": $Sql = "\x55\120\x44\x41\x54\x45\40\162\163\137\164\x62\154\137\150\157\x6c\151\144\141\x79\x73\40\x53\x45\x54\x20\xa\x9\11\11\11\11\x9\x9\151\x73\x41\143\x74\151\166\145\75\x33\12\11\x9\11\11\11\11\127\x48\x45\x52\105\xa\x9\11\11\x9\x9\x9\11\x31\x3d\61"; $Sql .= "\x20\x41\x4e\104\x20\150\157\154\151\144\x61\x79\x5f\x69\x64\75" . $this->getProperty("\150\157\154\151\x64\141\x79\137\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actYearlyLeaveType($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\123\105\x52\x54\40\x49\x4e\x54\117\40\162\x73\137\x74\x62\x6c\x5f\171\145\x61\162\154\171\x5f\x6c\145\141\166\145\137\x74\171\160\145\x28\xa\x9\11\11\x9\11\x9\171\145\x61\x72\154\x79\x5f\154\x65\141\x76\x65\x5f\x74\171\x70\145\137\151\x64\54\12\x9\x9\x9\11\x9\x9\165\163\x65\x72\x5f\151\x64\x2c\12\11\x9\11\11\x9\x9\171\145\x61\162\x6c\x79\x5f\154\145\x61\166\145\137\156\x61\x6d\145\54\xa\x9\11\11\x9\11\x9\x6e\x75\x6d\x62\145\x72\x5f\x6f\x66\137\154\x65\141\166\145\54\12\x9\11\x9\x9\11\x9\x65\156\x74\145\162\171\137\144\141\164\x65\54\12\11\x9\x9\11\x9\11\151\x73\x41\x63\x74\x69\166\145\54\xa\x9\x9\11\11\11\x9\171\x65\x61\162\x6c\x79\137\x6c\x65\x61\x76\x65\137\x74\171\160\x65\51\12\11\x9\11\x9\11\11\x56\101\114\125\105\x53\x28"; $Sql .= $this->isPropertySet("\171\145\141\162\154\171\137\154\x65\141\x76\x65\137\x74\x79\x70\x65\137\151\x64", "\x56") ? $this->getProperty("\x79\x65\x61\162\154\x79\137\x6c\x65\141\x76\145\137\x74\x79\160\x65\137\151\x64") : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\151\x64", "\x56") ? $this->getProperty("\165\163\145\x72\137\151\x64") : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\171\x65\x61\x72\x6c\x79\137\x6c\x65\x61\x76\x65\137\156\x61\x6d\x65", "\x56") ? "\47" . $this->getProperty("\171\145\141\162\154\x79\x5f\x6c\x65\x61\x76\145\137\156\x61\155\145") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\156\165\155\142\x65\x72\137\x6f\x66\137\154\x65\x61\x76\x65", "\126") ? "\47" . $this->getProperty("\156\x75\x6d\142\x65\x72\x5f\157\146\x5f\x6c\145\141\x76\145") . "\47" : "\60"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\164\x65\x72\171\x5f\144\x61\164\x65", "\126") ? "\47" . $this->getProperty("\x65\x6e\x74\x65\x72\171\x5f\x64\141\164\145") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\x41\x63\x74\151\x76\x65", "\126") ? "\x27" . $this->getProperty("\151\163\101\x63\164\151\166\x65") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\171\x65\141\162\154\x79\137\154\145\x61\166\x65\x5f\x74\171\x70\x65", "\x56") ? "\x27" . $this->getProperty("\x79\x65\141\x72\154\x79\x5f\154\145\141\166\145\137\164\171\x70\x65") . "\47" : "\x31"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\x50\x44\x41\x54\105\40\162\163\x5f\x74\142\154\137\x79\145\141\162\x6c\171\x5f\154\x65\x61\166\145\x5f\164\171\160\x65\40\x53\105\x54\x20"; if ($this->isPropertySet("\171\145\x61\x72\154\x79\137\154\x65\x61\x76\145\x5f\156\141\x6d\x65", "\113")) { $Sql .= "{$con}\40\x79\145\141\x72\154\171\137\154\x65\x61\166\145\137\156\x61\155\x65\x3d\47" . $this->getProperty("\x79\x65\x61\162\154\171\x5f\154\x65\x61\x76\x65\137\156\x61\x6d\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\156\x75\x6d\142\145\x72\137\157\146\x5f\154\145\141\166\145", "\113")) { $Sql .= "{$con}\40\x6e\x75\155\142\x65\x72\x5f\157\x66\137\x6c\x65\141\166\x65\x3d\47" . $this->getProperty("\156\x75\x6d\142\x65\x72\137\157\x66\137\154\145\141\x76\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\151\163\x41\x63\x74\x69\166\145", "\113")) { $Sql .= "{$con}\x20\151\x73\101\x63\x74\151\166\145\75\47" . $this->getProperty("\x69\x73\101\143\x74\x69\x76\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x79\x65\x61\x72\x6c\171\137\154\145\x61\x76\145\x5f\164\x79\160\x65", "\113")) { $Sql .= "{$con}\40\x79\145\x61\x72\x6c\x79\x5f\x6c\145\141\166\145\137\164\x79\160\145\75\47" . $this->getProperty("\171\x65\141\x72\x6c\x79\137\154\x65\141\x76\145\137\164\171\160\145") . "\x27"; $con = "\54"; } $Sql .= "\40\127\110\105\x52\105\40\61\x3d\x31"; if ($this->isPropertySet("\171\x65\141\x72\x6c\171\x5f\x6c\x65\141\166\x65\x5f\164\x79\x70\x65\137\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\104\40\x79\x65\141\162\x6c\171\137\154\x65\141\166\145\x5f\164\171\x70\x65\x5f\151\144\x3d" . $this->getProperty("\171\145\x61\x72\x6c\171\137\154\145\x61\166\145\137\x74\171\x70\145\137\151\x64"); } break; case "\104\x45\x4c": $Sql = "\125\x50\x44\101\124\x45\x20\x72\x73\137\x74\x62\154\x5f\x79\x65\x61\162\154\x79\137\154\x65\141\x76\145\137\x74\x79\160\145\x20\x53\x45\x54\40\xa\11\11\x9\x9\11\11\x9\151\x73\101\143\x74\151\x76\x65\75\63\12\x9\11\x9\11\11\x9\x57\x48\x45\x52\x45\12\x9\11\11\11\11\x9\x9\61\x3d\x31"; $Sql .= "\x20\101\x4e\x44\40\171\145\141\x72\x6c\x79\x5f\x6c\x65\141\166\145\137\164\x79\x70\x65\x5f\x69\x64\x3d" . $this->getProperty("\x79\145\x61\x72\154\171\137\154\145\x61\x76\145\x5f\x74\171\160\x65\x5f\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actUserLeaveRequest($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\123\x45\122\124\x20\x49\x4e\x54\117\40\162\x73\137\164\x62\154\137\x75\x73\145\x72\137\x6c\145\141\166\x65\137\x72\145\161\165\145\x73\x74\x28\12\x9\11\11\11\x9\11\154\x65\x61\x76\145\137\x72\x65\x71\165\145\x73\x74\x5f\x69\144\x2c\xa\x9\11\x9\x9\11\x9\165\163\145\x72\137\151\144\54\xa\11\x9\x9\x9\11\11\154\x6f\143\x61\164\151\x6f\x6e\137\x69\144\54\xa\x9\11\11\x9\11\11\154\145\141\166\145\137\164\171\160\145\x5f\151\x64\54\12\x9\x9\11\x9\x9\11\x79\145\141\162\154\171\137\x6c\145\x61\166\x65\137\x69\x64\54\12\x9\x9\x9\11\x9\x9\x6c\x65\141\166\145\x5f\x72\x65\141\x73\x6f\156\x2c\xa\x9\11\11\11\x9\x9\154\x65\141\166\x65\137\157\x66\54\12\11\x9\11\x9\11\x9\x6c\x65\x61\x76\145\x5f\x73\144\x2c\xa\x9\x9\x9\x9\x9\x9\154\145\141\166\145\x5f\145\x64\54\12\x9\11\x9\x9\11\x9\x66\157\162\167\x61\162\x64\x5f\x64\x69\x72\x65\143\x74\157\x72\54\12\x9\x9\x9\x9\x9\11\143\157\x6d\160\x61\156\171\137\x69\144\54\12\11\11\x9\11\x9\11\x64\x65\160\141\162\x74\x6d\x65\x6e\x74\x5f\x69\x64\x2c\12\11\x9\x9\x9\11\11\154\x65\141\x76\145\x5f\163\164\x61\x74\165\163\x2c\xa\11\x9\x9\11\x9\11\x68\162\x5f\x69\x64\54\12\11\11\x9\x9\11\11\145\x6e\x74\145\162\x79\137\x64\x61\x74\x65\x2c\12\11\x9\x9\11\11\11\x69\x73\x41\x63\164\x69\x76\x65\51\12\x9\11\11\x9\11\x9\126\101\114\x55\105\x53\x28"; $Sql .= $this->isPropertySet("\x6c\x65\141\x76\x65\137\162\x65\161\165\145\x73\164\137\151\x64", "\126") ? $this->getProperty("\154\145\141\166\145\137\162\x65\161\x75\145\x73\164\x5f\151\144") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\145\162\137\x69\144", "\x56") ? $this->getProperty("\165\163\145\162\137\x69\144") : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\154\x6f\x63\141\164\x69\x6f\156\x5f\151\x64", "\126") ? $this->getProperty("\x6c\x6f\143\141\164\x69\157\x6e\137\151\144") : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\x65\x61\166\145\137\164\x79\x70\145\137\x69\x64", "\x56") ? $this->getProperty("\154\145\x61\x76\x65\x5f\x74\171\x70\145\x5f\151\144") : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x79\x65\141\x72\x6c\171\137\x6c\145\141\166\x65\137\x69\144", "\x56") ? $this->getProperty("\171\x65\x61\162\154\x79\137\154\x65\x61\x76\x65\137\x69\144") : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\x61\166\x65\x5f\162\145\x61\163\x6f\156", "\126") ? "\x27" . $this->getProperty("\154\x65\141\x76\x65\137\162\145\x61\x73\157\156") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\x65\x61\x76\145\137\x6f\x66", "\x56") ? "\x27" . $this->getProperty("\x6c\x65\x61\166\x65\x5f\157\x66") . "\47" : "\116\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\145\x61\166\145\137\163\x64", "\126") ? "\x27" . $this->getProperty("\x6c\145\141\x76\145\137\x73\144") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\141\x76\x65\x5f\145\x64", "\x56") ? "\x27" . $this->getProperty("\154\x65\141\166\x65\x5f\x65\x64") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x66\157\x72\x77\141\162\x64\137\144\x69\x72\145\143\x74\x6f\x72", "\x56") ? "\47" . $this->getProperty("\x66\x6f\162\167\x61\x72\144\137\x64\151\162\x65\x63\164\157\162") . "\47" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\x6d\x70\x61\x6e\171\x5f\151\x64", "\x56") ? $this->getProperty("\x63\157\x6d\160\141\156\x79\x5f\151\x64") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\144\x65\160\x61\162\x74\x6d\x65\156\164\137\151\144", "\126") ? $this->getProperty("\x64\145\160\x61\162\x74\x6d\145\156\164\x5f\x69\144") : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\x65\x61\x76\145\x5f\163\x74\x61\164\x75\x73", "\x56") ? "\47" . $this->getProperty("\154\145\x61\166\145\x5f\163\x74\141\164\165\x73") . "\47" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x68\162\x5f\x69\x64", "\126") ? $this->getProperty("\x68\x72\x5f\x69\x64") : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x6e\x74\x65\162\x79\x5f\144\141\x74\145", "\x56") ? "\x27" . $this->getProperty("\145\156\164\145\162\171\x5f\144\x61\164\145") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\101\x63\164\x69\x76\145", "\126") ? "\47" . $this->getProperty("\151\163\x41\x63\x74\151\166\x65") . "\47" : "\x31"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\x50\x44\101\124\105\40\162\163\x5f\164\142\154\x5f\165\x73\145\x72\137\x6c\x65\141\x76\x65\x5f\x72\x65\161\x75\x65\x73\164\40\x53\105\124\x20"; if ($this->isPropertySet("\146\x6f\x72\x77\141\x72\144\x5f\144\x69\x72\x65\x63\164\x6f\162", "\113")) { $Sql .= "{$con}\x20\146\x6f\162\x77\141\162\x64\137\x64\151\x72\145\x63\164\x6f\x72\x3d\47" . $this->getProperty("\x66\x6f\x72\x77\x61\x72\x64\137\144\151\162\x65\143\x74\x6f\162") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\143\x6f\155\x70\141\156\171\137\151\x64", "\113")) { $Sql .= "{$con}\x20\143\157\155\x70\x61\x6e\171\137\x69\144\75\x27" . $this->getProperty("\x63\x6f\155\x70\x61\156\x79\x5f\x69\x64") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x6c\x65\x61\x76\145\137\163\144", "\113")) { $Sql .= "{$con}\x20\x6c\145\141\x76\145\x5f\163\144\x3d\x27" . $this->getProperty("\x6c\x65\x61\x76\145\137\163\144") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\154\x65\x61\166\145\137\145\144", "\x4b")) { $Sql .= "{$con}\40\x6c\x65\x61\166\145\137\x65\x64\x3d\x27" . $this->getProperty("\154\x65\141\x76\x65\137\x65\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\x65\x61\166\x65\x5f\x73\164\141\x74\165\163", "\x4b")) { $Sql .= "{$con}\40\154\x65\141\x76\x65\x5f\x73\164\x61\164\165\163\75\x27" . $this->getProperty("\x6c\145\141\x76\145\137\x73\x74\141\164\165\163") . "\47"; $con = "\54"; } if ($this->isPropertySet("\150\x72\x5f\151\144", "\113")) { $Sql .= "{$con}\x20\x68\162\137\x69\x64\75\x27" . $this->getProperty("\150\162\x5f\151\x64") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\151\163\101\143\164\151\x76\x65", "\x4b")) { $Sql .= "{$con}\40\151\x73\x41\x63\164\151\x76\145\75\x27" . $this->getProperty("\x69\x73\x41\143\x74\151\x76\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\154\x65\141\166\x65\137\x6f\146", "\x4b")) { $Sql .= "{$con}\x20\154\145\141\166\x65\137\x6f\x66\x3d\47" . $this->getProperty("\x6c\x65\x61\166\x65\x5f\157\146") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x6e\x6f\x6f\x66\154\145\x61\x76\145", "\113")) { $Sql .= "{$con}\40\x6e\x6f\157\x66\x6c\145\x61\x76\145\x3d\x27" . $this->getProperty("\x6e\157\x6f\x66\x6c\x65\141\166\145") . "\x27"; $con = "\x2c"; } $Sql .= "\x20\127\110\105\x52\x45\x20\61\75\x31"; if ($this->isPropertySet("\154\x65\141\x76\x65\137\x72\145\x71\x75\145\163\164\137\151\x64", "\x56")) { $Sql .= "\x20\101\x4e\x44\40\x6c\145\141\x76\x65\x5f\x72\x65\161\x75\145\x73\x74\137\x69\144\x3d" . $this->getProperty("\154\145\141\166\145\x5f\x72\x65\161\x75\x65\163\164\137\x69\x64"); } break; case "\x44\105\x4c": $Sql = "\x55\120\x44\101\124\x45\x20\162\163\x5f\164\x62\x6c\137\165\x73\145\x72\x5f\x6c\145\x61\x76\x65\137\x72\145\x71\x75\145\x73\x74\x20\123\105\x54\x20\12\11\x9\11\11\11\x9\11\x69\x73\101\x63\x74\x69\166\x65\75\x33\12\11\x9\11\11\11\x9\x57\110\105\x52\105\12\x9\x9\11\x9\11\11\11\61\x3d\61"; $Sql .= "\40\101\116\x44\40\x6c\145\x61\x76\x65\x5f\162\x65\x71\165\x65\x73\x74\x5f\151\x64\x3d" . $this->getProperty("\154\x65\141\166\145\x5f\x72\x65\161\165\x65\x73\x74\137\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserEmergencyNumber($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\116\123\105\x52\x54\x20\x49\x4e\124\x4f\x20\162\x73\137\x74\x62\154\137\165\163\145\x72\x5f\145\x6d\x65\162\x67\x65\x6e\143\171\x28\12\x9\x9\11\11\x9\11\x75\163\x65\162\x5f\x65\x6d\x65\x72\x67\x65\156\143\171\x5f\x69\144\54\12\x9\x9\11\11\11\11\165\163\x65\x72\x5f\x69\x64\54\12\11\x9\11\11\11\11\x70\x65\162\163\157\156\137\x6e\141\x6d\145\54\12\11\11\x9\11\11\11\x63\x6f\156\164\141\x63\164\137\x6e\165\x6d\142\145\x72\x2c\12\11\11\11\11\x9\x9\151\163\x41\143\x74\151\166\x65\51\12\11\11\x9\x9\x9\11\x56\101\x4c\x55\105\123\x28"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\x5f\x65\155\145\162\x67\x65\156\x63\x79\x5f\x69\144", "\x56") ? $this->getProperty("\x75\x73\x65\162\x5f\x65\155\x65\x72\147\x65\x6e\143\x79\x5f\151\x64") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\163\145\x72\137\x69\144", "\x56") ? $this->getProperty("\165\163\x65\162\137\151\x64") : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\160\x65\x72\x73\x6f\156\137\x6e\x61\x6d\x65", "\x56") ? "\47" . $this->getProperty("\x70\145\x72\x73\157\156\x5f\x6e\x61\x6d\145") . "\47" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\156\164\x61\143\x74\x5f\x6e\x75\x6d\x62\145\x72", "\x56") ? "\x27" . $this->getProperty("\143\157\156\x74\x61\143\x74\137\x6e\x75\x6d\142\x65\162") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\x73\x41\143\164\151\166\x65", "\x56") ? "\x27" . $this->getProperty("\x69\163\x41\143\x74\x69\x76\x65") . "\47" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\x50\x44\x41\x54\105\40\x72\x73\x5f\x74\x62\x6c\x5f\165\x73\x65\x72\x5f\145\155\145\162\x67\x65\156\143\x79\40\123\105\124\x20"; if ($this->isPropertySet("\160\145\162\163\x6f\156\137\x6e\141\x6d\145", "\113")) { $Sql .= "{$con}\x20\160\145\x72\163\157\x6e\x5f\x6e\141\155\145\75\x27" . $this->getProperty("\x70\145\162\x73\x6f\156\137\x6e\x61\155\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x63\157\156\164\141\x63\164\137\x6e\x75\155\x62\145\162", "\x4b")) { $Sql .= "{$con}\x20\143\x6f\156\x74\141\143\164\x5f\x6e\165\155\142\x65\x72\x3d\47" . $this->getProperty("\143\x6f\156\x74\x61\143\164\137\x6e\165\x6d\142\145\162") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x69\x73\101\143\164\151\166\145", "\113")) { $Sql .= "{$con}\40\x69\163\101\143\164\151\166\145\x3d\x27" . $this->getProperty("\x69\x73\101\x63\x74\151\166\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\x57\110\105\122\105\x20\61\75\61"; if ($this->isPropertySet("\x75\163\145\x72\x5f\145\x6d\x65\x72\x67\x65\156\143\x79\x5f\151\x64", "\126")) { $Sql .= "\x20\101\116\x44\40\x75\x73\145\162\x5f\x65\x6d\145\x72\x67\x65\x6e\143\171\137\x69\x64\75" . $this->getProperty("\165\x73\x65\x72\x5f\x65\x6d\x65\162\x67\145\x6e\x63\x79\x5f\x69\144"); } break; case "\104\x45\x4c": $Sql = "\125\x50\x44\x41\x54\x45\x20\x72\163\x5f\164\142\x6c\x5f\x75\163\145\162\x5f\x65\x6d\145\x72\x67\x65\156\x63\x79\x20\123\105\124\x20\12\11\x9\x9\11\11\x9\x9\151\x73\101\x63\164\151\x76\x65\75\63\12\11\11\x9\x9\11\x9\127\x48\x45\122\105\12\x9\11\11\11\11\x9\x9\61\75\61"; $Sql .= "\x20\101\116\104\x20\165\163\x65\x72\x5f\x65\155\x65\162\x67\x65\x6e\x63\171\x5f\x69\x64\x3d" . $this->getProperty("\165\x73\x65\x72\x5f\x65\155\145\162\147\145\x6e\143\171\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserJobDetail($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\123\x45\122\124\40\111\116\x54\x4f\x20\162\x73\137\164\142\x6c\137\165\163\x65\x72\x5f\x6a\x6f\142\x5f\x64\145\164\x61\151\154\x28\xa\11\11\11\x9\x9\11\165\163\x65\x72\137\x6a\x6f\142\x5f\144\145\164\141\x69\154\137\x69\144\54\xa\11\x9\x9\11\x9\x9\x75\163\x65\162\137\x69\x64\54\xa\x9\11\x9\x9\x9\11\152\157\x62\137\x74\151\164\154\145\x5f\151\x64\54\12\x9\x9\x9\x9\11\11\x6a\x6f\x62\x5f\144\145\163\143\162\x69\x70\x74\151\157\156\x2c\12\11\11\11\11\x9\11\x63\157\x6d\160\141\156\171\x5f\x69\144\x2c\12\x9\11\x9\x9\x9\x9\144\x65\160\x61\162\164\155\145\156\x74\x5f\151\x64\x2c\12\11\11\11\11\11\x9\152\157\151\156\x65\x64\x5f\144\141\164\145\54\xa\x9\11\x9\x9\11\11\x73\x65\162\166\x69\x63\145\137\145\156\x64\x5f\144\x61\x74\x65\54\12\x9\x9\11\11\x9\x9\152\157\x62\x5f\x74\x79\x70\145\x2c\12\x9\11\x9\x9\x9\11\160\162\x6f\142\141\x74\151\157\x6e\x5f\160\x65\162\x69\157\144\137\x65\156\144\x5f\x64\x61\164\145\x2c\xa\11\11\x9\11\x9\11\160\x72\x6f\x62\x61\164\151\157\x6e\x5f\x70\x65\x72\151\x6f\144\x5f\163\164\x61\x74\x75\163\54\xa\11\11\x9\11\x9\11\144\165\155\155\171\137\163\x68\x69\146\x74\x5f\x69\x64\51\12\11\11\x9\x9\11\11\126\x41\114\x55\105\x53\x28"; $Sql .= $this->isPropertySet("\x75\163\145\x72\x5f\152\157\x62\137\144\145\164\x61\x69\x6c\137\x69\x64", "\x56") ? $this->getProperty("\x75\x73\x65\162\137\x6a\x6f\142\x5f\144\x65\164\141\151\x6c\x5f\x69\x64") : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\x65\x72\137\x69\x64", "\x56") ? $this->getProperty("\x75\163\145\x72\x5f\151\x64") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\152\x6f\x62\x5f\164\x69\x74\x6c\145\137\x69\x64", "\126") ? "\x27" . $this->getProperty("\x6a\x6f\142\x5f\x74\x69\x74\x6c\145\x5f\151\x64") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6a\x6f\142\x5f\x64\145\163\143\x72\151\160\164\x69\157\156", "\126") ? "\47" . $this->getProperty("\x6a\x6f\142\x5f\144\145\x73\143\162\x69\160\x74\151\x6f\x6e") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\157\155\x70\x61\156\x79\x5f\x69\144", "\126") ? "\47" . $this->getProperty("\x63\x6f\155\x70\x61\156\171\137\x69\144") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\145\160\141\162\x74\155\145\156\164\x5f\151\x64", "\x56") ? "\47" . $this->getProperty("\x64\x65\x70\x61\162\164\x6d\145\156\164\x5f\151\x64") . "\47" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\152\157\x69\156\145\x64\x5f\144\x61\164\x65", "\x56") ? "\47" . $this->getProperty("\152\x6f\151\156\x65\x64\x5f\x64\141\164\145") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\163\145\x72\x76\x69\x63\145\x5f\x65\x6e\x64\137\144\141\x74\x65", "\126") ? "\47" . $this->getProperty("\163\x65\162\166\151\x63\145\137\145\156\144\x5f\x64\x61\164\x65") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6a\x6f\142\137\164\171\x70\145", "\x56") ? "\x27" . $this->getProperty("\152\x6f\x62\137\x74\171\160\x65") . "\47" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x70\162\x6f\x62\141\164\151\157\x6e\x5f\x70\x65\x72\x69\x6f\144\x5f\145\156\x64\x5f\144\x61\x74\145", "\x56") ? "\47" . $this->getProperty("\160\x72\x6f\x62\x61\164\151\x6f\x6e\x5f\160\x65\162\151\x6f\144\137\145\156\x64\x5f\144\x61\x74\x65") . "\x27" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\160\x72\x6f\x62\141\x74\151\157\x6e\137\160\145\162\x69\157\144\137\163\164\x61\164\x75\163", "\x56") ? "\47" . $this->getProperty("\x70\x72\x6f\142\x61\x74\151\x6f\156\x5f\x70\145\x72\151\x6f\144\137\x73\x74\141\x74\165\163") . "\47" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\165\155\155\x79\x5f\x73\x68\x69\146\164\x5f\151\x64", "\126") ? "\47" . $this->getProperty("\144\x75\155\155\171\x5f\163\150\151\146\x74\x5f\151\x64") . "\x27" : "\x4e\125\x4c\114"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\120\104\x41\124\105\40\162\x73\x5f\164\142\154\137\x75\x73\x65\162\137\152\x6f\x62\x5f\144\x65\x74\x61\x69\154\40\x53\x45\124\x20"; if ($this->isPropertySet("\152\157\142\x5f\x74\151\x74\x6c\x65\x5f\151\144", "\113")) { $Sql .= "{$con}\40\152\157\142\x5f\x74\x69\x74\x6c\x65\x5f\x69\x64\75\47" . $this->getProperty("\x6a\157\142\x5f\x74\151\164\154\145\137\151\x64") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x63\157\155\160\x61\x6e\x79\137\151\144", "\x4b")) { $Sql .= "{$con}\40\x63\x6f\x6d\160\x61\156\x79\137\151\144\x3d\x27" . $this->getProperty("\x63\157\x6d\160\x61\156\x79\137\151\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x64\145\160\141\x72\x74\155\x65\x6e\x74\137\x69\144", "\x4b")) { $Sql .= "{$con}\40\x64\145\160\141\162\164\x6d\145\156\x74\137\x69\144\x3d\47" . $this->getProperty("\x64\145\160\141\x72\164\x6d\x65\x6e\164\137\151\144") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x6a\157\x62\x5f\x64\x65\163\143\x72\151\160\164\x69\x6f\x6e", "\113")) { $Sql .= "{$con}\x20\152\157\x62\x5f\x64\145\x73\143\162\x69\160\164\x69\x6f\156\75\x27" . $this->getProperty("\x6a\x6f\x62\137\x64\145\x73\x63\162\151\160\164\151\157\x6e") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x6a\x6f\151\156\145\144\137\x64\141\164\x65", "\113")) { $Sql .= "{$con}\x20\x6a\157\x69\x6e\x65\x64\x5f\144\141\164\x65\75\x27" . $this->getProperty("\x6a\157\x69\x6e\x65\x64\x5f\x64\141\x74\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\163\145\162\166\x69\x63\x65\137\x65\156\x64\x5f\x64\x61\x74\x65", "\113")) { $Sql .= "{$con}\x20\163\145\162\x76\151\x63\145\137\x65\x6e\144\x5f\144\141\x74\x65\75\47" . $this->getProperty("\x73\145\162\x76\x69\143\145\137\x65\x6e\x64\137\144\x61\164\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x70\162\x6f\142\141\x74\x69\x6f\x6e\137\160\145\162\x69\x6f\144\137\163\164\x61\164\x75\163", "\113")) { $Sql .= "{$con}\40\x70\x72\157\x62\141\164\x69\x6f\156\x5f\x70\x65\x72\151\x6f\144\x5f\163\164\141\164\165\x73\75\47" . $this->getProperty("\160\162\157\142\x61\164\x69\157\x6e\137\x70\145\x72\151\157\x64\137\163\164\x61\164\165\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x6a\157\142\x5f\x74\x79\160\x65", "\113")) { $Sql .= "{$con}\x20\x6a\x6f\x62\x5f\x74\171\160\145\x3d\x27" . $this->getProperty("\x6a\157\142\x5f\164\171\x70\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\160\x72\x6f\142\141\164\151\x6f\x6e\x5f\160\x65\x72\x69\x6f\x64\137\145\156\x64\137\x64\141\164\145", "\x4b")) { $Sql .= "{$con}\x20\x70\x72\157\x62\x61\x74\151\157\x6e\x5f\x70\145\x72\151\157\144\137\145\x6e\144\x5f\144\141\x74\x65\75\x27" . $this->getProperty("\160\162\157\x62\141\x74\x69\x6f\156\x5f\160\x65\x72\151\157\144\137\145\156\144\137\x64\x61\164\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\144\x75\155\155\x79\x5f\163\x68\151\146\164\137\151\144", "\113")) { $Sql .= "{$con}\40\144\x75\155\155\171\x5f\x73\150\x69\146\164\x5f\x69\144\x3d\x27" . $this->getProperty("\144\165\155\155\x79\x5f\x73\x68\x69\x66\x74\137\x69\144") . "\x27"; $con = "\54"; } $Sql .= "\x20\127\110\105\122\105\40\x31\x3d\x31"; if ($this->isPropertySet("\x75\x73\x65\x72\x5f\x6a\x6f\142\137\x64\x65\x74\141\x69\154\x5f\151\x64", "\x56")) { $Sql .= "\40\x41\116\x44\40\165\x73\x65\x72\x5f\152\157\142\x5f\x64\x65\164\141\x69\x6c\137\x69\x64\x3d" . $this->getProperty("\x75\x73\x65\x72\137\152\157\142\137\144\145\164\141\151\154\x5f\151\x64"); } break; case "\x44\105\114": default: break; } return $this->dbQuery($Sql); } public function actUserLeaves($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\123\105\122\124\x20\111\116\x54\x4f\40\162\163\x5f\x74\x62\x6c\137\165\163\145\x72\x5f\x6c\145\141\166\x65\x73\x28\xa\x9\x9\x9\x9\x9\x9\x75\x73\145\162\137\154\145\x61\x76\145\137\x69\144\54\xa\11\11\x9\11\11\x9\x75\x73\145\x72\x5f\x69\x64\54\xa\11\11\11\x9\11\x9\154\x65\x61\166\x65\x5f\164\x79\x70\x65\x5f\x69\144\54\xa\11\x9\x9\11\11\11\154\x65\x61\x76\x65\x5f\144\141\171\x73\54\12\x9\11\x9\x9\x9\x9\154\x65\141\x76\x65\x5f\x61\x74\164\145\x6d\160\164\54\xa\x9\11\11\x9\11\x9\x72\x65\155\141\x69\x6e\151\x6e\147\137\154\x65\x61\166\145\x2c\xa\11\x9\11\x9\x9\11\151\x73\101\x63\x74\x69\x76\145\51\xa\11\x9\x9\11\x9\x9\x56\101\114\x55\105\x53\50"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\137\154\x65\x61\x76\145\137\151\x64", "\126") ? $this->getProperty("\x75\x73\x65\x72\x5f\154\x65\141\x76\x65\137\151\x64") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\x72\137\x69\144", "\x56") ? $this->getProperty("\165\x73\x65\162\x5f\x69\144") : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\145\141\x76\x65\x5f\x74\171\160\145\x5f\x69\x64", "\126") ? "\x27" . $this->getProperty("\x6c\145\x61\166\145\137\164\x79\160\145\137\x69\144") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\x65\x61\x76\x65\137\x64\141\x79\x73", "\126") ? "\x27" . $this->getProperty("\x6c\x65\x61\166\x65\x5f\144\x61\x79\163") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\x65\141\166\x65\137\141\x74\164\145\155\x70\x74", "\x56") ? "\x27" . $this->getProperty("\x6c\145\141\166\145\137\141\164\164\x65\x6d\160\x74") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\145\155\x61\151\156\x69\x6e\x67\137\x6c\145\x61\166\145", "\x56") ? "\x27" . $this->getProperty("\x72\x65\x6d\141\x69\x6e\151\156\x67\x5f\154\145\x61\x76\145") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\101\x63\164\x69\166\145", "\x56") ? "\47" . $this->getProperty("\x69\x73\x41\143\x74\151\166\x65") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\120\104\101\124\105\40\x72\x73\137\x74\x62\x6c\137\x75\x73\x65\x72\x5f\154\145\x61\166\145\163\x20\123\x45\x54\40"; if ($this->isPropertySet("\x6c\x65\x61\166\x65\x5f\144\141\x79\x73", "\113")) { $Sql .= "{$con}\40\x6c\x65\x61\x76\x65\137\x64\141\x79\x73\75\47" . $this->getProperty("\x6c\x65\x61\166\x65\x5f\x64\141\171\163") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\145\x61\x76\145\x5f\x61\164\x74\x65\155\x70\x74", "\113")) { $Sql .= "{$con}\x20\154\145\141\x76\x65\x5f\x61\x74\164\145\x6d\160\x74\75\x27" . $this->getProperty("\154\x65\x61\166\x65\x5f\x61\x74\x74\145\155\160\x74") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x72\145\x6d\141\151\156\151\156\147\137\x6c\145\x61\x76\145", "\x4b")) { $Sql .= "{$con}\40\x72\145\155\141\x69\x6e\151\x6e\147\x5f\x6c\x65\141\x76\145\x3d\47" . $this->getProperty("\x72\145\x6d\141\x69\x6e\x69\x6e\x67\137\154\x65\141\x76\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\163\101\143\164\151\166\145", "\x4b")) { $Sql .= "{$con}\40\x69\163\x41\143\x74\151\x76\145\x3d\47" . $this->getProperty("\151\x73\x41\x63\x74\151\166\145") . "\x27"; $con = "\x2c"; } $Sql .= "\40\127\110\105\122\105\x20\x31\75\61"; if ($this->isPropertySet("\x75\163\145\x72\137\x6c\145\x61\x76\145\x5f\151\144", "\126")) { $Sql .= "\40\x41\x4e\x44\40\165\x73\x65\162\x5f\154\145\141\166\145\137\x69\144\x3d" . $this->getProperty("\x75\x73\145\x72\137\154\x65\141\x76\x65\x5f\151\144"); } break; case "\104\x45\x4c": $Sql = "\125\120\x44\101\124\x45\40\x72\163\x5f\x74\142\x6c\x5f\x75\163\x65\162\x5f\x6c\x65\141\166\145\x73\x20\123\105\124\x20\12\x9\11\x9\x9\x9\x9\11\151\163\x41\x63\x74\x69\x76\x65\x3d\63\12\x9\x9\11\11\11\x9\127\110\x45\122\105\xa\x9\11\x9\11\x9\11\x9\x31\x3d\61"; $Sql .= "\x20\101\116\104\x20\x75\x73\x65\162\x5f\x6c\x65\141\x76\x65\x5f\151\x64\x3d" . $this->getProperty("\x75\163\x65\x72\x5f\154\x65\x61\x76\x65\137\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserReference($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\x53\105\122\124\x20\x49\x4e\x54\117\x20\x72\163\137\x74\x62\x6c\x5f\x75\x73\x65\x72\137\x72\x65\146\145\x72\145\156\x63\x65\x28\12\11\x9\x9\11\x9\11\x75\163\145\162\137\162\145\x66\x65\x72\145\156\x63\x65\137\151\144\x2c\12\11\11\11\11\x9\x9\x75\x73\x65\x72\137\x69\144\54\xa\x9\x9\x9\x9\x9\11\x70\145\162\163\x6f\x6e\x5f\156\141\x6d\145\x2c\xa\11\11\11\11\x9\11\143\157\156\x74\x61\143\x74\137\x6e\157\54\xa\11\11\11\x9\x9\11\143\157\x6d\x70\x61\156\x79\x5f\156\x61\x6d\145\54\xa\x9\11\x9\11\x9\11\151\163\x41\x63\164\151\166\145\x29\12\x9\x9\x9\11\x9\x9\x56\x41\x4c\x55\105\x53\x28"; $Sql .= $this->isPropertySet("\165\x73\x65\162\137\162\145\x66\x65\162\x65\156\x63\x65\137\151\144", "\126") ? $this->getProperty("\x75\163\145\162\137\x72\x65\x66\145\x72\x65\156\x63\x65\x5f\151\x64") : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\151\x64", "\126") ? $this->getProperty("\x75\x73\145\162\x5f\x69\x64") : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\160\145\162\x73\x6f\x6e\x5f\x6e\141\x6d\145", "\x56") ? "\x27" . $this->getProperty("\x70\145\162\163\x6f\156\x5f\x6e\141\155\145") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x63\157\x6e\164\141\143\164\137\156\157", "\126") ? "\47" . $this->getProperty("\x63\157\156\x74\141\x63\x74\x5f\x6e\157") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\x6f\x6d\160\x61\x6e\x79\x5f\x6e\141\x6d\145", "\x56") ? "\x27" . $this->getProperty("\143\157\x6d\160\141\x6e\x79\x5f\156\141\155\x65") . "\x27" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\x41\143\164\151\166\x65", "\126") ? "\x27" . $this->getProperty("\x69\x73\x41\143\x74\x69\x76\x65") . "\x27" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\x50\x44\101\124\105\x20\x72\163\137\x74\x62\x6c\x5f\165\163\145\x72\x5f\162\x65\x66\x65\x72\145\x6e\143\x65\40\x53\105\x54\x20"; if ($this->isPropertySet("\160\x65\162\x73\157\x6e\x5f\x6e\x61\x6d\145", "\x4b")) { $Sql .= "{$con}\40\x70\145\x72\163\157\156\137\156\141\155\x65\x3d\47" . $this->getProperty("\160\x65\162\163\157\156\x5f\x6e\x61\155\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x63\x6f\x6e\x74\141\143\164\x5f\156\x6f", "\113")) { $Sql .= "{$con}\40\143\x6f\156\x74\x61\143\164\137\156\x6f\75\47" . $this->getProperty("\x63\157\156\x74\x61\x63\164\x5f\156\x6f") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x63\x6f\155\160\x61\x6e\171\137\156\x61\155\145", "\x4b")) { $Sql .= "{$con}\x20\143\x6f\155\x70\141\156\x79\137\156\141\x6d\x65\75\47" . $this->getProperty("\x63\x6f\x6d\x70\141\x6e\x79\137\x6e\x61\155\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\163\101\x63\164\x69\x76\x65", "\113")) { $Sql .= "{$con}\x20\151\163\101\143\164\151\166\145\x3d\47" . $this->getProperty("\x69\163\101\x63\x74\x69\166\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\127\110\105\x52\x45\x20\x31\75\61"; if ($this->isPropertySet("\165\x73\145\x72\x5f\x72\x65\x66\x65\x72\x65\x6e\143\x65\x5f\x69\x64", "\x56")) { $Sql .= "\x20\x41\x4e\104\x20\165\163\145\x72\x5f\162\145\x66\145\162\x65\156\x63\x65\x5f\151\x64\75" . $this->getProperty("\165\163\145\162\x5f\162\145\146\145\162\145\156\143\x65\137\151\x64"); } break; case "\104\105\x4c": $Sql = "\x55\120\x44\x41\x54\x45\x20\x72\163\x5f\164\x62\154\x5f\165\163\x65\x72\137\x72\145\146\145\162\x65\x6e\143\x65\x20\123\105\124\x20\12\x9\11\11\11\11\11\x9\x69\163\101\143\x74\151\x76\x65\x3d\63\xa\11\11\x9\x9\x9\11\x57\110\105\x52\x45\12\11\11\x9\x9\11\11\11\61\x3d\61"; $Sql .= "\x20\101\116\x44\x20\165\163\x65\162\137\162\x65\x66\145\162\x65\x6e\x63\x65\137\151\x64\75" . $this->getProperty("\165\x73\x65\162\x5f\162\145\x66\145\x72\x65\156\x63\145\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserSkills($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\x53\x45\x52\124\x20\111\116\x54\117\x20\162\x73\137\164\142\154\137\x75\x73\x65\162\x5f\x73\153\151\x6c\154\x73\50\xa\11\x9\x9\11\11\x9\165\x73\x65\x72\x5f\163\x6b\151\154\154\x73\x5f\151\144\54\xa\x9\x9\11\11\x9\x9\x75\x73\x65\x72\x5f\151\x64\54\xa\11\x9\x9\x9\x9\11\163\153\151\154\x6c\163\51\xa\x9\x9\x9\x9\11\x9\x56\x41\x4c\x55\105\123\x28"; $Sql .= $this->isPropertySet("\x75\163\x65\162\137\163\x6b\151\x6c\154\163\137\x69\x64", "\x56") ? $this->getProperty("\x75\x73\x65\x72\137\163\x6b\x69\x6c\154\163\x5f\151\x64") : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\163\x65\162\x5f\151\x64", "\x56") ? $this->getProperty("\165\x73\x65\x72\x5f\151\x64") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\153\x69\154\x6c\163", "\126") ? "\x27" . $this->getProperty("\163\x6b\151\154\x6c\x73") . "\47" : "\x4e\125\114\114"; $Sql .= "\51"; break; case "\x55": $Sql = "\x55\120\104\101\124\105\40\162\163\x5f\164\x62\154\137\x75\x73\145\x72\x5f\163\153\151\154\154\163\40\123\105\124\40"; if ($this->isPropertySet("\163\153\x69\x6c\x6c\x73", "\x4b")) { $Sql .= "{$con}\x20\163\x6b\151\x6c\154\x73\x3d\47" . $this->getProperty("\x73\153\151\154\x6c\x73") . "\x27"; $con = "\54"; } $Sql .= "\40\x57\110\105\122\105\40\x31\75\x31"; if ($this->isPropertySet("\x75\x73\145\162\137\163\153\151\154\154\163\137\151\x64", "\x56")) { $Sql .= "\40\x41\116\x44\x20\165\163\x65\162\137\163\x6b\x69\154\154\163\x5f\x69\x64\x3d" . $this->getProperty("\x75\x73\145\162\137\x73\153\151\154\x6c\x73\137\151\144"); } break; case "\x44\105\114": break; default: break; } return $this->dbQuery($Sql); } public function actUserShifts($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\123\x45\122\x54\40\x49\x4e\124\117\40\162\163\137\x74\142\154\137\x75\x73\145\162\137\x73\150\151\x66\x74\x73\50\12\x9\11\x9\x9\x9\11\165\163\x65\162\x5f\x73\150\151\146\164\x5f\x69\144\x2c\12\11\11\x9\11\11\x9\165\163\145\x72\137\151\144\x2c\xa\x9\11\11\11\11\11\x73\x68\151\x66\x74\x5f\151\x64\x2c\xa\x9\11\x9\11\x9\x9\144\141\171\x5f\x69\x64\54\12\x9\11\11\11\11\x9\x64\x61\x79\x5f\163\164\141\x74\165\163\54\12\11\x9\11\11\11\11\x69\163\101\143\164\x69\x76\145\51\12\x9\x9\x9\11\x9\x9\x56\x41\114\125\x45\x53\50"; $Sql .= $this->isPropertySet("\165\163\x65\162\137\x73\x68\151\146\164\137\x69\144", "\126") ? $this->getProperty("\x75\x73\145\x72\x5f\x73\x68\x69\146\x74\x5f\151\x64") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\145\162\x5f\x69\144", "\x56") ? $this->getProperty("\165\x73\x65\x72\x5f\x69\144") : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\163\x68\x69\146\x74\x5f\x69\x64", "\x56") ? "\x27" . $this->getProperty("\x73\150\151\x66\x74\x5f\151\x64") . "\47" : "\x30"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\141\171\137\x69\144", "\126") ? "\x27" . $this->getProperty("\x64\x61\171\x5f\x69\x64") . "\47" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\141\x79\137\163\164\x61\164\x75\x73", "\x56") ? "\47" . $this->getProperty("\144\141\171\x5f\163\164\141\164\x75\x73") . "\x27" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\101\143\164\x69\x76\145", "\x56") ? "\47" . $this->getProperty("\x69\x73\x41\143\164\151\166\145") . "\47" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\x44\101\x54\x45\40\162\163\x5f\x74\x62\154\137\165\x73\x65\162\137\x73\x68\151\146\x74\163\40\123\x45\x54\x20"; if ($this->isPropertySet("\163\150\x69\146\x74\137\x69\x64", "\x4b")) { $Sql .= "{$con}\40\x73\x68\x69\146\164\137\x69\144\x3d\x27" . $this->getProperty("\x73\150\151\146\164\137\151\144") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x64\x61\171\137\x69\x64", "\113")) { $Sql .= "{$con}\40\x64\141\171\137\151\144\75\x27" . $this->getProperty("\x64\141\x79\x5f\x69\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x64\141\171\137\x73\164\x61\x74\x75\163", "\x4b")) { $Sql .= "{$con}\40\144\141\171\x5f\x73\x74\141\164\x75\x73\x3d\x27" . $this->getProperty("\144\141\171\137\x73\x74\141\x74\x75\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\151\x73\101\143\x74\x69\166\x65", "\113")) { $Sql .= "{$con}\40\x69\x73\101\143\164\151\166\x65\75\47" . $this->getProperty("\151\x73\x41\143\164\x69\166\145") . "\x27"; $con = "\x2c"; } $Sql .= "\x20\x57\110\x45\122\105\x20\61\75\61"; if ($this->isPropertySet("\x75\163\x65\162\x5f\163\150\x69\x66\x74\x5f\x69\x64", "\126")) { $Sql .= "\x20\x41\116\x44\x20\x75\x73\145\x72\137\x73\x68\151\x66\x74\137\x69\144\75" . $this->getProperty("\165\x73\145\x72\137\x73\x68\x69\x66\164\137\x69\144"); } break; case "\104\105\114": break; default: break; } return $this->dbQuery($Sql); } public function actUserEducation($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\116\123\105\122\124\x20\x49\116\124\117\x20\162\163\x5f\x74\142\154\137\x75\163\145\162\x5f\145\144\x75\x63\141\164\151\157\156\50\xa\x9\11\x9\x9\x9\11\x75\163\145\x72\137\145\x64\x75\143\x61\x74\x69\157\x6e\x5f\151\x64\54\xa\11\11\11\x9\x9\x9\165\163\x65\162\137\151\144\54\xa\11\x9\x9\11\x9\11\x69\x6e\163\164\151\164\165\164\145\x5f\156\141\x6d\145\x2c\12\11\11\11\11\11\x9\x6d\x61\152\x6f\x72\x2c\xa\x9\x9\11\x9\x9\x9\163\x74\x61\162\x74\x5f\x64\141\x74\x65\x2c\12\x9\x9\11\x9\11\11\145\156\144\x5f\144\141\x74\145\x2c\12\11\x9\11\x9\11\x9\x64\x6f\143\165\155\x65\x6e\164\137\x66\x69\154\x65\x5f\156\141\155\145\x2c\xa\11\11\x9\11\x9\11\144\157\x63\x75\155\x65\156\x74\137\x66\151\154\145\54\xa\11\11\11\11\11\11\157\x74\x68\x65\162\137\x6e\x6f\164\145\54\xa\11\x9\11\x9\x9\x9\x69\163\x41\143\x74\x69\x76\145\51\12\11\11\x9\11\x9\11\126\101\x4c\x55\105\123\x28"; $Sql .= $this->isPropertySet("\165\163\x65\x72\x5f\x65\144\x75\x63\141\x74\151\157\x6e\x5f\151\x64", "\126") ? $this->getProperty("\x75\163\x65\162\137\x65\144\165\x63\x61\x74\151\x6f\x6e\137\x69\x64") : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\x72\137\151\x64", "\x56") ? $this->getProperty("\165\x73\145\x72\137\x69\144") : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\156\x73\x74\x69\x74\165\164\145\137\x6e\x61\x6d\145", "\x56") ? "\47" . $this->getProperty("\x69\156\x73\x74\151\164\x75\164\145\x5f\156\x61\155\145") . "\x27" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6d\x61\x6a\157\162", "\x56") ? "\47" . $this->getProperty("\155\141\152\157\x72") . "\x27" : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\164\141\162\x74\x5f\x64\x61\x74\x65", "\126") ? "\47" . $this->getProperty("\163\164\x61\x72\164\137\x64\141\x74\x65") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\156\x64\x5f\144\x61\164\x65", "\x56") ? "\47" . $this->getProperty("\145\156\144\137\144\141\164\x65") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\157\143\165\x6d\x65\x6e\x74\x5f\146\x69\x6c\x65\137\x6e\141\x6d\x65", "\126") ? "\47" . $this->getProperty("\x64\157\x63\x75\x6d\x65\x6e\x74\x5f\146\x69\154\145\x5f\x6e\141\x6d\145") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\157\143\x75\155\x65\x6e\x74\137\146\151\154\x65", "\x56") ? "\x27" . $this->getProperty("\x64\x6f\x63\x75\x6d\145\x6e\x74\137\x66\x69\154\x65") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\157\x74\x68\x65\162\137\x6e\157\x74\x65", "\x56") ? "\x27" . $this->getProperty("\x6f\164\x68\x65\x72\x5f\156\x6f\x74\145") . "\x27" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\101\143\164\151\x76\x65", "\x56") ? "\47" . $this->getProperty("\x69\x73\101\143\x74\x69\166\145") . "\47" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\x55\x50\104\101\124\105\x20\162\x73\x5f\x74\142\x6c\x5f\165\163\145\162\137\x65\x64\x75\x63\141\x74\x69\x6f\x6e\x20\123\105\124\x20"; if ($this->isPropertySet("\151\x6e\x73\164\151\x74\165\164\145\137\x6e\141\155\145", "\113")) { $Sql .= "{$con}\40\151\156\163\x74\x69\164\x75\x74\145\137\x6e\x61\155\x65\x3d\47" . $this->getProperty("\x69\156\163\x74\x69\164\x75\x74\145\137\x6e\141\155\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6d\141\x6a\157\x72", "\113")) { $Sql .= "{$con}\x20\155\141\x6a\157\x72\x3d\47" . $this->getProperty("\155\x61\152\x6f\162") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x73\x74\x61\x72\164\137\x64\141\x74\x65", "\113")) { $Sql .= "{$con}\40\x73\x74\x61\x72\x74\x5f\x64\141\x74\145\75\x27" . $this->getProperty("\163\x74\141\162\164\x5f\144\x61\x74\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x65\156\x64\x5f\144\x61\164\x65", "\x4b")) { $Sql .= "{$con}\40\145\x6e\x64\137\144\141\x74\145\x3d\47" . $this->getProperty("\x65\x6e\x64\x5f\x64\141\164\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\144\x6f\143\x75\155\145\156\x74\x5f\146\151\x6c\x65\137\x6e\x61\155\145", "\113")) { $Sql .= "{$con}\x20\x64\157\143\165\155\145\x6e\164\x5f\146\x69\x6c\x65\x5f\x6e\x61\x6d\x65\75\x27" . $this->getProperty("\x64\x6f\x63\x75\155\x65\x6e\164\x5f\146\151\x6c\x65\x5f\x6e\141\155\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x64\x6f\143\165\155\x65\156\x74\x5f\x66\x69\154\145", "\x4b")) { $Sql .= "{$con}\x20\144\157\x63\x75\x6d\145\156\164\137\146\x69\154\x65\75\x27" . $this->getProperty("\144\157\x63\x75\x6d\x65\156\x74\137\x66\151\x6c\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\101\143\x74\151\166\x65", "\x4b")) { $Sql .= "{$con}\40\151\163\x41\143\x74\151\x76\x65\x3d\x27" . $this->getProperty("\151\163\x41\x63\x74\x69\166\x65") . "\x27"; $con = "\54"; } $Sql .= "\40\127\x48\105\x52\x45\x20\61\75\x31"; if ($this->isPropertySet("\165\x73\145\162\x5f\145\x64\x75\143\x61\164\x69\157\x6e\137\151\144", "\126")) { $Sql .= "\x20\x41\x4e\104\x20\165\163\145\x72\x5f\x65\x64\x75\143\141\164\151\x6f\156\x5f\151\x64\x3d" . $this->getProperty("\165\163\x65\162\x5f\145\144\x75\x63\x61\164\x69\157\156\137\151\144"); } break; case "\104\105\x4c": $Sql = "\125\x50\104\101\x54\105\x20\162\x73\137\x74\x62\154\137\x75\x73\145\x72\137\145\144\x75\x63\x61\164\x69\x6f\156\40\123\105\x54\x20\xa\x9\x9\11\x9\11\x9\11\x69\163\101\143\164\151\x76\x65\x3d\x33\12\11\x9\11\x9\x9\x9\x57\110\105\x52\x45\12\x9\11\x9\11\x9\x9\x9\61\75\x31"; $Sql .= "\x20\x41\116\x44\40\x75\163\145\162\137\145\144\165\x63\x61\x74\x69\157\156\x5f\151\x64\75" . $this->getProperty("\165\163\145\x72\x5f\145\x64\165\143\x61\x74\x69\x6f\156\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserContract($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\x53\x45\122\x54\x20\111\116\124\117\40\x72\x73\x5f\x74\x62\154\x5f\165\x73\x65\162\x5f\143\157\156\164\162\141\143\164\50\xa\x9\x9\x9\x9\11\x9\x75\163\145\162\137\x63\157\156\164\x72\141\x63\x74\x5f\151\x64\x2c\xa\x9\x9\x9\x9\11\x9\165\163\x65\162\x5f\151\x64\54\xa\11\11\x9\11\11\x9\163\164\141\162\164\137\144\141\x74\145\x2c\xa\11\11\11\11\x9\11\x65\156\144\137\x64\141\164\145\x2c\xa\11\x9\11\x9\x9\11\144\x6f\143\x75\x6d\145\x6e\x74\x5f\x66\x69\x6c\x65\x5f\156\141\x6d\x65\54\xa\x9\11\x9\x9\x9\11\x64\x6f\143\x75\x6d\145\x6e\x74\137\146\151\x6c\145\54\12\x9\x9\x9\x9\11\x9\x69\163\x41\x63\x74\151\166\x65\x29\12\11\x9\11\x9\x9\11\126\101\114\x55\105\123\x28"; $Sql .= $this->isPropertySet("\165\x73\145\x72\x5f\143\x6f\x6e\164\162\141\x63\164\x5f\151\x64", "\126") ? $this->getProperty("\x75\163\145\162\137\143\157\x6e\164\x72\141\x63\x74\x5f\x69\144") : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\x65\162\x5f\x69\x64", "\126") ? $this->getProperty("\165\x73\x65\x72\137\x69\x64") : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\x74\x61\x72\x74\x5f\x64\x61\164\145", "\126") ? "\x27" . $this->getProperty("\x73\164\x61\162\164\x5f\144\x61\x74\145") . "\x27" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\x64\x5f\144\141\164\145", "\126") ? "\47" . $this->getProperty("\x65\x6e\144\x5f\x64\x61\x74\145") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\x6f\143\165\155\x65\x6e\164\x5f\x66\151\154\145\137\x6e\141\x6d\145", "\x56") ? "\47" . $this->getProperty("\144\157\143\165\x6d\145\x6e\164\x5f\146\151\x6c\x65\137\156\x61\155\x65") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x64\x6f\x63\165\155\x65\x6e\x74\137\x66\x69\154\145", "\x56") ? "\x27" . $this->getProperty("\144\x6f\143\165\155\x65\156\164\x5f\146\x69\154\x65") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\101\x63\164\x69\166\145", "\126") ? "\47" . $this->getProperty("\x69\x73\101\x63\164\151\166\145") . "\x27" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\x55\120\104\101\x54\x45\x20\162\163\137\164\x62\154\137\165\163\x65\x72\x5f\x63\x6f\x6e\x74\162\141\x63\x74\x20\x53\105\x54\40"; if ($this->isPropertySet("\163\164\x61\x72\164\x5f\144\x61\164\145", "\x4b")) { $Sql .= "{$con}\40\x73\164\141\162\x74\x5f\144\141\164\x65\75\47" . $this->getProperty("\163\x74\x61\x72\164\137\144\x61\x74\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x65\x6e\144\137\x64\x61\164\x65", "\113")) { $Sql .= "{$con}\x20\x65\156\x64\x5f\x64\x61\x74\145\75\x27" . $this->getProperty("\145\156\x64\x5f\144\141\164\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\144\x6f\x63\x75\x6d\x65\x6e\x74\x5f\x66\x69\154\145\x5f\x6e\141\155\145", "\113")) { $Sql .= "{$con}\x20\x64\157\x63\x75\x6d\x65\156\x74\x5f\146\x69\x6c\x65\137\x6e\x61\x6d\145\75\x27" . $this->getProperty("\144\x6f\143\x75\155\x65\x6e\x74\x5f\146\151\x6c\x65\x5f\156\141\x6d\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x64\157\x63\165\x6d\x65\x6e\x74\137\x66\151\x6c\x65", "\113")) { $Sql .= "{$con}\x20\x64\157\x63\165\x6d\x65\156\x74\x5f\146\x69\154\145\x3d\x27" . $this->getProperty("\144\x6f\143\x75\155\145\x6e\164\x5f\146\151\x6c\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x69\163\x41\x63\164\151\x76\x65", "\113")) { $Sql .= "{$con}\x20\x69\163\x41\x63\164\x69\x76\x65\x3d\x27" . $this->getProperty("\151\x73\x41\x63\x74\x69\x76\x65") . "\x27"; $con = "\54"; } $Sql .= "\x20\127\x48\x45\x52\x45\x20\61\x3d\61"; if ($this->isPropertySet("\x75\x73\145\162\x5f\143\157\x6e\164\x72\141\143\x74\x5f\x69\144", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\165\163\x65\x72\x5f\143\x6f\x6e\x74\162\141\143\x74\x5f\151\144\x3d" . $this->getProperty("\x75\x73\145\162\x5f\143\x6f\156\164\x72\141\x63\164\137\x69\144"); } break; case "\x44\x45\x4c": $Sql = "\x55\x50\104\101\x54\x45\x20\165\x73\145\162\137\143\x6f\x6e\164\162\141\143\164\x5f\151\144\40\x53\x45\124\x20\xa\11\x9\11\x9\x9\11\x9\x69\x73\101\x63\x74\151\166\145\x3d\63\xa\x9\11\x9\11\11\x9\x57\110\105\x52\105\xa\x9\11\11\x9\11\11\11\x31\x3d\x31"; $Sql .= "\40\101\x4e\104\x20\x75\163\145\x72\x5f\x63\157\156\x74\162\141\x63\x74\137\x69\144\x3d" . $this->getProperty("\x75\x73\145\162\137\143\x6f\x6e\x74\162\x61\x63\164\x5f\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actUserVacation($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\116\123\x45\x52\124\x20\x49\x4e\x54\117\x20\162\x73\x5f\x74\x62\154\x5f\166\141\x63\x61\164\x69\157\156\163\50\xa\x9\x9\x9\11\11\x9\x75\163\145\162\137\166\x61\x63\x61\164\x69\157\156\x5f\x69\x64\x2c\12\x9\11\x9\11\11\11\165\163\145\x72\137\151\144\x2c\xa\11\x9\11\11\11\x9\166\x61\x63\141\x74\151\157\x6e\x5f\x74\171\x70\145\x2c\12\11\x9\x9\11\11\11\x76\141\x63\141\x74\151\157\156\137\162\x65\x61\163\x6f\x6e\54\12\11\11\x9\x9\x9\x9\x73\164\141\162\x74\x5f\144\x61\164\x65\x2c\12\x9\x9\11\x9\11\x9\145\x6e\144\137\x64\x61\x74\145\x2c\xa\11\x9\x9\x9\11\11\162\145\x6a\157\151\156\x5f\x64\x61\x74\145\x2c\xa\x9\11\11\x9\x9\11\166\x61\x63\x61\x74\151\157\x6e\137\x73\164\x61\164\x75\x73\x20\x2c\12\11\x9\x9\x9\11\x9\145\x6e\x74\145\162\171\x5f\x64\x61\x74\x65\x2c\12\x9\11\x9\11\11\11\151\163\x41\x63\164\x69\x76\145\x29\xa\x9\x9\x9\x9\11\11\x56\101\114\x55\x45\123\x28"; $Sql .= $this->isPropertySet("\x75\x73\145\162\x5f\x76\141\143\x61\x74\x69\x6f\156\x5f\151\x64", "\126") ? $this->getProperty("\165\163\145\x72\x5f\166\x61\143\x61\164\151\x6f\x6e\137\x69\144") : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\x5f\x69\x64", "\x56") ? $this->getProperty("\165\x73\x65\x72\x5f\x69\144") : "\x4e\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\166\x61\x63\141\164\x69\x6f\x6e\x5f\x74\x79\x70\x65", "\x56") ? $this->getProperty("\166\x61\x63\141\164\151\x6f\156\137\164\x79\x70\145") : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x76\141\x63\141\164\151\x6f\x6e\137\162\x65\141\163\x6f\x6e", "\x56") ? "\x27" . $this->getProperty("\166\141\x63\141\164\x69\x6f\156\137\x72\145\x61\163\157\x6e") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\163\x74\x61\162\x74\137\144\141\x74\x65", "\126") ? "\x27" . $this->getProperty("\163\164\x61\162\164\x5f\x64\x61\164\x65") . "\47" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\156\144\137\144\141\x74\145", "\x56") ? "\47" . $this->getProperty("\x65\156\x64\137\144\x61\164\x65") . "\x27" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\162\145\152\157\x69\156\137\x64\141\x74\145", "\126") ? "\47" . $this->getProperty("\x72\x65\x6a\x6f\x69\156\137\x64\141\164\145") . "\47" : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\166\x61\143\x61\x74\151\157\x6e\137\163\164\141\x74\165\x73", "\126") ? "\x27" . $this->getProperty("\166\x61\x63\x61\164\151\157\156\x5f\163\x74\x61\164\165\163") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\x6e\x74\x65\x72\x79\x5f\144\141\164\x65", "\126") ? "\x27" . $this->getProperty("\x65\x6e\164\145\162\171\x5f\144\x61\x74\x65") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\101\x63\164\151\x76\145", "\x56") ? "\47" . $this->getProperty("\151\x73\x41\x63\164\151\166\x65") . "\x27" : "\61"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\x50\x44\x41\124\x45\40\162\163\137\164\x62\x6c\x5f\166\141\143\x61\164\151\157\156\x73\x20\123\105\124\x20"; if ($this->isPropertySet("\x76\x61\143\x61\164\x69\157\156\137\x74\171\x70\145", "\113")) { $Sql .= "{$con}\40\166\x61\x63\x61\164\x69\157\156\137\x74\171\160\x65\75\47" . $this->getProperty("\x76\x61\143\x61\164\151\x6f\x6e\x5f\164\171\x70\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x76\x61\143\x61\x74\151\157\156\x5f\x72\x65\x61\x73\x6f\x6e", "\113")) { $Sql .= "{$con}\x20\x76\141\143\141\x74\151\x6f\x6e\x5f\162\145\141\163\x6f\156\75\x27" . $this->getProperty("\166\x61\x63\x61\164\x69\x6f\x6e\137\162\x65\141\x73\157\x6e") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\163\164\x61\x72\x74\x5f\144\x61\164\x65", "\x4b")) { $Sql .= "{$con}\x20\x73\164\x61\x72\x74\x5f\144\x61\x74\145\x3d\x27" . $this->getProperty("\x73\x74\141\x72\164\x5f\x64\x61\164\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\145\156\144\137\x64\x61\x74\145", "\113")) { $Sql .= "{$con}\x20\145\156\144\137\x64\x61\x74\x65\75\47" . $this->getProperty("\x65\x6e\144\x5f\x64\141\x74\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x72\145\x6a\157\x69\156\x5f\x64\x61\x74\145", "\113")) { $Sql .= "{$con}\40\162\145\152\x6f\x69\x6e\x5f\144\x61\164\x65\x3d\47" . $this->getProperty("\x72\145\152\x6f\151\x6e\137\144\141\x74\x65") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x76\x61\143\141\164\151\157\x6e\x5f\163\x74\x61\x74\165\x73", "\x4b")) { $Sql .= "{$con}\x20\x76\x61\143\141\x74\x69\x6f\156\137\163\164\x61\164\x75\x73\75\47" . $this->getProperty("\166\141\x63\141\x74\151\x6f\156\x5f\x73\164\141\x74\x75\163") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\x41\x63\x74\x69\x76\145", "\113")) { $Sql .= "{$con}\40\x69\x73\101\143\164\151\166\x65\x3d\x27" . $this->getProperty("\x69\x73\x41\143\x74\x69\166\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\40\x57\x48\x45\x52\x45\x20\61\x3d\x31"; if ($this->isPropertySet("\x75\x73\x65\x72\x5f\x76\x61\143\141\164\x69\157\156\x5f\x69\144", "\x56")) { $Sql .= "\40\x41\116\x44\40\165\x73\x65\162\137\x76\x61\143\x61\164\151\157\156\x5f\151\144\75" . $this->getProperty("\x75\x73\x65\x72\x5f\166\x61\x63\141\164\x69\157\156\x5f\x69\144"); } break; case "\104\x45\114": $Sql = "\x55\120\x44\101\124\x45\x20\x75\x73\145\162\x5f\x76\141\x63\x61\164\x69\157\156\137\x69\144\x20\x53\105\124\x20\12\11\x9\11\11\x9\x9\11\x69\163\x41\143\x74\x69\x76\145\x3d\63\12\11\11\x9\11\11\x9\127\x48\x45\x52\105\xa\11\11\11\11\x9\x9\x9\x31\75\x31"; $Sql .= "\x20\101\x4e\104\x20\165\163\145\x72\137\166\x61\x63\x61\164\x69\x6f\156\x5f\x69\x64\75" . $this->getProperty("\165\x73\x65\x72\x5f\166\x61\x63\141\x74\151\x6f\156\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actUserEmployment($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\x53\x45\x52\x54\40\111\116\x54\117\40\162\x73\x5f\x74\142\x6c\137\x75\163\x65\162\137\145\155\160\x6c\157\x79\x6d\x65\156\164\50\12\11\11\x9\x9\x9\11\x75\163\145\x72\x5f\x65\x6d\160\154\x6f\171\155\x65\x6e\164\x5f\151\x64\54\12\x9\x9\11\x9\11\11\165\163\145\162\x5f\x69\144\54\xa\x9\x9\11\x9\x9\11\143\x6f\155\x70\141\x6e\171\137\156\x61\155\145\x2c\xa\x9\x9\11\x9\x9\11\152\x6f\142\x5f\164\151\164\x6c\145\54\xa\x9\x9\x9\11\x9\11\146\162\157\155\137\144\141\x74\145\54\12\x9\11\11\11\x9\x9\x65\x6e\x64\x5f\144\141\164\x65\x2c\12\x9\x9\x9\11\x9\x9\151\x73\101\x63\164\x69\166\145\51\12\11\x9\x9\11\11\11\126\x41\x4c\125\x45\123\x28"; $Sql .= $this->isPropertySet("\x75\x73\x65\162\x5f\145\155\x70\x6c\157\x79\155\x65\x6e\x74\x5f\x69\x64", "\126") ? $this->getProperty("\x75\163\x65\162\x5f\x65\x6d\x70\154\157\x79\x6d\x65\x6e\164\137\151\x64") : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\x73\145\x72\137\151\144", "\126") ? $this->getProperty("\x75\163\145\162\137\151\144") : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\143\157\x6d\160\141\x6e\x79\137\x6e\x61\x6d\x65", "\x56") ? "\47" . $this->getProperty("\143\157\155\160\141\x6e\171\x5f\x6e\141\x6d\145") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\152\x6f\142\x5f\x74\x69\164\x6c\x65", "\126") ? "\x27" . $this->getProperty("\x6a\x6f\x62\137\164\151\164\x6c\x65") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\146\162\157\155\x5f\144\141\164\x65", "\126") ? "\47" . $this->getProperty("\146\x72\157\155\137\144\141\164\145") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x65\x6e\144\137\x64\x61\x74\145", "\x56") ? "\47" . $this->getProperty("\145\156\144\137\x64\141\x74\x65") . "\x27" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\163\101\143\164\x69\166\145", "\126") ? "\47" . $this->getProperty("\x69\163\101\143\x74\x69\166\145") . "\47" : "\61"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\120\x44\x41\124\x45\40\162\x73\137\164\142\154\137\165\x73\145\x72\137\145\x6d\x70\x6c\157\171\155\x65\156\164\x20\123\105\x54\40"; if ($this->isPropertySet("\143\157\x6d\160\141\x6e\x79\137\156\x61\155\145", "\113")) { $Sql .= "{$con}\40\143\x6f\x6d\x70\x61\156\x79\137\156\141\x6d\145\75\x27" . $this->getProperty("\x63\157\155\x70\x61\156\171\137\x6e\141\x6d\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\152\157\142\x5f\x74\151\x74\x6c\145", "\113")) { $Sql .= "{$con}\40\x6a\x6f\142\x5f\x74\x69\164\154\145\75\x27" . $this->getProperty("\152\157\142\x5f\164\151\x74\154\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x66\162\x6f\x6d\x5f\x64\141\164\x65", "\113")) { $Sql .= "{$con}\x20\146\162\x6f\155\x5f\144\x61\x74\145\x3d\x27" . $this->getProperty("\146\162\157\155\137\x64\x61\x74\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\145\x6e\x64\137\x64\x61\x74\145", "\x4b")) { $Sql .= "{$con}\40\x65\x6e\x64\137\144\141\164\145\75\47" . $this->getProperty("\x65\x6e\x64\x5f\x64\x61\x74\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\101\143\164\151\x76\145", "\x4b")) { $Sql .= "{$con}\x20\x69\x73\x41\x63\164\151\x76\145\75\47" . $this->getProperty("\x69\163\101\x63\x74\x69\166\x65") . "\47"; $con = "\x2c"; } $Sql .= "\x20\127\x48\x45\122\105\x20\x31\75\61"; if ($this->isPropertySet("\165\x73\145\x72\x5f\x65\155\x70\x6c\157\x79\155\145\x6e\164\137\151\144", "\126")) { $Sql .= "\x20\101\116\x44\40\165\163\x65\x72\x5f\145\155\x70\x6c\x6f\171\155\145\x6e\164\x5f\x69\144\75" . $this->getProperty("\165\x73\145\162\137\x65\155\160\x6c\157\171\155\145\156\x74\x5f\x69\144"); } break; case "\x44\x45\114": $Sql = "\x55\120\x44\x41\124\105\x20\x72\163\137\x74\142\x6c\x5f\x75\x73\145\162\137\145\x6d\x70\x6c\157\x79\x6d\x65\156\164\x20\123\105\124\x20\xa\11\x9\11\11\11\11\11\x69\x73\x41\x63\x74\x69\166\145\x3d\63\xa\11\11\11\x9\x9\x9\127\x48\x45\122\x45\12\11\x9\11\11\x9\11\11\61\75\x31"; $Sql .= "\40\101\x4e\104\x20\165\x73\145\162\137\145\x6d\x70\154\157\x79\x6d\x65\x6e\164\x5f\x69\144\x3d" . $this->getProperty("\165\163\x65\162\137\145\155\x70\x6c\x6f\x79\x6d\x65\156\164\x5f\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actLeads($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\x4e\123\105\122\124\x20\x49\x4e\124\x4f\x20\162\163\x5f\164\142\154\137\154\145\x61\144\x73\x28\xa\11\11\11\11\11\x9\x9\154\145\141\144\163\137\x69\144\54\12\11\x9\x9\x9\11\x9\11\x64\x6d\155\137\165\x73\145\162\x5f\151\144\x2c\12\x9\x9\x9\x9\x9\x9\x9\x63\154\151\x65\156\164\x5f\156\x61\x6d\145\x2c\12\11\x9\x9\11\x9\11\11\143\154\151\x65\x6e\164\137\160\x68\157\x6e\145\x5f\156\x75\155\x62\x65\x72\x2c\xa\11\11\x9\x9\11\11\11\143\x6c\151\x65\x6e\x74\x5f\x65\x6d\x61\x69\x6c\54\12\x9\11\x9\x9\x9\x9\11\x63\x6c\x69\x65\x6e\x74\x5f\x6d\145\163\x73\x61\x67\x65\54\xa\x9\11\11\11\11\x9\11\154\145\141\144\x5f\144\141\164\x65\54\12\x9\11\x9\11\x9\11\11\x6c\x65\141\144\x5f\146\x72\x6f\155\x5f\x69\x64\54\xa\x9\11\11\x9\11\11\x9\x65\156\x74\x65\x72\171\x5f\x64\141\164\145\164\151\155\x65\x2c\12\x9\11\11\11\11\11\11\162\155\137\165\163\145\x72\x5f\151\144\54\xa\11\11\x9\x9\11\11\x9\162\x6d\137\x6c\x65\141\x64\137\163\164\x61\x74\x75\163\54\xa\x9\11\x9\11\x9\11\x9\162\155\x5f\x6c\145\x61\x64\x5f\166\x69\145\167\137\x64\x61\x74\x65\164\x69\x6d\x65\x2c\xa\x9\x9\x9\x9\x9\11\11\x72\155\137\141\143\x74\151\x6f\x6e\137\144\141\x74\145\164\151\x6d\145\x2c\12\11\11\x9\x9\x9\x9\x9\162\155\137\154\x65\141\x64\x5f\x66\x77\144\137\163\x74\x61\164\x75\x73\54\12\11\x9\11\x9\x9\11\x9\x72\155\x5f\x6c\x65\141\144\x5f\146\167\x64\137\x64\141\164\145\x74\x69\x6d\x65\54\12\11\x9\11\11\11\11\11\141\163\x73\x69\147\156\137\154\157\x63\x61\x74\x69\157\156\x5f\151\144\54\xa\x9\x9\11\x9\11\x9\x9\141\163\163\x69\147\x6e\137\x74\x65\x61\x6d\137\154\145\x61\x64\x5f\151\144\54\12\11\11\x9\x9\11\x9\x9\141\163\x73\151\147\x6e\x5f\164\x65\x61\155\x6c\145\x61\x64\x5f\x64\141\164\145\164\151\x6d\x65\54\xa\11\11\x9\x9\x9\x9\x9\x61\x73\x73\x69\147\x6e\137\x61\147\145\x6e\164\137\163\164\x61\x74\165\x73\54\xa\11\x9\x9\x9\11\x9\11\x61\163\163\151\x67\x6e\137\x64\x61\164\x65\164\151\155\x65\54\12\11\x9\x9\11\11\x9\11\151\163\101\x63\x74\x69\x76\145\x2c\12\x9\x9\11\x9\x9\x9\11\154\x65\141\144\x5f\163\x74\141\x74\x75\x73\51\xa\11\x9\11\x9\x9\x9\126\101\114\125\105\123\50"; $Sql .= $this->isPropertySet("\x6c\145\141\144\x73\137\x69\144", "\126") ? $this->getProperty("\x6c\145\x61\x64\x73\137\151\144") : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\144\x6d\155\x5f\165\163\145\x72\137\151\x64", "\x56") ? $this->getProperty("\x64\x6d\155\137\165\x73\x65\x72\137\x69\x64") : "\116\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\154\151\x65\x6e\x74\137\x6e\141\x6d\145", "\126") ? "\x27" . $this->getProperty("\x63\154\x69\145\x6e\164\x5f\156\x61\155\145") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6c\151\x65\x6e\164\x5f\x70\150\x6f\156\145\x5f\x6e\165\155\142\x65\x72", "\x56") ? "\x27" . $this->getProperty("\x63\154\x69\145\x6e\164\137\160\150\157\156\x65\x5f\156\165\x6d\142\x65\162") . "\47" : "\x4e\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\143\x6c\151\x65\x6e\x74\x5f\x65\155\x61\x69\x6c", "\126") ? "\47" . $this->getProperty("\143\x6c\x69\x65\x6e\x74\x5f\x65\x6d\x61\151\154") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x63\154\x69\145\156\164\137\x6d\145\163\x73\x61\147\145", "\126") ? "\x27" . $this->getProperty("\x63\x6c\151\x65\156\164\x5f\155\x65\163\x73\141\x67\x65") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\x61\x64\137\144\x61\x74\145", "\126") ? "\x27" . $this->getProperty("\x6c\145\x61\144\137\144\x61\164\145") . "\x27" : "\x4e\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\154\145\x61\144\x5f\x66\162\x6f\x6d\137\151\x64", "\126") ? "\47" . $this->getProperty("\154\145\141\x64\x5f\x66\x72\157\155\x5f\x69\144") . "\x27" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\x6e\164\145\162\x79\x5f\144\x61\164\145\x74\x69\x6d\145", "\126") ? "\47" . $this->getProperty("\x65\156\x74\145\x72\171\137\144\x61\164\x65\164\151\x6d\x65") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\155\x5f\x75\x73\145\x72\137\x69\x64", "\126") ? "\x27" . $this->getProperty("\x72\x6d\137\165\x73\x65\x72\x5f\151\144") . "\47" : "\x4e\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x72\x6d\x5f\154\145\x61\144\137\x73\164\x61\x74\165\x73", "\x56") ? "\47" . $this->getProperty("\x72\x6d\137\154\145\x61\x64\137\163\164\x61\164\165\x73") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\155\x5f\154\x65\141\144\137\166\x69\145\167\x5f\x64\141\164\x65\x74\151\x6d\145", "\x56") ? "\47" . $this->getProperty("\162\x6d\x5f\x6c\145\x61\144\x5f\166\151\x65\x77\x5f\144\141\x74\x65\x74\x69\x6d\145") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\x6d\x5f\141\x63\x74\151\x6f\x6e\x5f\144\141\164\x65\164\151\155\x65", "\x56") ? "\47" . $this->getProperty("\162\x6d\x5f\141\143\x74\151\x6f\x6e\x5f\144\141\x74\145\x74\x69\155\145") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\162\155\137\x6c\145\141\144\x5f\146\167\x64\137\163\164\141\x74\x75\x73", "\x56") ? "\47" . $this->getProperty("\x72\155\x5f\154\145\x61\144\x5f\146\167\x64\137\163\x74\x61\x74\x75\x73") . "\47" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x72\155\137\x6c\x65\141\144\137\146\x77\144\x5f\x64\141\x74\145\x74\151\155\145", "\x56") ? "\x27" . $this->getProperty("\x72\155\137\154\145\141\x64\137\x66\x77\144\x5f\x64\141\x74\x65\164\x69\x6d\x65") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\x73\x69\147\156\137\154\x6f\143\141\x74\x69\x6f\x6e\x5f\x69\144", "\x56") ? "\x27" . $this->getProperty("\x61\163\x73\x69\x67\156\x5f\x6c\157\143\x61\x74\x69\157\x6e\137\x69\144") . "\x27" : "\x4e\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\x73\163\151\147\x6e\137\164\x65\x61\x6d\x5f\x6c\x65\141\x64\137\x69\x64", "\x56") ? "\x27" . $this->getProperty("\141\163\163\x69\x67\x6e\x5f\x74\x65\141\155\x5f\x6c\x65\x61\144\x5f\151\144") . "\x27" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\163\x69\147\156\x5f\x74\145\x61\x6d\154\x65\141\x64\137\x64\x61\x74\145\164\151\x6d\x65", "\126") ? "\x27" . $this->getProperty("\141\163\x73\x69\x67\x6e\137\164\145\141\x6d\154\x65\x61\144\x5f\144\x61\x74\145\x74\x69\155\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\163\151\x67\x6e\x5f\x61\147\x65\x6e\164\137\163\164\141\x74\x75\x73", "\x56") ? "\47" . $this->getProperty("\141\163\163\151\x67\x6e\x5f\x61\x67\145\x6e\x74\x5f\163\164\x61\x74\165\163") . "\x27" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\163\x69\147\156\137\144\x61\x74\145\164\x69\155\x65", "\x56") ? "\47" . $this->getProperty("\141\163\x73\x69\147\156\x5f\x64\x61\x74\x65\164\x69\x6d\145") . "\47" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\101\143\164\151\x76\145", "\x56") ? "\x27" . $this->getProperty("\151\163\101\143\164\151\x76\145") . "\x27" : "\x31"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6c\x65\141\144\x5f\x73\x74\x61\x74\x75\x73", "\126") ? "\47" . $this->getProperty("\154\x65\141\144\137\163\164\141\164\165\163") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\120\x44\101\x54\x45\x20\x72\x73\137\164\x62\154\x5f\154\x65\x61\144\x73\x20\x53\105\x54\40"; if ($this->isPropertySet("\162\155\x5f\x75\163\x65\x72\x5f\x69\x64", "\x4b")) { $Sql .= "{$con}\40\162\155\137\x75\163\145\162\137\151\x64\x3d\47" . $this->getProperty("\x72\x6d\x5f\x75\x73\x65\162\137\x69\x64") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x72\x6d\x5f\154\145\141\x64\137\163\164\x61\164\x75\x73", "\113")) { $Sql .= "{$con}\x20\x72\155\x5f\x6c\x65\141\144\137\163\x74\141\x74\165\x73\75\x27" . $this->getProperty("\162\x6d\137\154\x65\141\x64\x5f\x73\164\x61\164\165\163") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x72\x6d\137\154\145\141\144\x5f\166\151\145\x77\x5f\x64\141\x74\145\164\151\x6d\145", "\x4b")) { $Sql .= "{$con}\40\x72\155\137\154\x65\x61\144\x5f\x76\x69\145\167\x5f\x64\x61\164\x65\x74\151\x6d\145\x3d\47" . $this->getProperty("\162\155\137\x6c\x65\141\144\x5f\x76\151\145\x77\x5f\x64\x61\x74\x65\x74\x69\x6d\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\162\x6d\137\141\x63\164\151\x6f\x6e\x5f\x64\x61\164\145\164\x69\155\x65", "\x4b")) { $Sql .= "{$con}\x20\162\x6d\137\141\x63\164\151\157\156\137\x64\x61\x74\x65\164\151\155\145\75\x27" . $this->getProperty("\x72\155\x5f\141\143\164\x69\157\156\x5f\144\141\164\x65\164\151\155\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x72\x6d\x5f\x6c\145\141\x64\137\146\x77\144\137\163\x74\x61\x74\165\163", "\x4b")) { $Sql .= "{$con}\40\x72\155\x5f\154\145\141\x64\137\146\167\x64\x5f\x73\164\141\164\165\163\x3d\x27" . $this->getProperty("\162\155\137\154\145\141\x64\x5f\x66\167\144\137\163\x74\141\x74\165\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\162\x6d\137\x6c\145\x61\144\137\146\167\x64\x5f\144\x61\x74\145\164\151\155\145", "\113")) { $Sql .= "{$con}\40\x72\155\x5f\154\145\141\x64\x5f\x66\x77\144\137\144\141\x74\x65\164\151\155\145\75\47" . $this->getProperty("\x72\x6d\137\x6c\145\141\x64\137\146\167\144\137\x64\x61\x74\145\x74\x69\155\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\141\163\x73\151\147\156\x5f\154\x6f\x63\141\x74\151\x6f\156\137\151\144", "\x4b")) { $Sql .= "{$con}\x20\141\x73\163\151\x67\156\137\x6c\157\143\141\x74\x69\157\x6e\x5f\x69\x64\75\x27" . $this->getProperty("\x61\163\163\151\147\156\137\154\157\143\141\x74\x69\157\x6e\x5f\151\144") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x61\163\x73\151\x67\156\x5f\x74\145\x61\155\137\x6c\x65\141\144\x5f\151\144", "\113")) { $Sql .= "{$con}\x20\141\163\x73\x69\x67\x6e\137\164\145\141\x6d\x5f\154\145\141\x64\x5f\151\x64\75\47" . $this->getProperty("\141\x73\163\151\147\156\x5f\x74\145\x61\155\x5f\154\x65\x61\x64\x5f\151\x64") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\141\x73\x73\151\147\156\x5f\x74\145\x61\155\154\x65\x61\x64\x5f\x64\x61\x74\x65\164\151\155\x65", "\113")) { $Sql .= "{$con}\x20\141\x73\x73\x69\147\x6e\x5f\164\145\x61\x6d\x6c\x65\x61\144\x5f\x64\x61\x74\x65\164\151\x6d\145\x3d\x27" . $this->getProperty("\141\x73\163\151\x67\156\137\164\x65\141\155\154\x65\x61\x64\x5f\x64\x61\164\x65\164\x69\155\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\141\163\163\151\147\x6e\x5f\144\141\x74\145\164\x69\x6d\145", "\113")) { $Sql .= "{$con}\40\x61\163\163\x69\147\156\137\x64\141\164\145\164\151\x6d\145\x3d\47" . $this->getProperty("\141\163\x73\x69\147\x6e\137\144\141\x74\x65\164\151\x6d\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x61\163\x73\x69\x67\x6e\x5f\141\147\x65\x6e\x74\x5f\163\164\141\164\165\163", "\x4b")) { $Sql .= "{$con}\x20\141\163\163\151\x67\x6e\x5f\x61\x67\x65\156\164\x5f\163\164\x61\164\x75\x73\75\x27" . $this->getProperty("\141\163\x73\151\147\x6e\x5f\x61\x67\145\x6e\x74\x5f\x73\164\141\164\x75\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x6c\x65\141\144\x5f\163\164\141\164\165\x73", "\113")) { $Sql .= "{$con}\40\154\x65\x61\x64\137\163\x74\x61\x74\x75\163\x3d\x27" . $this->getProperty("\x6c\145\x61\144\x5f\163\x74\x61\x74\x75\x73") . "\47"; $con = "\54"; } $Sql .= "\40\127\110\105\122\x45\x20\x31\75\x31"; if ($this->isPropertySet("\x6c\145\141\144\x73\x5f\x69\144", "\x56")) { $Sql .= "\x20\101\116\x44\x20\x6c\145\x61\144\163\x5f\x69\x64\x3d" . $this->getProperty("\154\x65\141\144\x73\x5f\x69\x64"); } break; case "\x44\x45\x4c": $Sql = "\x55\x50\104\x41\124\x45\40\x72\x73\x5f\x74\x62\154\x5f\154\x65\x61\144\x73\40\x53\x45\124\x20\xa\11\x9\x9\11\11\11\x9\151\x73\101\143\164\x69\x76\145\x3d\x33\12\x9\x9\11\x9\11\11\x57\x48\105\122\x45\12\11\x9\11\x9\11\x9\11\61\75\x31"; $Sql .= "\x20\x41\x4e\x44\x20\x6c\x65\141\x64\x73\x5f\x69\x64\75" . $this->getProperty("\x6c\x65\x61\144\163\x5f\151\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actLeadsAssign($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\x49\116\123\x45\122\124\40\111\116\x54\x4f\x20\162\163\137\164\142\x6c\137\154\x65\x61\144\x73\137\141\163\x73\x69\x67\156\x28\xa\x9\11\11\x9\11\x9\11\141\163\163\151\x67\156\137\154\145\141\144\137\151\144\54\12\11\11\11\11\x9\11\x9\154\x65\x61\x64\x5f\x69\x64\x2c\12\x9\11\x9\x9\x9\x9\x9\141\x73\163\151\147\x6e\137\x75\163\x65\x72\137\151\144\x2c\12\11\x9\x9\x9\x9\x9\11\141\163\x73\x69\147\156\137\146\x72\157\155\x5f\x75\163\x65\162\137\151\144\x2c\12\11\x9\11\x9\11\11\11\x61\x73\163\x69\147\x6e\x5f\142\171\x2c\12\x9\11\11\x9\x9\11\x9\141\163\163\x69\147\x6e\137\144\141\164\x65\54\xa\x9\x9\x9\x9\x9\11\11\141\x73\x73\151\147\x6e\137\164\x69\155\x65\54\xa\11\11\11\11\11\x9\11\141\163\x73\151\x67\156\x5f\154\x65\141\144\137\163\164\x61\164\x75\x73\54\xa\11\11\11\11\x9\11\11\x65\x6e\x74\145\162\171\137\144\141\164\145\x2c\12\x9\11\11\11\x9\11\11\151\x73\101\x63\164\151\x76\x65\54\12\x9\x9\11\11\11\x9\x9\141\x73\163\x69\147\156\137\141\143\x74\x69\x6f\x6e\137\x73\x74\x61\x74\x75\163\x2c\xa\x9\x9\x9\11\11\11\11\x61\143\x74\x69\x6f\156\x5f\144\141\164\x65\54\xa\11\x9\x9\11\x9\11\x9\x61\143\164\151\157\156\x5f\164\151\155\x65\x29\xa\x9\x9\x9\x9\x9\x9\126\101\114\125\105\x53\50"; $Sql .= $this->isPropertySet("\141\x73\163\151\147\x6e\x5f\154\x65\141\x64\x5f\151\x64", "\x56") ? $this->getProperty("\141\163\163\x69\147\x6e\x5f\x6c\x65\141\x64\x5f\151\144") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\x61\x64\x5f\x69\x64", "\126") ? $this->getProperty("\154\x65\141\x64\x5f\151\x64") : "\116\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\x73\x69\x67\156\x5f\165\x73\x65\162\137\151\x64", "\126") ? "\x27" . $this->getProperty("\x61\163\x73\x69\x67\156\x5f\165\163\x65\x72\x5f\151\x64") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\163\163\x69\147\156\137\x66\162\x6f\x6d\x5f\x75\x73\x65\x72\x5f\x69\144", "\126") ? "\47" . $this->getProperty("\141\x73\x73\151\x67\x6e\137\146\162\157\x6d\x5f\x75\x73\145\162\x5f\x69\x64") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x61\163\163\x69\x67\x6e\137\x62\x79", "\x56") ? "\47" . $this->getProperty("\141\163\x73\151\x67\x6e\x5f\x62\171") . "\47" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\163\x73\x69\x67\156\137\144\x61\x74\x65", "\x56") ? "\x27" . $this->getProperty("\x61\x73\163\x69\x67\x6e\137\x64\141\164\145") . "\47" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\x73\163\x69\147\156\x5f\x74\x69\155\x65", "\x56") ? "\x27" . $this->getProperty("\x61\x73\x73\x69\147\x6e\137\x74\151\x6d\145") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x73\163\x69\x67\x6e\137\154\145\141\x64\x5f\163\x74\141\164\165\x73", "\x56") ? "\x27" . $this->getProperty("\141\163\163\x69\147\x6e\137\154\145\x61\x64\x5f\x73\x74\141\164\165\163") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\145\156\x74\x65\162\x79\x5f\x64\141\164\x65", "\126") ? "\47" . $this->getProperty("\x65\x6e\164\145\162\171\137\144\141\x74\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x69\163\x41\143\164\151\166\x65", "\x56") ? "\47" . $this->getProperty("\x69\163\x41\x63\164\151\166\145") . "\47" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\163\x73\151\147\156\x5f\x61\143\x74\x69\157\x6e\137\163\164\141\164\x75\163", "\126") ? "\x27" . $this->getProperty("\141\x73\x73\151\x67\x6e\x5f\141\143\164\x69\x6f\x6e\137\163\164\x61\x74\165\163") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\141\x63\x74\151\x6f\156\137\144\141\x74\145", "\x56") ? "\47" . $this->getProperty("\141\x63\164\151\157\x6e\x5f\x64\x61\x74\145") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\143\164\151\x6f\156\x5f\x74\x69\155\x65", "\126") ? "\x27" . $this->getProperty("\x61\143\164\151\x6f\156\x5f\x74\151\x6d\x65") . "\47" : "\x4e\125\114\x4c"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\x44\x41\x54\x45\40\162\163\137\164\x62\x6c\137\154\145\x61\144\163\x5f\x61\163\x73\151\x67\x6e\x20\123\x45\x54\x20"; if ($this->isPropertySet("\141\x73\163\x69\x67\156\x5f\x6c\x65\x61\x64\x5f\163\x74\x61\164\165\x73", "\x4b")) { $Sql .= "{$con}\x20\x61\163\x73\x69\x67\156\x5f\154\x65\x61\x64\x5f\x73\164\x61\x74\165\x73\75\x27" . $this->getProperty("\x61\163\163\151\147\x6e\x5f\x6c\x65\141\144\x5f\x73\164\x61\164\x75\163") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x69\163\x41\x63\164\151\x76\x65", "\x4b")) { $Sql .= "{$con}\40\x69\x73\x41\143\x74\151\166\x65\x3d\47" . $this->getProperty("\x69\163\101\x63\x74\x69\x76\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\141\x73\163\151\147\x6e\x5f\141\143\x74\x69\157\156\137\163\x74\x61\164\x75\163", "\113")) { $Sql .= "{$con}\x20\141\163\163\x69\147\x6e\137\x61\143\164\x69\157\156\x5f\x73\164\x61\x74\x75\x73\x3d\x27" . $this->getProperty("\x61\163\x73\151\147\156\137\141\143\x74\151\157\156\137\163\x74\141\x74\x75\163") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x61\x63\x74\x69\157\156\137\x64\141\x74\x65", "\x4b")) { $Sql .= "{$con}\x20\x61\x63\x74\x69\157\156\137\x64\x61\164\x65\x3d\47" . $this->getProperty("\141\143\x74\151\157\156\x5f\x64\x61\164\x65") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\141\x63\x74\151\157\x6e\137\x74\x69\x6d\145", "\113")) { $Sql .= "{$con}\x20\141\143\164\151\157\x6e\137\x74\151\155\x65\x3d\47" . $this->getProperty("\141\x63\164\151\x6f\156\137\x74\x69\155\145") . "\x27"; $con = "\x2c"; } $Sql .= "\40\x57\110\x45\x52\105\x20\61\75\61"; if ($this->isPropertySet("\141\163\163\x69\x67\156\137\x6c\x65\x61\144\137\151\144", "\126")) { $Sql .= "\x20\101\x4e\104\40\141\163\x73\151\147\156\137\x6c\x65\141\x64\x5f\x69\x64\75" . $this->getProperty("\x61\x73\x73\x69\147\x6e\137\154\x65\141\144\137\151\x64"); } break; case "\x44\x45\x4c": $Sql = "\x55\120\x44\101\x54\105\x20\162\163\137\x74\x62\154\x5f\x6c\145\x61\144\163\137\x61\163\163\x69\147\x6e\40\x53\105\x54\40\xa\x9\11\x9\x9\x9\11\11\x69\163\101\x63\164\x69\x76\145\x3d\63\12\x9\x9\x9\11\x9\x9\127\110\x45\x52\x45\12\11\11\11\11\x9\11\x9\61\75\61"; $Sql .= "\x20\x41\116\104\x20\141\x73\163\151\147\156\x5f\154\145\x61\x64\x5f\151\x64\x3d" . $this->getProperty("\141\x73\163\x69\147\x6e\137\154\x65\x61\144\137\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actLeadComments($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\111": $Sql = "\111\x4e\123\x45\x52\124\x20\111\116\x54\117\x20\162\x73\137\164\x62\154\x5f\x6c\145\141\144\137\x63\157\x6d\x6d\145\156\x74\x73\50\12\x9\x9\11\x9\x9\x9\11\154\x65\x61\144\137\143\157\155\x6d\x65\x6e\164\x5f\151\x64\x2c\12\11\11\11\x9\11\11\11\x6c\x65\141\x64\163\137\151\x64\x2c\12\11\x9\11\11\11\11\x9\x61\163\163\151\x67\x6e\137\x6c\x65\x61\144\x5f\151\x64\x2c\xa\x9\x9\11\x9\x9\x9\11\165\163\x65\x72\137\x69\144\x2c\xa\x9\11\11\x9\x9\11\x9\154\x65\141\x64\x5f\x63\x6f\x6d\155\145\x6e\x74\54\xa\x9\11\11\11\x9\11\x9\141\163\x73\x69\147\x6e\137\154\145\x61\x64\x5f\x73\164\141\164\x75\x73\54\12\11\11\x9\11\x9\11\11\145\156\164\x65\162\x79\137\x64\141\x74\x65\54\12\11\11\11\x9\11\x9\11\x69\x73\x41\x63\x74\151\166\145\51\xa\x9\11\x9\11\x9\11\126\x41\x4c\125\x45\123\x28"; $Sql .= $this->isPropertySet("\154\x65\x61\x64\x5f\x63\157\155\155\145\x6e\x74\137\151\x64", "\x56") ? $this->getProperty("\154\145\x61\144\x5f\x63\x6f\x6d\155\145\x6e\x74\137\151\x64") : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\x65\141\x64\x73\137\151\x64", "\x56") ? $this->getProperty("\x6c\145\x61\x64\x73\x5f\x69\x64") : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\x73\163\x69\x67\156\137\x6c\x65\x61\144\x5f\151\x64", "\x56") ? "\x27" . $this->getProperty("\x61\x73\x73\x69\x67\156\137\154\x65\x61\144\x5f\x69\144") . "\47" : "\x4e\x55\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\165\x73\x65\162\137\x69\144", "\126") ? "\x27" . $this->getProperty("\165\163\145\x72\137\151\x64") . "\47" : "\116\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x6c\145\x61\x64\137\x63\157\155\155\145\156\x74", "\126") ? "\x27" . $this->getProperty("\x6c\x65\x61\x64\137\x63\157\155\x6d\x65\x6e\x74") . "\47" : "\116\125\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x61\x73\x73\x69\x67\x6e\137\154\x65\141\x64\137\x73\164\141\164\x75\163", "\126") ? "\x27" . $this->getProperty("\141\163\x73\x69\x67\156\x5f\x6c\x65\x61\144\x5f\x73\x74\141\x74\165\163") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\145\156\x74\145\x72\171\137\144\141\164\x65", "\126") ? "\x27" . $this->getProperty("\x65\x6e\x74\145\162\171\x5f\x64\x61\164\x65") . "\x27" : "\116\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\163\101\x63\164\151\x76\145", "\126") ? "\47" . $this->getProperty("\x69\163\101\143\164\151\166\x65") . "\47" : "\x4e\125\x4c\x4c"; $Sql .= "\51"; break; case "\x55": break; case "\104\x45\x4c": $Sql = "\125\x50\104\101\124\105\x20\162\163\137\x74\x62\x6c\137\154\145\x61\x64\x5f\x63\x6f\x6d\x6d\x65\x6e\x74\163\x20\x53\105\124\40\12\x9\11\x9\11\x9\11\11\151\163\x41\x63\164\x69\166\x65\75\63\12\11\11\x9\11\x9\x9\127\x48\x45\122\105\12\11\x9\x9\x9\x9\11\x9\x31\x3d\61"; $Sql .= "\40\101\116\x44\40\x6c\x65\141\144\x5f\x63\x6f\155\155\145\156\164\137\151\144\x3d" . $this->getProperty("\x6c\x65\x61\144\137\x63\x6f\155\x6d\x65\x6e\164\137\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actSalary($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\x45\x52\x54\x20\x49\116\x54\x4f\40\162\x73\x5f\164\x62\154\x5f\165\x73\x65\x72\x5f\x73\x61\x6c\x61\x72\x79\50\12\11\x9\x9\11\x9\11\x9\x75\x73\145\x72\x5f\163\x61\154\141\x72\x79\137\151\x64\x2c\12\11\11\x9\11\x9\x9\11\x75\163\145\x72\137\x69\x64\54\xa\11\x9\x9\x9\x9\x9\x9\x73\x61\154\x61\x72\171\x5f\141\155\x6f\165\156\x74\54\xa\x9\x9\11\x9\11\x9\11\x66\157\x6f\144\x5f\141\154\x6f\x77\x61\x6e\143\145\x2c\12\11\11\x9\x9\11\11\11\150\x6f\x75\x73\x69\156\147\137\x61\x6c\157\167\141\x6e\x63\x65\x2c\xa\11\11\11\11\11\x9\x9\164\x72\x61\156\163\x70\157\x72\x74\137\x61\x6c\157\167\141\x6e\x63\x65\x2c\xa\11\11\11\11\x9\x9\x9\x73\x65\x63\x75\x72\151\x74\171\137\x61\154\x6f\x77\141\x6e\x63\x65\x2c\12\11\11\11\x9\11\11\11\163\150\x69\x66\x74\137\x61\154\157\167\141\156\x63\145\54\xa\x9\x9\x9\11\x9\11\11\150\141\x72\144\163\150\151\160\137\141\154\x6f\167\x61\156\143\x65\54\12\x9\x9\11\x9\11\11\11\155\157\142\x69\x6c\x65\x5f\141\x6c\157\x77\x61\x6e\x63\x65\x2c\xa\x9\x9\x9\x9\x9\x9\11\x61\x70\160\x6c\x79\137\x66\x72\x6f\x6d\x2c\12\11\11\11\x9\x9\11\x9\x73\x61\154\x61\x72\171\x5f\x73\164\141\x74\x75\163\x2c\12\x9\11\11\11\x9\11\11\x65\x6e\164\x65\162\171\137\x64\x61\164\x65\x2c\12\x9\11\11\11\x9\11\11\151\163\x41\143\164\x69\x76\145\51\12\11\x9\11\x9\11\x9\126\101\114\125\105\123\50"; $Sql .= $this->isPropertySet("\165\x73\145\x72\x5f\x73\141\154\x61\162\x79\137\x69\x64", "\x56") ? $this->getProperty("\x75\163\x65\162\137\x73\x61\154\141\x72\x79\137\x69\x64") : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\165\163\x65\162\137\x69\144", "\126") ? $this->getProperty("\165\163\145\162\137\151\x64") : "\x4e\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\163\x61\154\141\x72\x79\x5f\141\x6d\x6f\x75\x6e\164", "\x56") ? "\x27" . $this->getProperty("\x73\x61\154\141\x72\171\x5f\141\x6d\x6f\x75\x6e\x74") . "\47" : "\116\x55\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x66\157\x6f\x64\x5f\141\x6c\157\x77\x61\x6e\x63\145", "\126") ? "\47" . $this->getProperty("\146\157\x6f\144\137\141\x6c\157\x77\x61\x6e\143\x65") . "\47" : "\x4e\125\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\150\x6f\165\163\151\x6e\x67\137\x61\154\157\167\141\x6e\x63\x65", "\126") ? "\47" . $this->getProperty("\150\x6f\x75\x73\151\x6e\x67\137\141\x6c\x6f\x77\141\x6e\x63\145") . "\x27" : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\164\162\141\x6e\x73\x70\157\162\x74\137\x61\x6c\157\167\141\x6e\x63\145", "\126") ? "\x27" . $this->getProperty("\164\162\141\x6e\163\160\157\162\164\137\141\x6c\x6f\167\x61\156\x63\x65") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\163\145\143\165\162\151\x74\x79\137\x61\154\157\x77\x61\156\143\x65", "\126") ? "\x27" . $this->getProperty("\x73\145\x63\165\x72\x69\x74\171\137\x61\x6c\157\167\x61\156\143\145") . "\x27" : "\x4e\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x73\150\151\x66\x74\137\x61\x6c\157\x77\x61\x6e\143\x65", "\126") ? "\47" . $this->getProperty("\x73\x68\x69\x66\x74\137\141\154\x6f\x77\x61\x6e\143\x65") . "\x27" : "\116\x55\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\150\x61\x72\144\x73\150\151\x70\x5f\141\x6c\157\167\x61\156\143\x65", "\x56") ? "\47" . $this->getProperty("\x68\141\162\x64\163\150\151\160\x5f\x61\x6c\157\x77\x61\156\x63\145") . "\x27" : "\116\125\114\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x6d\157\142\151\154\145\x5f\141\154\x6f\167\x61\x6e\x63\x65", "\x56") ? "\x27" . $this->getProperty("\x6d\x6f\x62\x69\x6c\x65\x5f\141\x6c\x6f\x77\x61\156\x63\x65") . "\47" : "\x4e\x55\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\141\x70\x70\154\171\x5f\x66\x72\x6f\x6d", "\x56") ? "\47" . $this->getProperty("\141\x70\x70\x6c\x79\x5f\146\x72\157\x6d") . "\x27" : "\x4e\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x73\x61\154\141\162\171\x5f\x73\x74\141\164\x75\x73", "\126") ? "\x27" . $this->getProperty("\163\141\154\141\162\x79\137\163\x74\x61\164\x75\163") . "\47" : "\61"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\x6e\x74\145\x72\171\137\144\141\x74\x65", "\126") ? "\47" . $this->getProperty("\145\x6e\x74\145\x72\x79\137\x64\141\164\145") . "\x27" : "\x4e\125\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\151\x73\101\x63\164\x69\x76\145", "\126") ? "\47" . $this->getProperty("\x69\163\x41\x63\x74\x69\x76\145") . "\x27" : "\x31"; $Sql .= "\x29"; break; case "\125": $Sql = "\125\x50\x44\101\x54\105\40\162\x73\x5f\x74\142\x6c\137\x75\163\x65\162\x5f\x73\x61\x6c\x61\x72\x79\40\x53\x45\x54\x20"; if ($this->isPropertySet("\x73\x61\x6c\x61\162\x79\137\x61\x6d\157\165\x6e\164", "\113")) { $Sql .= "{$con}\x20\x73\141\154\141\x72\x79\x5f\141\x6d\157\x75\x6e\x74\x3d\47" . $this->getProperty("\x73\x61\154\x61\162\171\137\x61\x6d\x6f\x75\156\x74") . "\47"; $con = "\54"; } if ($this->isPropertySet("\163\141\154\x61\162\171\137\x61\155\157\x75\156\x74", "\x4b")) { $Sql .= "{$con}\40\163\141\154\141\162\171\x5f\141\155\x6f\x75\x6e\x74\x3d\x27" . $this->getProperty("\163\141\x6c\141\x72\x79\137\141\x6d\157\x75\156\164") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\146\157\157\144\137\141\x6c\157\x77\141\156\143\145", "\x4b")) { $Sql .= "{$con}\x20\146\x6f\x6f\x64\137\141\154\157\167\x61\x6e\x63\145\x3d\47" . $this->getProperty("\146\x6f\157\x64\137\141\154\157\167\141\x6e\143\145") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x68\157\x75\163\151\x6e\x67\x5f\x61\154\157\x77\x61\156\x63\x65", "\x4b")) { $Sql .= "{$con}\40\150\157\x75\x73\x69\x6e\x67\137\x61\154\157\167\141\x6e\143\145\75\x27" . $this->getProperty("\150\157\x75\163\151\156\147\137\141\x6c\x6f\x77\x61\x6e\x63\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x74\x72\141\x6e\163\x70\157\x72\x74\137\x61\154\x6f\167\141\x6e\x63\x65", "\x4b")) { $Sql .= "{$con}\x20\164\x72\141\156\x73\x70\157\162\x74\x5f\x61\x6c\157\167\x61\x6e\x63\x65\75\47" . $this->getProperty("\164\x72\x61\156\163\x70\157\x72\164\x5f\141\x6c\157\167\141\x6e\x63\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\163\145\x63\165\162\151\164\x79\137\141\154\157\167\141\x6e\x63\145", "\113")) { $Sql .= "{$con}\40\x73\145\143\x75\162\x69\x74\x79\137\141\154\157\x77\141\156\143\x65\75\x27" . $this->getProperty("\x73\x65\143\165\162\x69\x74\x79\137\141\x6c\x6f\167\x61\156\143\145") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x73\150\x69\146\164\137\x61\x6c\x6f\x77\x61\156\x63\145", "\113")) { $Sql .= "{$con}\x20\x73\x68\x69\x66\164\x5f\141\154\x6f\167\x61\x6e\x63\145\75\47" . $this->getProperty("\x73\150\x69\x66\x74\x5f\x61\154\x6f\167\x61\156\x63\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x68\141\x72\x64\x73\150\151\160\x5f\141\x6c\157\x77\x61\x6e\x63\145", "\113")) { $Sql .= "{$con}\x20\x68\x61\162\144\x73\150\x69\160\x5f\141\x6c\x6f\x77\141\156\143\145\75\x27" . $this->getProperty("\150\141\162\144\x73\x68\151\x70\x5f\x61\x6c\x6f\x77\141\x6e\143\x65") . "\47"; $con = "\x2c"; } if ($this->isPropertySet("\x6d\157\x62\x69\154\x65\x5f\x61\154\157\167\x61\156\143\145", "\x4b")) { $Sql .= "{$con}\40\x6d\x6f\x62\151\154\x65\x5f\141\154\x6f\x77\x61\156\x63\x65\x3d\47" . $this->getProperty("\x6d\157\x62\x69\x6c\x65\x5f\141\x6c\157\x77\141\156\143\x65") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x61\x70\160\x6c\x79\x5f\x66\162\x6f\x6d", "\113")) { $Sql .= "{$con}\x20\141\x70\160\154\171\137\x66\x72\x6f\155\75\47" . $this->getProperty("\x61\160\160\x6c\x79\137\146\x72\x6f\155") . "\47"; $con = "\54"; } if ($this->isPropertySet("\x69\x73\x41\x63\164\151\x76\x65", "\x4b")) { $Sql .= "{$con}\40\151\x73\x41\143\164\x69\166\x65\75\47" . $this->getProperty("\x69\163\101\x63\164\x69\166\145") . "\x27"; $con = "\x2c"; } if ($this->isPropertySet("\x73\x61\x6c\x61\162\171\x5f\163\x74\x61\x74\165\163", "\113")) { $Sql .= "{$con}\x20\163\x61\154\141\162\x79\137\163\164\141\x74\165\163\75\x27" . $this->getProperty("\163\141\154\x61\x72\x79\137\163\x74\141\x74\x75\163") . "\47"; $con = "\x2c"; } $Sql .= "\40\x57\x48\105\x52\105\x20\61\x3d\x31"; if ($this->isPropertySet("\165\x73\x65\x72\137\151\144", "\126")) { $Sql .= "\40\x41\116\x44\x20\x75\163\x65\x72\137\151\144\75" . $this->getProperty("\x75\163\145\x72\x5f\x69\x64"); } if ($this->isPropertySet("\165\163\145\162\137\x73\141\154\141\x72\x79\x5f\x69\144", "\x56")) { $Sql .= "\x20\x41\x4e\104\40\165\163\145\x72\137\x73\141\154\x61\162\171\x5f\x69\144\75" . $this->getProperty("\165\163\x65\162\x5f\163\x61\154\x61\x72\171\x5f\151\144"); } break; case "\x44\105\x4c": $Sql = "\x55\120\104\101\124\105\40\x72\x73\137\164\x62\154\137\x75\163\145\162\137\163\x61\154\141\162\171\40\x53\x45\x54\40\12\11\x9\x9\11\x9\x9\x9\151\163\101\143\x74\x69\166\x65\x3d\x33\xa\11\x9\x9\x9\x9\x9\127\x48\105\122\105\xa\x9\11\11\11\x9\11\x9\x31\75\61"; $Sql .= "\40\x41\x4e\104\40\165\x73\x65\162\137\163\141\154\x61\162\x79\137\x69\144\75" . $this->getProperty("\x75\163\x65\162\137\x73\x61\154\141\x72\171\x5f\x69\144"); break; default: break; } return $this->dbQuery($Sql); } public function actSalaryBonus($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\x4e\123\105\122\x54\x20\111\x4e\124\x4f\40\x72\x73\137\x74\x62\x6c\137\x75\163\x65\162\x5f\163\x61\x6c\x61\162\x79\x5f\x62\157\x6e\165\x73\x28\xa\x9\11\x9\x9\11\x9\11\165\163\x65\x72\x5f\x62\157\156\165\163\137\151\x64\54\12\x9\x9\11\11\11\x9\11\165\x73\145\x72\137\x69\144\x2c\12\11\11\x9\x9\x9\11\11\142\157\x6e\165\x73\137\x61\x6d\x6f\x75\156\164\x2c\12\x9\x9\11\11\11\11\11\x62\x6f\x6e\165\x73\137\163\x74\x61\x74\165\163\x2c\xa\11\x9\x9\11\x9\x9\11\145\156\164\145\162\x79\137\x64\x61\x74\145\54\xa\x9\11\11\x9\11\11\11\x69\163\x41\143\164\x69\166\145\x29\xa\11\x9\x9\11\x9\11\126\101\114\x55\105\x53\50"; $Sql .= $this->isPropertySet("\x75\x73\x65\x72\x5f\x62\157\x6e\165\163\x5f\x69\x64", "\126") ? $this->getProperty("\165\x73\x65\162\x5f\x62\x6f\156\x75\x73\x5f\x69\x64") : "\116\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x75\x73\145\x72\137\x69\144", "\126") ? $this->getProperty("\165\163\145\162\x5f\x69\144") : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\142\x6f\x6e\165\x73\137\141\155\x6f\165\156\164", "\126") ? "\47" . $this->getProperty("\x62\157\156\165\x73\x5f\x61\155\157\165\156\164") . "\47" : "\116\x55\114\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\142\157\x6e\165\163\x5f\x73\164\x61\x74\165\163", "\126") ? "\x27" . $this->getProperty("\142\157\156\165\x73\137\163\x74\141\x74\165\163") . "\x27" : "\x31"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x65\x6e\164\145\162\171\x5f\144\x61\164\x65", "\x56") ? "\x27" . $this->getProperty("\x65\x6e\164\x65\x72\171\x5f\144\141\x74\x65") . "\x27" : "\116\125\x4c\114"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\151\x73\x41\143\x74\x69\166\x65", "\126") ? "\47" . $this->getProperty("\x69\163\101\x63\x74\151\166\x65") . "\47" : "\61"; $Sql .= "\x29"; break; case "\x55": $Sql = "\125\120\x44\x41\x54\105\x20\x72\163\x5f\164\x62\x6c\x5f\x75\163\145\x72\137\x73\141\x6c\x61\x72\171\137\x62\157\156\x75\163\x20\x53\105\x54\x20"; if ($this->isPropertySet("\142\157\x6e\165\x73\137\x61\155\x6f\165\156\x74", "\x4b")) { $Sql .= "{$con}\40\x62\x6f\156\x75\x73\x5f\141\x6d\x6f\x75\156\164\x3d\47" . $this->getProperty("\x62\x6f\156\x75\x73\x5f\x61\x6d\x6f\x75\156\164") . "\x27"; $con = "\54"; } if ($this->isPropertySet("\x69\163\x41\143\164\x69\166\145", "\113")) { $Sql .= "{$con}\40\x69\x73\x41\143\164\x69\x76\x65\75\47" . $this->getProperty("\x69\163\x41\x63\164\151\166\145") . "\47"; $con = "\54"; } if ($this->isPropertySet("\142\157\x6e\165\x73\x5f\x73\164\141\164\x75\x73", "\113")) { $Sql .= "{$con}\x20\142\x6f\156\x75\x73\x5f\x73\164\x61\164\x75\163\x3d\47" . $this->getProperty("\x62\157\x6e\x75\x73\x5f\x73\x74\x61\x74\165\x73") . "\x27"; $con = "\54"; } $Sql .= "\40\127\110\x45\x52\105\x20\61\x3d\x31"; if ($this->isPropertySet("\x75\x73\x65\x72\137\x62\157\156\x75\x73\x5f\151\x64", "\x56")) { $Sql .= "\x20\x41\x4e\x44\40\165\x73\x65\162\137\142\157\156\x75\163\137\x69\x64\75" . $this->getProperty("\x75\x73\x65\x72\137\x62\157\x6e\165\x73\137\x69\x64"); } break; case "\x44\x45\114": $Sql = "\x55\x50\104\x41\x54\x45\40\x72\x73\137\x74\x62\x6c\x5f\x75\163\x65\x72\x5f\x73\x61\x6c\x61\x72\x79\137\x62\x6f\156\x75\x73\x20\123\x45\x54\x20\12\11\11\x9\11\11\x9\11\151\x73\x41\x63\x74\151\x76\145\x3d\x33\xa\x9\x9\11\11\11\x9\127\110\x45\x52\105\12\11\x9\x9\x9\11\11\x9\x31\75\61"; $Sql .= "\x20\101\x4e\x44\x20\165\x73\145\x72\137\x62\157\x6e\x75\x73\x5f\151\x64\x3d" . $this->getProperty("\x75\x73\145\162\x5f\x62\x6f\156\x75\x73\137\151\144"); break; default: break; } return $this->dbQuery($Sql); } public function actProspectDetails($mode = "\111") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\x49\116\x53\x45\x52\124\x20\111\x4e\x54\117\x20\x72\x73\137\164\x62\154\137\x70\162\157\163\160\x65\x63\x74\x5f\x64\x65\164\x61\151\x6c\x73\50\12\11\11\11\11\11\x9\11\x70\162\x6f\x73\160\145\143\x74\137\151\x64\54\xa\x9\x9\x9\11\11\x9\x9\x70\162\x6f\163\160\x65\x63\164\x5f\x6e\x61\x6d\145\x2c\12\11\x9\x9\11\x9\11\x9\160\162\x6f\163\160\x65\143\164\137\145\155\141\151\x6c\54\xa\11\11\11\11\11\x9\x9\x70\x72\157\163\x70\145\143\x74\137\160\x68\157\156\145\x2c\xa\11\11\x9\x9\11\11\11\160\x72\x6f\x73\160\145\143\164\x5f\155\x73\x67\x2c\12\x9\x9\11\x9\x9\11\11\160\x72\157\163\160\x65\x63\164\x5f\x66\x6f\x72\155\151\144\x2c\12\x9\x9\11\11\x9\x9\x9\151\163\x41\143\x74\x69\166\145\51\12\11\x9\x9\11\11\x9\126\x41\114\125\105\x53\50"; $Sql .= $this->isPropertySet("\160\x72\157\163\x70\x65\x63\x74\x5f\151\144", "\x56") ? $this->getProperty("\x70\x72\157\163\x70\145\x63\x74\x5f\x69\144") : "\x4e\125\114\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\x70\x72\x6f\163\160\145\143\164\x5f\156\141\x6d\145", "\x56") ? "\x27" . $this->getProperty("\x70\162\x6f\163\x70\145\143\164\x5f\x6e\x61\x6d\145") . "\47" : "\116\125\114\114"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\160\162\157\x73\160\x65\143\164\x5f\145\x6d\x61\x69\x6c", "\x56") ? "\47" . $this->getProperty("\x70\x72\157\x73\160\x65\x63\x74\x5f\x65\155\141\151\154") . "\x27" : "\61"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\160\162\x6f\163\160\x65\x63\x74\137\x70\150\157\156\x65", "\126") ? "\x27" . $this->getProperty("\160\x72\157\163\x70\x65\x63\x74\x5f\x70\150\x6f\156\x65") . "\x27" : "\116\x55\x4c\x4c"; $Sql .= "\54"; $Sql .= $this->isPropertySet("\160\162\157\x73\160\145\143\164\137\x6d\163\x67", "\126") ? "\47" . $this->getProperty("\x70\162\x6f\163\160\x65\143\x74\x5f\155\x73\x67") . "\47" : "\116\x55\x4c\x4c"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\160\x72\x6f\x73\x70\x65\x63\x74\137\146\x6f\x72\x6d\x69\144", "\x56") ? "\47" . $this->getProperty("\160\x72\157\x73\160\145\143\x74\x5f\x66\x6f\x72\x6d\x69\x64") . "\47" : "\x34"; $Sql .= "\x2c"; $Sql .= $this->isPropertySet("\x69\x73\x41\x63\x74\151\166\x65", "\x56") ? "\x27" . $this->getProperty("\x69\163\x41\143\x74\151\x76\145") . "\47" : "\61"; $Sql .= "\51"; break; case "\125": $Sql = "\x55\x50\104\x41\x54\x45\40\x72\163\137\164\142\154\x5f\160\162\157\x73\x70\x65\x63\164\x5f\144\x65\164\x61\151\154\163\x20\x53\x45\x54\40"; if ($this->isPropertySet("\151\x73\101\143\164\151\166\x65", "\113")) { $Sql .= "{$con}\40\x69\x73\x41\x63\164\x69\x76\145\75\x27" . $this->getProperty("\151\x73\x41\143\164\x69\x76\x65") . "\x27"; $con = "\x2c"; } $Sql .= "\x20\x57\x48\105\122\x45\x20\x31\x3d\61"; if ($this->isPropertySet("\160\x72\x6f\163\160\145\143\164\137\x69\x64", "\x56")) { $Sql .= "\40\x41\116\x44\x20\x70\x72\157\x73\x70\x65\x63\164\x5f\x69\x64\75" . $this->getProperty("\x70\162\x6f\163\160\x65\143\164\137\151\x64"); } break; case "\104\x45\114": $Sql = "\125\x50\104\101\124\105\x20\x72\163\137\164\x62\x6c\137\x70\x72\157\x73\x70\x65\143\x74\137\144\x65\x74\141\x69\x6c\163\40\123\x45\124\40\xa\x9\11\x9\x9\11\x9\11\151\163\x41\143\x74\x69\166\x65\x3d\63\xa\11\x9\11\11\x9\11\x57\110\x45\122\x45\xa\11\11\11\x9\x9\x9\11\x31\x3d\x31"; $Sql .= "\x20\101\116\x44\40\160\162\x6f\163\160\145\x63\x74\x5f\x69\x64\x3d" . $this->getProperty("\160\162\157\163\160\145\143\164\137\x69\x64"); break; default: break; } return $this->dbQuery($Sql); } public function actAdvanceSalaryDetail($mode = "\x49") { $mode = strtoupper($mode); switch ($mode) { case "\x49": $Sql = "\111\x4e\x53\105\x52\124\x20\x49\x4e\124\x4f\40\162\x73\137\164\142\x6c\137\165\163\x65\x72\x5f\141\144\x76\141\156\x63\x65\x5f\x73\141\154\x61\x72\171\50\xa\x9\11\x9\11\x9\x9\11\141\x64\x76\x61\x6e\143\145\137\163\x61\154\x61\x72\171\x5f\x69\144\x2c\xa\x9\11\x9\11\11\x9\x9\x75\x73\145\162\x5f\x69\x64\54\xa\11\x9\11\x9\x9\11\11\x73\x61\154\141\x72\171\x5f\x61\x6d\157\165\x6e\x74\x2c\xa\11\11\x9\x9\11\x9\11\160\x61\171\151\x6e\x67\x5f\x64\141\x74\145\x2c\12\11\x9\11\11\11\11\x9\141\144\166\141\x6e\143\x65\137\155\x6f\156\164\x68\x2c\xa\11\x9\x9\x9\11\11\x9\141\x64\166\141\156\143\145\137\x72\x65\141\163\157\x6e\x2c\xa\11\x9\11\x9\11\x9\11\x70\141\x79\142\x61\x63\x6b\137\x6f\x70\164\x69\x6f\156\54\xa\11\x9\x9\x9\x9\x9\x9\x70\x61\171\x62\141\x63\153\137\151\156\x5f\155\x6f\156\164\150\163\54\xa\11\x9\x9\11\11\x9\11\141\144\166\141\156\x63\145\137\x73\x61\x6c\x61\162\171\x5f\x73\164\141\164\165\x73\54\12\11\11\x9\11\11\x9\11\x65\x6e\164\x65\162\171\x5f\144\141\x74\x65\x2c\12\x9\x9\11\x9\x9\x9\x9\151\163\x41\143\164\151\166\145\51\12\x9\x9\x9\11\11\x9\x56\x41\x4c\125