科目分类通用插件去除差旅报销单逻辑
This commit is contained in:
		
							parent
							
								
									31b70ffe22
								
							
						
					
					
						commit
						d9e9c80ca2
					
				| 
						 | 
				
			
			@ -25,14 +25,11 @@ import zcgj.zcdev.zcdev.fs.utils.OrgCheckUtils;
 | 
			
		|||
import java.util.*;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 1、费用报销单;2、差旅报销单;3、对公报销单;4、预付单
 | 
			
		||||
 * 1、费用报销单;2、对公报销单;3、预付单
 | 
			
		||||
 * 科目分类通用插件
 | 
			
		||||
 */
 | 
			
		||||
public class ReimbursementAccountTypePlugin extends AbstractBillPlugIn implements Plugin, BeforeF7SelectListener {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 发票分录超链接跳转到详情
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public void registerListener(EventObject e) {
 | 
			
		||||
        super.registerListener(e);
 | 
			
		||||
| 
						 | 
				
			
			@ -73,7 +70,7 @@ public class ReimbursementAccountTypePlugin extends AbstractBillPlugIn implement
 | 
			
		|||
                        DynamicObject expenseItem = dynamicObjectCollection.get(row).getDynamicObject("expenseitem");//费用项目
 | 
			
		||||
                        if (expenseItem != null) {
 | 
			
		||||
                            QFilter filter = new QFilter("zcgj_entryentity.zcgj_fee", QCP.equals, expenseItem.getLong("id"));
 | 
			
		||||
                            String typeKey = "20"; //差旅报销单
 | 
			
		||||
                            String typeKey = "";
 | 
			
		||||
                            if ("er_dailyreimbursebill".equals(billFormId)) {
 | 
			
		||||
                                typeKey = "30"; //费用报销单
 | 
			
		||||
                            } else if ("er_publicreimbursebill".equals(billFormId)) {
 | 
			
		||||
| 
						 | 
				
			
			@ -106,7 +103,7 @@ public class ReimbursementAccountTypePlugin extends AbstractBillPlugIn implement
 | 
			
		|||
                    }
 | 
			
		||||
                } else if ("expenseitem".equals(name)) {
 | 
			
		||||
                    //费用项目增加过滤
 | 
			
		||||
                    String typeKey = "20"; //差旅报销单
 | 
			
		||||
                    String typeKey = "";
 | 
			
		||||
                    if ("er_dailyreimbursebill".equals(billFormId)) {
 | 
			
		||||
                        typeKey = "30";//费用报销单
 | 
			
		||||
                    } else if ("er_publicreimbursebill".equals(billFormId)) {
 | 
			
		||||
| 
						 | 
				
			
			@ -159,7 +156,7 @@ public class ReimbursementAccountTypePlugin extends AbstractBillPlugIn implement
 | 
			
		|||
                }
 | 
			
		||||
                long expenseItemId = expenseItem.getLong("id");//费用项目id
 | 
			
		||||
 | 
			
		||||
                String typeKey = "20"; //差旅报销单
 | 
			
		||||
                String typeKey = "";
 | 
			
		||||
                if ("er_dailyreimbursebill".equals(billFormId)) {
 | 
			
		||||
                    typeKey = "30";//费用报销单
 | 
			
		||||
                } else if ("er_publicreimbursebill".equals(billFormId)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue