Skip to content

Commit

Permalink
医生个人资料和修改医生个人资料
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhoujunAndroid committed Nov 25, 2013
1 parent ae58542 commit f6698ed
Show file tree
Hide file tree
Showing 16 changed files with 564 additions and 136 deletions.
19 changes: 8 additions & 11 deletions baby/res/layout/doctor_creat_baby_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:orientation="vertical" >

<include layout="@layout/common_title_bar" />

<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -434,36 +434,33 @@

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_marginLeft="10dp"
android:orientation="horizontal" >

<TextView
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="5"
android:gravity="right"
android:text="@string/doctor_creat_grow_measure" />

<RadioButton
android:id="@+id/rbWho"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/round_check_selector"
android:checked="true"
android:text="@string/doctor_creat_choice1" />
<RadioButton
android:id="@+id/rbNineCity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/doctor_creat_choice2" />

<RadioButton
android:id="@+id/rbShanghai"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/round_check_selector"
android:text="@string/doctor_creat_choice3" />

</LinearLayout>
</LinearLayout>

</ScrollView>
</LinearLayout>
2 changes: 1 addition & 1 deletion baby/res/layout/doctor_my_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<TextView
style="@style/info_label_style" android:text="@string/doctor_my_name" />

<TextView android:id="@+id/tvName" style="@style/info_text_style" />
<TextView android:id="@+id/tvRealName" style="@style/info_text_style" />
</LinearLayout>

<View
Expand Down
179 changes: 94 additions & 85 deletions baby/res/layout/search_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,91 +3,100 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<include layout="@layout/common_title_bar" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="15dp"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/search_key" />
<EditText
android:id="@+id/etKey"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal" >

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="fill_vertical"
android:text="@string/search_time" />

<EditText
android:id="@+id/etTimeStart"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.8"/>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:text="@string/search_to" />
<EditText
android:id="@+id/etTimeEnd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.8"/>
</LinearLayout>

<Button
android:id="@+id/btnSearch"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="right"
android:text="@string/search_button" />

<View

<include layout="@layout/common_title_bar" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@drawable/home_line_bit" />
<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5"
android:text="@string/search_history" />
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="15dp"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal" >

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/search_key" />

<EditText
android:id="@+id/etKeyword"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="4" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal" >

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:layout_weight="1"
android:text="@string/search_time" />

<EditText
android:id="@+id/etTimeStart"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.8" />

<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:text="@string/search_to" />

<EditText
android:id="@+id/etTimeEnd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.8" />
</LinearLayout>

<Button
android:id="@+id/btnSearch"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="right"
android:layout_weight="1"
android:text="@string/search_button" />

<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@drawable/home_line_bit" />

<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5"
android:text="@string/search_history" />

<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="6" />

<Button
android:id="@+id/btnClear"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="right"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:text="@string/search_clean" />
</LinearLayout>

<TextView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="6"/>

<Button
android:id="@+id/btnClear"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="right"
android:layout_marginBottom="10dp"
android:text="@string/search_clean" />
</LinearLayout>
</LinearLayout>
12 changes: 12 additions & 0 deletions baby/res/layout/search_result.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<include layout="@layout/common_title_bar" />
<ListView
android:id="@+id/listView"
style="@style/listviewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
2 changes: 2 additions & 0 deletions baby/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<string name="try_again_logout">再按一次退出程序</string>
<string name="json_exception">json解析错误</string>
<string name="logo_text">X&#160;X&#160;&#160;访&#160;&#160;手</string>
<string name="json_exception">json解析错误</string>
<string name="connect_server_exception">服务器连接失败</string>

<string name="change_password">修改密码</string>
<string name="change_inform">修改资料</string>
Expand Down
9 changes: 8 additions & 1 deletion baby/src/com/keju/baby/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public class Constants {
public static final String WEIBO_CONSUMER_SECRET = "b2071565ef1f2514504ccefb16866b25";// 替换为开发者的appkey,例如"94098772160b6f8ffc1315374d8861f9";
public static final String WEIBO_REDIRECT_URL = "http://www.eemedia.cn/";//微博应用回调地址
public static final String WEIBO_USER_UID = "1291843462";
/**
* intent code
*/
public static final String EXTRA_DATA = "extra_data";//跳转绑定的数据;
/**
* 网络请求状态码
*/
Expand All @@ -54,7 +58,7 @@ public class Constants {
public static final String URL_BABY_LOGIN = "login.html";//婴儿登录
public static final String URL_FITMENT = "raise.html";//育儿指南
public static final String URL_MEETING_NOTIFY = "meeting.html";//会议通知
public static final String URL_CHANGE_PASSWORD = "password.html";//修改密码
public static final String URL_CHANGE_PASSWORD = "password.html";//修改密码

/**
* 用来标识请求照相功能的activity
Expand All @@ -64,4 +68,7 @@ public class Constants {
* 用来标识请求gallery的activity
* */
public static final int PHOTO_PICKED_WITH_DATA = 3021;

public static final String URL_GROW_LINE = "grow_line.html?user_id=";//生长曲线

}
40 changes: 38 additions & 2 deletions baby/src/com/keju/baby/activity/baby/BabyDetailActivity.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,48 @@
package com.keju.baby.activity.baby;

import com.keju.baby.activity.base.BaseActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;

import com.keju.baby.Constants;
import com.keju.baby.R;
import com.keju.baby.activity.base.BaseWebViewActivity;
import com.keju.baby.bean.BabyBean;

/**
* 婴儿详情界面
* @author Zhoujun
* @version 创建时间:2013-10-25 下午3:29:41
*/
public class BabyDetailActivity extends BaseActivity {
public class BabyDetailActivity extends BaseWebViewActivity {
private Button btnLeft, btnRight;
private TextView tvTitle;

private BabyBean bean;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(getIntent() != null){
bean = (BabyBean) getIntent().getExtras().getSerializable(Constants.EXTRA_DATA);
}
findView();
fillData();
}

private void findView() {
btnLeft = (Button) this.findViewById(R.id.btnLeft);
btnLeft.setVisibility(View.INVISIBLE);
btnRight = (Button) this.findViewById(R.id.btnRight);
btnRight.setVisibility(View.INVISIBLE);
tvTitle = (TextView) this.findViewById(R.id.tvTitle);
tvTitle.setVisibility(View.VISIBLE);
tvTitle.setText(bean.getName());
webView = (WebView) findViewById(R.id.webview);
}

private void fillData() {
loadUrl(Constants.URL_GROW_LINE + bean.getId());
}
}
Loading

0 comments on commit f6698ed

Please sign in to comment.