| 
					
				 | 
			
			
				@@ -1,125 +0,0 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-package nc.bs.ic.base;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.alibaba.fastjson.JSONArray;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import nc.impl.pubapp.pattern.rule.IRule;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import nc.vo.pu.m21.entity.OrderVO;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import net.sf.json.JSONObject;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/**
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * 采购订单提交后传OA
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * @author Yaoyu
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * 2023/07/17
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- */
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-public class OrderAfterSubmitEvent implements IRule<OrderVO>{
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	@Override
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public void process(OrderVO[] vos) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		for (int i = 0; i < vos.length; i++) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//表头
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject mainData = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			mainData.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			mainData.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//采购组织
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject cgzz = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgzz.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgzz.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//订单编号
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ddbh = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddbh.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddbh.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//订单日期
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ddrq = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddrq.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddrq.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//订单类型
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ddlx = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddlx.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ddlx.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//供应商
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject gys = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			gys.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			gys.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//计划员
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject jhy = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jhy.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jhy.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//计划部门
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject jhbm = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jhbm.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jhbm.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//采购员
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject cgy = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgy.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgy.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//采购部门
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject cgbm = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgbm.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			cgbm.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//是否需要招投标
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject sfxyztb = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			sfxyztb.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			sfxyztb.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//有无框架协议
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ywkjxy = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ywkjxy.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ywkjxy.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//预算名称
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ysmc = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysmc.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysmc.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//预算编号
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ysbh = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysbh.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysbh.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//预算所在部门
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject ysszbm = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysszbm.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			ysszbm.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//是否有附件
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject sfyfj = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			sfyfj.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			sfyfj.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//总数量
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject zsl = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			zsl.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			zsl.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//价税合计
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject jshj = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jshj.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			jshj.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//备注
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject bz = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			bz.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			bz.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//判断前端后无合同
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject pdqdywht = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdqdywht.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdqdywht.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//判断合同是否框架协议
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject pdhtsfkjxy = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdhtsfkjxy.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdhtsfkjxy.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//一个合同关联订单累计金额
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject pdtyghtglddljje = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdtyghtglddljje.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdtyghtglddljje.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//判断是否月结
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject pdsfyj = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdsfyj.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pdsfyj.put("fieldValue", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONObject fieldValue = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    fieldValue.put("filePath", "https://autoaccount.thape.com.cn/uploads/20220908/0a44e9b50b8b6143771eb6eb238ea82a.png");
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    fieldValue.put("fileName", "test.png");
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    // 创建包含fieldName和fieldValue的JSONArray
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    JSONArray jsonArray = new JSONArray();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    jsonArray.add(fieldValue);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    //附件
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    JSONObject fj = new JSONObject();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    // 将fieldName和fieldValue放入最终的JSONObject
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    fj.put("fieldName", null);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		    fj.put("fieldValue", jsonArray);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}
 
			 |