fix:
1.订舱通知物流 根据运输方式判断必录
This commit is contained in:
parent
49f5cb17cf
commit
192ab9d251
@ -8,6 +8,7 @@ import kd.bos.dataentity.OperateOption;
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.dataentity.entity.DynamicObjectCollection;
|
||||
import kd.bos.entity.datamodel.IDataModel;
|
||||
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
|
||||
import kd.bos.entity.operate.OperateOptionConst;
|
||||
import kd.bos.form.CloseCallBack;
|
||||
import kd.bos.form.FormShowParameter;
|
||||
@ -15,6 +16,10 @@ import kd.bos.form.IFormView;
|
||||
import kd.bos.form.ShowType;
|
||||
import kd.bos.form.events.AfterDoOperationEventArgs;
|
||||
import kd.bos.form.events.ClosedCallBackEvent;
|
||||
import kd.bos.form.field.BasedataEdit;
|
||||
import kd.bos.form.field.DateEdit;
|
||||
import kd.bos.form.field.FieldEdit;
|
||||
import kd.bos.form.field.TextEdit;
|
||||
import kd.bos.form.plugin.IFormPlugin;
|
||||
import kd.bos.orm.query.QCP;
|
||||
import kd.bos.orm.query.QFilter;
|
||||
@ -90,7 +95,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
|
||||
//
|
||||
OperateOption option = OperateOption.create();
|
||||
option.setVariableValue(OperateOptionConst.ISSHOWMESSAGE, String.valueOf(false));
|
||||
this.getView().invokeOperation("save",option);
|
||||
this.getView().invokeOperation("save", option);
|
||||
// OperationResult saveOperate = OperationServiceHelper.executeOperate("save", this.getView().getEntityId(), new DynamicObject[]{this.getModel().getDataEntity(true)}, YEM.getOptionNoMsg());
|
||||
// if (saveOperate.isSuccess()) {
|
||||
// saveOperate.setSuccess(false);
|
||||
@ -209,7 +214,7 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if ("YSFS-1002".equals(number)){
|
||||
if ("YSFS-1002".equals(number)) {
|
||||
if (atts.isEmpty()) {
|
||||
string = string + i + ". 物流附件面板为空,请稍后重试!\n";
|
||||
boonle = false;
|
||||
@ -497,4 +502,138 @@ public class StorageTransEdit_wl extends AbstractBillPlugIn {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void propertyChanged(PropertyChangedArgs e) {
|
||||
super.propertyChanged(e);
|
||||
String name = e.getProperty().getName();
|
||||
if ("yem_transportstyle".equals(name)) {
|
||||
DynamicObject newValue = (DynamicObject) e.getChangeSet()[0].getNewValue();
|
||||
String number = newValue.getString("number");
|
||||
if ("YSFS-0004".equals(number) || "YSFS-0006".equals(number) || "YSFS-0010".equals(number) || "YSFS-0008".equals(number) || "YSFS-1008".equals(number)
|
||||
||"YSFS-1004".equals(number)||"YSFS-1005".equals(number)||"YSFS-1006".equals(number)) {
|
||||
TextEdit yem_noticeno = this.getControl("yem_noticeno");//主提单号
|
||||
yem_noticeno.setMustInput(true);
|
||||
DateEdit yem_initforecdate = this.getControl("yem_initforecdate");//预计船期/班列
|
||||
yem_initforecdate.setMustInput(true);
|
||||
TextEdit yem_shipname = this.getControl("yem_shipname");//船名
|
||||
yem_shipname.setMustInput(true);
|
||||
TextEdit yem_voyageno = this.getControl("yem_voyageno");//航次
|
||||
yem_voyageno.setMustInput(true);
|
||||
DateEdit yem_cutdate = this.getControl("yem_cutdate");//截单日期
|
||||
yem_cutdate.setMustInput(true);
|
||||
DateEdit yem_portinterception = this.getControl("yem_portinterception");//截港日期
|
||||
yem_portinterception.setMustInput(true);
|
||||
TextEdit yem_cfscompnaytxt = this.getControl("yem_cfscompnaytxt");//货代公司
|
||||
yem_cfscompnaytxt.setMustInput(true);
|
||||
DateEdit yem_etddate = this.getControl("yem_etddate");//起运地ETD(离开日期)
|
||||
yem_etddate.setMustInput(true);
|
||||
BasedataEdit yem_sctcompnayname = this.getControl("yem_sctcompnayname");//船公司
|
||||
yem_sctcompnayname.setMustInput(true);
|
||||
TextEdit yem_stationtext = this.getControl("yem_stationtext");//场站
|
||||
yem_stationtext.setMustInput(true);
|
||||
TextEdit yem_attachmentcountqty = this.getControl("yem_attachmentcountqty");//物流附件
|
||||
yem_attachmentcountqty.setMustInput(true);
|
||||
}
|
||||
if ("YSFS-0011".equals(number)||"YSFS-1010".equals(number)||"YSFS-1002".equals(number)||"YSFS-1007".equals(number)||"YSFS-1011".equals(number)||"YSFS-1012".equals(number)){
|
||||
DateEdit yem_initforecdate = this.getControl("yem_initforecdate");//预计船期/班列
|
||||
yem_initforecdate.setMustInput(true);
|
||||
TextEdit yem_cfscompnaytxt = this.getControl("yem_cfscompnaytxt");//货代公司
|
||||
yem_cfscompnaytxt.setMustInput(true);
|
||||
DateEdit yem_etddate = this.getControl("yem_etddate");//起运地ETD(离开日期)
|
||||
yem_etddate.setMustInput(true);
|
||||
TextEdit yem_attachmentcountqty = this.getControl("yem_attachmentcountqty");//物流附件
|
||||
yem_attachmentcountqty.setMustInput(true);
|
||||
|
||||
TextEdit yem_noticeno = this.getControl("yem_noticeno");//主提单号
|
||||
yem_noticeno.setMustInput(false);
|
||||
TextEdit yem_shipname = this.getControl("yem_shipname");//船名
|
||||
yem_shipname.setMustInput(false);
|
||||
TextEdit yem_voyageno = this.getControl("yem_voyageno");//航次
|
||||
yem_voyageno.setMustInput(false);
|
||||
DateEdit yem_cutdate = this.getControl("yem_cutdate");//截单日期
|
||||
yem_cutdate.setMustInput(false);
|
||||
DateEdit yem_portinterception = this.getControl("yem_portinterception");//截港日期
|
||||
yem_portinterception.setMustInput(false);
|
||||
BasedataEdit yem_sctcompnayname = this.getControl("yem_sctcompnayname");//船公司
|
||||
yem_sctcompnayname.setMustInput(false);
|
||||
TextEdit yem_stationtext = this.getControl("yem_stationtext");//场站
|
||||
yem_stationtext.setMustInput(false);
|
||||
}
|
||||
if ("YSFS002_SYS".equals(number)){
|
||||
TextEdit yem_noticeno = this.getControl("yem_noticeno");//主提单号
|
||||
yem_noticeno.setMustInput(true);
|
||||
DateEdit yem_initforecdate = this.getControl("yem_initforecdate");//预计船期/班列
|
||||
yem_initforecdate.setMustInput(true);
|
||||
DateEdit yem_cutdate = this.getControl("yem_cutdate");//截单日期
|
||||
yem_cutdate.setMustInput(true);
|
||||
DateEdit yem_portinterception = this.getControl("yem_portinterception");//截港日期
|
||||
yem_portinterception.setMustInput(true);
|
||||
TextEdit yem_cfscompnaytxt = this.getControl("yem_cfscompnaytxt");//货代公司
|
||||
yem_cfscompnaytxt.setMustInput(true);
|
||||
DateEdit yem_etddate = this.getControl("yem_etddate");//起运地ETD(离开日期)
|
||||
yem_etddate.setMustInput(true);
|
||||
TextEdit yem_attachmentcountqty = this.getControl("yem_attachmentcountqty");//物流附件
|
||||
yem_attachmentcountqty.setMustInput(true);
|
||||
|
||||
TextEdit yem_shipname = this.getControl("yem_shipname");//船名
|
||||
yem_shipname.setMustInput(false);
|
||||
TextEdit yem_voyageno = this.getControl("yem_voyageno");//航次
|
||||
yem_voyageno.setMustInput(false);
|
||||
BasedataEdit yem_sctcompnayname = this.getControl("yem_sctcompnayname");//船公司
|
||||
yem_sctcompnayname.setMustInput(false);
|
||||
TextEdit yem_stationtext = this.getControl("yem_stationtext");//场站
|
||||
yem_stationtext.setMustInput(false);
|
||||
}if ("YSFS-1013".equals(number)||"YSFS-0005".equals(number)){
|
||||
DateEdit yem_initforecdate = this.getControl("yem_initforecdate");//预计船期/班列
|
||||
yem_initforecdate.setMustInput(true);
|
||||
DateEdit yem_cutdate = this.getControl("yem_cutdate");//截单日期
|
||||
yem_cutdate.setMustInput(true);
|
||||
DateEdit yem_portinterception = this.getControl("yem_portinterception");//截港日期
|
||||
yem_portinterception.setMustInput(true);
|
||||
TextEdit yem_cfscompnaytxt = this.getControl("yem_cfscompnaytxt");//货代公司
|
||||
yem_cfscompnaytxt.setMustInput(true);
|
||||
DateEdit yem_etddate = this.getControl("yem_etddate");//起运地ETD(离开日期)
|
||||
yem_etddate.setMustInput(true);
|
||||
TextEdit yem_stationtext = this.getControl("yem_stationtext");//场站
|
||||
yem_stationtext.setMustInput(true);
|
||||
TextEdit yem_attachmentcountqty = this.getControl("yem_attachmentcountqty");//物流附件
|
||||
yem_attachmentcountqty.setMustInput(true);
|
||||
|
||||
TextEdit yem_noticeno = this.getControl("yem_noticeno");//主提单号
|
||||
yem_noticeno.setMustInput(false);
|
||||
TextEdit yem_shipname = this.getControl("yem_shipname");//船名
|
||||
yem_shipname.setMustInput(false);
|
||||
TextEdit yem_voyageno = this.getControl("yem_voyageno");//航次
|
||||
yem_voyageno.setMustInput(false);
|
||||
BasedataEdit yem_sctcompnayname = this.getControl("yem_sctcompnayname");//船公司
|
||||
yem_sctcompnayname.setMustInput(false);
|
||||
}
|
||||
if ("YSFS-1001".equals(number)){
|
||||
DateEdit yem_initforecdate = this.getControl("yem_initforecdate");//预计船期/班列
|
||||
yem_initforecdate.setMustInput(true);
|
||||
TextEdit yem_cfscompnaytxt = this.getControl("yem_cfscompnaytxt");//货代公司
|
||||
yem_cfscompnaytxt.setMustInput(true);
|
||||
|
||||
TextEdit yem_noticeno = this.getControl("yem_noticeno");//主提单号
|
||||
yem_noticeno.setMustInput(false);
|
||||
TextEdit yem_shipname = this.getControl("yem_shipname");//船名
|
||||
yem_shipname.setMustInput(false);
|
||||
TextEdit yem_voyageno = this.getControl("yem_voyageno");//航次
|
||||
yem_voyageno.setMustInput(false);
|
||||
DateEdit yem_cutdate = this.getControl("yem_cutdate");//截单日期
|
||||
yem_cutdate.setMustInput(false);
|
||||
DateEdit yem_portinterception = this.getControl("yem_portinterception");//截港日期
|
||||
yem_portinterception.setMustInput(false);
|
||||
DateEdit yem_etddate = this.getControl("yem_etddate");//起运地ETD(离开日期)
|
||||
yem_etddate.setMustInput(false);
|
||||
BasedataEdit yem_sctcompnayname = this.getControl("yem_sctcompnayname");//船公司
|
||||
yem_sctcompnayname.setMustInput(false);
|
||||
TextEdit yem_stationtext = this.getControl("yem_stationtext");//场站
|
||||
yem_stationtext.setMustInput(false);
|
||||
TextEdit yem_attachmentcountqty = this.getControl("yem_attachmentcountqty");//物流附件
|
||||
yem_attachmentcountqty.setMustInput(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user