Class UserImportPendingAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.plugin.inventoru.sync1c.action.UserImportPendingAction
User-facing action for viewing and confirming pending stock balance imports from 1C.
Anyone who works with the store — its owner, a StoreAccess grant, or a "кладовщик"
edit_group_id membership — sees and confirms its pending items here. This is the working tier
(
StoreAccessService.workStoreIds(Connection, DynActionForm, String), option stores of the node), not the managing one, on purpose: the proposals come
from 1C, which is the master of the stock, and posting one is the installer confirming what
reached them — not a change of the store the way a CSV "replace" or a correction is.-
Field Summary
Fields inherited from class BaseAction
l, log, MAPPER, PATH_JSP, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardapply(DynActionForm form, ConnectionSet conSet) Posts one proposal.org.apache.struts.action.ActionForwardapplyAll(DynActionForm form, ConnectionSet conSet) Posts the proposals of a store and position (or all accessible); refusals are listed, the rest goes on.org.apache.struts.action.ActionForwardreject(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardrejectAll(DynActionForm form, ConnectionSet conSet) Rejects the proposals of the same narrowing "Post all" works on — a store and a position, or everything the screen currently shows.org.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
UserImportPendingAction
public UserImportPendingAction()
-
-
Method Details
-
unspecified
public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception Description copied from class:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classBaseAction- Parameters:
form-conSet-- Returns:
- the action forward
- Throws:
Exception
-
apply
public org.apache.struts.action.ActionForward apply(DynActionForm form, ConnectionSet conSet) throws Exception Posts one proposal. A refusal is thrown — the unit that cannot come or leave is named with the reason — and nothing of it stays.- Throws:
Exception
-
applyAll
public org.apache.struts.action.ActionForward applyAll(DynActionForm form, ConnectionSet conSet) throws Exception Posts the proposals of a store and position (or all accessible); refusals are listed, the rest goes on.- Throws:
Exception
-
rejectAll
public org.apache.struts.action.ActionForward rejectAll(DynActionForm form, ConnectionSet conSet) throws Exception Rejects the proposals of the same narrowing "Post all" works on — a store and a position, or everything the screen currently shows. Rejecting by hand, row after row, was the only way, and a write-off made without 1C brings its positions back at every import until 1C itself lets go of them: a few dozen rows every cycle is a job of its own. It takes exactly what is on the screen and nothing beyond it, and the screen asks first — rejecting too much is worse than accepting too much, because what was rejected comes back silently and what was accepted shows up in the balance.- Throws:
Exception
-
reject
public org.apache.struts.action.ActionForward reject(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-