1.取消收款单打开视图默认为标准收款单
This commit is contained in:
ljw 2024-12-06 16:41:21 +08:00
parent 4bc02913a5
commit d26d5dcc7b

View File

@ -28,7 +28,6 @@ import kd.bos.form.field.RefBillEdit;
import kd.bos.form.field.events.BeforeF7SelectEvent;
import kd.bos.form.field.events.BeforeF7SelectListener;
import kd.bos.form.operate.AbstractOperate;
import kd.bos.mvc.bill.BillView;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper;
@ -410,21 +409,21 @@ public class GatheringEcit extends AbstractBillPlugIn implements BeforeF7SelectL
* @Description 根据布局给单据类型
*/
public void setBillType() {
IFormView view = this.getView();
IDataModel model = this.getModel();
FormShowParameter fsp = this.getView().getFormShowParameter();
OperationStatus status = fsp.getStatus();
String key = ((BillView) this.getView()).getRootControl().getKey();
QFilter qFilter = null;
if (OperationStatus.ADDNEW == status) {
if (key.equals("yem_gathering_cw")) {
qFilter = new QFilter("number", QCP.equals, "yem_gathering_BJ");
}
if (qFilter != null) {
DynamicObject billType = BusinessDataServiceHelper.loadSingle("bos_billtype", "id", qFilter.toArray());
model.setValue("yem_billtype", billType);
}
}
// IFormView view = this.getView();
// IDataModel model = this.getModel();
// FormShowParameter fsp = this.getView().getFormShowParameter();
// OperationStatus status = fsp.getStatus();
// String key = ((BillView) this.getView()).getRootControl().getKey();
// QFilter qFilter = null;
// if (OperationStatus.ADDNEW == status) {
// if (key.equals("yem_gathering_cw")) {
// qFilter = new QFilter("number", QCP.equals, "yem_gathering_BJ");
// }
// if (qFilter != null) {
// DynamicObject billType = BusinessDataServiceHelper.loadSingle("bos_billtype", "id", qFilter.toArray());
// model.setValue("yem_billtype", billType);
// }
// }
}
/**