[RM]Added first implementation of Pick Edit Lines button.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 28 Oct 2011 15:04:04 +0200
changeset 14462 53fd5ba5648e
parent 14461 b8b36349e243
child 14472 3cc0a9a4e507
[RM]Added first implementation of Pick Edit Lines button.
src-db/database/sourcedata/AD_REFERENCE.xml
src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
src-db/database/sourcedata/OBUIAPP_PROCESS.xml
src/org/openbravo/erpCommon/actionhandler/SRMOPickEditLines.java
--- a/src-db/database/sourcedata/AD_REFERENCE.xml	Fri Oct 28 15:03:29 2011 +0200
+++ b/src-db/database/sourcedata/AD_REFERENCE.xml	Fri Oct 28 15:04:04 2011 +0200
@@ -4918,6 +4918,18 @@
 <!--D2D4CC1F12434BB69733166A9423F2C6-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--D2D4CC1F12434BB69733166A9423F2C6--></AD_REFERENCE>
 
+<!--DE2C18CCE5D540519E606CBC1A4B336D--><AD_REFERENCE>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <AD_REFERENCE_ID><![CDATA[DE2C18CCE5D540519E606CBC1A4B336D]]></AD_REFERENCE_ID>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <NAME><![CDATA[SRM Order Pick / Edit Lines]]></NAME>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <PARENTREFERENCE_ID><![CDATA[FF80818132D8F0F30132D9BC395D0038]]></PARENTREFERENCE_ID>
+<!--DE2C18CCE5D540519E606CBC1A4B336D-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--DE2C18CCE5D540519E606CBC1A4B336D--></AD_REFERENCE>
+
 <!--DE78D015D6AD4F9E8DB9A120C6227FF7--><AD_REFERENCE>
 <!--DE78D015D6AD4F9E8DB9A120C6227FF7-->  <AD_REFERENCE_ID><![CDATA[DE78D015D6AD4F9E8DB9A120C6227FF7]]></AD_REFERENCE_ID>
 <!--DE78D015D6AD4F9E8DB9A120C6227FF7-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml	Fri Oct 28 15:04:04 2011 +0200
@@ -0,0 +1,23 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--5B14DD5B00AD445F93281640C6385BA4--><OBUIAPP_PARAMETER>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <OBUIAPP_PARAMETER_ID><![CDATA[5B14DD5B00AD445F93281640C6385BA4]]></OBUIAPP_PARAMETER_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <NAME><![CDATA[grid]]></NAME>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <SEQNO><![CDATA[0]]></SEQNO>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_REFERENCE_ID><![CDATA[FF80818132D8F0F30132D9BC395D0038]]></AD_REFERENCE_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_REFERENCE_VALUE_ID><![CDATA[DE2C18CCE5D540519E606CBC1A4B336D]]></AD_REFERENCE_VALUE_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <COLUMNNAME><![CDATA[grid]]></COLUMNNAME>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <FIELDLENGTH><![CDATA[0]]></FIELDLENGTH>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <AD_ELEMENT_ID><![CDATA[B9CE50D5D073400DBA2E420A6A814DDC]]></AD_ELEMENT_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <ISFIXED><![CDATA[Y]]></ISFIXED>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <EVALUATEFIXEDVALUE><![CDATA[N]]></EVALUATEFIXEDVALUE>
+<!--5B14DD5B00AD445F93281640C6385BA4-->  <OBUIAPP_PROCESS_ID><![CDATA[C79A2D191BBD48AC8456DBD1AAF89E04]]></OBUIAPP_PROCESS_ID>
+<!--5B14DD5B00AD445F93281640C6385BA4--></OBUIAPP_PARAMETER>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/sourcedata/OBUIAPP_PROCESS.xml	Fri Oct 28 15:04:04 2011 +0200
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<data>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04--><OBUIAPP_PROCESS>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <OBUIAPP_PROCESS_ID><![CDATA[C79A2D191BBD48AC8456DBD1AAF89E04]]></OBUIAPP_PROCESS_ID>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <VALUE><![CDATA[SRMOPickEditLines]]></VALUE>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <NAME><![CDATA[SRM Order Pick and Edit Lines]]></NAME>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <ACCESSLEVEL><![CDATA[1]]></ACCESSLEVEL>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <CLASSNAME><![CDATA[org.openbravo.erpCommon.actionhandler.SRMOPickEditLines]]></CLASSNAME>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <ISBACKGROUND><![CDATA[N]]></ISBACKGROUND>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04-->  <UIPATTERN><![CDATA[OBUIAPP_PickAndExecute]]></UIPATTERN>
+<!--C79A2D191BBD48AC8456DBD1AAF89E04--></OBUIAPP_PROCESS>
+
+</data>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/openbravo/erpCommon/actionhandler/SRMOPickEditLines.java	Fri Oct 28 15:04:04 2011 +0200
@@ -0,0 +1,30 @@
+package org.openbravo.erpCommon.actionhandler;
+
+import java.util.Map;
+
+import javax.enterprise.context.ApplicationScoped;
+
+import org.codehaus.jettison.json.JSONObject;
+import org.openbravo.client.application.process.BaseProcessActionHandler;
+
+/**
+ * 
+ * @author gorkaion
+ * 
+ */
+@ApplicationScoped
+public class SRMOPickEditLines extends BaseProcessActionHandler {
+
+  @Override
+  protected JSONObject doExecute(Map<String, Object> parameters, String content) {
+    JSONObject jsonRequest = null;
+    try {
+      jsonRequest = new JSONObject(content);
+      System.err.println(jsonRequest);
+    } catch (Exception e) {
+      e.printStackTrace();
+    }
+    return jsonRequest;
+  }
+
+}