function users_AfterUpdate(&$sender)
{
    $users_AfterUpdate = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $users;
    //Compatibility
    //End users_AfterUpdate
    //Custom Code @14-2A29BDB7
    // -------------------------
    $db = new clsDBconnection1();
    if ($users->user_status_id->GetValue() == 2) {
        $sql = "update users set user_status_id = 3 where users.user_id=" . CCGetParam("uid");
        $db->query($sql);
        $Result1 = $db->next_record();
    } else {
        if ($users->user_status_id->GetValue() == 3 or $users->user_status_id->GetValue() == 1) {
            $sql = "update users set user_status_id = 2 where users.user_id=" . CCGetParam("uid");
            $db->query($sql);
            $Result1 = $db->next_record();
        }
    }
    // -------------------------
    //End Custom Code
    //Close users_AfterUpdate @2-DE0947D6
    return $users_AfterUpdate;
}
Example #2
0
 function clsGridsent_newsletters()
 {
     global $FileName;
     $this->ComponentName = "sent_newsletters";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clssent_newslettersDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("sent_newslettersOrder", "");
     $this->SorterDirection = CCGetParam("sent_newslettersDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->newsletter_id = new clsControl(ccsLabel, "newsletter_id", "newsletter_id", ccsInteger, "", CCGetRequestParam("newsletter_id", ccsGet));
     $this->datesent = new clsControl(ccsLabel, "datesent", "datesent", ccsInteger, "", CCGetRequestParam("datesent", ccsGet));
     $this->Sorter_newsletter_id = new clsSorter($this->ComponentName, "Sorter_newsletter_id", $FileName);
     $this->Sorter_datesent = new clsSorter($this->ComponentName, "Sorter_datesent", $FileName);
     $this->sent_newsletters_Insert = new clsControl(ccsLink, "sent_newsletters_Insert", "sent_newsletters_Insert", ccsText, "", CCGetRequestParam("sent_newsletters_Insert", ccsGet));
     $this->sent_newsletters_Insert->Parameters = CCGetQueryString("QueryString", array("newsletter_id", "ccsForm"));
     $this->sent_newsletters_Insert->Page = "NewslettersMaintanence.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
Example #3
0
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->username->Value, $Container->password->Value)) {
        $Container->Errors->addError($CCSLocales->GetText("CCS_LoginError"));
        $Container->password->SetValue("");
        $Login_Button_DoLogin_OnClick = 0;
    } else {
        global $Redirect;
        $seshmenu = "";
        $glip = array("glyphicon-cog", "glyphicon-cog", "glyphicon-list", "glyphicon-folder-close", "glyphicon-usd", "glyphicon-gift", "glyphicon-time", "glyphicon-user", "glyphicon-log-in", "glyphicon-align-justify");
        $DBhrcon_ = new clsDBhrcon();
        $queryMD = "select p_module_id, code, description from p_module " . "where is_active='Y' order by listing_no";
        $DBhrcon_->query($queryMD);
        while ($DBhrcon_->next_record()) {
            $seshmenu = $seshmenu . "<li><a href='../main/modul.php?p_module_id=" . $DBhrcon_->f("p_module_id") . "'" . "title='" . $DBhrcon_->f("code") . "&#13;" . $DBhrcon_->f("description") . "' target=''>" . "<i class='glyphicon " . $glip[$DBhrcon_->f("p_module_id")] . "' style='font-size: 32px; border:2px solid #ffffff; padding:3px'></i>";
        }
        $DBhrcon_->close();
        CCSetSession("hmenu", $seshmenu);
        $Redirect = CCGetParam("ret_link", $Redirect);
        $Login_Button_DoLogin_OnClick = 1;
    }
    //End Login
    //Close Login_Button_DoLogin_OnClick @3-0EB5DCFE
    return $Login_Button_DoLogin_OnClick;
}
 function clsGridt_vat_setllementGrid($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "t_vat_setllementGrid";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid t_vat_setllementGrid";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clst_vat_setllementGridDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 5;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->DLink =& new clsControl(ccsLink, "DLink", "DLink", ccsText, "", CCGetRequestParam("DLink", ccsGet, NULL), $this);
     $this->DLink->HTML = true;
     $this->DLink->Page = "t_vat_setllement_ro_order2.php";
     $this->npwd =& new clsControl(ccsLabel, "npwd", "npwd", ccsText, "", CCGetRequestParam("npwd", ccsGet, NULL), $this);
     $this->finance_period_code =& new clsControl(ccsLabel, "finance_period_code", "finance_period_code", ccsText, "", CCGetRequestParam("finance_period_code", ccsGet, NULL), $this);
     $this->order_no =& new clsControl(ccsLabel, "order_no", "order_no", ccsText, "", CCGetRequestParam("order_no", ccsGet, NULL), $this);
     $this->t_vat_setllement_id =& new clsControl(ccsHidden, "t_vat_setllement_id", "t_vat_setllement_id", ccsFloat, "", CCGetRequestParam("t_vat_setllement_id", ccsGet, NULL), $this);
     $this->total_trans_amount =& new clsControl(ccsLabel, "total_trans_amount", "total_trans_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_trans_amount", ccsGet, NULL), $this);
     $this->ImageLink1 =& new clsControl(ccsImageLink, "ImageLink1", "ImageLink1", ccsText, "", CCGetRequestParam("ImageLink1", ccsGet, NULL), $this);
     $this->ImageLink1->Page = "t_vat_setllement_dtl_ro.php";
     $this->ImageLink2 =& new clsControl(ccsImageLink, "ImageLink2", "ImageLink2", ccsText, "", CCGetRequestParam("ImageLink2", ccsGet, NULL), $this);
     $this->ImageLink2->Page = "t_sptpd_legal_doc_ro.php";
     $this->p_rqst_type_id =& new clsControl(ccsHidden, "p_rqst_type_id", "p_rqst_type_id", ccsFloat, "", CCGetRequestParam("p_rqst_type_id", ccsGet, NULL), $this);
     $this->total_vat_amount =& new clsControl(ccsLabel, "total_vat_amount", "total_vat_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_vat_amount", ccsGet, NULL), $this);
     $this->cetak_sptpd =& new clsControl(ccsLabel, "cetak_sptpd", "cetak_sptpd", ccsText, "", CCGetRequestParam("cetak_sptpd", ccsGet, NULL), $this);
     $this->cetak_sptpd->HTML = true;
     $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
     $this->cetak =& new clsControl(ccsLabel, "cetak", "cetak", ccsText, "", CCGetRequestParam("cetak", ccsGet, NULL), $this);
     $this->cetak->HTML = true;
     $this->wp_name =& new clsControl(ccsLabel, "wp_name", "wp_name", ccsText, "", CCGetRequestParam("wp_name", ccsGet, NULL), $this);
     $this->t_customer_order_id =& new clsControl(ccsHidden, "t_customer_order_id", "t_customer_order_id", ccsInteger, "", CCGetRequestParam("t_customer_order_id", ccsGet, NULL), $this);
     $this->total_penalty_amount =& new clsControl(ccsLabel, "total_penalty_amount", "total_penalty_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_penalty_amount", ccsGet, NULL), $this);
     $this->cetak_payment =& new clsButton("cetak_payment", ccsGet, $this);
     $this->user =& new clsControl(ccsHidden, "user", "user", ccsText, "", CCGetRequestParam("user", ccsGet, NULL), $this);
     $this->cetak_register1 =& new clsButton("cetak_register1", ccsGet, $this);
     $this->cetak_register =& new clsButton("cetak_register", ccsGet, $this);
     $this->total_total =& new clsControl(ccsLabel, "total_total", "total_total", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_total", ccsGet, NULL), $this);
     $this->no_kohir =& new clsControl(ccsLabel, "no_kohir", "no_kohir", ccsText, "", CCGetRequestParam("no_kohir", ccsGet, NULL), $this);
     $this->Button1 =& new clsButton("Button1", ccsGet, $this);
 }
function roleForm_Button_Update_OnClick(&$sender)
{
    $roleForm_Button_Update_OnClick = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $roleForm;
    //Compatibility
    //End roleForm_Button_Update_OnClick
    //Custom Code @91-2A29BDB7
    // -------------------------
    global $CCSLocales;
    global $Redirect;
    CCLogoutUser();
    $db = new clsDBhrcon();
    $SQL = "select * from f_changeuserpwd(" . $db->ToSQL($Container->user_name->Value, ccsText) . "," . $db->ToSQL($Container->CCGetSession("is_new_user")->Value, ccsText) . "," . $db->ToSQL($Container->old_password->Value, ccsText) . "," . $db->ToSQL($Container->new_password->Value, ccsText) . "," . $db->ToSQL($Container->new_password2->Value, ccsText) . "," . "" . "," . "" . ")";
    $db->query($SQL);
    $Result = $db->next_record();
    if (!$Result) {
        return;
    }
    if ($db->f('o_result_int') != 1) {
        $Container->Errors->addError($db->f('o_result_msg'));
        $roleForm_Button_Update_OnClick = false;
    } else {
        global $Redirect;
        print_r("<script language='JavaScript'>alert('Sukses');</script>");
    }
    $DBhrcon_->close();
    $Redirect = CCGetParam("ret_link", $Redirect);
    $roleForm_Button_Update_OnClick = true;
    // -------------------------
    //End Custom Code
    //Close roleForm_Button_Update_OnClick @6-65373743
    return $roleForm_Button_Update_OnClick;
}
Example #6
0
 function clsGridp_role($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "p_role";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid p_role";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsp_roleDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 3;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->SorterName = CCGetParam("p_roleOrder", "");
     $this->SorterDirection = CCGetParam("p_roleDir", "");
     $this->p_role_id = new clsControl(ccsLink, "p_role_id", "p_role_id", ccsFloat, "", CCGetRequestParam("p_role_id", ccsGet, NULL), $this);
     $this->p_role_id->Page = "p_role_maint.php";
     $this->code = new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet, NULL), $this);
     $this->listing_no = new clsControl(ccsLabel, "listing_no", "listing_no", ccsFloat, "", CCGetRequestParam("listing_no", ccsGet, NULL), $this);
     $this->valid_from = new clsControl(ccsLabel, "valid_from", "valid_from", ccsDate, $DefaultDateFormat, CCGetRequestParam("valid_from", ccsGet, NULL), $this);
     $this->valid_to = new clsControl(ccsLabel, "valid_to", "valid_to", ccsDate, $DefaultDateFormat, CCGetRequestParam("valid_to", ccsGet, NULL), $this);
     $this->description = new clsControl(ccsLabel, "description", "description", ccsText, "", CCGetRequestParam("description", ccsGet, NULL), $this);
     $this->creation_date = new clsControl(ccsLabel, "creation_date", "creation_date", ccsDate, $DefaultDateFormat, CCGetRequestParam("creation_date", ccsGet, NULL), $this);
     $this->created_by = new clsControl(ccsLabel, "created_by", "created_by", ccsText, "", CCGetRequestParam("created_by", ccsGet, NULL), $this);
     $this->updated_date = new clsControl(ccsLabel, "updated_date", "updated_date", ccsDate, $DefaultDateFormat, CCGetRequestParam("updated_date", ccsGet, NULL), $this);
     $this->updated_by = new clsControl(ccsLabel, "updated_by", "updated_by", ccsText, "", CCGetRequestParam("updated_by", ccsGet, NULL), $this);
     $this->p_role_Insert = new clsControl(ccsLink, "p_role_Insert", "p_role_Insert", ccsText, "", CCGetRequestParam("p_role_Insert", ccsGet, NULL), $this);
     $this->p_role_Insert->Parameters = CCGetQueryString("QueryString", array("p_role_id", "ccsForm"));
     $this->p_role_Insert->Page = "p_role_maint.php";
     $this->Sorter_p_role_id = new clsSorter($this->ComponentName, "Sorter_p_role_id", $FileName, $this);
     $this->Sorter_p_role_id->Visible = false;
     $this->Sorter_code = new clsSorter($this->ComponentName, "Sorter_code", $FileName, $this);
     $this->Sorter_listing_no = new clsSorter($this->ComponentName, "Sorter_listing_no", $FileName, $this);
     $this->Sorter_valid_from = new clsSorter($this->ComponentName, "Sorter_valid_from", $FileName, $this);
     $this->Sorter_valid_to = new clsSorter($this->ComponentName, "Sorter_valid_to", $FileName, $this);
     $this->Sorter_description = new clsSorter($this->ComponentName, "Sorter_description", $FileName, $this);
     $this->Sorter_creation_date = new clsSorter($this->ComponentName, "Sorter_creation_date", $FileName, $this);
     $this->Sorter_created_by = new clsSorter($this->ComponentName, "Sorter_created_by", $FileName, $this);
     $this->Sorter_updated_date = new clsSorter($this->ComponentName, "Sorter_updated_date", $FileName, $this);
     $this->Sorter_updated_by = new clsSorter($this->ComponentName, "Sorter_updated_by", $FileName, $this);
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpSimple, $this);
     $this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
 }
Example #7
0
    function clsGriditems1()
    {
        global $FileName;
        global $now;
        $this->ComponentName = "items1";
        $this->Visible = True;
        $this->Errors = new clsErrors();
        $this->ds = new clsitems1DataSource();
        $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
            $this->PageSize = $now["frontentrys"];
        else
            $this->PageSize = intval($this->PageSize);
        $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));

        $this->background = new clsControl(ccsLabel, "background", "background", ccsInteger, "", CCGetRequestParam("background", ccsGet));
        $this->background->HTML = true;
        $this->bold2 = new clsControl(ccsLabel, "bold2", "bold2", ccsText, "", CCGetRequestParam("bold2", ccsGet));
        $this->bold2->HTML = true;
        $this->image_preview = new clsControl(ccsLabel, "image_preview", "image_preview", ccsInteger, "", CCGetRequestParam("image_preview", ccsGet));
        $this->image_preview->HTML = true;
        $this->image_one = new clsControl(ccsLabel, "image_one", "image_one", ccsText, "", CCGetRequestParam("image_one", ccsGet));
        $this->image_one->HTML = true;
        $this->ItemNum = new clsControl(ccsLabel, "ItemNum", "ItemNum", ccsInteger, "", CCGetRequestParam("ItemNum", ccsGet));
        $this->bold = new clsControl(ccsLabel, "bold", "bold", ccsInteger, "", CCGetRequestParam("bold", ccsGet));
        $this->bold->HTML = true;
        $this->title = new clsControl(ccsLabel, "title", "title", ccsText, "", CCGetRequestParam("title", ccsGet));
        $this->make_offer = new clsControl(ccsLabel, "make_offer", "make_offer", ccsInteger, "", CCGetRequestParam("make_offer", ccsGet));
        $this->make_offer->HTML = true;
        $this->city_town = new clsControl(ccsLabel, "city_town", "city_town", ccsText, "", CCGetRequestParam("city_town", ccsGet));
        $this->state_province = new clsControl(ccsLabel, "state_province", "state_province", ccsText, "", CCGetRequestParam("state_province", ccsGet));
        $this->started = new clsControl(ccsLabel, "started", "started", ccsInteger, "", CCGetRequestParam("started", ccsGet));
        $this->asking_price = new clsControl(ccsLabel, "asking_price", "asking_price", ccsFloat, Array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("asking_price", ccsGet));
    }
 function clsGridusers1($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "users1";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid users1";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsusers1DataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->first_name = new clsControl(ccsLabel, "first_name", "first_name", ccsText, "", CCGetRequestParam("first_name", ccsGet, NULL), $this);
 }
Example #9
0
 function clsGridadministrators()
 {
     global $FileName;
     $this->ComponentName = "administrators";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clsadministratorsDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("administratorsOrder", "");
     $this->SorterDirection = CCGetParam("administratorsDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->username = new clsControl(ccsLabel, "username", "username", ccsText, "", CCGetRequestParam("username", ccsGet));
     $this->level = new clsControl(ccsLabel, "level", "level", ccsText, "", CCGetRequestParam("level", ccsGet));
     $this->firstname = new clsControl(ccsLabel, "firstname", "firstname", ccsText, "", CCGetRequestParam("firstname", ccsGet));
     $this->lastname = new clsControl(ccsLabel, "lastname", "lastname", ccsText, "", CCGetRequestParam("lastname", ccsGet));
     $this->phone = new clsControl(ccsLabel, "phone", "phone", ccsText, "", CCGetRequestParam("phone", ccsGet));
     $this->Sorter_username = new clsSorter($this->ComponentName, "Sorter_username", $FileName);
     $this->Sorter_level = new clsSorter($this->ComponentName, "Sorter_level", $FileName);
     $this->Sorter_firstname = new clsSorter($this->ComponentName, "Sorter_firstname", $FileName);
     $this->Sorter_lastname = new clsSorter($this->ComponentName, "Sorter_lastname", $FileName);
     $this->Sorter_phone = new clsSorter($this->ComponentName, "Sorter_phone", $FileName);
     $this->administrators_Insert = new clsControl(ccsLink, "administrators_Insert", "administrators_Insert", ccsText, "", CCGetRequestParam("administrators_Insert", ccsGet));
     $this->administrators_Insert->Parameters = CCGetQueryString("QueryString", array("admin_id", "ccsForm"));
     $this->administrators_Insert->Page = "AdministratorsEdit.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
 function clsGridSELECT_x_receipt_no_x_p_f($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "SELECT_x_receipt_no_x_p_f";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid SELECT_x_receipt_no_x_p_f";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsSELECT_x_receipt_no_x_p_fDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->p_finance_period_id =& new clsControl(ccsLabel, "p_finance_period_id", "p_finance_period_id", ccsFloat, "", CCGetRequestParam("p_finance_period_id", ccsGet, NULL), $this);
     $this->description =& new clsControl(ccsLabel, "description", "description", ccsText, "", CCGetRequestParam("description", ccsGet, NULL), $this);
     $this->code =& new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet, NULL), $this);
     $this->activation_date =& new clsControl(ccsLabel, "activation_date", "activation_date", ccsText, "", CCGetRequestParam("activation_date", ccsGet, NULL), $this);
 }
Example #11
0
 function clsGridpromo()
 {
     global $FileName;
     $this->ComponentName = "promo";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clspromoDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("promoOrder", "");
     $this->SorterDirection = CCGetParam("promoDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->id = new clsControl(ccsLabel, "id", "id", ccsInteger, "", CCGetRequestParam("id", ccsGet));
     $this->code = new clsControl(ccsLabel, "code", "code", ccsText, "", CCGetRequestParam("code", ccsGet));
     $this->start = new clsControl(ccsLabel, "start", "start", ccsInteger, "", CCGetRequestParam("start", ccsGet));
     $this->end = new clsControl(ccsLabel, "end", "end", ccsInteger, "", CCGetRequestParam("end", ccsGet));
     $this->amount = new clsControl(ccsLabel, "amount", "amount", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("amount", ccsGet));
     $this->Sorter_id = new clsSorter($this->ComponentName, "Sorter_id", $FileName);
     $this->Sorter_code = new clsSorter($this->ComponentName, "Sorter_code", $FileName);
     $this->Sorter_start = new clsSorter($this->ComponentName, "Sorter_start", $FileName);
     $this->Sorter_end = new clsSorter($this->ComponentName, "Sorter_end", $FileName);
     $this->Sorter_amount = new clsSorter($this->ComponentName, "Sorter_amount", $FileName);
     $this->promo_Insert = new clsControl(ccsLink, "promo_Insert", "promo_Insert", ccsText, "", CCGetRequestParam("promo_Insert", ccsGet));
     $this->promo_Insert->Parameters = CCGetQueryString("QueryString", array("id", "ccsForm"));
     $this->promo_Insert->Page = "AddPromo.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
Example #12
0
 function clsGridselect_CASE_WHEN_cust_acc($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "select_CASE_WHEN_cust_acc";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid select_CASE_WHEN_cust_acc";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsselect_CASE_WHEN_cust_accDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->status =& new clsControl(ccsLabel, "status", "status", ccsMemo, "", CCGetRequestParam("status", ccsGet, NULL), $this);
     $this->count =& new clsControl(ccsLabel, "count", "count", ccsInteger, "", CCGetRequestParam("count", ccsGet, NULL), $this);
 }
Example #13
0
 function clsGridlookup_countries()
 {
     global $FileName;
     $this->ComponentName = "lookup_countries";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clslookup_countriesDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("lookup_countriesOrder", "");
     $this->SorterDirection = CCGetParam("lookup_countriesDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->country_id = new clsControl(ccsLabel, "country_id", "country_id", ccsInteger, "", CCGetRequestParam("country_id", ccsGet));
     $this->country_desc = new clsControl(ccsLabel, "country_desc", "country_desc", ccsText, "", CCGetRequestParam("country_desc", ccsGet));
     $this->Sorter_country_id = new clsSorter($this->ComponentName, "Sorter_country_id", $FileName);
     $this->Sorter_country_desc = new clsSorter($this->ComponentName, "Sorter_country_desc", $FileName);
     $this->lookup_countries_Insert = new clsControl(ccsLink, "lookup_countries_Insert", "lookup_countries_Insert", ccsText, "", CCGetRequestParam("lookup_countries_Insert", ccsGet));
     $this->lookup_countries_Insert->Parameters = CCGetQueryString("QueryString", array("country_id", "ccsForm"));
     $this->lookup_countries_Insert->Page = "CountriesEdit.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
 function clsGridselect_from_f_status_belu($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "select_from_f_status_belu";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid select_from_f_status_belu";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsselect_from_f_status_beluDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->x_dummy =& new clsControl(ccsLabel, "x_dummy", "x_dummy", ccsFloat, "", CCGetRequestParam("x_dummy", ccsGet, NULL), $this);
     $this->p_vat_type_id =& new clsControl(ccsLabel, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
     $this->jml_wp =& new clsControl(ccsLabel, "jml_wp", "jml_wp", ccsFloat, "", CCGetRequestParam("jml_wp", ccsGet, NULL), $this);
 }
function Login_Button_DoLogin1_OnClick(&$sender)
{
    $Login_Button_DoLogin1_OnClick = true;
    $Component =& $sender;
    $Container =& CCGetParentContainer($sender);
    global $Login;
    //Compatibility
    //End Login_Button_DoLogin1_OnClick
    //Login @9-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;
    }
    //End Login
    //Close Login_Button_DoLogin1_OnClick @8-58EB7BC1
    return $Login_Button_DoLogin1_OnClick;
}
 function clsGridt_laporan_status_wp_detil($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "t_laporan_status_wp_detil";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid t_laporan_status_wp_detil";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clst_laporan_status_wp_detilDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 40;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
     $this->jumlah =& new clsControl(ccsLabel, "jumlah", "jumlah", ccsFloat, array(False, 0, Null, "", False, "", "", 1, True, ""), CCGetRequestParam("jumlah", ccsGet, NULL), $this);
     $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsText, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
 }
Example #17
0
 function clsGridcategories()
 {
     global $FileName;
     $this->ComponentName = "categories";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clscategoriesDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("categoriesOrder", "");
     $this->SorterDirection = CCGetParam("categoriesDir", "");
     $this->Go = new clsControl(ccsLink, "Go", "Go", ccsText, "", CCGetRequestParam("Go", ccsGet));
     $this->name = new clsControl(ccsLabel, "name", "name", ccsText, "", CCGetRequestParam("name", ccsGet));
     $this->weight = new clsControl(ccsLabel, "weight", "weight", ccsInteger, "", CCGetRequestParam("weight", ccsGet));
     $this->Edit = new clsControl(ccsLink, "Edit", "Edit", ccsText, "", CCGetRequestParam("Edit", ccsGet));
     $this->Sorter_name = new clsSorter($this->ComponentName, "Sorter_name", $FileName);
     $this->AddNew = new clsControl(ccsLink, "AddNew", "AddNew", ccsInteger, "", CCGetRequestParam("AddNew", ccsGet));
     $this->AddNew->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
     if (!CCGetFromGet("SUBID", "") || CCGetFromGet("SUBID", "") == "") {
         $this->AddNew->Parameters = CCAddParam($this->AddNew->Parameters, "SUBID", 1);
     } else {
         $this->AddNew->Parameters = CCAddParam($this->AddNew->Parameters, "SUBID", CCGetFromGet("SUBID", ""));
     }
     $this->AddNew->Page = "CategoriesMaintanence.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered);
 }
Example #18
0
 function clsGridcharges()
 {
     global $FileName;
     $this->ComponentName = "charges";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clschargesDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("chargesOrder", "");
     $this->SorterDirection = CCGetParam("chargesDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->user_id = new clsControl(ccsLabel, "user_id", "user_id", ccsInteger, "", CCGetRequestParam("user_id", ccsGet));
     $this->date = new clsControl(ccsLabel, "date", "date", ccsInteger, "", CCGetRequestParam("date", ccsGet));
     $this->charge = new clsControl(ccsLabel, "charge", "charge", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("charge", ccsGet));
     $this->Sorter_user_id = new clsSorter($this->ComponentName, "Sorter_user_id", $FileName);
     $this->Sorter_date = new clsSorter($this->ComponentName, "Sorter_date", $FileName);
     $this->Sorter_charge = new clsSorter($this->ComponentName, "Sorter_charge", $FileName);
     $this->charges_Insert = new clsControl(ccsLink, "charges_Insert", "charges_Insert", ccsText, "", CCGetRequestParam("charges_Insert", ccsGet));
     $this->charges_Insert->Parameters = CCGetQueryString("QueryString", array("charge_id", "ccsForm"));
     $this->charges_Insert->Page = "AddCharge.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
 function clsGridSELECT_t_revenue_target_i($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "SELECT_t_revenue_target_i";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid SELECT_t_revenue_target_i";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsSELECT_t_revenue_target_iDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->target_amount =& new clsControl(ccsLabel, "target_amount", "target_amount", ccsFloat, "", CCGetRequestParam("target_amount", ccsGet, NULL), $this);
     $this->realisasi_amt =& new clsControl(ccsLabel, "realisasi_amt", "realisasi_amt", ccsFloat, "", CCGetRequestParam("realisasi_amt", ccsGet, NULL), $this);
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
 }
Example #20
0
 function clsGridonline()
 {
     global $FileName;
     $this->ComponentName = "online";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clsonlineDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("onlineOrder", "");
     $this->SorterDirection = CCGetParam("onlineDir", "");
     $this->ip = new clsControl(ccsLabel, "ip", "ip", ccsText, "", CCGetRequestParam("ip", ccsGet));
     $this->datet = new clsControl(ccsLabel, "datet", "datet", ccsText, "", CCGetRequestParam("datet", ccsGet));
     $this->user = new clsControl(ccsLabel, "user", "user", ccsText, "", CCGetRequestParam("user", ccsGet));
     $this->page = new clsControl(ccsLabel, "page", "page", ccsText, "", CCGetRequestParam("page", ccsGet));
     $this->page->HTML = true;
     $this->Sorter_ip = new clsSorter($this->ComponentName, "Sorter_ip", $FileName);
     $this->Sorter_datet = new clsSorter($this->ComponentName, "Sorter_datet", $FileName);
     $this->Sorter_user = new clsSorter($this->ComponentName, "Sorter_user", $FileName);
     $this->Sorter_page = new clsSorter($this->ComponentName, "Sorter_page", $FileName);
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
Example #21
0
 function clsGridgroups()
 {
     global $FileName;
     $this->ComponentName = "groups";
     $this->Visible = True;
     $this->Errors = new clsErrors();
     $this->ds = new clsgroupsDataSource();
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 20;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     $this->SorterName = CCGetParam("groupsOrder", "");
     $this->SorterDirection = CCGetParam("groupsDir", "");
     $this->Detail = new clsControl(ccsLink, "Detail", "Detail", ccsText, "", CCGetRequestParam("Detail", ccsGet));
     $this->title = new clsControl(ccsLabel, "title", "title", ccsText, "", CCGetRequestParam("title", ccsGet));
     $this->description = new clsControl(ccsLabel, "description", "description", ccsMemo, "", CCGetRequestParam("description", ccsGet));
     $this->Sorter_title = new clsSorter($this->ComponentName, "Sorter_title", $FileName);
     $this->groups_Insert = new clsControl(ccsLink, "groups_Insert", "groups_Insert", ccsText, "", CCGetRequestParam("groups_Insert", ccsGet));
     $this->groups_Insert->Parameters = CCGetQueryString("QueryString", array("id", "ccsForm"));
     $this->groups_Insert->Page = "GroupsEdit.php";
     $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 5, tpCentered);
 }
 function clsGridHistoryGrid($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "HistoryGrid";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid HistoryGrid";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsHistoryGridDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 12;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->npwd =& new clsControl(ccsLabel, "npwd", "npwd", ccsText, "", CCGetRequestParam("npwd", ccsGet, NULL), $this);
     $this->company_name =& new clsControl(ccsLabel, "company_name", "company_name", ccsText, "", CCGetRequestParam("company_name", ccsGet, NULL), $this);
     $this->periode_pelaporan =& new clsControl(ccsLabel, "periode_pelaporan", "periode_pelaporan", ccsText, "", CCGetRequestParam("periode_pelaporan", ccsGet, NULL), $this);
     $this->periode_awal_laporan =& new clsControl(ccsLabel, "periode_awal_laporan", "periode_awal_laporan", ccsText, "", CCGetRequestParam("periode_awal_laporan", ccsGet, NULL), $this);
     $this->tgl_pelaporan =& new clsControl(ccsLabel, "tgl_pelaporan", "tgl_pelaporan", ccsText, "", CCGetRequestParam("tgl_pelaporan", ccsGet, NULL), $this);
     $this->total_transaksi =& new clsControl(ccsLabel, "total_transaksi", "total_transaksi", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("total_transaksi", ccsGet, NULL), $this);
     $this->total_pajak =& new clsControl(ccsLabel, "total_pajak", "total_pajak", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("total_pajak", ccsGet, NULL), $this);
     $this->kuitansi_pembayaran =& new clsControl(ccsLabel, "kuitansi_pembayaran", "kuitansi_pembayaran", ccsText, "", CCGetRequestParam("kuitansi_pembayaran", ccsGet, NULL), $this);
     $this->tgl_pembayaran =& new clsControl(ccsLabel, "tgl_pembayaran", "tgl_pembayaran", ccsText, "", CCGetRequestParam("tgl_pembayaran", ccsGet, NULL), $this);
     $this->payment_amount =& new clsControl(ccsLabel, "payment_amount", "payment_amount", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("payment_amount", ccsGet, NULL), $this);
     $this->periode_akhir_laporan =& new clsControl(ccsLabel, "periode_akhir_laporan", "periode_akhir_laporan", ccsText, "", CCGetRequestParam("periode_akhir_laporan", ccsGet, NULL), $this);
     $this->t_vat_setllement_id =& new clsControl(ccsHidden, "t_vat_setllement_id", "t_vat_setllement_id", ccsFloat, "", CCGetRequestParam("t_vat_setllement_id", ccsGet, NULL), $this);
     $this->t_cust_account_id =& new clsControl(ccsHidden, "t_cust_account_id", "t_cust_account_id", ccsFloat, "", CCGetRequestParam("t_cust_account_id", ccsGet, NULL), $this);
     $this->total_denda =& new clsControl(ccsLabel, "total_denda", "total_denda", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("total_denda", ccsGet, NULL), $this);
     $this->type_code =& new clsControl(ccsLabel, "type_code", "type_code", ccsText, "", CCGetRequestParam("type_code", ccsGet, NULL), $this);
     $this->debt_vat_amt =& new clsControl(ccsLabel, "debt_vat_amt", "debt_vat_amt", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("debt_vat_amt", ccsGet, NULL), $this);
     $this->kenaikan =& new clsControl(ccsLabel, "kenaikan", "kenaikan", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("kenaikan", ccsGet, NULL), $this);
     $this->total_hrs_bayar =& new clsControl(ccsLabel, "total_hrs_bayar", "total_hrs_bayar", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("total_hrs_bayar", ccsGet, NULL), $this);
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
     $this->kenaikan1 =& new clsControl(ccsLabel, "kenaikan1", "kenaikan1", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("kenaikan1", ccsGet, NULL), $this);
     $this->no_kohir =& new clsControl(ccsLabel, "no_kohir", "no_kohir", ccsText, "", CCGetRequestParam("no_kohir", ccsGet, NULL), $this);
     $this->jatuh_tempo =& new clsControl(ccsLabel, "jatuh_tempo", "jatuh_tempo", ccsText, "", CCGetRequestParam("jatuh_tempo", ccsGet, NULL), $this);
     $this->Navigator =& new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this);
     $this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
     $this->t_customer_id =& new clsControl(ccsHidden, "t_customer_id", "t_customer_id", ccsFloat, "", CCGetRequestParam("t_customer_id", ccsGet, NULL), $this);
     $this->customer_name =& new clsControl(ccsHidden, "customer_name", "customer_name", ccsText, "", CCGetRequestParam("customer_name", ccsGet, NULL), $this);
     $this->t_cust_acc_id =& new clsControl(ccsHidden, "t_cust_acc_id", "t_cust_acc_id", ccsFloat, "", CCGetRequestParam("t_cust_acc_id", ccsGet, NULL), $this);
     $this->Button_DoPrint1 =& new clsButton("Button_DoPrint1", ccsGet, $this);
 }
Example #23
0
 function clsEditableGridtitletitle1($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->Visible = true;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "EditableGrid title1/Error";
     $this->ControlsErrors = array();
     $this->ComponentName = "title1";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->CachedColumns["title_id"][0] = "title_id";
     $this->DataSource = new clstitletitle1DataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 10;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: EditableGrid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->EmptyRows = 3;
     $this->InsertAllowed = true;
     $this->UpdateAllowed = true;
     $this->DeleteAllowed = true;
     $this->ReadAllowed = true;
     if (!$this->Visible) {
         return;
     }
     $CCSForm = CCGetFromGet("ccsForm", "");
     $this->FormEnctype = "application/x-www-form-urlencoded";
     $this->FormSubmitted = $CCSForm == $this->ComponentName;
     if ($this->FormSubmitted) {
         $this->FormState = CCGetFromPost("FormState", "");
         $this->SetFormState($this->FormState);
     } else {
         $this->FormState = "";
     }
     $Method = $this->FormSubmitted ? ccsPost : ccsGet;
     $this->title_id = new clsControl(ccsLabel, "title_id", "title_id", ccsInteger, "", NULL, $this);
     $this->title = new clsControl(ccsTextBox, "title", "Title", ccsText, "", NULL, $this);
     $this->CheckBox_Delete = new clsControl(ccsCheckBox, "CheckBox_Delete", "CheckBox_Delete", ccsBoolean, $CCSLocales->GetFormatInfo("BooleanFormat"), NULL, $this);
     $this->CheckBox_Delete->CheckedValue = true;
     $this->CheckBox_Delete->UncheckedValue = false;
     $this->Button_Submit = new clsButton("Button_Submit", $Method, $this);
     $this->Cancel = new clsButton("Cancel", $Method, $this);
 }
Example #24
0
 function clsNavigator($ComponentName, $NavigatorName, $FileName, $NumberPages, $NavigatorType)
 {
     $this->TargetName = $ComponentName;
     $this->NavigatorName = $NavigatorName;
     $this->FileName = $FileName;
     $this->NumberPages = $NumberPages;
     $this->NavigatorType = $NavigatorType;
     $this->PageNumber = intval(CCGetParam($ComponentName . "Page", 1));
 }
Example #25
0
 function clsSorter($ComponentName, $SorterName, $FileName)
 {
     $this->TargetName = $ComponentName;
     $this->SorterName = $SorterName;
     $this->FileName = $FileName;
     $this->OrderColumn = CCGetParam($this->TargetName . "Order", "");
     $this->OrderDirection = CCGetParam($this->TargetName . "Dir", "");
     $this->IsOn = $this->OrderColumn == $this->SorterName;
     $this->IsAsc = !strlen($this->OrderDirection) || $this->OrderDirection == "asc";
 }
Example #26
0
function Page_AfterInitialize()
{
    //Page_AfterInitialize @1-56434BCA
    //Logout @9-EC13F9E1
    if (strlen(CCGetParam("Logout", ""))) {
        CCLogoutUser();
        global $Redirect;
        $Redirect = "login.php";
    }
    //End Logout
}
 function clsGridt_target_realisasi_jenisGrid($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "t_target_realisasi_jenisGrid";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid t_target_realisasi_jenisGrid";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clst_target_realisasi_jenisGridDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 7;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->DLink =& new clsControl(ccsLink, "DLink", "DLink", ccsText, "", CCGetRequestParam("DLink", ccsGet, NULL), $this);
     $this->DLink->HTML = true;
     $this->DLink->Page = "t_target_realisasi_jenis.php";
     $this->target_amount =& new clsControl(ccsLabel, "target_amount", "target_amount", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("target_amount", ccsGet, NULL), $this);
     $this->p_year_period_id =& new clsControl(ccsHidden, "p_year_period_id", "p_year_period_id", ccsFloat, "", CCGetRequestParam("p_year_period_id", ccsGet, NULL), $this);
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
     $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
     $this->realisasi_amt =& new clsControl(ccsLabel, "realisasi_amt", "realisasi_amt", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("realisasi_amt", ccsGet, NULL), $this);
     $this->percentage =& new clsControl(ccsLabel, "percentage", "percentage", ccsFloat, "", CCGetRequestParam("percentage", ccsGet, NULL), $this);
     $this->selisih =& new clsControl(ccsLabel, "selisih", "selisih", ccsFloat, "", CCGetRequestParam("selisih", ccsGet, NULL), $this);
     $this->percentage_selisih =& new clsControl(ccsLabel, "percentage_selisih", "percentage_selisih", ccsFloat, "", CCGetRequestParam("percentage_selisih", ccsGet, NULL), $this);
     $this->Navigator =& new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this);
     $this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
     $this->year_code =& new clsControl(ccsLabel, "year_code", "year_code", ccsText, "", CCGetRequestParam("year_code", ccsGet, NULL), $this);
     $this->t_revenue_target_id =& new clsControl(ccsHidden, "t_revenue_target_id", "t_revenue_target_id", ccsText, "", CCGetRequestParam("t_revenue_target_id", ccsGet, NULL), $this);
     $this->p_year_period_id2 =& new clsControl(ccsHidden, "p_year_period_id2", "p_year_period_id2", ccsText, "", CCGetRequestParam("p_year_period_id2", ccsGet, NULL), $this);
     $this->p_vat_type_id2 =& new clsControl(ccsHidden, "p_vat_type_id2", "p_vat_type_id2", ccsFloat, "", CCGetRequestParam("p_vat_type_id2", ccsGet, NULL), $this);
     $this->target_amount_sum =& new clsControl(ccsLabel, "target_amount_sum", "target_amount_sum", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("target_amount_sum", ccsGet, NULL), $this);
     $this->realisasi_amt_sum =& new clsControl(ccsLabel, "realisasi_amt_sum", "realisasi_amt_sum", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("realisasi_amt_sum", ccsGet, NULL), $this);
     $this->percentage_sum =& new clsControl(ccsLabel, "percentage_sum", "percentage_sum", ccsFloat, array(False, 2, Null, Null, False, "", "", 1, True, ""), CCGetRequestParam("percentage_sum", ccsGet, NULL), $this);
     $this->p_vat_group_id =& new clsControl(ccsHidden, "p_vat_group_id", "p_vat_group_id", ccsFloat, "", CCGetRequestParam("p_vat_group_id", ccsGet, NULL), $this);
 }
 function clsGridt_vat_setllementGrid($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "t_vat_setllementGrid";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid t_vat_setllementGrid";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clst_vat_setllementGridDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 15;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->DLink =& new clsControl(ccsLink, "DLink", "DLink", ccsText, "", CCGetRequestParam("DLink", ccsGet, NULL), $this);
     $this->DLink->HTML = true;
     $this->DLink->Page = "t_vat_setllement_ro_modifikasi_ubah_register.php";
     $this->npwd =& new clsControl(ccsLabel, "npwd", "npwd", ccsText, "", CCGetRequestParam("npwd", ccsGet, NULL), $this);
     $this->finance_period_code =& new clsControl(ccsLabel, "finance_period_code", "finance_period_code", ccsText, "", CCGetRequestParam("finance_period_code", ccsGet, NULL), $this);
     $this->order_no =& new clsControl(ccsHidden, "order_no", "order_no", ccsText, "", CCGetRequestParam("order_no", ccsGet, NULL), $this);
     $this->t_vat_setllement_id =& new clsControl(ccsHidden, "t_vat_setllement_id", "t_vat_setllement_id", ccsFloat, "", CCGetRequestParam("t_vat_setllement_id", ccsGet, NULL), $this);
     $this->total_trans_amount =& new clsControl(ccsLabel, "total_trans_amount", "total_trans_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_trans_amount", ccsGet, NULL), $this);
     $this->p_rqst_type_id =& new clsControl(ccsHidden, "p_rqst_type_id", "p_rqst_type_id", ccsFloat, "", CCGetRequestParam("p_rqst_type_id", ccsGet, NULL), $this);
     $this->total_vat_amount =& new clsControl(ccsLabel, "total_vat_amount", "total_vat_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_vat_amount", ccsGet, NULL), $this);
     $this->p_vat_type_id =& new clsControl(ccsHidden, "p_vat_type_id", "p_vat_type_id", ccsFloat, "", CCGetRequestParam("p_vat_type_id", ccsGet, NULL), $this);
     $this->no_kohir =& new clsControl(ccsLabel, "no_kohir", "no_kohir", ccsText, "", CCGetRequestParam("no_kohir", ccsGet, NULL), $this);
     $this->wp_name =& new clsControl(ccsLabel, "wp_name", "wp_name", ccsText, "", CCGetRequestParam("wp_name", ccsGet, NULL), $this);
     $this->t_customer_order_id =& new clsControl(ccsHidden, "t_customer_order_id", "t_customer_order_id", ccsInteger, "", CCGetRequestParam("t_customer_order_id", ccsGet, NULL), $this);
     $this->total_penalty_amount =& new clsControl(ccsLabel, "total_penalty_amount", "total_penalty_amount", ccsFloat, array(True, 0, Null, Null, False, array("#", "#", "#"), "", 1, True, ""), CCGetRequestParam("total_penalty_amount", ccsGet, NULL), $this);
     $this->sett_code =& new clsControl(ccsLabel, "sett_code", "sett_code", ccsText, "", CCGetRequestParam("sett_code", ccsGet, NULL), $this);
     $this->BtnUbahRegister =& new clsButton("BtnUbahRegister", ccsGet, $this);
     $this->payment_key =& new clsControl(ccsLabel, "payment_key", "payment_key", ccsText, "", CCGetRequestParam("payment_key", ccsGet, NULL), $this);
     $this->Button1 =& new clsButton("Button1", ccsGet, $this);
     $this->Navigator =& new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this);
     $this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
 }
Example #29
0
 function clsGridstatus_result_occupation($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "status_result_occupation";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid status_result_occupation";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clsstatus_result_occupationDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 100;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<BR>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->SorterName = CCGetParam("status_result_occupationOrder", "");
     $this->SorterDirection = CCGetParam("status_result_occupationDir", "");
     $this->status = new clsControl(ccsLabel, "status", "status", ccsText, "", CCGetRequestParam("status", ccsGet, NULL), $this);
     $this->appointment_time = new clsControl(ccsLabel, "appointment_time", "appointment_time", ccsDate, array("h", ":", "nn", " ", "AM/PM"), CCGetRequestParam("appointment_time", ccsGet, NULL), $this);
     $this->surname = new clsControl(ccsLink, "surname", "surname", ccsText, "", CCGetRequestParam("surname", ccsGet, NULL), $this);
     $this->surname->Page = "../reception/patient_info.php";
     $this->other_names = new clsControl(ccsLabel, "other_names", "other_names", ccsText, "", CCGetRequestParam("other_names", ccsGet, NULL), $this);
     $this->age = new clsControl(ccsLabel, "age", "age", ccsInteger, "", CCGetRequestParam("age", ccsGet, NULL), $this);
     $this->sex = new clsControl(ccsLabel, "sex", "sex", ccsText, "", CCGetRequestParam("sex", ccsGet, NULL), $this);
     $this->occupation = new clsControl(ccsLabel, "occupation", "occupation", ccsText, "", CCGetRequestParam("occupation", ccsGet, NULL), $this);
     $this->patient_id = new clsControl(ccsLink, "patient_id", "patient_id", ccsInteger, "", CCGetRequestParam("patient_id", ccsGet, NULL), $this);
     $this->patient_id->Page = "write_report.php";
     $this->status_result_occupation_TotalRecords = new clsControl(ccsLabel, "status_result_occupation_TotalRecords", "status_result_occupation_TotalRecords", ccsText, "", CCGetRequestParam("status_result_occupation_TotalRecords", ccsGet, NULL), $this);
     $this->Sorter_status = new clsSorter($this->ComponentName, "Sorter_status", $FileName, $this);
     $this->Sorter_appointment_time = new clsSorter($this->ComponentName, "Sorter_appointment_time", $FileName, $this);
     $this->Sorter_surname = new clsSorter($this->ComponentName, "Sorter_surname", $FileName, $this);
     $this->Sorter_other_names = new clsSorter($this->ComponentName, "Sorter_other_names", $FileName, $this);
     $this->Sorter_age = new clsSorter($this->ComponentName, "Sorter_age", $FileName, $this);
     $this->Sorter_sex = new clsSorter($this->ComponentName, "Sorter_sex", $FileName, $this);
     $this->Sorter_occupation = new clsSorter($this->ComponentName, "Sorter_occupation", $FileName, $this);
 }
 function clsGridt_customerGrid($RelativePath, &$Parent)
 {
     global $FileName;
     global $CCSLocales;
     global $DefaultDateFormat;
     $this->ComponentName = "t_customerGrid";
     $this->Visible = True;
     $this->Parent =& $Parent;
     $this->RelativePath = $RelativePath;
     $this->Errors = new clsErrors();
     $this->ErrorBlock = "Grid t_customerGrid";
     $this->Attributes = new clsAttributes($this->ComponentName . ":");
     $this->DataSource = new clst_customerGridDataSource($this);
     $this->ds =& $this->DataSource;
     $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
     if (!is_numeric($this->PageSize) || !strlen($this->PageSize)) {
         $this->PageSize = 5;
     } else {
         $this->PageSize = intval($this->PageSize);
     }
     if ($this->PageSize > 100) {
         $this->PageSize = 100;
     }
     if ($this->PageSize == 0) {
         $this->Errors->addError("<p>Form: Grid " . $this->ComponentName . "<br>Error: (CCS06) Invalid page size.</p>");
     }
     $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
     if ($this->PageNumber <= 0) {
         $this->PageNumber = 1;
     }
     $this->DLink =& new clsControl(ccsLink, "DLink", "DLink", ccsText, "", CCGetRequestParam("DLink", ccsGet, NULL), $this);
     $this->DLink->HTML = true;
     $this->DLink->Page = "t_customer_create_uname.php";
     $this->company_owner =& new clsControl(ccsLabel, "company_owner", "company_owner", ccsText, "", CCGetRequestParam("company_owner", ccsGet, NULL), $this);
     $this->email_address =& new clsControl(ccsLabel, "email_address", "email_address", ccsText, "", CCGetRequestParam("email_address", ccsGet, NULL), $this);
     $this->t_customer_id =& new clsControl(ccsHidden, "t_customer_id", "t_customer_id", ccsText, "", CCGetRequestParam("t_customer_id", ccsGet, NULL), $this);
     $this->ImageLink1 =& new clsControl(ccsImageLink, "ImageLink1", "ImageLink1", ccsText, "", CCGetRequestParam("ImageLink1", ccsGet, NULL), $this);
     $this->ImageLink1->Page = "t_cust_account.php";
     $this->mobile_no_owner =& new clsControl(ccsLabel, "mobile_no_owner", "mobile_no_owner", ccsText, "", CCGetRequestParam("mobile_no_owner", ccsGet, NULL), $this);
     $this->address_name_owner =& new clsControl(ccsLabel, "address_name_owner", "address_name_owner", ccsText, "", CCGetRequestParam("address_name_owner", ccsGet, NULL), $this);
     $this->address_no_owner =& new clsControl(ccsLabel, "address_no_owner", "address_no_owner", ccsText, "", CCGetRequestParam("address_no_owner", ccsGet, NULL), $this);
     $this->address_rt_owner =& new clsControl(ccsLabel, "address_rt_owner", "address_rt_owner", ccsText, "", CCGetRequestParam("address_rt_owner", ccsGet, NULL), $this);
     $this->address_rw_owner =& new clsControl(ccsLabel, "address_rw_owner", "address_rw_owner", ccsText, "", CCGetRequestParam("address_rw_owner", ccsGet, NULL), $this);
     $this->vat_code =& new clsControl(ccsLabel, "vat_code", "vat_code", ccsText, "", CCGetRequestParam("vat_code", ccsGet, NULL), $this);
     $this->company_brand =& new clsControl(ccsLabel, "company_brand", "company_brand", ccsText, "", CCGetRequestParam("company_brand", ccsGet, NULL), $this);
     $this->brand_address_name =& new clsControl(ccsLabel, "brand_address_name", "brand_address_name", ccsText, "", CCGetRequestParam("brand_address_name", ccsGet, NULL), $this);
     $this->Button1 =& new clsButton("Button1", ccsGet, $this);
     $this->npwd =& new clsControl(ccsLabel, "npwd", "npwd", ccsText, "", CCGetRequestParam("npwd", ccsGet, NULL), $this);
     $this->Navigator =& new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this);
     $this->Navigator->PageSizes = array("1", "5", "10", "25", "50");
 }