mrzcc 6 vuotta sitten
vanhempi
commit
e942a33103

+ 34 - 0
WebService/src/main/java/com/java110/web/components/purchaseApply/AddPurchaseApplyComponent.java

@@ -0,0 +1,34 @@
+package com.java110.web.components.purchaseApply;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.purchaseApply.IAddPurchaseApplySMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加采购申请组件
+ */
+@Component("addPurchaseApply")
+public class AddPurchaseApplyComponent {
+
+    @Autowired
+    private IAddPurchaseApplySMO addPurchaseApplySMOImpl;
+
+    /**
+     * 添加采购申请数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> save(IPageData pd){
+        return addPurchaseApplySMOImpl.savePurchaseApply(pd);
+    }
+
+    public IAddPurchaseApplySMO getAddPurchaseApplySMOImpl() {
+        return addPurchaseApplySMOImpl;
+    }
+
+    public void setAddPurchaseApplySMOImpl(IAddPurchaseApplySMO addPurchaseApplySMOImpl) {
+        this.addPurchaseApplySMOImpl = addPurchaseApplySMOImpl;
+    }
+}

+ 41 - 0
WebService/src/main/java/com/java110/web/components/purchaseApply/ChoosePurchaseApplyComponent.java

@@ -0,0 +1,41 @@
+package com.java110.web.components.purchaseApply;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.purchaseApply.IListPurchaseApplysSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 应用组件管理类
+ * <p>
+ * add by wuxw
+ * <p>
+ * 2019-06-29
+ */
+@Component("choosePurchaseApply")
+public class ChoosePurchaseApplyComponent {
+
+    @Autowired
+    private IListPurchaseApplysSMO listPurchaseApplysSMOImpl;
+
+    /**
+     * 查询应用列表
+     *
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd) {
+        return listPurchaseApplysSMOImpl.listPurchaseApplys(pd);
+    }
+
+    public IListPurchaseApplysSMO getListPurchaseApplysSMOImpl() {
+        return listPurchaseApplysSMOImpl;
+    }
+
+    public void setListPurchaseApplysSMOImpl(IListPurchaseApplysSMO listPurchaseApplysSMOImpl) {
+        this.listPurchaseApplysSMOImpl = listPurchaseApplysSMOImpl;
+    }
+}

+ 35 - 0
WebService/src/main/java/com/java110/web/components/purchaseApply/DeletePurchaseApplyComponent.java

@@ -0,0 +1,35 @@
+package com.java110.web.components.purchaseApply;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.purchaseApply.IDeletePurchaseApplySMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 添加采购申请组件
+ */
+@Component("deletePurchaseApply")
+public class DeletePurchaseApplyComponent {
+
+    @Autowired
+    private IDeletePurchaseApplySMO deletePurchaseApplySMOImpl;
+
+    /**
+     * 添加采购申请数据
+     *
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> delete(IPageData pd) {
+        return deletePurchaseApplySMOImpl.deletePurchaseApply(pd);
+    }
+
+    public IDeletePurchaseApplySMO getDeletePurchaseApplySMOImpl() {
+        return deletePurchaseApplySMOImpl;
+    }
+
+    public void setDeletePurchaseApplySMOImpl(IDeletePurchaseApplySMO deletePurchaseApplySMOImpl) {
+        this.deletePurchaseApplySMOImpl = deletePurchaseApplySMOImpl;
+    }
+}

+ 34 - 0
WebService/src/main/java/com/java110/web/components/purchaseApply/EditPurchaseApplyComponent.java

@@ -0,0 +1,34 @@
+package com.java110.web.components.purchaseApply;
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.purchaseApply.IEditPurchaseApplySMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+/**
+ * 编辑小区组件
+ */
+@Component("editPurchaseApply")
+public class EditPurchaseApplyComponent {
+
+    @Autowired
+    private IEditPurchaseApplySMO editPurchaseApplySMOImpl;
+
+    /**
+     * 添加小区数据
+     * @param pd 页面数据封装
+     * @return ResponseEntity 对象
+     */
+    public ResponseEntity<String> update(IPageData pd){
+        return editPurchaseApplySMOImpl.updatePurchaseApply(pd);
+    }
+
+    public IEditPurchaseApplySMO getEditPurchaseApplySMOImpl() {
+        return editPurchaseApplySMOImpl;
+    }
+
+    public void setEditPurchaseApplySMOImpl(IEditPurchaseApplySMO editPurchaseApplySMOImpl) {
+        this.editPurchaseApplySMOImpl = editPurchaseApplySMOImpl;
+    }
+}

+ 40 - 0
WebService/src/main/java/com/java110/web/components/purchaseApply/PurchaseApplyManageComponent.java

@@ -0,0 +1,40 @@
+package com.java110.web.components.purchaseApply;
+
+
+import com.java110.core.context.IPageData;
+import com.java110.web.smo.purchaseApply.IListPurchaseApplysSMO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+
+
+/**
+ * 采购申请组件管理类
+ *
+ * add by wuxw
+ *
+ * 2019-06-29
+ */
+@Component("purchaseApplyManage")
+public class PurchaseApplyManageComponent {
+
+    @Autowired
+    private IListPurchaseApplysSMO listPurchaseApplysSMOImpl;
+
+    /**
+     * 查询采购申请列表
+     * @param pd 页面数据封装
+     * @return 返回 ResponseEntity 对象
+     */
+    public ResponseEntity<String> list(IPageData pd){
+        return listPurchaseApplysSMOImpl.listPurchaseApplys(pd);
+    }
+
+    public IListPurchaseApplysSMO getListPurchaseApplysSMOImpl() {
+        return listPurchaseApplysSMOImpl;
+    }
+
+    public void setListPurchaseApplysSMOImpl(IListPurchaseApplysSMO listPurchaseApplysSMOImpl) {
+        this.listPurchaseApplysSMOImpl = listPurchaseApplysSMOImpl;
+    }
+}