erirawan

Merge conflicts

Jan 9th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. async testgetURL(path) {
  2.     const asuransi = path.split('&');
  3.  
  4.     if (asuransi != null && asuransi.length == 4) {
  5.       let typeAsuransi,
  6.         NoPolis,
  7.         NoAsuransi = '';
  8.  
  9.       const param = asuransi[1].replace('ClientID=', '');
  10.  
  11.       if (asuransi[2].replace('MemberType=', '') === 'CC') {
  12.         typeAsuransi = 'perusahaan';
  13.         NoPolis = param.substr(0, param.indexOf('-'));
  14.         NoAsuransi = param.substr(param.indexOf('-') + 1, param.length);
  15.       } else {
  16.         typeAsuransi = 'pribadi';
  17.         NoPolis = param;
  18.         NoAsuransi = '-';
  19.       }
  20.  
  21.       Alert.alert(
  22.         'Konfirmasi',
  23.         'Klik setuju untuk menyinkronkan data (nama peserta, no polis, no asuransi) dari asuransi FWD ke aplikasi Teman Diabetes?',
  24.         [
  25.           {
  26.             text: 'Setuju',
  27.             onPress: () => {
  28.               this.props.navigator.push({
  29.                 screen: 'TemanDiabetes.EditProfile',
  30.                 navigatorStyle: {
  31.                   navBarHidden: true
  32.                 },
  33.                 passProps: {
  34.                   insuranceId: param[0],
  35.                   fromFWD: true,
  36.                   NamaAsuransi: asuransi[3],
  37.                   TipeAsuransi: typeAsuransi,
  38.                   NoPolis,
  39.                   NoAsuransi
  40.                 }
  41.               });
  42.             }
  43.           },
  44.           {
  45.             text: 'Tidak Setuju',
  46.             onPress: () => {}
  47.           }
  48.         ],
  49.         { cancelable: false }
  50.       );
  51.     }
  52.   }
Advertisement
Add Comment
Please, Sign In to add comment