|
@@ -49,6 +49,9 @@ public class SearchFragment extends Fragment {
|
|
|
|
|
|
private Spinner searchDeptSpinner;
|
|
|
private TextView tvHospitalName;
|
|
|
+ private TextView etPatientId;
|
|
|
+
|
|
|
+ private String keyWord = "";
|
|
|
|
|
|
private EditText etPatientId;
|
|
|
private String keyWord = "";
|
|
@@ -78,6 +81,7 @@ public class SearchFragment extends Fragment {
|
|
|
searchClickLayout = (LinearLayout) view.findViewById(R.id.searchClickLayout); // 조회 버튼
|
|
|
|
|
|
getCategoryList(BuildConfig.INST_CD);
|
|
|
+// getConsentList(BuildConfig.INST_CD);
|
|
|
|
|
|
setEvent();
|
|
|
|
|
@@ -93,14 +97,12 @@ public class SearchFragment extends Fragment {
|
|
|
public void onClick(View v) {
|
|
|
if (v == searchClickLayout) {
|
|
|
keyWord = etPatientId.getText().toString();
|
|
|
- getConsentList(BuildConfig.INST_CD, keyWord, "");
|
|
|
+ getConsentList(BuildConfig.INST_CD, keyWord);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- /** Spinner List **/
|
|
|
+ /** Spinner List API **/
|
|
|
private void getCategoryList(final String instCd) {
|
|
|
CallBack callBack = new CallBack() {
|
|
|
@Override
|
|
@@ -161,7 +163,7 @@ public class SearchFragment extends Fragment {
|
|
|
|
|
|
|
|
|
/** 동의서 찾기 카테고리 리스트 **/
|
|
|
- private void getConsentList(final String instCd, String keyWord, String categoryId) {
|
|
|
+ private void getConsentList(final String instCd, String keyWord) {
|
|
|
CallBack callBack = new CallBack() {
|
|
|
@Override
|
|
|
public void result(SoapObject result) {
|
|
@@ -186,10 +188,11 @@ public class SearchFragment extends Fragment {
|
|
|
|
|
|
|
|
|
};
|
|
|
+
|
|
|
HashMap<String, String> mData = new HashMap<String, String>();
|
|
|
mData.put("instCd", instCd);
|
|
|
mData.put("keyWord", keyWord);
|
|
|
- mData.put("categoryId", categoryId);
|
|
|
+ mData.put("categoryId", "");
|
|
|
|
|
|
Util.callHttp(mContext, ConsentConfig.HOST_CONSENT, ConsentConfig.GET_CONSENT_SEARCH, mData, callBack);
|
|
|
}
|