Page 96 - 3-2
P. 96

super.onCreate(savedInstanceState);
                    setContentView(R.layout.activity_owner_compare); // 화면


                    ActionBar actionBar = getSupportActionBar();
                    actionBar.setBackgroundDrawable(new ColorDrawable(0xFFFC961E));
                    Log.d(" 여긴가", "owner_10.3_compare   로 이동했다");


                    Intent i = getIntent();
                    compare_delete_btn = (Button) findViewById(R.id.compare_delete_btn);
                    compare_goback_btn = (Button) findViewById(R.id.compare_goback_btn);


                    // getting product id (pid) from intent
                    get_compare_price = i.getStringExtra(TAG_PRICE);
                    Log.d(" 여긴가", "owner_10.4_compare   로 이동했다 값받아옴,        ");
                    Log.d(" 여긴가", get_compare_price);
                    Log.d(" 여긴가", "owner_10.4_compare   로 이동했다 현재 있는 가격,          ");
                   // new SigninActivity_delete(this,status).execute(purcharse_price);


                    textViewcompare_price = (TextView)findViewById(R.id.compare_price);
                    textViewcompare_review = (TextView)findViewById(R.id.compare_review);


                    Log.d(" 여긴가", String.valueOf(MainActivity_allproducts.total_all_conpare_price)); //6000
                    Log.d(" 여긴가", "owner_10.4_compare   로 이동했다 판매한 가격,         ");


                    Log.d(" 여긴가", String.valueOf(15900-MainActivity_allproducts.total_all_conpare_price)); //6000
                    Log.d(" 여긴가", "owner_10.4_compare   로 이동했다 전체금액 판매한 금액의 차액이어야 하는것,  -
            ");




            if(get_compare_price.equals(String.valueOf(15900-MainActivity_allproducts.total_all_conpare_price))
            ) {


                        textViewcompare_review.setText("  도난이 일어나지 않았습니다");
                        int    minuce     =     ((15900-MainActivity_allproducts.total_all_conpare_price)   -
            Integer.parseInt(get_compare_price)) ;
                        Log.d(" 여긴가", String.valueOf(minuce));
                        Log.d(" 여긴가", "owner_10.5_compare   로 이동했다 차액,      ");
                        textViewcompare_price.setText(String.valueOf(minuce));
                     }
                    else {


                        textViewcompare_review.setText("  도난이 일어났습니다!!");
                        int    minuce     =     ((15900-MainActivity_allproducts.total_all_conpare_price)   -
            Integer.parseInt(get_compare_price)) ;
                        Log.d(" 여긴가", String.valueOf(minuce));


                                                         - 96 -
   91   92   93   94   95   96   97   98   99   100   101