Search in sources :

Example 1 with Adapter

use of com.mtm.mrecord.mvp.ui.adapter.Adapter in project Mvp-Rxjava-Retrofit-dagger2 by pengMaster.

the class LawDocumentDetailAct method setYjsView.

/**
 * 意见书
 *
 * @param tag
 */
private void setYjsView(String tag) {
    LawDocumentGsonBean.SuperviseViewBean sitenotesBean = new Gson().fromJson(tag, LawDocumentGsonBean.SuperviseViewBean.class);
    if (null == sitenotesBean) {
        return;
    }
    List<TestBean> list = new ArrayList<>();
    list.add(new TestBean("当事人:", StringUtils.isNoBlank(sitenotesBean.getVcompName())));
    list.add(new TestBean("地址:", StringUtils.isNoBlank(sitenotesBean.getVsuperviseAddr())));
    list.add(new TestBean("联系电话:", StringUtils.isNoBlank(sitenotesBean.getNphone() + "")));
    list.add(new TestBean("监督意见:", StringUtils.isNoBlank(sitenotesBean.getVsuperviseView())));
    list.add(new TestBean("当事人签收:", StringUtils.isNoBlank(sitenotesBean.getVsupervised() + "")));
    list.add(new TestBean("签名时间:", StringUtils.isNoBlank(sitenotesBean.getVsupervisedDate() + "")));
    list.add(new TestBean("卫生计生行政机关名称:", StringUtils.isNoBlank(sitenotesBean.getVsuperviseOrgName())));
    list.add(new TestBean("意见时间:", StringUtils.isNoBlank(sitenotesBean.getVsupervisorDate() + "")));
    Adapter adapter = new Adapter(lvDetailContent, list, "detail");
    lvDetailContent.setAdapter(adapter);
}
Also used : TestBean(com.mtm.mrecord.mvp.model.entity.TestBean) ArrayList(java.util.ArrayList) LawDocumentGsonBean(com.mtm.mrecord.mvp.model.entity.LawDocumentGsonBean) Gson(com.google.gson.Gson) Adapter(com.mtm.mrecord.mvp.ui.adapter.Adapter)

Example 2 with Adapter

use of com.mtm.mrecord.mvp.ui.adapter.Adapter in project Mvp-Rxjava-Retrofit-dagger2 by pengMaster.

the class LawDocumentDetailAct method setXcblView.

/**
 * 现场笔录
 *
 * @param tag
 */
private void setXcblView(String tag) {
    LawDocumentGsonBean.SitenotesBean sitenotesBean = new Gson().fromJson(tag, LawDocumentGsonBean.SitenotesBean.class);
    if (null == sitenotesBean) {
        return;
    }
    List<TestBean> list = new ArrayList<>();
    list.add(new TestBean("当事人:", StringUtils.isNoBlank(sitenotesBean.getNcompName())));
    list.add(new TestBean("检查机关:", StringUtils.isNoBlank(sitenotesBean.getNsuperviseOrgName() + "")));
    list.add(new TestBean("检查时间:", StringUtils.isNoBlank(sitenotesBean.getNcreatetime())));
    list.add(new TestBean("检查地点:", StringUtils.isNoBlank(sitenotesBean.getNsuperviseAddr())));
    list.add(new TestBean("卫生监督员示证检查:", StringUtils.isNoBlank(sitenotesBean.getNsupervisorCard1() + "")));
    list.add(new TestBean("执法证件号码:", StringUtils.isNoBlank(sitenotesBean.getNsupervisorCard2() + "")));
    list.add(new TestBean("检查记录:", StringUtils.isNoBlank(sitenotesBean.getNsuperviseRecord())));
    list.add(new TestBean("当事人签名:", StringUtils.isNoBlank(sitenotesBean.getNsupervised() + "")));
    list.add(new TestBean("签名日期:", StringUtils.isNoBlank(sitenotesBean.getNsupervisedDate() + "")));
    list.add(new TestBean("卫生监督员签名:", StringUtils.isNoBlank(sitenotesBean.getNsupervisor() + sitenotesBean.getNsupervisor2())));
    list.add(new TestBean("签名日期:", StringUtils.isNoBlank(sitenotesBean.getNsupervisorDate())));
    Adapter adapter = new Adapter(lvDetailContent, list, "detail");
    lvDetailContent.setAdapter(adapter);
}
Also used : TestBean(com.mtm.mrecord.mvp.model.entity.TestBean) ArrayList(java.util.ArrayList) LawDocumentGsonBean(com.mtm.mrecord.mvp.model.entity.LawDocumentGsonBean) Gson(com.google.gson.Gson) Adapter(com.mtm.mrecord.mvp.ui.adapter.Adapter)

Example 3 with Adapter

use of com.mtm.mrecord.mvp.ui.adapter.Adapter in project Mvp-Rxjava-Retrofit-dagger2 by pengMaster.

the class RecordSuperviseListActivity method addNewData.

@Override
public void addNewData(RecordListBean unitListBean) {
    List<RecordListBean.SuperviseListBean> superviseList = unitListBean.getSuperviseList();
    mAdapter = new Adapter(lvContent, superviseList, "recordSupervise");
    lvContent.setAdapter(mAdapter);
}
Also used : Adapter(com.mtm.mrecord.mvp.ui.adapter.Adapter)

Example 4 with Adapter

use of com.mtm.mrecord.mvp.ui.adapter.Adapter in project Mvp-Rxjava-Retrofit-dagger2 by pengMaster.

the class LawDocumentDetailAct method setXwblView.

/**
 * 询问笔录
 *
 * @param tag
 */
private void setXwblView(String tag) {
    LawDocumentGsonBean.AskListBean sitenotesBean = new Gson().fromJson(tag, LawDocumentGsonBean.AskListBean.class);
    if (null == sitenotesBean) {
        return;
    }
    List<TestBean> list = new ArrayList<>();
    list.add(new TestBean("被询问人:", StringUtils.isNoBlank(sitenotesBean.getAskedPeople())));
    list.add(new TestBean("性别:", StringUtils.isNoBlank(AksSexValue(sitenotesBean.getAskedSex()))));
    list.add(new TestBean("年龄:", StringUtils.isNoBlank(sitenotesBean.getAskedAge() + "")));
    list.add(new TestBean("证件名称:", StringUtils.isNoBlank(sitenotesBean.getCardType() + "")));
    list.add(new TestBean("证件号:", StringUtils.isNoBlank(sitenotesBean.getIdCard() + "")));
    list.add(new TestBean("住址:", StringUtils.isNoBlank(sitenotesBean.getAskedAddress() + "")));
    list.add(new TestBean("询问机关:", StringUtils.isNoBlank(sitenotesBean.getAskAuthorities())));
    list.add(new TestBean("询问时间:", StringUtils.isNoBlank(sitenotesBean.getAskStarttime() + "至" + sitenotesBean.getAskEndtime())));
    list.add(new TestBean("询问地点:", StringUtils.isNoBlank(sitenotesBean.getInquiryPlace() + "")));
    list.add(new TestBean("询问人员示证询问:", StringUtils.isNoBlank(sitenotesBean.getSupervisorCard1() + "")));
    list.add(new TestBean("执法证件号码:", StringUtils.isNoBlank(sitenotesBean.getSupervisorCard2() + "")));
    list.add(new TestBean("询问内容:", StringUtils.isNoBlank(sitenotesBean.getAskContents() + "")));
    list.add(new TestBean("被询问人阅后签名:", StringUtils.isNoBlank(sitenotesBean.getAskedSign() + "")));
    list.add(new TestBean("签字时间:", StringUtils.isNoBlank(sitenotesBean.getAskedSigndate() + "")));
    list.add(new TestBean("卫生监督员签名:", StringUtils.isNoBlank(sitenotesBean.getSuperviser1() + " " + sitenotesBean.getSuperviser2())));
    list.add(new TestBean("签字时间:", StringUtils.isNoBlank(sitenotesBean.getSendDate() + "")));
    Adapter adapter = new Adapter(lvDetailContent, list, "detail");
    lvDetailContent.setAdapter(adapter);
}
Also used : TestBean(com.mtm.mrecord.mvp.model.entity.TestBean) ArrayList(java.util.ArrayList) LawDocumentGsonBean(com.mtm.mrecord.mvp.model.entity.LawDocumentGsonBean) Gson(com.google.gson.Gson) Adapter(com.mtm.mrecord.mvp.ui.adapter.Adapter)

Example 5 with Adapter

use of com.mtm.mrecord.mvp.ui.adapter.Adapter in project Mvp-Rxjava-Retrofit-dagger2 by pengMaster.

the class RecordUnitListActivity method addNewData.

@Override
public void addNewData(RecordUnitListBean unitListBean) {
    hibernatePage = unitListBean.getHibernatePage();
    List<MobileUnitBean> superviseList = unitListBean.getSuperviseList();
    mAdapter = new Adapter(lvContent, superviseList, "unitList");
    lvContent.setAdapter(mAdapter);
    // 下拉刷新转圈消失
    swipeContainer.setRefreshing(false);
    // 当前页和总页数
    currentPage++;
    totalPages = hibernatePage.getTotalPages();
    // 初始化 mPaginate
    mPaginate = Paginate.with(lvContent, this).setLoadingTriggerThreshold(2).addLoadingListItem(true).build();
}
Also used : MobileUnitBean(com.mtm.mrecord.mvp.model.entity.MobileUnitBean) Adapter(com.mtm.mrecord.mvp.ui.adapter.Adapter)

Aggregations

Adapter (com.mtm.mrecord.mvp.ui.adapter.Adapter)5 Gson (com.google.gson.Gson)3 LawDocumentGsonBean (com.mtm.mrecord.mvp.model.entity.LawDocumentGsonBean)3 TestBean (com.mtm.mrecord.mvp.model.entity.TestBean)3 ArrayList (java.util.ArrayList)3 MobileUnitBean (com.mtm.mrecord.mvp.model.entity.MobileUnitBean)1