|
|
|
@ -10,6 +10,12 @@ import android.widget.TextView; |
|
|
|
|
|
|
|
import com.qhclh.ytzh.R; |
|
|
|
import com.qhclh.ytzh.base.BaseActivity; |
|
|
|
import com.qhclh.ytzh.home.RpcUrl; |
|
|
|
import com.qhclh.ytzh.tasks.ViewOnClickTask; |
|
|
|
|
|
|
|
import org.forks.jsonrpc.JsonRpcResult; |
|
|
|
import org.forks.jsonrpc.RpcFacade; |
|
|
|
import org.forks.jsonrpc.RpcObject; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
@ -76,29 +82,45 @@ public class DatanalysisActivity extends BaseActivity { |
|
|
|
@Override |
|
|
|
protected void initData() { |
|
|
|
house_id = getIntent().getLongExtra("id",0); |
|
|
|
System.out.println("aaa+++dddd++++"+getIntent().getLongExtra("id",0)); |
|
|
|
taget_content1.setText("20\t\t10\t\t15"); |
|
|
|
for (int i=1;i<15;i++){ |
|
|
|
hengzuobiaolist.add("第"+i+"天"); |
|
|
|
listshuju.add(i+1.111f); |
|
|
|
// listjizhun.add(i+112.2f); |
|
|
|
} |
|
|
|
HouseView("死淘"); |
|
|
|
} |
|
|
|
|
|
|
|
private void HouseView(final String item) { |
|
|
|
ViewOnClickTask HouseViewTask = new ViewOnClickTask(this,"加载中...") { |
|
|
|
List<String> rpobj; |
|
|
|
@Override |
|
|
|
protected void successUI() { |
|
|
|
System.out.println("aaa++++++++rpo+++"+rpobj); |
|
|
|
for (int i=1;i<rpobj.size();i++){ |
|
|
|
hengzuobiaolist.add("第"+i+"日龄"); |
|
|
|
listshuju.add(i+1.111f); |
|
|
|
} |
|
|
|
|
|
|
|
///< 横坐标数据 |
|
|
|
int lenth = hengzuobiaolist.size(); |
|
|
|
date = hengzuobiaolist.toArray(new String[lenth]); |
|
|
|
///< 横坐标数据 |
|
|
|
int lenth = hengzuobiaolist.size(); |
|
|
|
date = hengzuobiaolist.toArray(new String[lenth]); |
|
|
|
|
|
|
|
///< 批次数据 |
|
|
|
int length = listshuju.size(); |
|
|
|
score = (Float[]) listshuju.toArray(new Float[length]); |
|
|
|
///< 批次数据 |
|
|
|
int length = listshuju.size(); |
|
|
|
score = (Float[]) listshuju.toArray(new Float[length]); |
|
|
|
|
|
|
|
///< 基准 标准 |
|
|
|
///< 基准 标准 |
|
|
|
// int size = listjizhun.size(); |
|
|
|
// score1 = (Float[]) listjizhun.toArray(new Float[size]); |
|
|
|
|
|
|
|
getAxisXLables();//获取x轴的标注 |
|
|
|
getAxisPoints();//获取坐标点 |
|
|
|
initLineChart();//初始化 |
|
|
|
getAxisXLables();//获取x轴的标注 |
|
|
|
getAxisPoints();//获取坐标点 |
|
|
|
initLineChart();//初始化 |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object call() throws Exception { |
|
|
|
JsonRpcResult result = RpcFacade.rpcCall(RpcUrl.HouseView,house_id,item); |
|
|
|
rpobj = result.getStringList(); |
|
|
|
return null; |
|
|
|
} |
|
|
|
}; |
|
|
|
HouseViewTask.execute(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|