Пример #1
0
require_once '../class/payment_cancel.class.php';
require_once '../../../baseInfo/class/salary_item_report.class.php';
require_once '../class/arrear_pay_calculation.class.php';
require_once inc_QueryHelper;
require_once inc_response;
require_once inc_dataReader;
$task = isset($_REQUEST["task"]) ? $_REQUEST["task"] : "";
switch ($task) {
    case "ProcessPayment":
        ProcessPayment();
    case "getProgress":
        getProgress();
    case "confirmation":
        confirmation();
    case "Remove":
        Remove();
        //-----------------------------
    //-----------------------------
    case "registerDoc":
        registerDoc();
    case "deleteDoc":
        deleteDoc();
    case "DifferSalaryItems":
        DifferSalaryItems();
    case "ProcessArrearPayment":
        ProcessArrearPayment();
}
function ProcessPayment()
{
    $paymentCalcObj = new manage_payment_calculation();
    $paymentCalcObj->__YEAR = DateModules::GetYear($_POST["end_date"]);
 function SetProperty($name, $value)
 {
     //try
     //{
     // Remove if value is null or empty. Value is null of the property grid value
     // is null or empty. Empty or null removes the property from the Hashtable.
     if ($value == null || $value == "") {
         if ($name != null && $name != "") {
             $bFound = false;
             in_array($name, $bFound);
             if ($bFound) {
                 $this->m_properties . Remove($name);
             }
         }
     } else {
         if ($this->m_properties != null) {
             if (array_key_exists($name, $this->m_properties)) {
                 // Change if key exists
                 $this->m_properties[$name] = $value;
             } else {
                 // Add if key does not exist
                 $this->m_properties[$name] = $value;
             }
         }
     }
     // Build a new string with all the parameters as pairs.
     $this->BuildString();
     /*
     			}
     			catch(Exception ex)
     			{
     				// throws the exception to the client
     				throw ex;
     			}*/
 }