コード例 #1
0
ファイル: writ_item.data.php プロジェクト: jafarkhani/rtfund
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;
}
コード例 #2
0
ファイル: banks.data.php プロジェクト: jafarkhani/rtfund
function removebank()
{
    $return = manage_bank::Remove($_POST["bid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #3
0
ファイル: writ.data.php プロジェクト: jafarkhani/rtfund
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;
}
コード例 #4
0
ファイル: wfm.data.php プロジェクト: jafarkhani/rtfund
function DeleteStep()
{
    $result = WFM_FlowSteps::RemoveFlowStep($_POST["StepRowID"]);
    echo Response::createObjectiveResponse($result, ExceptionHandler::popExceptionDescription());
    die;
}
コード例 #5
0
function removeSIR()
{
    $return = manage_salary_item_report::Remove($_POST["sid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #6
0
ファイル: BaseSalary.data.php プロジェクト: jafarkhani/rtfund
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;
}
コード例 #7
0
function removeSI()
{
    $return = manage_subInfo::Remove($_POST["sid"], $_POST["pty"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #8
0
function removeBranch()
{
    $return = manage_study_branch::Remove($_POST["sfid"], $_POST["sbid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #9
0
ファイル: payment.data.php プロジェクト: jafarkhani/rtfund
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;
    }
}
コード例 #10
0
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;
}
コード例 #11
0
function removeCostException()
{
    $return = manage_cost_center_exception::Remove($_POST["sid"], $_POST["pty"], $_POST["cid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #12
0
function removeUni()
{
    $return = manage_University::Remove($_POST["uid"], $_POST["cid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}
コード例 #13
0
 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>");
     }
 }
コード例 #14
0
ファイル: dependent.data.php プロジェクト: jafarkhani/rtfund
function DelDep()
{
    $return = manage_person_dependency::RemoveDependency($_POST['PersonID'], $_POST['row_no']);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}