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


PHP ExceptionHandler::ConvertExceptionsToJsObject方法代码示例

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


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

示例1: deleteTax

function deleteTax()
{
    $obj = new manage_Tax_Table($_POST["tax_table_id"]);
    $return = $obj->RemoveTax();
    if ($return) {
        echo Response::createResponse(true, $obj->tax_table_id);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:11,代码来源:tax_tables.data.php

示例2: deleteTax

function deleteTax()
{
    $obj = new manage_tax_table_types();
    $obj->tax_table_type_id = $_POST["tax_table_type_id"];
    $obj->person_type = $_POST["person_type"];
    $return = $obj->RemoveTax($obj->tax_table_type_id, $obj->person_type);
    if ($return) {
        echo Response::createResponse(true, $obj->tax_table_type_id);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:13,代码来源:tax_table_types.data.php

示例3: CreateNewStaff

function CreateNewStaff()
{
    $PID = $_POST['personid'];
    $PT = $_POST['person_type'];
    $STID = $_POST['staff_id'];
    $res = manage_staff::Create_New_Staff($PID, $PT);
    if (!empty($res)) {
        Response::createObjectiveResponse(true, "{STID:" . $res . " ,PID:" . $PID . "}");
        die;
    } else {
        Response::createObjectiveResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
        die;
    }
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:create_new_staff.data.php

示例4: SaveBank

function SaveBank()
{
    $obj = new manage_bank();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    if ($obj->bank_id) {
        $return = $obj->Edit();
    } else {
        $return = $obj->Add();
    }
    if ($return) {
        echo Response::createResponse(true, $obj->bank_id);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:banks.data.php

示例5: SaveSIR

function SaveSIR()
{
    $obj = new manage_salary_item_report();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    if ($obj->SalaryItemReportID == "") {
        $return = $obj->Add();
    } else {
        $return = $obj->Edit();
    }
    if ($return) {
        echo Response::createResponse(true, $obj->SalaryItemReportID);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:salary_item_report.data.php

示例6: SaveSubInfo

function SaveSubInfo()
{
    $obj = new manage_subInfo();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    if ($_GET['newMode'] == 1) {
        $return = $obj->Add();
    } else {
        $return = $obj->Edit();
    }
    if ($return) {
        echo Response::createResponse(true, $obj->SalaryItemTypeID);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:subtract_info.data.php

示例7: SavePriority

function SavePriority()
{
    $obj = new manage_priority();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    $where = " where PriorityID=" . $obj->PriorityID;
    $res = manage_priority::GetAll($where);
    if (count($res) > 0) {
        $return = $obj->Edit();
    } else {
        $return = $obj->Add();
    }
    if ($return) {
        echo Response::createResponse(true, $obj->PriorityID);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:18,代码来源:priority.data.php

示例8: IssueCorrectiveWrit

function IssueCorrectiveWrit()
{
    $start_date = isset($_POST["base_writ_issue"]) ? $_POST["base_execute_date"] : $_POST["corrective_date"];
    $end_date = $_POST["execute_date"];
    if (!isset($_POST["base_writ_issue"])) {
        if (manage_writ::Is_Writ_For_Correct($_POST["staff_id"], $_POST['corrective_date']) == null) {
            ExceptionHandler::PushException("در تاريخ شروع اصلاح حکم وجود ندارد .");
            //	header("location: ../ui/CorrectiveIssueWrit.php");
            Response::createObjectiveResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
            die;
        }
    }
    if (manage_staff::check_exist_staff_id($_POST["staff_id"]) == true) {
        /*if(isset($_POST["issue_date"]))
        			 $issueDate = $_POST["issue_date"] ; 
        		else*/
        $issueDate = DateModules::shNow();
        $writ_rec = manage_writ::IssueWrit($_POST["staff_id"], $_POST["writ_type_id"], $_POST["writ_subtype_id"], $_POST["execute_date"], $_POST["person_type"], $issueDate, true, true, $_POST["send_letter_no"], NULL, NULL, $_POST["base"]);
    }
    if ($writ_rec === false) {
        //header("location: ../ui/CorrectiveIssueWrit.php");
        Response::createObjectiveResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
        die;
    } else {
        if (isset($_POST["base_writ_issue"])) {
            $writ_type_id = $_POST["base_writ_type_id"];
            $writ_subtype_id = $_POST["base_writ_subtype_id"];
            $execute_date = $_POST["base_execute_date"];
            $base = $_POST["base_base"];
            $send_letter_no = $_POST["base_send_letter_no"];
            $issue_date = DateModules::shNow();
        } else {
            $execute_date = $_POST["corrective_date"];
            $writ_type_id = NULL;
            $writ_subtype_id = NULL;
            $base = NULL;
            $send_letter_no = NULL;
            $issue_date = NULL;
            $_POST["base_writ_issue"] = NULL;
        }
        //شروع اصلاح
        $ret = manage_writ::start_corrective_writ_issue($_POST["staff_id"], $execute_date, $writ_rec, $writ_type_id, $writ_subtype_id, $base, $send_letter_no, $issue_date, $_POST["base_writ_issue"]);
        if ($ret === false) {
            Response::createObjectiveResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
            die;
        }
        Response::createObjectiveResponse(true, "{WID:" . $ret->writ_id . ",WVER:" . $ret->writ_ver . ",STID:" . $ret->staff_id . "}");
        die;
    }
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:50,代码来源:writ.data.php

示例9: confirmation

function confirmation()
{
    $keys = array_keys($_POST);
    $WhereCost = "";
    $arr = "";
    //...................... مراکز هزینه ................
    for ($i = 0; $i < count($_POST); $i++) {
        if (strpos($keys[$i], "chkcostID_") !== false) {
            $arr = preg_split('/_/', $keys[$i]);
            if (isset($arr[1])) {
                $WhereCost .= $WhereCost != "" ? "," . $arr[1] : $arr[1];
            }
        }
    }
    if ($_POST["ItemType"] == "salary") {
        $obj = new manage_payments();
        PdoDataAccess::FillObjectByArray($obj, $_POST);
        $obj->_CostCenter = $WhereCost;
        $return = $obj->change_payment_state($_POST["PersonType"]);
    } else {
        if ($_POST["ItemType"] == "reportSub") {
            $obj = new manage_salary_item_report();
            $obj->PayYear = $_POST["pay_year"];
            $obj->PayMonth = $_POST["pay_month"];
            $obj->PersonType = $_POST["PersonType"];
            $obj->state = $_POST["state"];
            $return = $obj->change_state();
        }
    }
    if ($return) {
        echo Response::createResponse(true, $obj->state);
    } else {
        echo Response::createResponse(false, ExceptionHandler::ConvertExceptionsToJsObject());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:36,代码来源:payment.data.php

示例10: Array

	<?}?>
	<?if($objWrt->person_type != HR_WORKER){?>
		this.stateCombo = <?php 
echo $workplaceArr["masterExtCombo"];
?>
;
	<?}?>

	<?if($readOnly || !$accessObj->FullUpdateAccess()){
        if(HRSystem == PersonalSystemCode ){ ?>
            Ext.get(this.form).readonly(new Array("single_print", "multi_print", "btn_save", "warning_date", "warning_message", "remembered"));
        <? } else  ?>  Ext.get(this.form).readonly(new Array("single_print", "multi_print", "btn_save", "warning_date", "warning_message", "remembered" , "cost_center_id" ));
	<?} ?>
	<? if(ExceptionHandler::GetExceptionCount() != 0){ ?>
		ShowExceptions(this.get("ErrorDiv"), <?php 
echo ExceptionHandler::ConvertExceptionsToJsObject();
?>
);
	<?  }   ?>
}

</script>
<center>
<form id="form_WritForm">
<div id="ErrorDiv" ></div>
<input type='hidden' id='writ_id' name='writ_id' value="<?php 
echo $writ_id;
?>
">
<input type='hidden' id='writ_ver' name='writ_ver' value="<?php 
echo !empty($writver) ? $writver : "";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:writ_form_1.php


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