更新代码
This commit is contained in:
parent
8b88110c33
commit
8dd8f5dc9f
@ -18,7 +18,7 @@
|
||||
String sButtons[][] = {
|
||||
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","发票作废申请","发票作废申请","InvoiceInvalid()","","","","",""},
|
||||
{"true","","Button","ÏêÇé","ÏêÇé","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
//{"true","","Button","ÏêÇé","ÏêÇé","viewAndEdit()","","","","btn_icon_detail",""},
|
||||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
|
||||
@ -5,7 +5,24 @@
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
function newApply()
|
||||
{
|
||||
AsDialog.OpenSelector("SelectAssetsDisposalForFee","","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
var flowno="<%=CurPage.getParameter("ApplyType")%>";
|
||||
var selname="";
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if("AssetsDisposalEndApply"==flowno){
|
||||
businessType="1";
|
||||
}else{
|
||||
if(orgId=="8009013"){
|
||||
businessType="3";
|
||||
}else if(orgId=="8009010"){
|
||||
businessType="2";
|
||||
}else{
|
||||
alert("当前用户不能发起申请!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
AsDialog.OpenSelector("SelectAssetsDisposalForFee","businessType,"+businessType,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
||||
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
|
||||
//alert(getHtmlMessage('1'));//请选择一条信息!
|
||||
return;
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
var selname="";
|
||||
var orgId="<%=CurUser.getOrgID()%>".substring(0,7);
|
||||
var businessType="";
|
||||
if("TAssetsDisposalFeeApply"==flowno){
|
||||
if("AssetsDisposalFeeApply"==flowno){
|
||||
businessType="1";
|
||||
}else{
|
||||
if(orgId=="8009013"){
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
BizObject lfbit = JBOFactory.getBizObjectManager(LB_FILE_BORROWING_INFO_TEMP.CLASS_NAME).createQuery("FLOWUNID=:flowunid ").setParameter("flowunid",sFlowUnid).getSingleResult(false);
|
||||
String fileIds = lfbit.getAttribute("DOCIDS").getString();
|
||||
doTemp.setJboWhere("ID IN "+fileIds);
|
||||
//doTemp.setJboWhere("ID IN "+fileIds);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1";
|
||||
dwTemp.ReadOnly = "1";
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
History Log:
|
||||
*/
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
String FLOWUNID = CurPage.getParameter("ObjectNo");
|
||||
if(sPrevUrl == null) sPrevUrl = "";
|
||||
String inputuserid = CurUser.getUserID();
|
||||
String inputusername = CurUser.getUserName();
|
||||
@ -18,11 +19,11 @@
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "-2";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("SerialNo"));
|
||||
dwTemp.genHTMLObjectWindow(FLOWUNID);
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
|
||||
{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
//{"true","All","Button","·µ»Ø","·µ»ØÁбí","returnList()","","","",""}
|
||||
};
|
||||
sButtonPosition = "south";
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
|
||||
@ -32,6 +32,9 @@ public class FileArchivingInfoTemp extends BaseBussiness{
|
||||
bo.setAttributeValue("contract_number", contract_number);
|
||||
bo.setAttributeValue("flowunid", flowunid);
|
||||
fileArchivingManager.saveObject(bo);
|
||||
}else{
|
||||
fileArchivingManager.createQuery("update O set flowunid=:flowunid where contract_id=:contract_id")
|
||||
.setParameter("flowunid", flowunid).setParameter("contract_id", contract_id).executeUpdate();
|
||||
}
|
||||
return "true";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user