Page 110 - 3-2
P. 110

add_code = ((TextView) view.findViewById(R.id.txtcode2)).getText()
                                    .toString();
                            Log.d(" 여긴가","owner_4-1,  테이블 에 추가할 코드를 받아온다4             ");
                            Log.d(" 여긴가", add_code);
                            // Starting new intent
                            Intent in = new Intent(getApplicationContext(),
                                    MainActivity_owner_list_add.class);
                            Log.d(" 여긴가","owner_4-2,  리스트 add    로 이동");
                            // sending pid to next activity
                            in.putExtra(TAG_CODE, add_code);


                            // starting new activity and expecting some response back
                            startActivityForResult(in, 100);




                        }
                    });


                }
            ////////////////////////////////////////////////////////////////////  모두 선택했으면 값 가지고 비교하러 ㄱㄱ
                public void onbtn_compareClicked(View view) {
                    Log.d(" 여긴가", "owner_5-1,  비교 확인 화면으로 넘어가자");
                  // String total_price= String.valueOf(owner_compare_all_price);
                    Intent intent = new Intent(getApplicationContext(),MainActivity_owner_compare_yet.class);
                 //  intent.putExtra(TAG_PRICE, total_price);
                    Toast.makeText(getApplicationContext(),            " 현재             잔여물품               확
            인.",Toast.LENGTH_SHORT).show();
                    Log.d(" 여긴가", "owner_5-2,  비교 확인 화면으로 넘어감");
                    startActivity(intent);
                }
            /////////////////////////////////////////////////////////////////////////////////////////////////////////////
                // Response from Edit Product Activity
                @Override
                protected void onActivityResult(int requestCode, int resultCode, Intent data) {
                    super.onActivityResult(requestCode, resultCode, data);
                    // if result code 100
                    if (resultCode == 100) {
                        // if result code 100 is received
                        // means user edited/deleted product
                        // reload this screen again
                        Intent intent = getIntent();
                        finish();
                        startActivity(intent);
                    }


                                                         - 110 -
   105   106   107   108   109   110   111   112   113   114   115