Merge fixes done in qa - not in trunk
---------------------------------- globalqss - Revision 8244 Fix Bug [2546855] - Mail text not parsed or translated in request window https://sourceforge.net/tracker2/?func=detail&aid=2546855&group_id=176962&atid=879332 ---------------------------------- globalqss - Revision 8247 Fix Bug [2547306] - Request notification not sent on creation And on modification of a sales rep the new sales rep is not being notified. https://sourceforge.net/tracker2/?func=detail&aid=2547306&group_id=176962&atid=879332 ---------------------------------- globalqss - Revision 8249 Minor - dropping procedure wrongly created (duplicate) on functions directory - adding needed ending / to documentNo ---------------------------------- hengsin - Revision 8281 * Make the Locator window re-sizable and fixed the width of the locator combo box ----------------------------------
This commit is contained in:
parent
8ec88430c7
commit
2820e8143d
|
@ -51,26 +51,19 @@ public class CalloutRequest extends CalloutEngine
|
|||
return "";
|
||||
|
||||
Integer R_MailText_ID = (Integer)value;
|
||||
String sql = "SELECT MailHeader, MailText FROM R_MailText "
|
||||
+ "WHERE R_MailText_ID=?";
|
||||
try
|
||||
{
|
||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, R_MailText_ID.intValue());
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
{
|
||||
String txt = rs.getString(2);
|
||||
txt = Env.parseContext(ctx, WindowNo, txt, false, true);
|
||||
mTab.setValue("Result", txt);
|
||||
}
|
||||
rs.close();
|
||||
pstmt.close();
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
}
|
||||
MMailText mailtext = new MMailText(ctx, R_MailText_ID.intValue(), null);
|
||||
|
||||
Integer userID = (Integer) mTab.getValue("AD_User_ID");
|
||||
if (userID != null)
|
||||
mailtext.setUser(userID.intValue());
|
||||
Integer bpID = (Integer) mTab.getValue("C_BPartner_ID");
|
||||
if (bpID != null)
|
||||
mailtext.setBPartner(bpID.intValue());
|
||||
|
||||
String txt = mailtext.getMailText();
|
||||
txt = Env.parseContext(ctx, WindowNo, txt, false, true);
|
||||
mTab.setValue("Result", txt);
|
||||
|
||||
return "";
|
||||
} // copyText
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
|
@ -877,6 +877,10 @@ public class MRequest extends X_R_Request
|
|||
m_emailTo = new StringBuffer();
|
||||
if (update != null || sendInfo.size() > 0)
|
||||
{
|
||||
// Note that calling the notifications from beforeSave is causing the
|
||||
// new interested are not notified if the RV_RequestUpdates view changes
|
||||
// this is, when changed the sales rep (solved in sendNotices)
|
||||
// or when changed the request category or group or contact (unsolved - the old ones are notified)
|
||||
sendNotices(sendInfo);
|
||||
|
||||
// Update
|
||||
|
@ -1117,7 +1121,7 @@ public class MRequest extends X_R_Request
|
|||
ArrayList<Integer> userList = new ArrayList<Integer>();
|
||||
final String sql = "SELECT u.AD_User_ID, u.NotificationType, u.EMail, u.Name, MAX(r.AD_Role_ID) "
|
||||
+ "FROM RV_RequestUpdates_Only ru"
|
||||
+ " INNER JOIN AD_User u ON (ru.AD_User_ID=u.AD_User_ID)"
|
||||
+ " INNER JOIN AD_User u ON (ru.AD_User_ID=u.AD_User_ID OR u.AD_User_ID=?)"
|
||||
+ " LEFT OUTER JOIN AD_User_Roles r ON (u.AD_User_ID=r.AD_User_ID) "
|
||||
+ "WHERE ru.R_Request_ID=? "
|
||||
+ "GROUP BY u.AD_User_ID, u.NotificationType, u.EMail, u.Name";
|
||||
|
@ -1125,8 +1129,9 @@ public class MRequest extends X_R_Request
|
|||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement (sql, null);
|
||||
pstmt.setInt (1, getR_Request_ID());
|
||||
pstmt = DB.prepareStatement (sql, get_TrxName());
|
||||
pstmt.setInt (1, getSalesRep_ID());
|
||||
pstmt.setInt (2, getR_Request_ID());
|
||||
rs = pstmt.executeQuery ();
|
||||
while (rs.next ())
|
||||
{
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
CREATE or REPLACE PROCEDURE NextIDByYear
|
||||
(
|
||||
p_AD_Sequence_ID IN NUMBER,
|
||||
p_IncrementNo IN NUMBER,
|
||||
p_CalendarYear IN CHAR,
|
||||
o_NextID OUT NUMBER
|
||||
)
|
||||
AS
|
||||
BEGIN
|
||||
SELECT CurrentNext
|
||||
INTO o_NextID
|
||||
FROM AD_Sequence_No
|
||||
WHERE AD_Sequence_ID=p_AD_Sequence_ID
|
||||
AND CalendarYear = p_CalendarYear
|
||||
FOR UPDATE OF CurrentNext;
|
||||
--
|
||||
UPDATE AD_Sequence_No
|
||||
SET CurrentNext = CurrentNext + p_IncrementNo
|
||||
WHERE AD_Sequence_ID=p_AD_Sequence_ID
|
||||
AND CalendarYear = p_CalendarYear;
|
||||
EXCEPTION
|
||||
WHEN OTHERS THEN
|
||||
DBMS_OUTPUT.PUT_LINE(SQLERRM);
|
||||
END NextIDByYear;
|
|
@ -42,3 +42,4 @@ BEGIN
|
|||
|
||||
RETURN v_DocumentNo;
|
||||
END documentNo;
|
||||
/
|
||||
|
|
|
@ -23,5 +23,3 @@ EXCEPTION
|
|||
DBMS_OUTPUT.PUT_LINE(SQLERRM);
|
||||
END NextIDByYear;
|
||||
/
|
||||
|
||||
|
||||
|
|
|
@ -147,6 +147,7 @@ public class WLocatorDialog extends Window implements EventListener
|
|||
boxLocator.setWidth("100%");
|
||||
boxLocator.setWidths("30%, 70%");
|
||||
|
||||
lstLocator.setWidth("150px"); // Elaine 2009/02/02 - fixed the locator width
|
||||
lstLocator.setMold("select");
|
||||
lstLocator.setRows(0);
|
||||
|
||||
|
@ -238,6 +239,7 @@ public class WLocatorDialog extends Window implements EventListener
|
|||
this.setBorder("normal");
|
||||
this.setWidth("260Px");
|
||||
this.setAttribute("mode","modal");
|
||||
this.setSizable(true); // Elaine 2009/02/02 - window set to resizable
|
||||
}
|
||||
|
||||
private void initLocator()
|
||||
|
|
Loading…
Reference in New Issue