Пример #1
0
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->t_cust_acc_masa_jab_id->SetValue($this->DataSource->t_cust_acc_masa_jab_id->GetValue());
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->nama->SetValue($this->DataSource->nama->GetValue());
                 $this->masa_awal->SetValue($this->DataSource->masa_awal->GetValue());
                 $this->masa_akhir->SetValue($this->DataSource->masa_akhir->GetValue());
                 $this->t_cust_account_id->SetValue($this->DataSource->t_cust_account_id->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->t_cust_acc_masa_jab_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cacc_legal_docGridPage->Errors->ToString());
         $Error = ComposeStrings($Error, $this->nama->Errors->ToString());
         $Error = ComposeStrings($Error, $this->masa_awal->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->masa_akhir->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->t_cust_acc_masa_jab_id->Show();
     $this->created_by->Show();
     $this->updated_by->Show();
     $this->creation_date->Show();
     $this->updated_date->Show();
     $this->t_cacc_legal_docGridPage->Show();
     $this->nama->Show();
     $this->masa_awal->Show();
     $this->DatePicker_tgl_penerimaan->Show();
     $this->masa_akhir->Show();
     $this->DatePicker_tgl_penerimaan1->Show();
     $this->t_cust_account_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #2
0
 function Show()
 {
     global $CCSUseAmp;
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->oldpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->newpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->confirmpwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button1->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->oldpwd->Show();
     $this->newpwd->Show();
     $this->confirmpwd->Show();
     $this->Button1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->date_start_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_date_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->date_end_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->cetak_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button1->Show();
     $this->date_start_laporan->Show();
     $this->DatePicker_date_start_laporan1->Show();
     $this->date_end_laporan->Show();
     $this->DatePicker_end_start_laporan1->Show();
     $this->cetak_laporan->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
Пример #4
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->valid_from->Errors->ToString());
     $errors = ComposeStrings($errors, $this->editlink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->role_name->Errors->ToString());
     $errors = ComposeStrings($errors, $this->valid_to->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->qty_room_sold->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->finance_period_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_year_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->year_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->total_trans_amount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_start_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_period->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code_dtl_cls->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_dtl_cls_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mode_denda->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->creation_date->Show();
     $this->created_by->Show();
     $this->updated_date->Show();
     $this->updated_by->Show();
     $this->qty_room_sold->Show();
     $this->npwd->Show();
     $this->t_cust_account_id->Show();
     $this->finance_period_code->Show();
     $this->p_finance_period_id->Show();
     $this->p_year_period_id->Show();
     $this->year_code->Show();
     $this->total_trans_amount->Show();
     $this->start_period->Show();
     $this->DatePicker_start_period->Show();
     $this->end_period->Show();
     $this->DatePicker_end_period->Show();
     $this->Button1->Show();
     $this->company_name->Show();
     $this->vat_code->Show();
     $this->p_vat_type_id->Show();
     $this->vat_code_dtl->Show();
     $this->p_vat_type_dtl_id->Show();
     $this->vat_code_dtl_cls->Show();
     $this->p_vat_type_dtl_cls_id->Show();
     $this->mode_denda->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->tgl_pelaporan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->nilai_denda->Errors->ToString());
     $errors = ComposeStrings($errors, $this->jml_lapor->Errors->ToString());
     $errors = ComposeStrings($errors, $this->nilai_lapor->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->DLink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->target_amount->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_year_period_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->vat_code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_vat_type_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->realisasi_amt->Errors->ToString());
     $errors = ComposeStrings($errors, $this->percentage->Errors->ToString());
     $errors = ComposeStrings($errors, $this->selisih->Errors->ToString());
     $errors = ComposeStrings($errors, $this->percentage_selisih->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->p_bphtb_legal_doc_type_id->Prepare();
     $this->jenis_harga_bphtb->Prepare();
     $this->add_disc_percent->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->wp_kota->SetValue($this->DataSource->wp_kota->GetValue());
                 $this->wp_kelurahan->SetValue($this->DataSource->wp_kelurahan->GetValue());
                 $this->wp_p_region_id->SetValue($this->DataSource->wp_p_region_id->GetValue());
                 $this->wp_p_region_id_kec->SetValue($this->DataSource->wp_p_region_id_kec->GetValue());
                 $this->wp_p_region_id_kel->SetValue($this->DataSource->wp_p_region_id_kel->GetValue());
                 $this->wp_kecamatan->SetValue($this->DataSource->wp_kecamatan->GetValue());
                 $this->wp_name->SetValue($this->DataSource->wp_name->GetValue());
                 $this->wp_address_name->SetValue($this->DataSource->wp_address_name->GetValue());
                 $this->npwp->SetValue($this->DataSource->npwp->GetValue());
                 $this->object_kelurahan->SetValue($this->DataSource->object_kelurahan->GetValue());
                 $this->object_p_region_id_kel->SetValue($this->DataSource->object_p_region_id_kel->GetValue());
                 $this->object_kecamatan->SetValue($this->DataSource->object_kecamatan->GetValue());
                 $this->object_p_region_id_kec->SetValue($this->DataSource->object_p_region_id_kec->GetValue());
                 $this->object_kota->SetValue($this->DataSource->object_kota->GetValue());
                 $this->object_p_region_id->SetValue($this->DataSource->object_p_region_id->GetValue());
                 $this->land_area->SetValue($this->DataSource->land_area->GetValue());
                 $this->land_price_per_m->SetValue($this->DataSource->land_price_per_m->GetValue());
                 $this->land_total_price->SetValue($this->DataSource->land_total_price->GetValue());
                 $this->building_area->SetValue($this->DataSource->building_area->GetValue());
                 $this->building_price_per_m->SetValue($this->DataSource->building_price_per_m->GetValue());
                 $this->building_total_price->SetValue($this->DataSource->building_total_price->GetValue());
                 $this->wp_rt->SetValue($this->DataSource->wp_rt->GetValue());
                 $this->wp_rw->SetValue($this->DataSource->wp_rw->GetValue());
                 $this->object_rt->SetValue($this->DataSource->object_rt->GetValue());
                 $this->object_rw->SetValue($this->DataSource->object_rw->GetValue());
                 $this->njop_pbb->SetValue($this->DataSource->njop_pbb->GetValue());
                 $this->object_address_name->SetValue($this->DataSource->object_address_name->GetValue());
                 $this->npop->SetValue($this->DataSource->npop->GetValue());
                 $this->npop_tkp->SetValue($this->DataSource->npop_tkp->GetValue());
                 $this->npop_kp->SetValue($this->DataSource->npop_kp->GetValue());
                 $this->bphtb_amt->SetValue($this->DataSource->bphtb_amt->GetValue());
                 $this->bphtb_amt_final->SetValue($this->DataSource->bphtb_amt_final->GetValue());
                 $this->bphtb_discount->SetValue($this->DataSource->bphtb_discount->GetValue());
                 $this->description->SetValue($this->DataSource->description->GetValue());
                 $this->market_price->SetValue($this->DataSource->market_price->GetValue());
                 $this->phone_no->SetValue($this->DataSource->phone_no->GetValue());
                 $this->mobile_phone_no->SetValue($this->DataSource->mobile_phone_no->GetValue());
                 $this->t_bphtb_registration_id->SetValue($this->DataSource->t_bphtb_registration_id->GetValue());
                 $this->p_bphtb_legal_doc_type_id->SetValue($this->DataSource->p_bphtb_legal_doc_type_id->GetValue());
                 $this->t_customer_order_id->SetValue($this->DataSource->t_customer_order_id->GetValue());
                 $this->p_rqst_type_id->SetValue($this->DataSource->p_rqst_type_id->GetValue());
                 $this->jenis_harga_bphtb->SetValue($this->DataSource->jenis_harga_bphtb->GetValue());
                 $this->bphtb_legal_doc_description->SetValue($this->DataSource->bphtb_legal_doc_description->GetValue());
                 $this->add_disc_percent->SetValue($this->DataSource->add_disc_percent->GetValue());
                 $this->p_bphtb_type_id->SetValue($this->DataSource->p_bphtb_type_id->GetValue());
                 $this->prev_payment_amount->SetValue($this->DataSource->prev_payment_amount->GetValue());
                 $this->bphtb_amt_final_old->SetValue($this->DataSource->bphtb_amt_final_old->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
         $this->total_price->SetText($this->DataSource->land_total_price->GetValue() + $this->DataSource->building_total_price->GetValue());
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->wp_kota->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id_kec->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id_kel->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_address_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npwp->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_p_region_id_kel->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_p_region_id_kec->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_kota->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_p_region_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->land_area->Errors->ToString());
         $Error = ComposeStrings($Error, $this->land_price_per_m->Errors->ToString());
         $Error = ComposeStrings($Error, $this->land_total_price->Errors->ToString());
         $Error = ComposeStrings($Error, $this->building_area->Errors->ToString());
         $Error = ComposeStrings($Error, $this->building_price_per_m->Errors->ToString());
         $Error = ComposeStrings($Error, $this->building_total_price->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_rt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_rw->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_rt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_rw->Errors->ToString());
         $Error = ComposeStrings($Error, $this->njop_pbb->Errors->ToString());
         $Error = ComposeStrings($Error, $this->object_address_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npop->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npop_tkp->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npop_kp->Errors->ToString());
         $Error = ComposeStrings($Error, $this->bphtb_amt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->bphtb_amt_final->Errors->ToString());
         $Error = ComposeStrings($Error, $this->bphtb_discount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->market_price->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mobile_phone_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->total_price->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_bphtb_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_bphtb_legal_doc_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->jenis_harga_bphtb->Errors->ToString());
         $Error = ComposeStrings($Error, $this->bphtb_legal_doc_description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->nilai_doc->Errors->ToString());
         $Error = ComposeStrings($Error, $this->add_disc_percent->Errors->ToString());
         $Error = ComposeStrings($Error, $this->add_discount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_bphtb_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->prev_payment_amount->Errors->ToString());
         $Error = ComposeStrings($Error, $this->bphtb_amt_final_old->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->wp_kota->Show();
     $this->wp_kelurahan->Show();
     $this->wp_p_region_id->Show();
     $this->wp_p_region_id_kec->Show();
     $this->wp_p_region_id_kel->Show();
     $this->wp_kecamatan->Show();
     $this->wp_name->Show();
     $this->wp_address_name->Show();
     $this->npwp->Show();
     $this->object_kelurahan->Show();
     $this->object_p_region_id_kel->Show();
     $this->object_kecamatan->Show();
     $this->object_p_region_id_kec->Show();
     $this->object_kota->Show();
     $this->object_p_region_id->Show();
     $this->land_area->Show();
     $this->land_price_per_m->Show();
     $this->land_total_price->Show();
     $this->building_area->Show();
     $this->building_price_per_m->Show();
     $this->building_total_price->Show();
     $this->wp_rt->Show();
     $this->wp_rw->Show();
     $this->object_rt->Show();
     $this->object_rw->Show();
     $this->njop_pbb->Show();
     $this->object_address_name->Show();
     $this->npop->Show();
     $this->npop_tkp->Show();
     $this->npop_kp->Show();
     $this->bphtb_amt->Show();
     $this->bphtb_amt_final->Show();
     $this->bphtb_discount->Show();
     $this->description->Show();
     $this->market_price->Show();
     $this->phone_no->Show();
     $this->mobile_phone_no->Show();
     $this->total_price->Show();
     $this->t_bphtb_registration_id->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->CURR_DOC_ID->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $this->Button2->Show();
     $this->Button3->Show();
     $this->p_bphtb_legal_doc_type_id->Show();
     $this->t_customer_order_id->Show();
     $this->p_rqst_type_id->Show();
     $this->jenis_harga_bphtb->Show();
     $this->bphtb_legal_doc_description->Show();
     $this->nilai_doc->Show();
     $this->add_disc_percent->Show();
     $this->add_discount->Show();
     $this->p_bphtb_type_id->Show();
     $this->prev_payment_amount->Show();
     $this->bphtb_amt_final_old->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->s_keyword->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->npwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->finance_period_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->order_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_setllement_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->rqst_type_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->s_keyword->Show();
     $this->Button_DoSearch->Show();
     $this->t_cust_account_id->Show();
     $this->p_finance_period_id->Show();
     $this->t_customer_order_id->Show();
     $this->npwd->Show();
     $this->finance_period_code->Show();
     $this->order_no->Show();
     $this->t_vat_setllement_id->Show();
     $this->rqst_type_code->Show();
     $this->p_rqst_type_id->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->CURR_DOC_ID->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
Пример #10
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->npwd->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_vat_setllement_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_cust_account_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->company_name->Errors->ToString());
     $errors = ComposeStrings($errors, $this->periode_pelaporan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->tgl_pelaporan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->total_transaksi->Errors->ToString());
     $errors = ComposeStrings($errors, $this->total_pajak->Errors->ToString());
     $errors = ComposeStrings($errors, $this->kuitansi_pembayaran->Errors->ToString());
     $errors = ComposeStrings($errors, $this->tgl_pembayaran->Errors->ToString());
     $errors = ComposeStrings($errors, $this->payment_amount->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_finance_period_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->periode_awal_laporan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->periode_akhir_laporan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
Пример #11
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->is_active->Errors->ToString());
     $errors = ComposeStrings($errors, $this->description->Errors->ToString());
     $errors = ComposeStrings($errors, $this->creation_date->Errors->ToString());
     $errors = ComposeStrings($errors, $this->created_by->Errors->ToString());
     $errors = ComposeStrings($errors, $this->updated_date->Errors->ToString());
     $errors = ComposeStrings($errors, $this->updated_by->Errors->ToString());
     $errors = ComposeStrings($errors, $this->editlink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_role_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->group_id->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->username->SetValue($this->DataSource->username->GetValue());
                 $this->password->SetValue($this->DataSource->password->GetValue());
                 $this->fullname->SetValue($this->DataSource->fullname->GetValue());
                 $this->group_id->SetValue($this->DataSource->group_id->GetValue());
                 $this->jobposition->SetValue($this->DataSource->jobposition->GetValue());
                 $this->phone->SetValue($this->DataSource->phone->GetValue());
                 $this->created_userid->SetValue($this->DataSource->created_userid->GetValue());
                 $this->modified_userid->SetValue($this->DataSource->modified_userid->GetValue());
                 $this->guid->SetValue($this->DataSource->guid->GetValue());
                 $this->personal_id->SetValue($this->DataSource->personal_id->GetValue());
                 $this->email->SetValue($this->DataSource->email->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->username->Errors->ToString());
         $Error = ComposeStrings($Error, $this->password->Errors->ToString());
         $Error = ComposeStrings($Error, $this->fullname->Errors->ToString());
         $Error = ComposeStrings($Error, $this->group_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->jobposition->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_userid->Errors->ToString());
         $Error = ComposeStrings($Error, $this->modified_userid->Errors->ToString());
         $Error = ComposeStrings($Error, $this->guid->Errors->ToString());
         $Error = ComposeStrings($Error, $this->password_Shadow->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_photo->Errors->ToString());
         $Error = ComposeStrings($Error, $this->personal_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->email->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->username->Show();
     $this->password->Show();
     $this->fullname->Show();
     $this->group_id->Show();
     $this->jobposition->Show();
     $this->phone->Show();
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->created_userid->Show();
     $this->modified_userid->Show();
     $this->guid->Show();
     $this->password_Shadow->Show();
     $this->user_photo->Show();
     $this->personal_id->Show();
     $this->email->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #13
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->license_type_code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_cacc_license_letter_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->license_no->Errors->ToString());
     $errors = ComposeStrings($errors, $this->valid_from->Errors->ToString());
     $errors = ComposeStrings($errors, $this->valid_to->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DLink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->ADLink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->description->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_cust_account_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->btn_update->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
Пример #14
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->p_license_type_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->trans_date_txt->Errors->ToString());
     $errors = ComposeStrings($errors, $this->service_charge->Errors->ToString());
     $errors = ComposeStrings($errors, $this->vat_charge->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->t_vat_registration_id->SetValue($this->DataSource->t_vat_registration_id->GetValue());
                 $this->clerk_qty->SetValue($this->DataSource->clerk_qty->GetValue());
                 $this->seat_qty->SetValue($this->DataSource->seat_qty->GetValue());
                 $this->service_charge_wd->SetValue($this->DataSource->service_charge_wd->GetValue());
                 $this->entertainment_desc->SetValue($this->DataSource->entertainment_desc->GetValue());
                 $this->p_entertaintment_type_id->SetValue($this->DataSource->p_entertaintment_type_id->GetValue());
                 $this->t_vat_reg_dtl_entertaintment_id->SetValue($this->DataSource->t_vat_reg_dtl_entertaintment_id->GetValue());
                 $this->room_qty->SetValue($this->DataSource->room_qty->GetValue());
                 $this->booking_hour->SetValue($this->DataSource->booking_hour->GetValue());
                 $this->f_and_b->SetValue($this->DataSource->f_and_b->GetValue());
                 $this->portion_person->SetValue($this->DataSource->portion_person->GetValue());
                 $this->service_charge_we->SetValue($this->DataSource->service_charge_we->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->rqst_type_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->clerk_qty->Errors->ToString());
         $Error = ComposeStrings($Error, $this->seat_qty->Errors->ToString());
         $Error = ComposeStrings($Error, $this->service_charge_wd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->entertainment_desc->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_entertaintment_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_reg_dtl_entertaintment_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->room_qty->Errors->ToString());
         $Error = ComposeStrings($Error, $this->booking_hour->Errors->ToString());
         $Error = ComposeStrings($Error, $this->f_and_b->Errors->ToString());
         $Error = ComposeStrings($Error, $this->portion_person->Errors->ToString());
         $Error = ComposeStrings($Error, $this->service_charge_we->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->created_by->Show();
     $this->updated_by->Show();
     $this->creation_date->Show();
     $this->updated_date->Show();
     $this->t_vat_registration_id->Show();
     $this->rqst_type_code->Show();
     $this->clerk_qty->Show();
     $this->seat_qty->Show();
     $this->service_charge_wd->Show();
     $this->entertainment_desc->Show();
     $this->p_entertaintment_type_id->Show();
     $this->t_vat_reg_dtl_entertaintment_id->Show();
     $this->p_rqst_type_id->Show();
     $this->t_customer_order_id->Show();
     $this->room_qty->Show();
     $this->booking_hour->Show();
     $this->f_and_b->Show();
     $this->portion_person->Show();
     $this->service_charge_we->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #17
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->jabatan->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_vat_reg_employee_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->employee_qty->Errors->ToString());
     $errors = ComposeStrings($errors, $this->employee_salery->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DLink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->ADLink->Errors->ToString());
     $errors = ComposeStrings($errors, $this->description->Errors->ToString());
     $errors = ComposeStrings($errors, $this->t_vat_registration_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
Пример #18
0
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->kode_wilayah->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->t_cust_account_id->SetValue($this->DataSource->t_cust_account_id->GetValue());
                 $this->nama_kota->SetValue($this->DataSource->nama_kota->GetValue());
                 $this->nama_kecamatan->SetValue($this->DataSource->nama_kecamatan->GetValue());
                 $this->nama_kelurahan->SetValue($this->DataSource->nama_kelurahan->GetValue());
                 $this->address_rt_owner->SetValue($this->DataSource->address_rt_owner->GetValue());
                 $this->address_rw_owner->SetValue($this->DataSource->address_rw_owner->GetValue());
                 $this->zip_code_owner->SetValue($this->DataSource->zip_code_owner->GetValue());
                 $this->phone_no_owner->SetValue($this->DataSource->phone_no_owner->GetValue());
                 $this->mobile_no->SetValue($this->DataSource->mobile_no->GetValue());
                 $this->email_address->SetValue($this->DataSource->email_address->GetValue());
                 $this->address_name_owner->SetValue($this->DataSource->address_name_owner->GetValue());
                 $this->company_owner->SetValue($this->DataSource->company_owner->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->p_region_id_kel_owner->SetValue($this->DataSource->p_region_id_kel_owner->GetValue());
                 $this->p_region_id_kec_owner->SetValue($this->DataSource->p_region_id_kec_owner->GetValue());
                 $this->p_region_id_owner->SetValue($this->DataSource->p_region_id_owner->GetValue());
                 $this->fax_no_owner->SetValue($this->DataSource->fax_no_owner->GetValue());
                 $this->address_no_owner->SetValue($this->DataSource->address_no_owner->GetValue());
                 $this->kode_wilayah->SetValue($this->DataSource->kode_wilayah->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->t_cust_account_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->nama_kota->Errors->ToString());
         $Error = ComposeStrings($Error, $this->nama_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->nama_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rt_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rw_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->zip_code_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mobile_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->email_address->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_name_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kel_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kec_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->fax_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kode_wilayah->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->t_cust_account_id->Show();
     $this->nama_kota->Show();
     $this->nama_kecamatan->Show();
     $this->nama_kelurahan->Show();
     $this->address_rt_owner->Show();
     $this->address_rw_owner->Show();
     $this->zip_code_owner->Show();
     $this->phone_no_owner->Show();
     $this->mobile_no->Show();
     $this->email_address->Show();
     $this->address_name_owner->Show();
     $this->company_owner->Show();
     $this->Button_Cancel->Show();
     $this->Button_Update->Show();
     $this->updated_by->Show();
     $this->p_region_id_kel_owner->Show();
     $this->p_region_id_kec_owner->Show();
     $this->p_region_id_owner->Show();
     $this->fax_no_owner->Show();
     $this->address_no_owner->Show();
     $this->kode_wilayah->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->no->Errors->ToString());
     $errors = ComposeStrings($errors, $this->survey_question->Errors->ToString());
     $errors = ComposeStrings($errors, $this->pilihan_jawaban->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_survey_question_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->p_hotel_grade_id->Prepare();
     $this->p_rest_service_type_id->Prepare();
     $this->p_entertaintment_type_id->Prepare();
     $this->p_parking_classification_id->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->order_no->SetValue($this->DataSource->order_no->GetValue());
                 $this->registration_date->SetValue($this->DataSource->registration_date->GetValue());
                 $this->t_customer_order_id->SetValue($this->DataSource->t_customer_order_id->GetValue());
                 $this->kelurahan_code->SetValue($this->DataSource->kelurahan_code->GetValue());
                 $this->kecamatan_code->SetValue($this->DataSource->kecamatan_code->GetValue());
                 $this->kota_code->SetValue($this->DataSource->kota_code->GetValue());
                 $this->p_region_id_kelurahan->SetValue($this->DataSource->p_region_id_kelurahan->GetValue());
                 $this->p_region_id_kecamatan->SetValue($this->DataSource->p_region_id_kecamatan->GetValue());
                 $this->p_region_id->SetValue($this->DataSource->p_region_id->GetValue());
                 $this->kelurahan_own_code->SetValue($this->DataSource->kelurahan_own_code->GetValue());
                 $this->kecamatan_own_code->SetValue($this->DataSource->kecamatan_own_code->GetValue());
                 $this->kota_own_code->SetValue($this->DataSource->kota_own_code->GetValue());
                 $this->p_region_id_kel_owner->SetValue($this->DataSource->p_region_id_kel_owner->GetValue());
                 $this->p_region_id_kec_owner->SetValue($this->DataSource->p_region_id_kec_owner->GetValue());
                 $this->p_region_id_owner->SetValue($this->DataSource->p_region_id_owner->GetValue());
                 $this->company_name->SetValue($this->DataSource->company_name->GetValue());
                 $this->address_name->SetValue($this->DataSource->address_name->GetValue());
                 $this->job_position_code->SetValue($this->DataSource->job_position_code->GetValue());
                 $this->p_job_position_id->SetValue($this->DataSource->p_job_position_id->GetValue());
                 $this->company_brand->SetValue($this->DataSource->company_brand->GetValue());
                 $this->address_no->SetValue($this->DataSource->address_no->GetValue());
                 $this->address_rt->SetValue($this->DataSource->address_rt->GetValue());
                 $this->address_rw->SetValue($this->DataSource->address_rw->GetValue());
                 $this->address_no_owner->SetValue($this->DataSource->address_no_owner->GetValue());
                 $this->address_rt_owner->SetValue($this->DataSource->address_rt_owner->GetValue());
                 $this->address_rw_owner->SetValue($this->DataSource->address_rw_owner->GetValue());
                 $this->phone_no->SetValue($this->DataSource->phone_no->GetValue());
                 $this->fax_no->SetValue($this->DataSource->fax_no->GetValue());
                 $this->zip_code->SetValue($this->DataSource->zip_code->GetValue());
                 $this->phone_no_owner->SetValue($this->DataSource->phone_no_owner->GetValue());
                 $this->company_owner->SetValue($this->DataSource->company_owner->GetValue());
                 $this->fax_no_owner->SetValue($this->DataSource->fax_no_owner->GetValue());
                 $this->zip_code_owner->SetValue($this->DataSource->zip_code_owner->GetValue());
                 $this->mobile_no->SetValue($this->DataSource->mobile_no->GetValue());
                 $this->address_name_owner->SetValue($this->DataSource->address_name_owner->GetValue());
                 $this->p_rqst_type_id->SetValue($this->DataSource->p_rqst_type_id->GetValue());
                 $this->email->SetValue($this->DataSource->email->GetValue());
                 $this->company_additional_addr->SetValue($this->DataSource->company_additional_addr->GetValue());
                 $this->p_hotel_grade_id->SetValue($this->DataSource->p_hotel_grade_id->GetValue());
                 $this->p_rest_service_type_id->SetValue($this->DataSource->p_rest_service_type_id->GetValue());
                 $this->p_entertaintment_type_id->SetValue($this->DataSource->p_entertaintment_type_id->GetValue());
                 $this->p_parking_classification_id->SetValue($this->DataSource->p_parking_classification_id->GetValue());
                 $this->t_vat_registration_id->SetValue($this->DataSource->t_vat_registration_id->GetValue());
                 $this->rqst_type_code->SetValue($this->DataSource->rqst_type_code->GetValue());
                 $this->wp_name->SetValue($this->DataSource->wp_name->GetValue());
                 $this->wp_address_name->SetValue($this->DataSource->wp_address_name->GetValue());
                 $this->wp_address_no->SetValue($this->DataSource->wp_address_no->GetValue());
                 $this->wp_address_rt->SetValue($this->DataSource->wp_address_rt->GetValue());
                 $this->wp_address_rw->SetValue($this->DataSource->wp_address_rw->GetValue());
                 $this->wp_kota->SetValue($this->DataSource->wp_kota->GetValue());
                 $this->wp_kecamatan->SetValue($this->DataSource->wp_kecamatan->GetValue());
                 $this->wp_kelurahan->SetValue($this->DataSource->wp_kelurahan->GetValue());
                 $this->wp_phone_no->SetValue($this->DataSource->wp_phone_no->GetValue());
                 $this->wp_email->SetValue($this->DataSource->wp_email->GetValue());
                 $this->wp_fax_no->SetValue($this->DataSource->wp_fax_no->GetValue());
                 $this->wp_zip_code->SetValue($this->DataSource->wp_zip_code->GetValue());
                 $this->wp_mobile_no->SetValue($this->DataSource->wp_mobile_no->GetValue());
                 $this->wp_p_region_id->SetValue($this->DataSource->wp_p_region_id->GetValue());
                 $this->wp_p_region_id_kecamatan->SetValue($this->DataSource->wp_p_region_id_kecamatan->GetValue());
                 $this->wp_p_region_id_kelurahan->SetValue($this->DataSource->wp_p_region_id_kelurahan->GetValue());
                 $this->brand_address_name->SetValue($this->DataSource->brand_address_name->GetValue());
                 $this->brand_address_no->SetValue($this->DataSource->brand_address_no->GetValue());
                 $this->brand_address_rt->SetValue($this->DataSource->brand_address_rt->GetValue());
                 $this->brand_address_rw->SetValue($this->DataSource->brand_address_rw->GetValue());
                 $this->brand_kota->SetValue($this->DataSource->brand_kota->GetValue());
                 $this->brand_kecamatan->SetValue($this->DataSource->brand_kecamatan->GetValue());
                 $this->brand_kelurahan->SetValue($this->DataSource->brand_kelurahan->GetValue());
                 $this->brand_phone_no->SetValue($this->DataSource->brand_phone_no->GetValue());
                 $this->brand_fax_no->SetValue($this->DataSource->brand_fax_no->GetValue());
                 $this->brand_zip_code->SetValue($this->DataSource->brand_zip_code->GetValue());
                 $this->brand_mobile_no->SetValue($this->DataSource->brand_mobile_no->GetValue());
                 $this->mobile_no_owner->SetValue($this->DataSource->mobile_no_owner->GetValue());
                 $this->wp_user_name->SetValue($this->DataSource->wp_user_name->GetValue());
                 $this->wp_user_pwd->SetValue($this->DataSource->wp_user_pwd->GetValue());
                 $this->brand_p_region_id->SetValue($this->DataSource->brand_p_region_id->GetValue());
                 $this->brand_p_region_id_kec->SetValue($this->DataSource->brand_p_region_id_kec->GetValue());
                 $this->brand_p_region_id_kel->SetValue($this->DataSource->brand_p_region_id_kel->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->order_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->registration_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kelurahan_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kecamatan_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kota_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kelurahan_own_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kecamatan_own_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->kota_own_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kel_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_kec_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_region_id_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->job_position_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_job_position_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_brand->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rw->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rt_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_rw_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->fax_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->zip_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->fax_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->zip_code_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mobile_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->address_name_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->email->Errors->ToString());
         $Error = ComposeStrings($Error, $this->company_additional_addr->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Label1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_hotel_grade_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rest_service_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_entertaintment_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_parking_classification_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Label3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->rqst_type_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_address_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_address_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_address_rt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_address_rw->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_kota->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_phone_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_email->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_fax_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_zip_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_mobile_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_p_region_id_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_address_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_address_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_address_rt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_address_rw->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_kota->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_kecamatan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_kelurahan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_phone_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_fax_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_zip_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_mobile_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mobile_no_owner->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_user_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->wp_user_pwd->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_p_region_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_p_region_id_kec->Errors->ToString());
         $Error = ComposeStrings($Error, $this->brand_p_region_id_kel->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Hidden1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->created_by->Show();
     $this->updated_by->Show();
     $this->creation_date->Show();
     $this->updated_date->Show();
     $this->order_no->Show();
     $this->registration_date->Show();
     $this->t_customer_order_id->Show();
     $this->kelurahan_code->Show();
     $this->kecamatan_code->Show();
     $this->kota_code->Show();
     $this->p_region_id_kelurahan->Show();
     $this->p_region_id_kecamatan->Show();
     $this->p_region_id->Show();
     $this->kelurahan_own_code->Show();
     $this->kecamatan_own_code->Show();
     $this->kota_own_code->Show();
     $this->p_region_id_kel_owner->Show();
     $this->p_region_id_kec_owner->Show();
     $this->p_region_id_owner->Show();
     $this->company_name->Show();
     $this->address_name->Show();
     $this->job_position_code->Show();
     $this->p_job_position_id->Show();
     $this->company_brand->Show();
     $this->address_no->Show();
     $this->address_rt->Show();
     $this->address_rw->Show();
     $this->address_no_owner->Show();
     $this->address_rt_owner->Show();
     $this->address_rw_owner->Show();
     $this->phone_no->Show();
     $this->fax_no->Show();
     $this->zip_code->Show();
     $this->phone_no_owner->Show();
     $this->company_owner->Show();
     $this->fax_no_owner->Show();
     $this->zip_code_owner->Show();
     $this->mobile_no->Show();
     $this->address_name_owner->Show();
     $this->p_rqst_type_id->Show();
     $this->email->Show();
     $this->company_additional_addr->Show();
     $this->Label1->Show();
     $this->p_hotel_grade_id->Show();
     $this->p_rest_service_type_id->Show();
     $this->p_entertaintment_type_id->Show();
     $this->p_parking_classification_id->Show();
     $this->Button1->Show();
     $this->t_vat_registration_id->Show();
     $this->Label3->Show();
     $this->rqst_type_code->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->CURR_DOC_ID->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $this->Button2->Show();
     $this->wp_name->Show();
     $this->wp_address_name->Show();
     $this->wp_address_no->Show();
     $this->wp_address_rt->Show();
     $this->wp_address_rw->Show();
     $this->wp_kota->Show();
     $this->wp_kecamatan->Show();
     $this->wp_kelurahan->Show();
     $this->wp_phone_no->Show();
     $this->wp_email->Show();
     $this->wp_fax_no->Show();
     $this->wp_zip_code->Show();
     $this->wp_mobile_no->Show();
     $this->wp_p_region_id->Show();
     $this->wp_p_region_id_kecamatan->Show();
     $this->wp_p_region_id_kelurahan->Show();
     $this->brand_address_name->Show();
     $this->brand_address_no->Show();
     $this->brand_address_rt->Show();
     $this->brand_address_rw->Show();
     $this->brand_kota->Show();
     $this->brand_kecamatan->Show();
     $this->brand_kelurahan->Show();
     $this->brand_phone_no->Show();
     $this->brand_fax_no->Show();
     $this->brand_zip_code->Show();
     $this->brand_mobile_no->Show();
     $this->mobile_no_owner->Show();
     $this->wp_user_name->Show();
     $this->wp_user_pwd->Show();
     $this->brand_p_region_id->Show();
     $this->brand_p_region_id_kec->Show();
     $this->brand_p_region_id_kel->Show();
     $this->Button3->Show();
     $this->Button4->Show();
     $this->Button5->Show();
     $this->Hidden1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #21
0
 function Show()
 {
     $Tpl =& CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     global $CCSUseAmp;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->DataSource->open();
     $is_next_record = $this->ReadAllowed && $this->DataSource->next_record();
     $this->IsEmpty = !$is_next_record;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     if (!$this->Visible) {
         return;
     }
     $this->Attributes->Show();
     $this->Button_Submit->Visible = $this->Button_Submit->Visible && ($this->InsertAllowed || $this->UpdateAllowed || $this->DeleteAllowed);
     $ParentPath = $Tpl->block_path;
     $EditableGridPath = $ParentPath . "/EditableGrid " . $this->ComponentName;
     $EditableGridRowPath = $ParentPath . "/EditableGrid " . $this->ComponentName . "/Row";
     $Tpl->block_path = $EditableGridRowPath;
     $this->RowNumber = 0;
     $NonEmptyRows = 0;
     $EmptyRowsLeft = $this->EmptyRows;
     $this->ControlsVisible["title_id"] = $this->title_id->Visible;
     $this->ControlsVisible["title"] = $this->title->Visible;
     $this->ControlsVisible["CheckBox_Delete"] = $this->CheckBox_Delete->Visible;
     if ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed) {
         do {
             $this->RowNumber++;
             if ($is_next_record) {
                 $NonEmptyRows++;
                 $this->DataSource->SetValues();
             }
             if (!$is_next_record || !$this->DeleteAllowed) {
                 $this->CheckBox_Delete->Visible = false;
             }
             if (!$this->FormSubmitted && $is_next_record) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = $this->DataSource->CachedColumns["title_id"];
                 $this->CheckBox_Delete->SetValue(false);
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetValue($this->DataSource->title->GetValue());
             } elseif ($this->FormSubmitted && $is_next_record) {
                 $this->title_id->SetText("");
                 $this->title_id->SetValue($this->DataSource->title_id->GetValue());
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             } elseif (!$this->FormSubmitted) {
                 $this->CachedColumns["title_id"][$this->RowNumber] = "";
                 $this->title_id->SetText("");
                 $this->title->SetText("");
             } else {
                 $this->title_id->SetText("");
                 $this->title->SetText($this->FormParameters["title"][$this->RowNumber], $this->RowNumber);
                 $this->CheckBox_Delete->SetText($this->FormParameters["CheckBox_Delete"][$this->RowNumber], $this->RowNumber);
             }
             $this->Attributes->SetValue("rowNumber", $this->RowNumber);
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow", $this);
             $this->Attributes->Show();
             $this->title_id->Show($this->RowNumber);
             $this->title->Show($this->RowNumber);
             $this->CheckBox_Delete->Show($this->RowNumber);
             if (isset($this->RowsErrors[$this->RowNumber]) && $this->RowsErrors[$this->RowNumber] != "") {
                 $Tpl->setblockvar("RowError", "");
                 $Tpl->setvar("Error", $this->RowsErrors[$this->RowNumber]);
                 $this->Attributes->Show();
                 $Tpl->parse("RowError", false);
             } else {
                 $Tpl->setblockvar("RowError", "");
             }
             $Tpl->setvar("FormScript", $this->FormScript($this->RowNumber));
             $Tpl->parse();
             if ($is_next_record) {
                 if ($this->FormSubmitted) {
                     $is_next_record = $this->RowNumber < $this->UpdatedRows;
                     if ($this->DataSource->CachedColumns["title_id"] == $this->CachedColumns["title_id"][$this->RowNumber]) {
                         if ($this->ReadAllowed) {
                             $this->DataSource->next_record();
                         }
                     }
                 } else {
                     $is_next_record = $this->RowNumber < $this->PageSize && $this->ReadAllowed && $this->DataSource->next_record();
                 }
             } else {
                 $EmptyRowsLeft--;
             }
         } while ($is_next_record || $EmptyRowsLeft && $this->InsertAllowed);
     } else {
         $Tpl->block_path = $EditableGridPath;
         $this->Attributes->Show();
         $Tpl->parse("NoRecords", false);
     }
     $Tpl->block_path = $EditableGridPath;
     $this->Button_Submit->Show();
     $this->Cancel->Show();
     if ($this->CheckErrors()) {
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     if (!$CCSUseAmp) {
         $Tpl->SetVar("HTMLFormProperties", "method=\"POST\" action=\"" . $this->HTMLFormAction . "\" name=\"" . $this->ComponentName . "\"");
     } else {
         $Tpl->SetVar("HTMLFormProperties", "method=\"post\" action=\"" . str_replace("&", "&amp;", $this->HTMLFormAction) . "\" id=\"" . $this->ComponentName . "\"");
     }
     $Tpl->SetVar("FormState", CCToHTML($this->GetFormState($NonEmptyRows)));
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #22
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->guid->Errors->ToString());
     $errors = ComposeStrings($errors, $this->reseller_name->Errors->ToString());
     $errors = ComposeStrings($errors, $this->contact->Errors->ToString());
     $errors = ComposeStrings($errors, $this->contact_email->Errors->ToString());
     $errors = ComposeStrings($errors, $this->contact_mobile->Errors->ToString());
     $errors = ComposeStrings($errors, $this->params->Errors->ToString());
     $errors = ComposeStrings($errors, $this->lbdelete->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->ListBox1->Prepare();
     $this->ListBox2->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_year_period_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->year_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->ListBox1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_vat_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->vat_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->code1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_finance_period_id1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->ListBox2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->tgl_penerimaan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->tgl_penerimaan_last->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_tgl_penerimaan_last->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->code->Show();
     $this->p_finance_period_id->Show();
     $this->p_year_period_id->Show();
     $this->year_code->Show();
     $this->Button_DoSearch->Show();
     $this->ListBox1->Show();
     $this->p_vat_type_id->Show();
     $this->vat_code->Show();
     $this->code1->Show();
     $this->p_finance_period_id1->Show();
     $this->ListBox2->Show();
     $this->Button_DoSearch1->Show();
     $this->tgl_penerimaan->Show();
     $this->DatePicker_tgl_penerimaan->Show();
     $this->tgl_penerimaan_last->Show();
     $this->DatePicker_tgl_penerimaan_last->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->jobposition->Prepare();
     $this->customer_id->Prepare();
     $this->preferred_color->Prepare();
     $this->contact_gender->Prepare();
     $this->notify_holidays->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->contact->SetValue($this->DataSource->contact->GetValue());
                 $this->modified_iduser->SetValue($this->DataSource->modified_iduser->GetValue());
                 $this->created_iduser->SetValue($this->DataSource->created_iduser->GetValue());
                 $this->contact_dob->SetValue($this->DataSource->contact_dob->GetValue());
                 $this->jobposition->SetValue($this->DataSource->jobposition->GetValue());
                 $this->phone->SetValue($this->DataSource->phone->GetValue());
                 $this->extension->SetValue($this->DataSource->extension->GetValue());
                 $this->mobile->SetValue($this->DataSource->mobile->GetValue());
                 $this->workemail->SetValue($this->DataSource->workemail->GetValue());
                 $this->personalemail->SetValue($this->DataSource->personalemail->GetValue());
                 $this->customer_id->SetValue($this->DataSource->customer_id->GetValue());
                 $this->maincontact->SetValue($this->DataSource->maincontact->GetValue());
                 $this->preferred_color->SetValue($this->DataSource->preferred_color->GetValue());
                 $this->hidguid->SetValue($this->DataSource->hidguid->GetValue());
                 $this->twitter->SetValue($this->DataSource->twitter->GetValue());
                 $this->contact_gender->SetValue($this->DataSource->contact_gender->GetValue());
                 $this->notify_holidays->SetValue($this->DataSource->notify_holidays->GetValue());
                 $this->hidhobbies->SetValue($this->DataSource->hidhobbies->GetValue());
                 $this->allow_notifications->SetValue($this->DataSource->allow_notifications->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->contact->Errors->ToString());
         $Error = ComposeStrings($Error, $this->modified_iduser->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_iduser->Errors->ToString());
         $Error = ComposeStrings($Error, $this->contact_dob->Errors->ToString());
         $Error = ComposeStrings($Error, $this->jobposition->Errors->ToString());
         $Error = ComposeStrings($Error, $this->phone->Errors->ToString());
         $Error = ComposeStrings($Error, $this->extension->Errors->ToString());
         $Error = ComposeStrings($Error, $this->mobile->Errors->ToString());
         $Error = ComposeStrings($Error, $this->workemail->Errors->ToString());
         $Error = ComposeStrings($Error, $this->personalemail->Errors->ToString());
         $Error = ComposeStrings($Error, $this->customer_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->maincontact->Errors->ToString());
         $Error = ComposeStrings($Error, $this->preferred_color->Errors->ToString());
         $Error = ComposeStrings($Error, $this->lbgoback->Errors->ToString());
         $Error = ComposeStrings($Error, $this->hidguid->Errors->ToString());
         $Error = ComposeStrings($Error, $this->twitter->Errors->ToString());
         $Error = ComposeStrings($Error, $this->contact_gender->Errors->ToString());
         $Error = ComposeStrings($Error, $this->notify_holidays->Errors->ToString());
         $Error = ComposeStrings($Error, $this->hidhobbies->Errors->ToString());
         $Error = ComposeStrings($Error, $this->allow_notifications->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->contact->Show();
     $this->modified_iduser->Show();
     $this->created_iduser->Show();
     $this->contact_dob->Show();
     $this->jobposition->Show();
     $this->phone->Show();
     $this->extension->Show();
     $this->mobile->Show();
     $this->workemail->Show();
     $this->personalemail->Show();
     $this->customer_id->Show();
     $this->maincontact->Show();
     $this->preferred_color->Show();
     $this->lbgoback->Show();
     $this->hidguid->Show();
     $this->pnsaveadd->Show();
     $this->twitter->Show();
     $this->contact_gender->Show();
     $this->notify_holidays->Show();
     $this->hidhobbies->Show();
     $this->allow_notifications->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->wp_name->Errors->ToString());
     $errors = ComposeStrings($errors, $this->npwd->Errors->ToString());
     $errors = ComposeStrings($errors, $this->code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->p_finance_period_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->no_spt->Errors->ToString());
     $errors = ComposeStrings($errors, $this->nama_bu->Errors->ToString());
     $errors = ComposeStrings($errors, $this->npwpd_set->Errors->ToString());
     $errors = ComposeStrings($errors, $this->thn_bln->Errors->ToString());
     $errors = ComposeStrings($errors, $this->tgl_tetap->Errors->ToString());
     $errors = ComposeStrings($errors, $this->jml_tetap->Errors->ToString());
     $errors = ComposeStrings($errors, $this->tanggal_set->Errors->ToString());
     $errors = ComposeStrings($errors, $this->no_kohir->Errors->ToString());
     $errors = ComposeStrings($errors, $this->no_bukti_set->Errors->ToString());
     $errors = ComposeStrings($errors, $this->jml_setor->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
Пример #27
0
 function Show()
 {
     global $CCSUseAmp;
     $Tpl = CCGetTemplate($this);
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->attribut_type->SetValue($this->DataSource->attribut_type->GetValue());
                 $this->p_user_attribut_id->SetValue($this->DataSource->p_user_attribut_id->GetValue());
                 $this->created_by->SetValue($this->DataSource->created_by->GetValue());
                 $this->creation_date->SetValue($this->DataSource->creation_date->GetValue());
                 $this->updated_by->SetValue($this->DataSource->updated_by->GetValue());
                 $this->updated_date->SetValue($this->DataSource->updated_date->GetValue());
                 $this->user_name->SetValue($this->DataSource->user_name->GetValue());
                 $this->p_user_attribute_type_id->SetValue($this->DataSource->p_user_attribute_type_id->GetValue());
                 $this->p_user_id->SetValue($this->DataSource->p_user_id->GetValue());
                 $this->attribut_list_code->SetValue($this->DataSource->attribut_list_code->GetValue());
                 $this->p_user_attribute_list_id->SetValue($this->DataSource->p_user_attribute_list_id->GetValue());
                 $this->user_attribute_value->SetValue($this->DataSource->user_attribute_value->GetValue());
                 $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
                 $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
                 $this->description->SetValue($this->DataSource->description->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->attribut_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribut_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->created_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->creation_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->updated_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_name->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->attribut_list_code->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_user_attribute_list_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->user_attribute_value->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_from->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_to->Errors->ToString());
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_from1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_to1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->attribut_type->Show();
     $this->p_user_attribut_id->Show();
     $this->created_by->Show();
     $this->creation_date->Show();
     $this->updated_by->Show();
     $this->updated_date->Show();
     $this->user_name->Show();
     $this->p_user_attribute_type_id->Show();
     $this->p_user_id->Show();
     $this->attribut_list_code->Show();
     $this->p_user_attribute_list_id->Show();
     $this->user_attribute_value->Show();
     $this->valid_from->Show();
     $this->valid_to->Show();
     $this->description->Show();
     $this->DatePicker_valid_from1->Show();
     $this->DatePicker_valid_to1->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #28
0
 function GetErrors()
 {
     $errors = "";
     $errors = ComposeStrings($errors, $this->p_finance_period_id->Errors->ToString());
     $errors = ComposeStrings($errors, $this->description->Errors->ToString());
     $errors = ComposeStrings($errors, $this->code->Errors->ToString());
     $errors = ComposeStrings($errors, $this->activation_date->Errors->ToString());
     $errors = ComposeStrings($errors, $this->Errors->ToString());
     $errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
     return $errors;
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->description->SetValue($this->DataSource->description->GetValue());
                 $this->create_by->SetValue($this->DataSource->create_by->GetValue());
                 $this->update_by->SetValue($this->DataSource->update_by->GetValue());
                 $this->create_date->SetValue($this->DataSource->create_date->GetValue());
                 $this->update_date->SetValue($this->DataSource->update_date->GetValue());
                 $this->counter_no->SetValue($this->DataSource->counter_no->GetValue());
                 $this->activity->SetValue($this->DataSource->activity->GetValue());
                 $this->log_date->SetValue($this->DataSource->log_date->GetValue());
                 $this->input_type->SetValue($this->DataSource->input_type->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->counter_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->activity->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->log_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->input_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->description->Show();
     $this->create_by->Show();
     $this->update_by->Show();
     $this->create_date->Show();
     $this->update_date->Show();
     $this->counter_no->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->activity->Show();
     $this->CURR_DOC_ID->Show();
     $this->log_date->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $this->input_type->Show();
     $this->t_customer_order_id->Show();
     $this->p_rqst_type_id->Show();
     $this->t_vat_registration_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Пример #30
0
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $this->importance_level->Prepare();
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->p_workflow_id->SetValue($this->DataSource->p_workflow_id->GetValue());
                 $this->update_by->SetValue($this->DataSource->update_by->GetValue());
                 $this->update_date->SetValue($this->DataSource->update_date->GetValue());
                 $this->create_by->SetValue($this->DataSource->create_by->GetValue());
                 $this->create_date->SetValue($this->DataSource->create_date->GetValue());
                 $this->pekerjaan_prev->SetValue($this->DataSource->pekerjaan_prev->GetValue());
                 $this->p_procedure_id_prev->SetValue($this->DataSource->p_procedure_id_prev->GetValue());
                 $this->valid_from->SetValue($this->DataSource->valid_from->GetValue());
                 $this->valid_to->SetValue($this->DataSource->valid_to->GetValue());
                 $this->p_w_chart_proc_id->SetValue($this->DataSource->p_w_chart_proc_id->GetValue());
                 $this->importance_level->SetValue($this->DataSource->importance_level->GetValue());
                 $this->pekerjaan_next->SetValue($this->DataSource->pekerjaan_next->GetValue());
                 $this->p_procedure_id_next->SetValue($this->DataSource->p_procedure_id_next->GetValue());
                 $this->f_init->SetValue($this->DataSource->f_init->GetValue());
                 $this->pekerjaan_alt->SetValue($this->DataSource->pekerjaan_alt->GetValue());
                 $this->p_procedure_id_alt->SetValue($this->DataSource->p_procedure_id_alt->GetValue());
                 $this->sequence_no->SetValue($this->DataSource->sequence_no->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->p_workflow_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_workflowGridPage->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->pekerjaan_prev->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_procedure_id_prev->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_from->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_from->Errors->ToString());
         $Error = ComposeStrings($Error, $this->valid_to->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_valid_to->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_w_chart_proc_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->importance_level->Errors->ToString());
         $Error = ComposeStrings($Error, $this->pekerjaan_next->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_procedure_id_next->Errors->ToString());
         $Error = ComposeStrings($Error, $this->f_init->Errors->ToString());
         $Error = ComposeStrings($Error, $this->pekerjaan_alt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_procedure_id_alt->Errors->ToString());
         $Error = ComposeStrings($Error, $this->sequence_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->p_workflow_id->Show();
     $this->update_by->Show();
     $this->p_workflowGridPage->Show();
     $this->update_date->Show();
     $this->create_by->Show();
     $this->create_date->Show();
     $this->pekerjaan_prev->Show();
     $this->p_procedure_id_prev->Show();
     $this->valid_from->Show();
     $this->DatePicker_valid_from->Show();
     $this->valid_to->Show();
     $this->DatePicker_valid_to->Show();
     $this->p_w_chart_proc_id->Show();
     $this->importance_level->Show();
     $this->pekerjaan_next->Show();
     $this->p_procedure_id_next->Show();
     $this->f_init->Show();
     $this->pekerjaan_alt->Show();
     $this->p_procedure_id_alt->Show();
     $this->sequence_no->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }