更新电子签约方法
This commit is contained in:
parent
7caca50fe0
commit
5459a116cb
@ -6,6 +6,7 @@
|
||||
History Log:
|
||||
*/
|
||||
String custtype = CurPage.getParameter("CustomerType");
|
||||
String PhaseNo = CurPage.getParameter("PhaseNo");
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
// String signStatus = CurPage.getParameter("SignStatus");
|
||||
String contractNumber = CurPage.getParameter("ContractNumber");
|
||||
@ -21,6 +22,7 @@
|
||||
dwTemp.genHTMLObjectWindow(id+","+flowunid);
|
||||
String btnflag = "true";
|
||||
String btnflagcom = "false";
|
||||
String signs = "false";
|
||||
if("01".equals(custtype)){
|
||||
btnflagcom = "true";
|
||||
}
|
||||
@ -28,13 +30,16 @@
|
||||
btnflag = "false";
|
||||
btnflagcom = "false";
|
||||
}
|
||||
//判断是不是流程的第二步
|
||||
if("0020".equals(PhaseNo)){
|
||||
signs = "true";
|
||||
}
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{btnflag,"","Button","发起电子签约","电子签章合同","signOnLine()","","","","btn_icon_sign",""},
|
||||
{btnflag,"","Button","查询签约结果","查询签约结果","getStatus()","","","","btn_icon_obtain",""},
|
||||
{btnflag,"","Button","重新发送短信","重新发送短信","sendMessageAgain()","","","","btn_icon_refresh",""},
|
||||
{btnflag,"","Button","公司盖章","公司盖章","sign()","","","","btn_icon_refresh",""},
|
||||
{btnflagcom,"","Button","下载纸质合同","下载纸质合同","downFile()","","","","btn_icon_down",""},
|
||||
{signs,"","Button","公司盖章","公司盖章","sign()","","","","btn_icon_refresh",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<style>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
/* ×ó²àÑùʽ΢µ÷ */
|
||||
$("#div_1580").find("[style='display:inline-block;width:6px;']").css("width","100");
|
||||
$("#div_920").find("[style='display:inline-block;width:6px;']").css("width","100");
|
||||
$("#div_1410").find("[style='display:inline-block;width:6px;']").css("width","100");
|
||||
$("#div_1410").find("[style='display:inline-block;width:6px;']").css("width","88");
|
||||
$("#div_1390").find("[style='display:inline-block;width:6px;']").css("width","100");
|
||||
/* ÓÒ²à Ñùʽ΢µ÷*/
|
||||
$("#A_div_900").find("[style='display:inline-block;width:6px;']").css("width","86");
|
||||
|
||||
@ -48,6 +48,10 @@
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var ID = getItemValue(0,getRow(0),'ID');
|
||||
if("undefined"==ID||""==ID || null==ID){
|
||||
AsDebug.showMessage("提示","请选中一条数据!","","",true);
|
||||
return;
|
||||
}
|
||||
var sUrl = "Tenwa/Lease/Flow/Comm/LBGuaranteeUnit/LBGuaranteePerUnitInfo.jsp";
|
||||
var sparam = 'ID='+ID;
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
|
||||
@ -83,7 +83,8 @@ public class FileTemplateUtil {
|
||||
while (rs.next()){
|
||||
tempFiles.add("{'text':'"+rs.getString("templatename")+"','value':'"+rs.getString("id")+"'}");
|
||||
}
|
||||
String sReturn="[{'fileTemplate':\""+tempFiles.toString()+"\"}]";
|
||||
// String sReturn="[{'fileTemplate':\""+tempFiles.toString()+"\"}]";
|
||||
String sReturn="[{'fileTemplate':\""+"[{'text':'ÈÚ×Ê×âÁÞºÏͬ-C¶ËÖ±×â','value':'24aba365e2794a018814ae81341486bf'}]"+"\"}]";
|
||||
return sReturn;
|
||||
}
|
||||
|
||||
|
||||
@ -869,7 +869,7 @@ public class ContractSignAction{
|
||||
pbo.setAttributeValue("project_status", "4");// 状态改成已完成电子签约
|
||||
pbm.saveObject(pbo);
|
||||
// 记录项目进程日志
|
||||
Transaction tran = Transaction.createTransaction(tx);
|
||||
/* Transaction tran = Transaction.createTransaction(tx);
|
||||
ASUser user = ASUser.getUser(CurUserID, tran);
|
||||
JBOFactory.getBizObjectManager(BUSINESS_STATUS.CLASS_NAME, tx)
|
||||
.createQuery("UPDATE O SET BUSINESS_STATUS='4',UPDATEUSERID='" + user.getUserID() + "',UPDATEORGID='"
|
||||
@ -884,10 +884,10 @@ public class ContractSignAction{
|
||||
so.setDebugSql(so.getDebugSql().replaceAll("△", ":"));
|
||||
so.setOriginalSql(so.getOriginalSql().replaceAll("△", ":"));
|
||||
so.setRunSql(so.getRunSql().replaceAll("△", ":"));
|
||||
tran.executeSQL(so);
|
||||
tran.executeSQL(so);*/
|
||||
for (BizObject keys : bo) {
|
||||
ldBom.createQuery("update O set status='' where id='" + keys.getAttribute("attribute_id").toString() + "'")
|
||||
.executeUpdate();
|
||||
/* ldBom.createQuery("update O set status='' where id='" + keys.getAttribute("attribute_id").toString() + "'")
|
||||
.executeUpdate();*/
|
||||
}
|
||||
status = ";<br>已经完成电子签约";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user