mrzcc пре 6 година
родитељ
комит
6dfb10da0d

+ 38 - 0
WebService/src/main/java/com/java110/web/components/inspectionPoint/AddInspectionPointComponent.java

@@ -0,0 +1,38 @@
+package com.java110.web.components.inspectionPoint;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPoint.IAddInspectionPointSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加巡检点组件
+ * <p>
+ * add by zc
+ * <p>
+ * 2020-02-10
+ */
+@Component("addInspectionPoint")
+public class AddInspectionPointComponent {
+
+    @Autowired
+    private IAddInspectionPointSMO addInspectionPointSMOImpl;
+
+    /**
+     * 添加巡检点数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> save(IPageData pd){
+        return addInspectionPointSMOImpl.saveInspectionPoint(pd);
+    }
+
+    public IAddInspectionPointSMO getAddInspectionPointSMOImpl() {
+        return addInspectionPointSMOImpl;
+    }
+
+    public void setAddInspectionPointSMOImpl(IAddInspectionPointSMO addInspectionPointSMOImpl) {
+        this.addInspectionPointSMOImpl = addInspectionPointSMOImpl;
+    }
+}

+ 41 - 0
WebService/src/main/java/com/java110/web/components/inspectionPoint/ChooseInspectionPointComponent.java

@@ -0,0 +1,41 @@
+package com.java110.web.components.inspectionPoint;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPoint.IListInspectionPointsSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 应用组件管理类
+ * <p>
+ * add by zc
+ * <p>
+ * 2020-02-10
+ */
+@Component("chooseInspectionPoint")
+public class ChooseInspectionPointComponent {
+
+    @Autowired
+    private IListInspectionPointsSMO listInspectionPointsSMOImpl;
+
+    /**
+     * 查询应用列表
+     *
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd) {
+        return listInspectionPointsSMOImpl.listInspectionPoints(pd);
+    }
+
+    public IListInspectionPointsSMO getListInspectionPointsSMOImpl() {
+        return listInspectionPointsSMOImpl;
+    }
+
+    public void setListInspectionPointsSMOImpl(IListInspectionPointsSMO listInspectionPointsSMOImpl) {
+        this.listInspectionPointsSMOImpl = listInspectionPointsSMOImpl;
+    }
+}

+ 35 - 0
WebService/src/main/java/com/java110/web/components/inspectionPoint/DeleteInspectionPointComponent.java

@@ -0,0 +1,35 @@
+package com.java110.web.components.inspectionPoint;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPoint.IDeleteInspectionPointSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加巡检点组件
+ */
+@Component("deleteInspectionPoint")
+public class DeleteInspectionPointComponent {
+
+    @Autowired
+    private IDeleteInspectionPointSMO deleteInspectionPointSMOImpl;
+
+    /**
+     * 添加巡检点数据
+     *
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> delete(IPageData pd) {
+        return deleteInspectionPointSMOImpl.deleteInspectionPoint(pd);
+    }
+
+    public IDeleteInspectionPointSMO getDeleteInspectionPointSMOImpl() {
+        return deleteInspectionPointSMOImpl;
+    }
+
+    public void setDeleteInspectionPointSMOImpl(IDeleteInspectionPointSMO deleteInspectionPointSMOImpl) {
+        this.deleteInspectionPointSMOImpl = deleteInspectionPointSMOImpl;
+    }
+}

+ 34 - 0
WebService/src/main/java/com/java110/web/components/inspectionPoint/EditInspectionPointComponent.java

@@ -0,0 +1,34 @@
+package com.java110.web.components.inspectionPoint;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPoint.IEditInspectionPointSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 编辑巡检点组件
+ */
+@Component("editInspectionPoint")
+public class EditInspectionPointComponent {
+
+    @Autowired
+    private IEditInspectionPointSMO editInspectionPointSMOImpl;
+
+    /**
+     * 添加巡检点数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> update(IPageData pd){
+        return editInspectionPointSMOImpl.updateInspectionPoint(pd);
+    }
+
+    public IEditInspectionPointSMO getEditInspectionPointSMOImpl() {
+        return editInspectionPointSMOImpl;
+    }
+
+    public void setEditInspectionPointSMOImpl(IEditInspectionPointSMO editInspectionPointSMOImpl) {
+        this.editInspectionPointSMOImpl = editInspectionPointSMOImpl;
+    }
+}

+ 40 - 0
WebService/src/main/java/com/java110/web/components/inspectionPoint/InspectionPointManageComponent.java

@@ -0,0 +1,40 @@
+package com.java110.web.components.inspectionPoint;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.inspectionPoint.IListInspectionPointsSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 巡检点组件管理类
+ *
+ * add by wuxw
+ *
+ * 2019-06-29
+ */
+@Component("inspectionPointManage")
+public class InspectionPointManageComponent {
+
+    @Autowired
+    private IListInspectionPointsSMO listInspectionPointsSMOImpl;
+
+    /**
+     * 查询巡检点列表
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd){
+        return listInspectionPointsSMOImpl.listInspectionPoints(pd);
+    }
+
+    public IListInspectionPointsSMO getListInspectionPointsSMOImpl() {
+        return listInspectionPointsSMOImpl;
+    }
+
+    public void setListInspectionPointsSMOImpl(IListInspectionPointsSMO listInspectionPointsSMOImpl) {
+        this.listInspectionPointsSMOImpl = listInspectionPointsSMOImpl;
+    }
+}