Android环境下使用JCFXBL API接口操作数据库(3)

findViewById(R.id.btnJS).setOnClickListener(new OnClickListener() {                        public void onClick(View v) {                   // TODO Auto-generated method stub                        String url ="http://169.254.1.30:8088/";       url=url+"GetDbStoreByPage.ashx?act=ACT_AD__KHXX¶ms=3&formId=F0201"                   Handler handler = new Handler() {                       public void handleMessage(Message msg) {                           switch (msg.what) {                           case HttpConnection.DID_START: {                               break;                           }                           case HttpConnection.DID_SUCCEED: {                               Log.i("DID_SUCCEED"""                                       + HttpConnection.DID_SUCCEED);                               doFxBLCallBack((String) msg.obj);                               break;                           }                           case HttpConnection.DID_ERROR: {                               Log.i("tetst""test");                               break;                           }                           }                           super.handleMessage(msg);                       }                   };                   AndroidFxBLClientAPI FxBL = new AndroidFxBLClientAPI(url);                   FxBL.AddParam("KHBH", txtBH.getText().toString());                   FxBL.AddParam("start""0");                   FxBL.AddParam("limit""20");                   FxBL.BindHandler(handler);                   FxBL.Request();               }               private void doFxBLCallBack(String res) {                   Log.i("click""click");                   FxBLResponse response = new FxBLResponse(res);                   Log.i("GetSuccess", response.GetReturn_msg());                   ArrayList<HashMap<String,String>> arrayList=response.GetArrayList();                   SimpleAdapter adapter=new SimpleAdapter(FxBIActivity.this, arrayList,                        R.layout.listview,new String[]{"KHMC","LXDH"},                           new int[]{R.id.txt_list_KHMC,R.id.txt_list_lxdh});                                      listView.setAdapter(adapter);                      // txt.setText(list.get(9).getValue());                    // txt.setText(response.GetRowString(1));                }              });  

2.3 数据写入

(1)数据写入界面

Android环境下使用JCFXBL API接口操作数据库

(2)相关数据表

(3)数据写入存储过程

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/a8d38feae8d2eebcd168d2dc7015911d.html