Browse Source

no message

master
lh 8 years ago
parent
commit
18977a9a1b
3 changed files with 24 additions and 3 deletions
  1. +17
    -0
      app/src/main/java/com/qhclh/ytzh/bean/ProductionDailyBean.java
  2. +2
    -1
      app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyActivity.java
  3. +5
    -2
      app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyAdapter.java

+ 17
- 0
app/src/main/java/com/qhclh/ytzh/bean/ProductionDailyBean.java View File

@ -9,6 +9,23 @@ public class ProductionDailyBean {
private String productionbatch; private String productionbatch;
private String productionaddrs; private String productionaddrs;
private String ptime; private String ptime;
private String shenghezhuangtai;
public String getShenghezhuangtai() {
return shenghezhuangtai;
}
public void setShenghezhuangtai(String shenghezhuangtai) {
this.shenghezhuangtai = shenghezhuangtai;
}
public ProductionDailyBean(long id, String productionbatch, String productionaddrs, String ptime, String shenghezhuangtai) {
this.id = id;
this.productionbatch = productionbatch;
this.productionaddrs = productionaddrs;
this.ptime = ptime;
this.shenghezhuangtai = shenghezhuangtai;
}
public ProductionDailyBean(long id, String productionbatch, String productionaddrs, String ptime) { public ProductionDailyBean(long id, String productionbatch, String productionaddrs, String ptime) {
this.id = id; this.id = id;


+ 2
- 1
app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyActivity.java View File

@ -101,7 +101,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia
for (int i=0;i<size;i++){ for (int i=0;i<size;i++){
productionDailyBeanList.add(new ProductionDailyBean(rpcobj.get(i).getLong("ID") productionDailyBeanList.add(new ProductionDailyBean(rpcobj.get(i).getLong("ID")
,rpcobj.get(i).getString("Batch_Name"),rpcobj.get(i).getString("BreedFactory_Name") ,rpcobj.get(i).getString("Batch_Name"),rpcobj.get(i).getString("BreedFactory_Name")
,DateTimeUtil.getYMD2(rpcobj.get(i).getDate("Date"))));
,DateTimeUtil.getYMD2(rpcobj.get(i).getDate("Date")),rpcobj.get(i).getNamedValue("BillState").getName()));
} }
productiondailyAdapter = new ProductiondailyAdapter(ProductiondailyActivity.this,productionDailyBeanList); productiondailyAdapter = new ProductiondailyAdapter(ProductiondailyActivity.this,productionDailyBeanList);
lv_productiondaily.setAdapter(productiondailyAdapter); lv_productiondaily.setAdapter(productiondailyAdapter);
@ -121,6 +121,7 @@ public class ProductiondailyActivity extends BaseActivity implements CalendarDia
select.add("BreedFactory_ID"); select.add("BreedFactory_ID");
select.add("BreedFactory_Name"); select.add("BreedFactory_Name");
select.add("Date"); select.add("Date");
select.add("BillState");
// select.add("Remark"); // select.add("Remark");
// select.add("AccountingUnit_ID"); // select.add("AccountingUnit_ID");
// select.add("AccountingUnit_Name"); // select.add("AccountingUnit_Name");


+ 5
- 2
app/src/main/java/com/qhclh/ytzh/work/productiondaily/ProductiondailyAdapter.java View File

@ -61,8 +61,11 @@ public class ProductiondailyAdapter extends BaseAdapter {
} }
viewHolder.productiondaily_batch.setText("批次:"+message.getProductionbatch()); viewHolder.productiondaily_batch.setText("批次:"+message.getProductionbatch());
viewHolder.productiondaily_addrs.setText("养殖场:"+message.getProductionaddrs());
viewHolder.productiondaily_time.setText(""+message.getPtime());
///< 养殖场位置改成日期日期位置改成单据状态
// viewHolder.productiondaily_addrs.setText("养殖场:"+message.getProductionaddrs());
viewHolder.productiondaily_addrs.setText("日期:"+message.getPtime());
// viewHolder.productiondaily_time.setText(""+message.getPtime());
viewHolder.productiondaily_time.setText(""+message.getShenghezhuangtai());
return view; return view;
} }


Loading…
Cancel
Save