mrzcc
2020-02-26 e942a33103f8e046ea762f310f6fe62cbcd6c20b
采购申请
5个文件已添加
184 ■■■■■ 已修改文件
WebService/src/main/java/com/java110/web/components/purchaseApply/AddPurchaseApplyComponent.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/purchaseApply/ChoosePurchaseApplyComponent.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/purchaseApply/DeletePurchaseApplyComponent.java 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/purchaseApply/EditPurchaseApplyComponent.java 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/purchaseApply/PurchaseApplyManageComponent.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/purchaseApply/AddPurchaseApplyComponent.java
New file
@@ -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;
    }
}
WebService/src/main/java/com/java110/web/components/purchaseApply/ChoosePurchaseApplyComponent.java
New file
@@ -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;
    }
}
WebService/src/main/java/com/java110/web/components/purchaseApply/DeletePurchaseApplyComponent.java
New file
@@ -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;
    }
}
WebService/src/main/java/com/java110/web/components/purchaseApply/EditPurchaseApplyComponent.java
New file
@@ -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;
    }
}
WebService/src/main/java/com/java110/web/components/purchaseApply/PurchaseApplyManageComponent.java
New file
@@ -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;
    }
}