الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

مشكلة فى كود

Featured Replies

بتاريخ:
  • كاتب الموضوع

كيف يتم اغلاقها

 

 

    public ViewRowImpl createInstanceFromResultSet(QueryCollection queryCollection, ResultSet resultSet) {
                System.out.println("proc_b_no_exp_date_nnnnnnnnnnnnnnnnnnnnnnnnn");
                ViewRowImpl  row = super.createInstanceFromResultSet(queryCollection, resultSet);             
                if (row.getAttribute("ProdId")!=null){
                    System.out.println("proc_b_no_exp_date_mmmmmmmmm");
                      boolean result4=true;     
                           String PlSQLCode4 ="BEGIN\n" + 
                           "SELECT NVL(B_STOCK,0)+NVL(QUN_IN,0)-NVL(QUN_OUT,0)  \n" + 
                           "INTO ?\n" + 
                           "FROM PRODUCT\n" + 
                           "WHERE PROD_ID=?;\n" +                      
                           "END ;";          
                           CallableStatement stat4=null;                                         
                                           try {          
                         stat4=getDBTransaction().createCallableStatement(PlSQLCode4,getDBTransaction().DEFAULT);
                         System.out.println("row.getAttribute(ProdId)"+row.getAttribute("ProdId"));                 
                         stat4.registerOutParameter(1, Types.NUMERIC);                     
                         stat4.setObject(2, row.getAttribute("ProdId"));                                                              
                         result4=stat4.execute(); 
                         row.setAttribute("BAL",(BigDecimal)(stat4.getBigDecimal(1))) ;   
                        System.out.println("BAL "+stat4.getBigDecimal(1));      
                         stat4.clearParameters();
                                                     } catch (Exception e4) {
                                                         // TODO: Add catch code                                     
                                                         System.out.println("proc_b_no_exp_date"+e4);    
                                                         System.out.println("proc_b_no_exp_date"+PlSQLCode4);
                                                         e4.printStackTrace();
                                                     } finally {
                                                       try {
                                                             stat4.close();     
                                                         } catch (Exception e4) {
                                                             // TODO: Add catch code
                                                             e4.printStackTrace();
                                                         }                                       
                                                     }  
                                    
                }
                row.setAttribute("PRODID2",row.getAttribute("ProdId"));            
                BigDecimal n2=(BigDecimal) row.getAttribute("MPrice");                 
                row.setAttribute("T_GOOD_TYPE", row.getAttribute("GoodType"));  
                Number n1= (Number) row.getAttribute("Qty");                 
                System.out.println("n1= "+n1);
                System.out.println("n2= "+n2);
                if (n1!=null && n2!=null){
                BigDecimal ll=n1.bigDecimalValue();  
                row.setAttribute("TotPrice",( ll.multiply(n2)));
                BigDecimal n=(BigDecimal) row.getAttribute("TotPrice");
                System.out.println("n1= "+n1);
                System.out.println("n2= "+n2);
                System.out.println("TotPrice= "+n);                   
                }
        
                return super.createInstanceFromResultSet(queryCollection, resultSet);
        } 
}
  • الردود 26
  • المشاهدات 2.4k
  • البداية
  • اخر رد

أكثر المشاركين في هذا الموضوع

بتاريخ:

الكود غير واضح بسبب التنسيق

الأفضل وضع صورة

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.