Example #1
1
 function clsRecordchange_passwordchangepwd1($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record changepwd1/Error";
     $this->DataSource = new clschange_passwordchangepwd1DataSource($this);
     $this->ds =& $this->DataSource;
     $this->UpdateAllowed = true;
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "changepwd1";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->EditMode = $FormMethod == "Edit";
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->oldpwd = new clsControl(ccsTextBox, "oldpwd", "Old Password", ccsText, "", CCGetRequestParam("oldpwd", $Method, NULL), $this);
         $this->oldpwd->Required = true;
         $this->newpwd = new clsControl(ccsTextBox, "newpwd", "New Password", ccsText, "", CCGetRequestParam("newpwd", $Method, NULL), $this);
         $this->newpwd->Required = true;
         $this->confirmpwd = new clsControl(ccsTextBox, "confirmpwd", "Confirm Password", ccsText, "", CCGetRequestParam("confirmpwd", $Method, NULL), $this);
         $this->confirmpwd->Required = true;
         $this->Button1 = new clsButton("Button1", $Method, $this);
     }
 }
 function clsRecordt_rep_bphtb_registrationSearch($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_rep_bphtb_registrationSearch/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_rep_bphtb_registrationSearch";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->wp_name =& new clsControl(ccsTextBox, "wp_name", "wp_name", ccsDate, array("dd", "-", "mm", "-", "yyyy"), CCGetRequestParam("wp_name", $Method, NULL), $this);
         $this->Button_DoSearch =& new clsButton("Button_DoSearch", $Method, $this);
         $this->t_bphtb_registration_id =& new clsControl(ccsHidden, "t_bphtb_registration_id", "t_bphtb_registration_id", ccsText, "", CCGetRequestParam("t_bphtb_registration_id", $Method, NULL), $this);
     }
 }
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_skpdkb_nihil;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @10-2A29BDB7
    // -------------------------
    // Write your own code here.
    // -------------------------
    //End Custom Code
    $cetak_laporan = CCGetFromGet('cetak_laporan');
    global $Label1;
    // -------------------------
    // Write your own code here.
    $tahun = CCGetFromGet('year_code');
    $status = CCGetFromGet('status');
    $param_arr = array();
    $param_arr['tahun'] = $tahun;
    $param_arr['status'] = $status;
    if (!empty($param_arr['tahun'])) {
        $Label1->SetText(view_html($param_arr));
    }
    // -------------------------
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
 function clsRecordgrafik_pembayaran_form($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record grafik_pembayaran_form/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "grafik_pembayaran_form";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button2 =& new clsButton("Button2", $Method, $this);
         $this->year_code =& new clsControl(ccsTextBox, "year_code", "year_code", ccsText, "", CCGetRequestParam("year_code", $Method, NULL), $this);
         $this->p_year_period_id =& new clsControl(ccsHidden, "p_year_period_id", "p_year_period_id", ccsText, "", CCGetRequestParam("p_year_period_id", $Method, NULL), $this);
         $this->code =& new clsControl(ccsTextBox, "code", "code", ccsText, "", CCGetRequestParam("code", $Method, NULL), $this);
         $this->p_finance_period_id =& new clsControl(ccsHidden, "p_finance_period_id", "p_finance_period_id", ccsText, "", CCGetRequestParam("p_finance_period_id", $Method, NULL), $this);
     }
 }
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_lembar_kontrol_bphtb;
    //Compatibility
    //End Page_BeforeShow
    global $Label1;
    //Custom Code @10-2A29BDB7
    // -------------------------
    // Write your own code here.
    $doAction = CCGetFromGet('doAction');
    if ($doAction == 'view_html') {
        $param_arr = array();
        if (empty($param_arr['date_start'])) {
            $param_arr['date_start'] = CCGetFromGet('date_start_laporan');
        }
        if (empty($param_arr['date_end'])) {
            $param_arr['date_end'] = CCGetFromGet('date_end_laporan');
        }
        //$t_laporan_rekap_bphtb->date_start_laporan->SetValue($param_arr['date_start']);
        //$t_laporan_rekap_bphtb->date_end_laporan->SetValue($param_arr['date_end']);
        $Label1->SetText(GetCetakHTML($param_arr));
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
Example #6
0
 function Initialize()
 {
     if (!$this->Visible) {
         return;
     }
     $this->ds->Parameters["urlset_id"] = CCGetFromGet("set_id", "");
 }
Example #7
0
 function clsRecordNewRecord1($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record NewRecord1/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "NewRecord1";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button_Insert = new clsButton("Button_Insert", $Method, $this);
     }
 }
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_debt_letter_view_excel;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @68-2A29BDB7
    // -------------------------
    // Write your own code here.
    $cetak_excel = CCGetFromGet("cetak_excel", 0);
    $t_customer_order_id = CCGetFromGet("t_customer_order_id", 0);
    $p_vat_type_id = CCGetFromGet("p_vat_type_id", 0);
    $param_arr = array();
    if ($cetak_excel == 1) {
        $param_arr['p_vat_type_id'] = $p_vat_type_id;
        $param_arr['t_customer_order_id'] = $t_customer_order_id;
        print_excel($param_arr);
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
Example #9
0
 function clsRecordLogin($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record Login/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "Login";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->login = new clsControl(ccsTextBox, "login", "Username", ccsText, "", CCGetRequestParam("login", $Method, NULL), $this);
         $this->login->Required = true;
         $this->password = new clsControl(ccsTextBox, "password", "Password", ccsText, "", CCGetRequestParam("password", $Method, NULL), $this);
         $this->password->Required = true;
         $this->Button_DoLogin = new clsButton("Button_DoLogin", $Method, $this);
     }
 }
function t_vat_registrationForm_Button4_OnClick(&$sender)
{
    $t_vat_registrationForm_Button4_OnClick = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_vat_registrationForm;
    //Compatibility
    //End t_vat_registrationForm_Button4_OnClick
    //Custom Code @909-2A29BDB7
    // -------------------------
    // Write your own code here.
    $CusId = CCGetFromGet("CURR_DOC_ID", "");
    $dbConn = new clsDBConnSIKP();
    $sql = "select f_gen_npwpd(" . $CusId . ")as npwpd from dual";
    $dbConn->query($sql);
    while ($dbConn->next_record()) {
        $val = $dbConn->f("npwpd");
    }
    $t_vat_registrationForm->npwpd->SetValue($val);
    return;
    // -------------------------
    //End Custom Code
    //Close t_vat_registrationForm_Button4_OnClick @908-D8012444
    return $t_vat_registrationForm_Button4_OnClick;
}
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_rep_lap_bpps_piutang;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @570-2A29BDB7
    // -------------------------
    $cetak_laporan = CCGetFromGet('cetak_laporan');
    if ($cetak_laporan == 'download_excel') {
        $param_arr = array();
        $param_arr['tgl_penerimaan'] = CCGetFromGet('tgl_penerimaan');
        $param_arr['p_year_period_id'] = CCGetFromGet('p_year_period_id');
        $param_arr['p_vat_type_id'] = CCGetFromGet('p_vat_type_id');
        $param_arr['i_flag_setoran'] = CCGetFromGet('i_flag_setoran');
        $param_arr['tgl_penerimaan_last'] = CCGetFromGet('tgl_penerimaan_last');
        $param_arr['jenis_laporan'] = CCGetFromGet('jenis_laporan', 'all');
        print_excel($param_arr);
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
function LOV_BeforeShow(&$sender)
{
    $LOV_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $LOV;
    //Compatibility
    //End LOV_BeforeShow
    //Custom Code @8-2A29BDB7
    // -------------------------
    // Write your own code here.
    $i_vat_setllement = CCGetFromGet('i_vat_setllement_id');
    $ubah = CCGetFromGet('ubah');
    $in_flag_numeric = CCGetFromGet('in_flag_numeric');
    $is_desc = CCGetFromGet('is_desc');
    if ($ubah == 'T') {
        $user = CCGetUserLogin();
        $data = array();
        $dbConn = new clsDBConnSIKP();
        $query = "select f_update_increasing_amt({$i_vat_setllement},{$in_flag_numeric},'{$is_desc}','{$user}') as msg";
        $dbConn->query($query);
        while ($dbConn->next_record()) {
            echo "<script> \r\n\t\t\talert('" . $dbConn->f('msg') . "');\r\n\t\t\twindow.close();\r\n\t\t</script>";
            exit;
        }
    }
    // -------------------------
    //End Custom Code
    //Close LOV_BeforeShow @3-91C2A156
    return $LOV_BeforeShow;
}
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_cetak_kartu_npwpd_dr_t_cust_account;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @572-2A29BDB7
    // -------------------------
    // Write your own code here.
    $doAction = CCGetFromGet('doAction');
    global $Label1;
    if ($doAction == 'view_html') {
        $param_arr['search'] = CCGetFromGet('search');
        $param_arr['tgl'] = CCGetFromGet('tgl');
        /*if ($param_arr['tgl']==''){
        			$param_arr['tgl']='';
        		}*/
        $Label1->SetText(GetCetakHTML($param_arr));
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
Example #14
0
 function Initialize()
 {
     if (!$this->Visible) {
         return;
     }
     $this->DataSource->Parameters["urluid"] = CCGetFromGet("uid", NULL);
 }
 function clsRecordp_pass_byadminForm($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record p_pass_byadminForm/Error";
     $this->DataSource = new clsp_pass_byadminFormDataSource($this);
     $this->ds =& $this->DataSource;
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "p_pass_byadminForm";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->EditMode = $FormMethod == "Edit";
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button_Ubah =& new clsButton("Button_Ubah", $Method, $this);
         $this->n_user_pwd1 =& new clsControl(ccsTextBox, "n_user_pwd1", "n_user_pwd1", ccsText, "", CCGetRequestParam("n_user_pwd1", $Method, NULL), $this);
         $this->p_app_user_id =& new clsControl(ccsHidden, "p_app_user_id", "p_app_user_id", ccsFloat, "", CCGetRequestParam("p_app_user_id", $Method, NULL), $this);
         $this->n_user_pwd2 =& new clsControl(ccsTextBox, "n_user_pwd2", "n_user_pwd2", ccsText, "", CCGetRequestParam("n_user_pwd2", $Method, NULL), $this);
         $this->app_user_name =& new clsControl(ccsLabel, "app_user_name", "app_user_name", ccsText, "", CCGetRequestParam("app_user_name", $Method, NULL), $this);
         $this->o_user_pwd =& new clsControl(ccsTextBox, "o_user_pwd", "o_user_pwd", ccsText, "", CCGetRequestParam("o_user_pwd", $Method, NULL), $this);
         $this->Button_cancel =& new clsButton("Button_cancel", $Method, $this);
     }
 }
function licensing_viewfilecontent_BeforeShow(&$sender)
{
    $licensing_viewfilecontent_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $licensing_viewfilecontent;
    //Compatibility
    //End licensing_viewfilecontent_BeforeShow
    //Custom Code @3-2A29BDB7
    // -------------------------
    // Write your own code here.
    $licensefile_guid = trim(CCGetFromGet("licensefile_guid", ""));
    if (strlen($licensefile_guid) > 0) {
        $params = array();
        $params["licensefile_guid"] = $licensefile_guid;
        $products = new \Alm\Products();
        $licenseFile = $products->getLicenseFileByGuid($params);
        $licenseFile = $licenseFile["licensefile"];
        foreach ($licenseFile as $licensefile) {
            $licensing_viewfilecontent->lbfileurl->SetValue($licensefile["filename"]);
        }
    } else {
        header("Location: licensing.php");
    }
    // -------------------------
    //End Custom Code
    //Close licensing_viewfilecontent_BeforeShow @1-C96E08DA
    return $licensing_viewfilecontent_BeforeShow;
}
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_laporan_penerimaan_bphtb_teller;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @10-2A29BDB7
    // -------------------------
    // Write your own code here.
    // -------------------------
    //End Custom Code
    // -------------------------
    $param_arr = array();
    if (empty($param_arr['uid'])) {
        $param_arr['uid'] = CCGetFromGet('uid');
    }
    if (empty($param_arr['report_type'])) {
        $param_arr['report_type'] = CCGetFromGet('report_type');
    }
    if ($param_arr['report_type'] == 'excel') {
        print_excel($param_arr);
    } else {
        print_laporan($param_arr);
    }
    // -------------------------
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_laporan_piutang_pajak_berdasarkan_npwpd;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @10-2A29BDB7
    // -------------------------
    // Write your own code here.
    // -------------------------
    //End Custom Code
    $cetak_laporan = CCGetFromGet('cetak_laporan');
    global $Label1;
    // -------------------------
    // Write your own code here.
    if ($cetak_laporan == 'view_html') {
        $param_arr = array();
        $param_arr['npwpd'] = CCGetFromGet('npwpd');
        $Label1->SetText(view_html($param_arr));
    } else {
        /*
        $param_arr=array();
        $param_arr['year_period_id']=$t_laporan_piutang_pajak->p_year_period_id->GetValue();
        $param_arr['p_vat_type_id']=$t_laporan_piutang_pajak->p_vat_type_id->GetValue();
        $param_arr['year_code']=$t_laporan_piutang_pajak->year_code->GetValue();
        print_laporan($param_arr);
        */
        //exit;
    }
    // -------------------------
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
Example #19
0
 function clsRecordt_cust_acc_status_editForm($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_cust_acc_status_editForm/Error";
     $this->DataSource = new clst_cust_acc_status_editFormDataSource($this);
     $this->ds =& $this->DataSource;
     $this->UpdateAllowed = true;
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_cust_acc_status_editForm";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->EditMode = $FormMethod == "Edit";
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button1 =& new clsButton("Button1", $Method, $this);
         $this->block_status =& new clsControl(ccsListBox, "block_status", "block_status", ccsText, "", CCGetRequestParam("block_status", $Method, NULL), $this);
         $this->block_status->DSType = dsListOfValues;
         $this->block_status->Values = array(array("T", "BLOCK"), array("F", "BUKA BLOCK"));
         $this->alasan =& new clsControl(ccsTextArea, "alasan", "alasan", ccsText, "", CCGetRequestParam("alasan", $Method, NULL), $this);
     }
 }
 function clsRecordt_rep_lap_spjpSearch($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_rep_lap_spjpSearch/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_rep_lap_spjpSearch";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->code =& new clsControl(ccsTextBox, "code", "code", ccsText, "", CCGetRequestParam("code", $Method, NULL), $this);
         $this->p_finance_period_id =& new clsControl(ccsHidden, "p_finance_period_id", "p_finance_period_id", ccsText, "", CCGetRequestParam("p_finance_period_id", $Method, NULL), $this);
         $this->p_year_period_id =& new clsControl(ccsHidden, "p_year_period_id", "p_year_period_id", ccsText, "", CCGetRequestParam("p_year_period_id", $Method, NULL), $this);
         $this->year_code =& new clsControl(ccsTextBox, "year_code", "year_code", ccsText, "", CCGetRequestParam("year_code", $Method, NULL), $this);
         $this->Button_DoSearch =& new clsButton("Button_DoSearch", $Method, $this);
         $this->Button_DoSearch1 =& new clsButton("Button_DoSearch1", $Method, $this);
         $this->npwpd_jabatan =& new clsControl(ccsListBox, "npwpd_jabatan", "npwpd_jabatan", ccsText, "", CCGetRequestParam("npwpd_jabatan", $Method, NULL), $this);
         $this->npwpd_jabatan->DSType = dsListOfValues;
         $this->npwpd_jabatan->Values = array(array("1", "Semua"), array("2", "Hanya NPWPD Jabatan"));
         $this->npwpd_jabatan->Required = true;
     }
 }
 function clsRecordt_rep_lap_spjpSearch($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_rep_lap_spjpSearch/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_rep_lap_spjpSearch";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button_DoSearch =& new clsButton("Button_DoSearch", $Method, $this);
         $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsText, "", CCGetRequestParam("p_vat_type_id", $Method, NULL), $this);
         $this->vat_code =& new clsControl(ccsTextBox, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", $Method, NULL), $this);
         $this->p_year_period_id =& new clsControl(ccsListBox, "p_year_period_id", "p_year_period_id", ccsFloat, "", CCGetRequestParam("p_year_period_id", $Method, NULL), $this);
         $this->p_year_period_id->DSType = dsSQL;
         $this->p_year_period_id->DataSource = new clsDBConnSIKP();
         $this->p_year_period_id->ds =& $this->p_year_period_id->DataSource;
         list($this->p_year_period_id->BoundColumn, $this->p_year_period_id->TextColumn, $this->p_year_period_id->DBFormat) = array("p_year_period_id", "year_code", "");
         $this->p_year_period_id->DataSource->SQL = "select * from p_year_period where start_date > '2014-12-31' {SQL_OrderBy}";
         $this->p_year_period_id->DataSource->Order = "start_date DESC";
         $this->Button_DoSearch1 =& new clsButton("Button_DoSearch1", $Method, $this);
     }
 }
Example #22
0
 function clsRecordusers()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsusersDataSource();
     $this->InsertAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "users";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->first_name = new clsControl(ccsLabel, "first_name", "First Name", ccsText, "", CCGetRequestParam("first_name", $Method));
         $this->last_name = new clsControl(ccsLabel, "last_name", "Last Name", ccsText, "", CCGetRequestParam("last_name", $Method));
         $this->address1 = new clsControl(ccsTextBox, "address1", "Address1", ccsText, "", CCGetRequestParam("address1", $Method));
         $this->address2 = new clsControl(ccsTextBox, "address2", "Address2", ccsText, "", CCGetRequestParam("address2", $Method));
         $this->city = new clsControl(ccsTextBox, "city", "City", ccsText, "", CCGetRequestParam("city", $Method));
         $this->state_id = new clsControl(ccsTextBox, "state_id", "State Province", ccsText, "", CCGetRequestParam("state_id", $Method));
         $this->zip = new clsControl(ccsTextBox, "zip", "Zip", ccsText, "", CCGetRequestParam("zip", $Method));
         $this->country_id = new clsControl(ccsListBox, "country_id", "Country Id", ccsInteger, "", CCGetRequestParam("country_id", $Method));
         $this->country_id_ds = new clsDBNetConnect();
         $this->country_id_ds->SQL = "SELECT *  " . "FROM lookup_countries";
         $country_id_values = CCGetListValues($this->country_id_ds, $this->country_id_ds->SQL, $this->country_id_ds->Where, $this->country_id_ds->Order, "country_id", "country_desc");
         $this->country_id->Values = $country_id_values;
         $this->phone_day = new clsControl(ccsTextBox, "phone_day", "Phone Day", ccsText, "", CCGetRequestParam("phone_day", $Method));
         $this->phone_evn = new clsControl(ccsTextBox, "phone_evn", "Phone Evn", ccsText, "", CCGetRequestParam("phone_evn", $Method));
         $this->fax = new clsControl(ccsTextBox, "fax", "Fax", ccsText, "", CCGetRequestParam("fax", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
     }
 }
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_laporan_rekap_surat_teguran_per_bulan;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @572-2A29BDB7
    // -------------------------
    // Write your own code here.
    $doAction = CCGetFromGet('doAction');
    global $Label1;
    $param_arr['p_year_period_id'] = CCGetFromGet('p_year_period_id');
    $param_arr['year_code'] = CCGetFromGet('year_code');
    if ($doAction == 'view_html') {
        $Label1->SetText(GetCetakHTML($param_arr));
    }
    if ($doAction == 'view_excel') {
        $Label1->SetText(GetCetakExcel($param_arr));
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}
function contacts_holidays_list_BeforeShow(&$sender)
{
    $contacts_holidays_list_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $contacts_holidays_list;
    //Compatibility
    //End contacts_holidays_list_BeforeShow
    //Custom Code @22-2A29BDB7
    // -------------------------
    // Write your own code here.
    $del_guid = CCGetFromGet("del_guid", "");
    $o = CCGetFromGet("o", "");
    if ($o == "delrecord" && strlen($del_guid) > 0) {
        global $FileName;
        $params["guid"] = $del_guid;
        $customers = new Customers();
        $customers->deleteHolidaysByGuid($params);
        $querystring = CCGetQueryString("QueryString", array("o", "del_guid"));
        //Forcing redirect
        header("Location: {$FileName}?{$querystring}");
    }
    // -------------------------
    //End Custom Code
    //Close contacts_holidays_list_BeforeShow @1-2AE37F02
    return $contacts_holidays_list_BeforeShow;
}
 function clsRecordLOV($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record LOV/Error";
     $this->DataSource = new clsLOVDataSource($this);
     $this->ds =& $this->DataSource;
     $this->InsertAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "LOV";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->EditMode = $FormMethod == "Edit";
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->alasan =& new clsControl(ccsTextArea, "alasan", "alasan", ccsText, "", CCGetRequestParam("alasan", $Method, NULL), $this);
         $this->alasan->Required = true;
         $this->Button1 =& new clsButton("Button1", $Method, $this);
         $this->t_vat_setllement_id =& new clsControl(ccsHidden, "t_vat_setllement_id", "t_vat_setllement_id", ccsText, "", CCGetRequestParam("t_vat_setllement_id", $Method, NULL), $this);
     }
 }
function Page_OnInitializeView(&$sender)
{
    $Page_OnInitializeView = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_status_pelaporan_pajak;
    //Compatibility
    //End Page_OnInitializeView
    global $selected_id;
    global $t_status_pelaporan_pajakGrid;
    $selected_id = -1;
    $selected_id = CCGetFromGet("p_finance_period_id", $selected_id);
    if ($selected_id == -1) {
        $t_status_pelaporan_pajakGrid->Visible = false;
    }
    $status_lapor = CCGetFromGet("status_lapor", NULL);
    if (strpos(strtolower($status_lapor), "sudah lapor wp active") !== false) {
        header("Location: ./t_status_pelaporan_pajak_sudah_lapor.php?active=1&p_finance_period_id=" . $selected_id);
    }
    if (strpos(strtolower($status_lapor), "sudah lapor wp non active") !== false) {
        header("Location: ./t_status_pelaporan_pajak_sudah_lapor.php?active=0&p_finance_period_id=" . $selected_id);
    }
    if (strpos(strtolower($status_lapor), "belum lapor wp active") !== false) {
        header("Location: ./t_status_pelaporan_pajak_belum_lapor.php?active=1&p_finance_period_id=" . $selected_id);
    }
    if (strpos(strtolower($status_lapor), "belum lapor wp non active") !== false) {
        header("Location: ./t_status_pelaporan_pajak_belum_lapor.php?active=0&p_finance_period_id=" . $selected_id);
    }
    //Close Page_OnInitializeView @1-81DF8332
    return $Page_OnInitializeView;
}
function Login_Button_DoLogin_OnClick(&$sender)
{
    $Login_Button_DoLogin_OnClick = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $Login;
    //Compatibility
    //End Login_Button_DoLogin_OnClick
    //Login @4-DE10C29C
    global $CCSLocales;
    global $Redirect;
    if (!CCLoginUser($Container->login->Value, md5($Container->password->Value))) {
        $Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
        $Container->Errors->addError(md5($Container->password->Value));
        $Container->password->SetValue("");
        $Login_Button_DoLogin_OnClick = 0;
    } else {
        global $Redirect;
        $Redirect = CCGetParam("ret_link", $Redirect);
        $Login_Button_DoLogin_OnClick = 1;
        $redirect_url = CCGetFromGet("redirect");
        if (!empty($redirect_url)) {
            echo "<script>\r\n\t\t\tlocation.href='" . base64_decode($redirect_url) . "';\r\n\t\t\t</script>";
            exit;
        }
    }
    //End Login
    //Close Login_Button_DoLogin_OnClick @3-0EB5DCFE
    return $Login_Button_DoLogin_OnClick;
}
 function clsRecordt_laporan_piutang_pajak($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_laporan_piutang_pajak/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_laporan_piutang_pajak";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button1 =& new clsButton("Button1", $Method, $this);
         $this->year_code =& new clsControl(ccsTextBox, "year_code", "Periode Tahun", ccsText, "", CCGetRequestParam("year_code", $Method, NULL), $this);
         $this->year_code->Required = true;
         $this->p_year_period_id =& new clsControl(ccsHidden, "p_year_period_id", "p_year_period_id", ccsFloat, "", CCGetRequestParam("p_year_period_id", $Method, NULL), $this);
         $this->cetak_laporan =& new clsControl(ccsHidden, "cetak_laporan", "cetak_laporan", ccsText, "", CCGetRequestParam("cetak_laporan", $Method, NULL), $this);
         $this->vat_code =& new clsControl(ccsTextBox, "vat_code", "Ayat Pajak", ccsText, "", CCGetRequestParam("vat_code", $Method, NULL), $this);
         $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsText, "", CCGetRequestParam("p_vat_type_id", $Method, NULL), $this);
         $this->Button2 =& new clsButton("Button2", $Method, $this);
         $this->status =& new clsControl(ccsListBox, "status", "status", ccsText, "", CCGetRequestParam("status", $Method, NULL), $this);
         $this->status->DSType = dsListOfValues;
         $this->status->Values = array(array("1", "SUDAH BAYAR"), array("2", "BELUM BAYAR"));
     }
 }
 function clsRecordt_laporan_daftar_bphtb($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Record t_laporan_daftar_bphtb/Error";
     $this->ReadAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "t_laporan_daftar_bphtb";
         $this->Attributes = new clsAttributes($this->ComponentName . ":");
         $CCSForm = explode(":", CCGetFromGet("ccsForm", ""), 2);
         if (sizeof($CCSForm) == 1) {
             $CCSForm[1] = "";
         }
         list($FormName, $FormMethod) = $CCSForm;
         $this->FormEnctype = "application/x-www-form-urlencoded";
         $this->FormSubmitted = $FormName == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->Button1 =& new clsButton("Button1", $Method, $this);
         $this->date_start_laporan =& new clsControl(ccsTextBox, "date_start_laporan", "date_start_laporan", ccsText, "", CCGetRequestParam("date_start_laporan", $Method, NULL), $this);
         $this->date_start_laporan->Required = true;
         $this->DatePicker_date_start_laporan1 =& new clsDatePicker("DatePicker_date_start_laporan1", "t_laporan_daftar_bphtb", "date_start_laporan", $this);
         $this->date_end_laporan =& new clsControl(ccsTextBox, "date_end_laporan", "date_end_laporan", ccsText, "", CCGetRequestParam("date_end_laporan", $Method, NULL), $this);
         $this->date_end_laporan->Required = true;
         $this->DatePicker_end_start_laporan1 =& new clsDatePicker("DatePicker_end_start_laporan1", "t_laporan_daftar_bphtb", "date_end_laporan", $this);
         $this->cetak_laporan =& new clsControl(ccsHidden, "cetak_laporan", "cetak_laporan", ccsText, "", CCGetRequestParam("cetak_laporan", $Method, NULL), $this);
     }
 }
function Page_BeforeShow(&$sender)
{
    $Page_BeforeShow = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $t_monitoring_pendaftaran_new;
    //Compatibility
    //End Page_BeforeShow
    //Custom Code @572-2A29BDB7
    // -------------------------
    // Write your own code here.
    $doAction = CCGetFromGet('doAction');
    global $Label1;
    $param_arr['p_year_period_id'] = CCGetFromGet('p_year_period_id');
    $param_arr['p_finance_period_id'] = CCGetFromGet('p_finance_period_id');
    $param_arr['p_vat_type_id'] = CCGetFromGet('p_vat_type_id');
    $param_arr['nilai'] = CCGetFromGet('nilai');
    $param_arr['vat_code'] = CCGetFromGet('vat_code');
    $param_arr['year_code'] = CCGetFromGet('year_code');
    $param_arr['code'] = CCGetFromGet('code');
    if ($doAction == 'view_html') {
        $Label1->SetText(GetCetakHTML($param_arr));
    }
    if ($doAction == 'view_excel') {
        $Label1->SetText(GetCetakExcel($param_arr));
    }
    // -------------------------
    //End Custom Code
    //Close Page_BeforeShow @1-4BC230CD
    return $Page_BeforeShow;
}