|
|
@ -1,13 +1,23 @@ |
|
|
package com.qhclh.ytzh.work.productiondailyw; |
|
|
package com.qhclh.ytzh.work.productiondailyw; |
|
|
|
|
|
|
|
|
|
|
|
import android.view.View; |
|
|
|
|
|
import android.widget.AdapterView; |
|
|
|
|
|
import android.widget.ArrayAdapter; |
|
|
|
|
|
import android.widget.Spinner; |
|
|
|
|
|
|
|
|
import com.qhclh.ytzh.R; |
|
|
import com.qhclh.ytzh.R; |
|
|
import com.qhclh.ytzh.base.BaseFragment; |
|
|
import com.qhclh.ytzh.base.BaseFragment; |
|
|
|
|
|
|
|
|
|
|
|
import butterknife.BindView; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Created by 青花瓷 on 2017/12/4. |
|
|
* Created by 青花瓷 on 2017/12/4. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
public class DetailsofdocumentsFragment extends BaseFragment { |
|
|
public class DetailsofdocumentsFragment extends BaseFragment { |
|
|
|
|
|
private ProductiondailywActivity act; |
|
|
|
|
|
@BindView(R.id.detaild_buildinghome) |
|
|
|
|
|
Spinner detaild_buildinghome; |
|
|
@Override |
|
|
@Override |
|
|
protected int setLayout() { |
|
|
protected int setLayout() { |
|
|
return R.layout.fragment_detailsofdoc; |
|
|
return R.layout.fragment_detailsofdoc; |
|
|
@ -20,11 +30,27 @@ public class DetailsofdocumentsFragment extends BaseFragment { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initData() { |
|
|
protected void initData() { |
|
|
|
|
|
act = (ProductiondailywActivity) getActivity(); |
|
|
|
|
|
|
|
|
|
|
|
ArrayAdapter<String> adapter=new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item,BasicattributesFragment.houseNameList); |
|
|
|
|
|
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); |
|
|
|
|
|
detaild_buildinghome.setAdapter(adapter); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void initOper() { |
|
|
protected void initOper() { |
|
|
|
|
|
detaild_buildinghome.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { |
|
|
|
|
|
@Override |
|
|
|
|
|
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { |
|
|
|
|
|
act.setHouseid(Long.parseLong(BasicattributesFragment.houseIdList.get(i))); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void onNothingSelected(AdapterView<?> adapterView) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |