Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
final Dialog dialog = new Dialog(ActivityKonsinyasi.this);
dialog.setContentView(R.layout.list_dialog);
dialog.setTitle("Aksi - " + nama_toko);
final String[] array_aksi = new String[]{"Update Toko","Delete Toko","Nota Konsinyasi"};
ListView lvJkel = (ListView) dialog.findViewById(R.id.list_jkel);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(ActivityKonsinyasi.this, android.R.layout.simple_list_item_1, android.R.id.text1, array_aksi);
lvJkel.setAdapter(adapter);
lvJkel.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// cek posisi aksi (0 UPDATE | 1 DELETE | 2 Penjualan | 3 Check out)
if(position == 0){
AlertDialog.Builder builder = new AlertDialog.Builder(ActivityKonsinyasi.this);
builder.setMessage("Apakah anda ingin mengupdate activity_kanvas " + nama_toko + " ?")
.setCancelable(false)
.setPositiveButton("Ya", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Intent intent = new Intent(getApplicationContext(), TambahToko.class);
intent.putExtra("MODE","EDIT");
intent.putExtra("CST_KODE",kode_toko);
startActivity(intent);
}
})
.setNegativeButton("Tidak", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
AlertDialog alert = builder.create();
alert.show();
}else if(position == 1){
AlertDialog.Builder builder = new AlertDialog.Builder(ActivityKonsinyasi.this);
builder.setMessage("Apakah anda ingin menghapus activity_kanvas " + nama_toko + " ?")
.setCancelable(false)
.setPositiveButton("Ya", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
hapusDataToko(g.getServer() + "ws_toko/hapustoko", kode_toko);
}
})
.setNegativeButton("Tidak", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
AlertDialog alert = builder.create();
alert.show();
}else if(position == 2){
// cek apa sudah pengisi NPWP atau NIK
cek_NIK_NPWP(g.getServer() + "ws_toko/cekNPWP_NIK", kode_toko, nama_toko, alamat, tlp, fax);
}
dialog.dismiss();
}
});
dialog.show();
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team