function DontPayItem() { $obj = new manage_writ_item(); $return = $obj->DontPayItems($_POST["writ_id"], $_POST["writ_ver"], $_POST["staff_id"]); echo Response::createObjectiveResponse($return, $return ? $obj->writ_id : ExceptionHandler::popExceptionDescription()); die; }
function removebank() { $return = manage_bank::Remove($_POST["bid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function calculate() { $return = manage_writ_item::compute_writ_items($_POST["writ_id"], $_POST["writ_ver"], $_POST["staff_id"]); if ($return) { $return = 'true'; } else { $return = 'false'; } echo Response::createObjectiveResponse($return, $return ? $_POST["writ_id"] : ExceptionHandler::popExceptionDescription()); die; }
function DeleteStep() { $result = WFM_FlowSteps::RemoveFlowStep($_POST["StepRowID"]); echo Response::createObjectiveResponse($result, ExceptionHandler::popExceptionDescription()); die; }
function removeSIR() { $return = manage_salary_item_report::Remove($_POST["sid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function DelAllPrn() { $obj = new manage_evaluation_list_items(); $obj->list_id = $_POST["list_id"]; $return = $obj->Remove("true"); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function removeSI() { $return = manage_subInfo::Remove($_POST["sid"], $_POST["pty"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function removeBranch() { $return = manage_study_branch::Remove($_POST["sfid"], $_POST["sbid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function ProcessArrearPayment() { $payArrCalcObj = new manage_arrear_pay_calculation(); $payArrCalcObj->__YEAR = $_POST["pay_year"]; $payArrCalcObj->__MONTH = 12; $start_date = $_POST["pay_year"] . "/01/01"; $end_date = $_POST["pay_year"] . "/12/" . DateModules::DaysOfMonth($payArrCalcObj->__YEAR, 12); $payArrCalcObj->__CALC_NORMALIZE_TAX = isset($_POST['tax_normalize']) ? "1" : "0"; $payArrCalcObj->__START_NORMALIZE_TAX_MONTH = 1; $payArrCalcObj->__START_NORMALIZE_TAX_YEAR = $_POST["pay_year"]; $payArrCalcObj->__BACKPAY_BEGIN_FROM = 1; $payArrCalcObj->month_start = DateModules::shamsi_to_miladi($start_date); $payArrCalcObj->month_end = DateModules::shamsi_to_miladi($end_date); $payArrCalcObj->__MSG = $_POST["message"]; // <editor-fold defaultstate="collapsed" desc="Create Where" > $where = "1=1"; $whereParam = array(); if (!empty($_POST["person_type"])) { $where .= " AND p.person_type=:ptype"; $whereParam[":ptype"] = $_POST["person_type"]; } if (!empty($_POST["from_staff_id"])) { $where .= " AND s.staff_id >= :fsid"; $whereParam[":fsid"] = $_POST["from_staff_id"]; } if (!empty($_POST["to_staff_id"])) { $where .= " AND s.staff_id <= :tsid"; $whereParam[":tsid"] = $_POST["to_staff_id"]; } if (!empty($_POST["from_cost_center_id"])) { $where .= " AND w.cost_center_id >= :fccid"; $whereParam[":fccid"] = $_POST["from_cost_center_id"]; } if (!empty($_POST["to_cost_center_id"])) { $where .= " AND w.cost_center_id <= :tccid"; $whereParam[":tccid"] = $_POST["to_cost_center_id"]; } if (!isset($_POST["ouid"])) { $result = QueryHelper::MK_org_units($_POST["ouid"], true); $where .= " AND " . $result["where"]; $whereParams = array_merge($whereParam, $result["param"]); } // </editor-fold> $payArrCalcObj->__WHERE = $where; $payArrCalcObj->__WHEREPARAM = $whereParam; $res = $payArrCalcObj->run_back(); if (!$res) { echo Response::createObjectiveResponse(false, ExceptionHandler::popExceptionDescription()); die; } else { echo Response::createObjectiveResponse(true, $payArrCalcObj->success_counter . "_" . $payArrCalcObj->fail_counter); die; } }
function deleteMember() { if ($_POST['list_type'] == MISSION_LIST) { $obj = new manage_mission_list_items(); } else { $obj = new manage_pay_get_list_items(); } $obj->list_id = $_POST["list_id"]; $obj->list_row_no = $_POST["rowNo"]; $return = $obj->Remove(); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function removeCostException() { $return = manage_cost_center_exception::Remove($_POST["sid"], $_POST["pty"], $_POST["cid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function removeUni() { $return = manage_University::Remove($_POST["uid"], $_POST["cid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }
function make_unsuccess_rows($person_rec) { $this->u_count++; fwrite($this->u_content, "\r\n\t\t\t<tr style='font-family:tahoma;font-size:11px;font-weight:bold;color:#1A58A6;border-bottom:solid 1px #1A58A6;'>\r\n\t <td height=21px>شماره خطا </td>\r\n\t <td>شماره شناسايي :{$person_rec['staff_id']}</td>\r\n\t <td>نام : {$person_rec['pfname']}</td>\r\n\t <td>نام خانوادگي : {$person_rec['plname']}</td>\r\n\t <td>شماره حکم : {$person_rec['writ_id']}</td>\r\n\t </tr>"); $i = 0; while (ExceptionHandler::GetExceptionCount() != 0) { $i++; fwrite($this->u_content, "<tr>\r\n\t\t\t\t\t<td height=21px style='font-family:tahoma;font-size:11px;color:red'>{$i}</td>\r\n\t\t\t\t\t<td colspan='4' style='font-family:tahoma;font-size:12px;color:red'>" . ExceptionHandler::popExceptionDescription() . "</td>\r\n </tr>"); } }
function DelDep() { $return = manage_person_dependency::RemoveDependency($_POST['PersonID'], $_POST['row_no']); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }