1.返利规则增行弹窗调整
This commit is contained in:
		
							parent
							
								
									e09421edd3
								
							
						
					
					
						commit
						a1d10b0d07
					
				|  | @ -0,0 +1,63 @@ | |||
| package tqq9.lc123.cloud.app.plugin.form.ap; | ||||
| 
 | ||||
| import kd.bos.bill.AbstractBillPlugIn; | ||||
| import kd.bos.bill.BillShowParameter; | ||||
| import kd.bos.dataentity.entity.DynamicObject; | ||||
| import kd.bos.dataentity.entity.DynamicObjectCollection; | ||||
| import kd.bos.dataentity.utils.StringUtils; | ||||
| import kd.bos.form.CloseCallBack; | ||||
| import kd.bos.form.FormShowParameter; | ||||
| import kd.bos.form.ShowFormHelper; | ||||
| import kd.bos.form.ShowType; | ||||
| import kd.bos.form.control.events.ItemClickEvent; | ||||
| import kd.bos.list.ListFilterParameter; | ||||
| import kd.bos.list.ListShowParameter; | ||||
| import kd.bos.logging.Log; | ||||
| import kd.bos.logging.LogFactory; | ||||
| import kd.sdk.plugin.Plugin; | ||||
| import scala.annotation.meta.param; | ||||
| import tqq9.lc123.cloud.app.plugin.form.conm.purconmAddRebateRulesPlugin; | ||||
| 
 | ||||
| import java.util.EventObject; | ||||
| 
 | ||||
| /** | ||||
|  * 单据界面插件 | ||||
|  */ | ||||
| public class PayApplyFormPlugin extends AbstractBillPlugIn implements Plugin { | ||||
|     private final static Log logger = LogFactory.getLog(PayApplyFormPlugin.class); | ||||
| 
 | ||||
|     @Override | ||||
|     public void registerListener(EventObject e) { | ||||
|         super.registerListener(e); | ||||
|         this.addItemClickListeners("tbmain"); | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     @Override | ||||
|     public void itemClick(ItemClickEvent evt) { | ||||
|         super.itemClick(evt); | ||||
|         String itemKey = evt.getItemKey(); | ||||
|         if (StringUtils.equals("tqq9_deductorder",itemKey)) { | ||||
|             DynamicObjectCollection entry = this.getModel().getDataEntity(true).getDynamicObjectCollection("entry"); | ||||
|             if (entry.isEmpty()) { | ||||
|                 getView().showMessage("请先维护供应商"); | ||||
|                 return; | ||||
|             }else{ | ||||
|                 DynamicObject e_asstact = entry.get(0).getDynamicObject("e_asstact");//往来户 | ||||
|                 DynamicObject settleorg = (DynamicObject) this.getModel().getValue("settleorg");//结算组织 | ||||
|                 if(e_asstact==null){ | ||||
|                     getView().showMessage("请先维护供应商"); | ||||
|                     return; | ||||
|                 }else{ | ||||
|                     FormShowParameter param = new FormShowParameter(); | ||||
|                     param.setFormId("ap_handsettle"); | ||||
|                     param.setCustomParam("e_asstact", e_asstact); | ||||
|                     param.setCustomParam("settleorg", settleorg); | ||||
|                     param.setCloseCallBack(new CloseCallBack(this, "tqq9_deductorder")); | ||||
|                     param.getOpenStyle().setShowType(ShowType.Modal); | ||||
|                     this.getView().showForm(param); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue