Commit 29ed012a authored by 鲁鑫's avatar 鲁鑫

成本中心冻结接口

parent f39c071b
...@@ -35,13 +35,13 @@ ...@@ -35,13 +35,13 @@
<x:hidden name="isDelete"/> <x:hidden name="isDelete"/>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="kostl" required="true" label="成本中心编码" labelCol="2" maxLength="64" fieldCol="4"/> <x:inputC name="kostl" required="true" label="成本中心编码" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="ktext" required="false" label="名称" labelCol="2" maxLength="64" fieldCol="4"/> <x:inputC name="ktext" required="true" label="名称" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="ltext" required="false" label="描述" labelCol="2" maxLength="64" fieldCol="4"/> <x:inputC name="ltext" required="false" label="描述" labelCol="2" maxLength="64" fieldCol="4"/>
<x:selectC name="kosar" required="false" label="成本中心类型" labelCol="2" dictionary="KOSAR" fieldCol="4"/> <x:selectC name="kosar" required="true" label="成本中心类型" labelCol="2" dictionary="KOSAR" fieldCol="4"/>
<x:inputC name="datbi" required="false" label="有限期自" labelCol="2" wrapper="date" fieldCol="4"/> <x:inputC name="datbi" required="true" label="有限期自" labelCol="2" wrapper="date" fieldCol="4"/>
<x:inputC name="datab" required="false" label="有限截止日" labelCol="2" wrapper="date" fieldCol="4"/> <x:inputC name="datab" required="true" label="有限截止日" labelCol="2" wrapper="date" fieldCol="4"/>
<x:inputC name="verak" required="false" label="负责人" labelCol="2" maxLength="64" fieldCol="4"/> <x:inputC name="verak" required="false" label="负责人" labelCol="2" maxLength="64" fieldCol="4"/>
<x:selectC name="prctr" required="false" label="利润中心" labelCol="2" dictionary="PRCTR" fieldCol="4"/> <x:selectC name="prctr" required="true" label="利润中心" labelCol="2" dictionary="PRCTR" fieldCol="4"/>
<x:inputC name="telePhone" required="false" label="联系方式" labelCol="2" maxLength="64" fieldCol="4"/> <x:inputC name="telePhone" required="false" label="联系方式" labelCol="2" maxLength="64" fieldCol="4"/>
<x:inputC name="reason" required="false" label="原因" labelCol="2" maxLength="255" fieldCol="4"/> <x:inputC name="reason" required="false" label="原因" labelCol="2" maxLength="255" fieldCol="4"/>
</div> </div>
......
...@@ -113,8 +113,8 @@ function updateHandler(row) { ...@@ -113,8 +113,8 @@ function updateHandler(row) {
} }
UICtrl.addTabItem({ UICtrl.addTabItem({
tabid: 'CostCenterDetail', tabid: 'CostCenterDetail',
text: "修改成本中心", text: "查看成本中心",
url: web_app.name + '/sapCostCenter/showCostCenterDetail.do?id=' + row.id url: web_app.name + '/sapCostCenter/showCostCenterDetail.job?isReadOnly=true&id=' + row.id
}) })
} }
......
...@@ -14,12 +14,14 @@ import com.huigou.uasp.bmp.common.easysearch.domain.model.QuerySchemeField; ...@@ -14,12 +14,14 @@ import com.huigou.uasp.bmp.common.easysearch.domain.model.QuerySchemeField;
import com.huigou.uasp.bmp.opm.application.MemEasySearcher; import com.huigou.uasp.bmp.opm.application.MemEasySearcher;
import com.huigou.uasp.bmp.opm.application.impl.MemEasySearcherImpl; import com.huigou.uasp.bmp.opm.application.impl.MemEasySearcherImpl;
import com.huigou.uasp.client.CommonController; import com.huigou.uasp.client.CommonController;
import com.huigou.util.DateUtil;
import com.huigou.util.SDO; import com.huigou.util.SDO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -73,6 +75,8 @@ public class CostCenterController extends CommonController { ...@@ -73,6 +75,8 @@ public class CostCenterController extends CommonController {
costCenter.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName())); costCenter.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName()));
costCenter.setIsEnable(1); costCenter.setIsEnable(1);
costCenter.setIsDelete(0); costCenter.setIsDelete(0);
costCenter.setDatbi(DateUtil.getYearFirstDay(new Date()));
costCenter.setDatab(DateUtil.getDate(9999,12,31));
return forward("sapCostCenterDetail", costCenter); return forward("sapCostCenterDetail", costCenter);
} }
......
...@@ -28,13 +28,13 @@ public class CostCenter extends FlowBillAbstractEntity { ...@@ -28,13 +28,13 @@ public class CostCenter extends FlowBillAbstractEntity {
private String kostl; private String kostl;
/** /**
* 有效期自 默认当年1月1日 * 有效截至日 默认9999.12.31
*/ */
@Column(name = "datab") @Column(name = "datab")
private Date datab; private Date datab;
/** /**
* 有效截至日 默认9999.12.31 * 有效期自 默认当年1月1日
*/ */
@Column(name = "datbi") @Column(name = "datbi")
private Date datbi; private Date datbi;
......
...@@ -25,12 +25,12 @@ public class CostCenterVo implements Serializable { ...@@ -25,12 +25,12 @@ public class CostCenterVo implements Serializable {
private String kostl; private String kostl;
/** /**
* 有效期自 默认当年1月1日 * 有效截至日 默认9999.12.31
*/ */
private Date datab; private Date datab;
/** /**
* 有效截至日 默认9999.12.31 * 有效期自 默认当年1月1日
*/ */
private Date datbi; private Date datbi;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
t.id, t.id,
t.ktext, t.ktext,
t.kostl t.kostl
from sap_cost_center t from sap_cost_center t where t.is_delete = 0 and t.is_enable = 1
</sql-query> </sql-query>
<condition column="ktext" name="ktext" type="java.lang.String" symbol="like" alias="t"/> <condition column="ktext" name="ktext" type="java.lang.String" symbol="like" alias="t"/>
</query> </query>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment