protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.entering_warehouse_detail_activity); context = Android.App.Application.Context; index = int.Parse(Intent.GetStringExtra("INDEX")); string check_sp = Intent.GetStringExtra("CHECK_SP"); string rvu01 = Intent.GetStringExtra("RVU01"); string rvv02 = Intent.GetStringExtra("RVV02"); string rvb05 = Intent.GetStringExtra("RVB05"); string pmn041 = Intent.GetStringExtra("PMN041"); string ima021 = Intent.GetStringExtra("IMA021"); string rvv32 = Intent.GetStringExtra("RVV32"); string rvv33 = Intent.GetStringExtra("RVV33"); string rvv34 = Intent.GetStringExtra("RVV34"); string rvb33 = Intent.GetStringExtra("RVB33"); string pmc03 = Intent.GetStringExtra("PMC03"); string gen02 = Intent.GetStringExtra("GEN02"); RecyclerView listView = FindViewById <RecyclerView>(Resource.Id.inspectedDetailListView); //ActionBar actionBar = getSupportActionBar(); Android.App.ActionBar actionBar = ActionBar; if (actionBar != null) { actionBar.SetDisplayHomeAsUpEnabled(true); actionBar.SetHomeAsUpIndicator(Resource.Drawable.ic_chevron_left_white_24dp); actionBar.Title = ""; } detailList.Clear(); // V InspectedDetailItem item1 = new InspectedDetailItem(); item1.setHeader(GetString(Resource.String.item_title_check_sp)); item1.setContent(check_sp); detailList.Add(item1); //rvu01 InspectedDetailItem item2 = new InspectedDetailItem(); item2.setHeader(GetString(Resource.String.item_title_rvu01)); item2.setContent(rvu01); detailList.Add(item2); //rvv02 InspectedDetailItem item3 = new InspectedDetailItem(); item3.setHeader(GetString(Resource.String.item_title_rvv02)); item3.setContent(rvv02); detailList.Add(item3); //rvb05 InspectedDetailItem item4 = new InspectedDetailItem(); item4.setHeader(GetString(Resource.String.item_title_rvb05)); item4.setContent(rvb05); detailList.Add(item4); //pmn041 InspectedDetailItem item5 = new InspectedDetailItem(); item5.setHeader(GetString(Resource.String.item_title_pmn041)); item5.setContent(pmn041); detailList.Add(item5); //ima021 InspectedDetailItem item6 = new InspectedDetailItem(); item6.setHeader(GetString(Resource.String.item_title_ima021)); item6.setContent(ima021); detailList.Add(item6); //rvv32 InspectedDetailItem item7 = new InspectedDetailItem(); item7.setHeader(GetString(Resource.String.item_title_rvv32)); item7.setContent(rvv32); detailList.Add(item7); //rvv33 InspectedDetailItem item8 = new InspectedDetailItem(); item8.setHeader(GetString(Resource.String.item_title_rvv33)); item8.setContent(rvv33); detailList.Add(item8); //rvv34 InspectedDetailItem item9 = new InspectedDetailItem(); item9.setHeader(GetString(Resource.String.item_title_rvv34)); item9.setContent(rvv34); detailList.Add(item9); //rvb33 InspectedDetailItem item10 = new InspectedDetailItem(); item10.setHeader(GetString(Resource.String.item_title_rvb33)); item10.setContent(rvb33); detailList.Add(item10); //pmc03 InspectedDetailItem item11 = new InspectedDetailItem(); item11.setHeader(GetString(Resource.String.item_title_pmc03)); item11.setContent(pmc03); detailList.Add(item11); //gen02 InspectedDetailItem item12 = new InspectedDetailItem(); item12.setHeader(GetString(Resource.String.item_title_gen02)); item12.setContent(gen02); detailList.Add(item12); inspectedDetailItemAdapter = new InspectedDetailItemAdapter(this, Resource.Layout.inspected_receive_list_detail_item, detailList); inspectedDetailItemAdapter.ItemClick += (sender, e) => { Log.Debug(TAG, "Click Sender = " + sender.ToString() + " e = " + e.ToString()); if (e == 9) //quantity { Intent clearIntent = new Intent(Constants.ACTION_ENTERING_WAREHOUSE_DIVIDED_DIALOG_SHOW); clearIntent.PutExtra("INDEX", e.ToString()); //clearIntent.putExtra("BARCODE", barcode); context.SendBroadcast(clearIntent); Finish(); } }; listView.SetAdapter(inspectedDetailItemAdapter); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Create your application here SetContentView(Resource.Layout.allocation_msg_detail_of_detail_activity); context = Android.App.Application.Context; string part_no = Intent.GetStringExtra("PART_NO"); string ima021 = Intent.GetStringExtra("IMA021"); string qty = Intent.GetStringExtra("QTY"); string src_stock_no = Intent.GetStringExtra("SRC_STOCK_NO"); string src_locate_no = Intent.GetStringExtra("SRC_LOCATE_NO"); string src_batch_no = Intent.GetStringExtra("SRC_BATCH_NO"); string sfa12 = Intent.GetStringExtra("SFA12"); string scan_desc = Intent.GetStringExtra("SCAN_DESC"); //ActionBar actionBar = getSupportActionBar(); Android.App.ActionBar actionBar = ActionBar; if (actionBar != null) { actionBar.SetDisplayHomeAsUpEnabled(true); actionBar.SetHomeAsUpIndicator(Resource.Drawable.ic_chevron_left_white_24dp); actionBar.Title = ""; } detailList.Clear(); detailRecyclerView = FindViewById <RecyclerView>(Resource.Id.detailDetailListView); detailRecyclerView.SetLayoutManager(mLayoutManager); // part_no InspectedDetailItem item1 = new InspectedDetailItem(); item1.setHeader(GetString(Resource.String.allocation_item_part_no)); item1.setContent(part_no); detailList.Add(item1); //ima021 InspectedDetailItem item2 = new InspectedDetailItem(); item2.setHeader(GetString(Resource.String.allocation_item_name)); item2.setContent(ima021); detailList.Add(item2); //qty InspectedDetailItem item3 = new InspectedDetailItem(); item3.setHeader(GetString(Resource.String.allocation_item_qty)); item3.setContent(qty); detailList.Add(item3); //src stock InspectedDetailItem item4 = new InspectedDetailItem(); item4.setHeader(GetString(Resource.String.allocation_item_src_stock)); item4.setContent(src_stock_no); detailList.Add(item4); //src locate no InspectedDetailItem item5 = new InspectedDetailItem(); item5.setHeader(GetString(Resource.String.allocation_item_src_locate)); item5.setContent(src_locate_no); detailList.Add(item5); //src batch no InspectedDetailItem item6 = new InspectedDetailItem(); item6.setHeader(GetString(Resource.String.allocation_item_src_batch)); item6.setContent(src_batch_no); detailList.Add(item6); //sfa12 InspectedDetailItem item7 = new InspectedDetailItem(); item7.setHeader(GetString(Resource.String.allocation_item_sfa12)); item7.setContent(sfa12); detailList.Add(item7); //scan desc InspectedDetailItem item8 = new InspectedDetailItem(); item8.setHeader(GetString(Resource.String.allocation_item_scan_desc)); item8.setContent(scan_desc); detailList.Add(item8); inspectedDetailItemAdapter = new InspectedDetailItemAdapter(this, Resource.Layout.inspected_receive_list_detail_item, detailList); detailRecyclerView.SetAdapter(inspectedDetailItemAdapter); }