|
@@ -88,7 +88,7 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
xj.renwuModelType = RenWuModelType.None;
|
|
|
xj.itemList = getRenwuData();
|
|
|
xj.people = "员工C";
|
|
|
-
|
|
|
+ xj.listWall = getWallData();
|
|
|
return xj;
|
|
|
}
|
|
|
List<RenWuItem> getRenwuData()
|
|
@@ -269,6 +269,75 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
|
|
|
public Dictionary<string, List<XunJianListData>> areaList = new Dictionary<string, List<XunJianListData>>();
|
|
|
public Dictionary<string, List<XunJianListData>> peopleList = new Dictionary<string, List<XunJianListData>>();
|
|
|
+ List<Wall> getWallData()
|
|
|
+ {
|
|
|
+ List<Wall> listWall = new List<Wall>();
|
|
|
+
|
|
|
+ for (int i = 0; i < 6; i++)
|
|
|
+ {
|
|
|
+ switch (i)
|
|
|
+ {
|
|
|
+ case 0:
|
|
|
+ Wall wall = new Wall();
|
|
|
+ wall.listPoint.Add(new Vector3(-5, 0, 0.25f));
|
|
|
+ wall.listPoint.Add(new Vector3(5, 0, 0.25f));
|
|
|
+ wall.listPoint.Add(new Vector3(5, 0, -0.25f));
|
|
|
+ wall.listPoint.Add(new Vector3(-5, 0, -0.25f));
|
|
|
+ listWall.Add(wall);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 1:
|
|
|
+ Wall wall1 = new Wall();
|
|
|
+ wall1.listPoint.Add(new Vector3(-5, 0, -4.75f));
|
|
|
+ wall1.listPoint.Add(new Vector3(5, 0, -4.75f));
|
|
|
+ wall1.listPoint.Add(new Vector3(5, 0, -5.25f));
|
|
|
+ wall1.listPoint.Add(new Vector3(-5, 0, -5.25f));
|
|
|
+ listWall.Add(wall1);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 2:
|
|
|
+ Wall wall2 = new Wall();
|
|
|
+ wall2.listPoint.Add(new Vector3(-5.25f, 0, 0));
|
|
|
+ wall2.listPoint.Add(new Vector3(-4.75f, 0, 0));
|
|
|
+ wall2.listPoint.Add(new Vector3(-4.75f, 0, -5));
|
|
|
+ wall2.listPoint.Add(new Vector3(-5.25f, 0, -5));
|
|
|
+ listWall.Add(wall2);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 3:
|
|
|
+ Wall wall3 = new Wall();
|
|
|
+ wall3.listPoint.Add(new Vector3(4.75f, 0, 0));
|
|
|
+ wall3.listPoint.Add(new Vector3(5.25f, 0, 0));
|
|
|
+ wall3.listPoint.Add(new Vector3(5.25f, 0, -5));
|
|
|
+ wall3.listPoint.Add(new Vector3(4.75f, 0, -5));
|
|
|
+ listWall.Add(wall3);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 4:
|
|
|
+ Wall wall4 = new Wall();
|
|
|
+ wall4.listPoint.Add(new Vector3(-2.75f, 0, -1f));
|
|
|
+ wall4.listPoint.Add(new Vector3(-2.25f, 0, -1f));
|
|
|
+ wall4.listPoint.Add(new Vector3(-2.25f, 0, -3f));
|
|
|
+ wall4.listPoint.Add(new Vector3(-2.75f, 0, -3f));
|
|
|
+ listWall.Add(wall4);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case 5:
|
|
|
+ Wall wall5 = new Wall();
|
|
|
+ wall5.listPoint.Add(new Vector3(2.25f, 0, -2));
|
|
|
+ wall5.listPoint.Add(new Vector3(2.75f, 0, -2));
|
|
|
+ wall5.listPoint.Add(new Vector3(2.75f, 0, -4));
|
|
|
+ wall5.listPoint.Add(new Vector3(2.25f, 0, -4));
|
|
|
+ listWall.Add(wall5);
|
|
|
+ break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return listWall;
|
|
|
+ }
|
|
|
IEnumerator testBack(Action<List<XunJianListData>> callback)
|
|
|
{
|
|
|
yield return WindowsManager.Instance.StartCoroutine(HttpTool.Instance.SendHttp(HttpEdustryAction.InspectionList, "", (string msg) =>
|
|
@@ -346,6 +415,7 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
xj.projectType = ((ProjectType)data[i].type).ToString();
|
|
|
xj.projectTime = data[i].inspectionTime.ToString();
|
|
|
xj.updateState = data[i].status > 2 ? "已更新" : "新项目";
|
|
|
+ xj.listWall = data[i].listWall;
|
|
|
listData.Add(xj);
|
|
|
}
|
|
|
|
|
@@ -366,6 +436,7 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
public RenWuModelType renwuModelType;
|
|
|
public string url;
|
|
|
public string people = "未知员工";
|
|
|
+ public List<Wall> listWall;
|
|
|
}
|
|
|
|
|
|
public class XunJianData
|
|
@@ -378,6 +449,8 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
public int status { get; set; }
|
|
|
public int inspectionTime { get; set; }
|
|
|
public List<EmployeesData> listEmployees { get; set; }
|
|
|
+
|
|
|
+ public List<Wall> listWall { get; set; }
|
|
|
}
|
|
|
public class EmployeesData
|
|
|
{
|
|
@@ -449,6 +522,8 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
public string imageUrl;
|
|
|
public ImageFileSourceData imageData;
|
|
|
public RenWuState state = RenWuState.None;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
public class RenWuTypeModel
|
|
|
{
|
|
@@ -457,6 +532,15 @@ public class XunJianDataManager : Singleton<XunJianDataManager>
|
|
|
public string url;
|
|
|
public string info;
|
|
|
}
|
|
|
+
|
|
|
+ public class Wall
|
|
|
+ {
|
|
|
+ public List<Vector3> listPoint { get; set; }
|
|
|
+ public Wall()
|
|
|
+ {
|
|
|
+ listPoint = new List<Vector3>();
|
|
|
+ }
|
|
|
+ }
|
|
|
public enum RenWuState
|
|
|
{
|
|
|
None = 100001,
|