- 浏览: 180995 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
cjy11520:
...
Myeclipse6.0注册码 -
xwei78:
正好是所需,简单明了。
弹窗确定关闭 同时关闭父窗口 -
administrator1616:
搞个注册工具类不就行了
Myeclipse6.0注册码 -
loky:
mousegod2008 写道找了一上午,连破解的那个keyg ...
Myeclipse6.0注册码 -
mousegod2008:
找了一上午,连破解的那个keygen类都研究了,依然不能注册, ...
Myeclipse6.0注册码
在开发中要学会把方法封装,整体把握。下面是个valuehelp:
// ---------------------------------------------------------------------------
// This file has been generated partially by the Web Dynpro Code Generator.
// MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
// ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
// ---------------------------------------------------------------------------
package com.jxep;
//
// IMPORTANT NOTE:
// _ALL_ IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
// BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
// AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateCtr_I02_M01).
// OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
// A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
// OF IMPORT STATEMENTS.
//
//@@begin imports
import java.util.List;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import com.jxep.models.Zjxeppm_I02_M01_Input;
import com.jxep.utils.Reporter;
import com.jxep.utils.StringUtils;
import com.jxep.wdp.IPrivateCtr_I02_M01;
import com.jxep.wdp.IPublicCtr_I02_M01.ICostcenter_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.ICostcenter_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IOrdtype_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IOrdtype_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_OutputNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlangrp_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlangrp_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_OutputNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPmacti_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPmacti_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_OutputNode;
import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException;
import com.sap.tc.webdynpro.progmodel.api.IWDNode;
import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
import com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener;
import com.sap.tc.webdynpro.progmodel.api.WDCopyService;
import com.sap.tc.webdynpro.progmodel.api.WDValueServices;
//@@end
//@@begin documentation
//@@end
public class Ctr_I02_M01
{
/**
* Logging location.
*/
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(Ctr_I02_M01.class);
static
{
//@@begin id
String id = "$Id$";
//@@end
com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
}
/**
* Private access to the generated Web Dynpro counterpart
* for this controller class. </p>
*
* Use <code>wdThis</code> to gain typed access to the context,
* to trigger navigation via outbound plugs, to get and enable/disable
* actions, fire declared events, and access used controllers and/or
* component usages.
*
* @see com.jxep.wdp.IPrivateCtr_I02_M01 for more details
*/
private final IPrivateCtr_I02_M01 wdThis;
/**
* Root node of this controller's context. </p>
*
* Provides typed access not only to the elements of the root node
* but also to all nodes in the context (methods node<i>XYZ</i>())
* and their currently selected element (methods current<i>XYZ</i>Element()).
* It also facilitates the creation of new elements for all nodes
* (methods create<i>XYZ</i>Element()). </p>
*
* @see com.jxep.wdp.IPrivateCtr_I02_M01.IContextNode for more details.
*/
private final IPrivateCtr_I02_M01.IContextNode wdContext;
/**
* A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
*
* Represents the generic API of the generic Web Dynpro counterpart
* for this controller. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDController wdControllerAPI;
/**
* A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
*
* Represents the generic API of the Web Dynpro component this controller
* belongs to. Can be used to access the message manager, the window manager,
* to add/remove event handlers and so on. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
public Ctr_I02_M01(IPrivateCtr_I02_M01 wdThis)
{
this.wdThis = wdThis;
this.wdContext = wdThis.wdGetContext();
this.wdControllerAPI = wdThis.wdGetAPI();
this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
}
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
{
//@@begin wdDoInit()
reporter = new Reporter(wdComponentAPI);
getI02_M01();
//@@end
}
//@@begin javadoc:wdDoExit()
/** Hook method called to clean up controller. */
//@@end
public void wdDoExit()
{
//@@begin wdDoExit()
//@@end
}
//@@begin javadoc:addPernrOVSExtension()
/** Declared method. */
//@@end
public void addPernrOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addPernrOVSExtension()
WDValueServices.addOVSExtension(
"Pernr Selection",
infos,
(IWDNode) wdContext.nodePernr_Input(),
(IWDNode) wdContext.nodePernr_Output(),
getPernrOVSListener(paramNames));
//@@end
}
//@@begin javadoc:addPlantOVSExtension()
/** Declared method. */
//@@end
public void addPlantOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addPlantOVSExtension()
WDValueServices.addOVSExtension(
"Plant Selection",
infos,
(IWDNode) wdContext.nodePlant_Input(),
(IWDNode) wdContext.nodePlant_Output(),
getPlantOVSListener(paramNames));
//@@end
}
//@@begin javadoc:addWcOVSExtension()
/** Declared method. */
//@@end
public void addWcOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addWcOVSExtension()
WDValueServices.addOVSExtension(
"Work Center Selection",
infos,
(IWDNode) wdContext.nodeWork_Center_Input(),
(IWDNode) wdContext.nodeWork_Center_Output(),
getWcOVSListener(paramNames));
//@@end
}
//@@begin javadoc:getCostcener()
/** Declared method. */
//@@end
public java.lang.String getCostcener( java.lang.String key )
{
//@@begin getCostcener()
if (key != null) {
return StringUtils.null2Empty(this.costcenterIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getI02_M01()
/** Declared method. */
//@@end
public void getI02_M01( )
{
//@@begin getI02_M01()
try {
Zjxeppm_I02_M01_Input input = new Zjxeppm_I02_M01_Input();
input.setUname(StringUtils.getLoggedUser());
//input.setUname("P00181901");
input.execute();
wdContext.nodeZjxeppm_I02_M01_Output().bind(input.getOutput());
IPernr_ListNode nodePernr = wdContext.nodePernr_List();
for (int i = 0; i < nodePernr.size(); i++) {
IPernr_ListElement element = nodePernr.getPernr_ListElementAt(i);
pernrIndex.put(StringUtils.null2Empty(element.getPernr()),
StringUtils.null2Empty(element.getPname()));
}
IPlant_ListNode nodePlant = wdContext.nodePlant_List();
for (int i = 0; i < nodePlant.size(); i++) {
IPlant_ListElement element = nodePlant.getPlant_ListElementAt(i);
plantIndex.put(StringUtils.null2Empty(element.getWerks()),
StringUtils.null2Empty( element.getName1()));
}
IWork_Center_ListNode nodeWc = wdContext.nodeWork_Center_List();
for (int i = 0; i < nodeWc.size(); i++) {
IWork_Center_ListElement element = nodeWc.getWork_Center_ListElementAt(i);
wcIndex.put(StringUtils.null2Empty(element.getArbpl()),
StringUtils.null2Empty( element.getKtext()));
}
IOrdtype_ListNode nodeOrd = wdContext.nodeOrdtype_List();
for (int i = 0; i < nodeOrd.size(); i++) {
IOrdtype_ListElement element = nodeOrd.getOrdtype_ListElementAt(i);
ordtypeIndex.put(StringUtils.null2Empty(element.getAuart()),
StringUtils.null2Empty( element.getTxt()));
//ordtypeIndex.put(element.getAuart(), element.getTxt());
}
//reporter.info(String.valueOf(nodeOrd.size()));
//reporter.info(String.valueOf(ordtypeIndex.size()));
ICostcenter_ListNode nodeCostCenter = wdContext.nodeCostcenter_List();
for (int i = 0; i < nodeCostCenter.size(); i++) {
ICostcenter_ListElement element =
nodeCostCenter.getCostcenter_ListElementAt(i);
costcenterIndex.put(StringUtils.null2Empty(element.getKostl()),
StringUtils.null2Empty( element.getKtext()));
}
IPlangrp_ListNode nodePlangrp = wdContext.nodePlangrp_List();
for (int i = 0; i < nodePlangrp.size(); i++) {
IPlangrp_ListElement element = nodePlangrp.getPlangrp_ListElementAt(i);
plangrpIndex.put(
StringUtils.null2Empty( element.getIwerk() )
+ StringUtils.null2Empty( element.getIngrp() ),
StringUtils.null2Empty(element.getInnam()) );
}
IPmacti_ListNode nodePmacti = wdContext.nodePmacti_List();
for (int i = 0; i < nodePmacti.size(); i++) {
IPmacti_ListElement element = nodePmacti.getPmacti_ListElementAt(i);
pmactiIndex.put(
StringUtils.null2Empty( element.getAuart() )
+ StringUtils.null2Empty( element.getIlart() ),
StringUtils.null2Empty(element.getIlatx()) );
}
} catch (WDDynamicRFCExecuteException e) {
reporter.error("Exception:get I02_M01 info|" + e.getMessage());
}
//@@end
}
//@@begin javadoc:getOrdType()
/** Declared method. */
//@@end
public java.lang.String getOrdType( java.lang.String key )
{
//@@begin getOrdType()
if (key != null) {
return StringUtils.null2Empty(this.ordtypeIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getPernrDesc()
/** Declared method. */
//@@end
public java.lang.String getPernrDesc( java.lang.String key )
{
//@@begin getPernrDesc()
return getDesc(key, 'P');
//@@end
}
//@@begin javadoc:getPlangrp()
/** Declared method. */
//@@end
public java.lang.String getPlangrp( java.lang.String key )
{
//@@begin getPlangrp()
if (key != null) {
return StringUtils.null2Empty(this.plangrpIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getPlantDesc()
/** Declared method. */
//@@end
public java.lang.String getPlantDesc( java.lang.String key )
{
//@@begin getPlantDesc()
return getDesc(key, 'F');
//@@end
}
//@@begin javadoc:getPmacti()
/** Declared method. */
//@@end
public java.lang.String getPmacti( java.lang.String key )
{
//@@begin getPmacti()
if (key != null) {
return StringUtils.null2Empty(this.pmactiIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getWcDesc()
/** Declared method. */
//@@end
public java.lang.String getWcDesc( java.lang.String key )
{
//@@begin getWcDesc()
return getDesc(key, 'W');
//@@end
}
/*
* The following code section can be used for any Java code that is
* not to be visible to other controllers/views or that contains constructs
* currently not supported directly by Web Dynpro (such as inner classes or
* member variables etc.). </p>
*
* Note: The content of this section is in no way managed/controlled
* by the Web Dynpro Designtime or the Web Dynpro Runtime.
*/
//@@begin others
private Reporter reporter = null;
private Hashtable pernrIndex = new Hashtable();
private Hashtable plantIndex = new Hashtable();
private Hashtable wcIndex = new Hashtable();
private Hashtable ordtypeIndex = new Hashtable();
private Hashtable plangrpIndex = new Hashtable();
private Hashtable pmactiIndex = new Hashtable();
private Hashtable costcenterIndex = new Hashtable();
private String getDesc(String key, char type) {
String ret = key;
Object obj = null;
if (key != null && key.length() > 0) {
switch (type) {
case 'P' :
obj = this.pernrIndex.get(key);
break;
case 'F' :
obj = this.plantIndex.get(key);
break;
case 'W' :
obj = this.wcIndex.get(key);
break;
default :
break;
}
}
if (obj != null)
ret = obj.toString();
return ret;
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getPernrOVSListener(String[] paramNames) {
List pernrLst = new ArrayList();
IPernr_ListNode node = wdContext.nodePernr_List();
for (int i = 0; i < node.size(); i++) {
IPernr_OutputElement item =
wdContext
.nodePernr_Output()
.createPernr_OutputElement();
IPernr_ListElement el = node.getPernr_ListElementAt(i);
WDCopyService.copyCorresponding(el, item);
pernrLst.add(item);
}
return new PernrOVSListener(pernrLst, paramNames);
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getPlantOVSListener(String[] paramNames) {
List list = new ArrayList();
IPlant_ListNode node = wdContext.nodePlant_List();
for (int i = 0; i < node.size(); i++) {
IPlant_OutputElement element = wdContext.nodePlant_Output().createPlant_OutputElement();
IPlant_ListElement el = node.getPlant_ListElementAt(i);
WDCopyService.copyCorresponding(el, element);
list.add(element);
}
return new PlantOVSListener(list, paramNames);
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getWcOVSListener(String[] paramNames) {
List list = new ArrayList();
IWork_Center_ListNode node = wdContext.nodeWork_Center_List();
for (int i = 0; i < node.size(); i++) {
IWork_Center_OutputElement element = wdContext.nodeWork_Center_Output().createWork_Center_OutputElement();
IWork_Center_ListElement el = node.getWork_Center_ListElementAt(i);
WDCopyService.copyCorresponding(el, element);
list.add(element);
}
return new WcOVSListener(list, paramNames);
}
private class PernrOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List pernrLst = null;
private String[] paramNames = null;
public PernrOVSListener(List pernrLst, String[] paramNames){
this.pernrLst = pernrLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IPernr_InputElement input =
(
IPernr_InputElement) queryInputNodeElement;
IPernr_OutputNode ovsOutput =
(IPernr_OutputNode) queryOutputNode;
ovsOutput.invalidate();
// String btrtl = StringUtils.format(input.getBtrtl());
String pernr = StringUtils.format(input.getPernr());
// String kostl = StringUtils.format(input.getKostl());
String pname = StringUtils.format(input.getPname());
for (Iterator iter = pernrLst.iterator(); iter.hasNext();) {
IPernr_OutputElement element =
(IPernr_OutputElement) iter.next();
if (element.getPernr().matches(pernr)
// && element.getBtrtl().matches(btrtl)
// && element.getKostl().matches(kostl)
&& element.getPname().matches(pname)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IPernr_OutputElement output =
(IPernr_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getPernr()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (paramNames.length > 1) {
try {
applicationNodeElement
.getClass()
.getMethod(
"set" + paramNames[1],
new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getPname()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IPernr_InputElement input = (IPernr_InputElement) queryInputNodeElement;
Object pernr = null;
try {
pernr =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (pernr != null) {
input.setPernr(pernr.toString());
}
}
}
private class PlantOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List plantLst = null;
private String[] paramNames = null;
public PlantOVSListener(List plantLst, String[] paramNames){
this.plantLst = plantLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IPlant_InputElement input =
(
IPlant_InputElement) queryInputNodeElement;
IPlant_OutputNode ovsOutput =
(IPlant_OutputNode) queryOutputNode;
ovsOutput.invalidate();
String plant = StringUtils.format(input.getWerks());
String pname = StringUtils.format(input.getName1());
for (Iterator iter = plantLst.iterator(); iter.hasNext();) {
IPlant_OutputElement element =
(IPlant_OutputElement) iter.next();
if (element.getWerks().matches(plant)
&& element.getName1().matches(pname)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IPlant_OutputElement output =
(IPlant_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getWerks()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IPlant_InputElement input = (IPlant_InputElement) queryInputNodeElement;
Object plant = null;
try {
plant =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (plant != null) {
input.setWerks(plant.toString());
}
}
}
private class WcOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List wcLst = null;
private String[] paramNames = null;
public WcOVSListener(List wcLst, String[] paramNames){
this.wcLst = wcLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IWork_Center_InputElement input =
(
IWork_Center_InputElement) queryInputNodeElement;
IWork_Center_OutputNode ovsOutput =
(IWork_Center_OutputNode) queryOutputNode;
ovsOutput.invalidate();
String ktext = StringUtils.format(input.getKtext());
String arbpl = StringUtils.format(input.getArbpl());
String objid = StringUtils.format(input.getObjid());
String werks = StringUtils.format(input.getWerks());
for (Iterator iter = wcLst.iterator(); iter.hasNext();) {
IWork_Center_OutputElement element =
(IWork_Center_OutputElement) iter.next();
if (element.getArbpl().matches(arbpl)
&& element.getKtext().matches(ktext)
&& element.getObjid().matches(objid)
&& element.getWerks().matches(werks)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IWork_Center_OutputElement output =
(IWork_Center_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getArbpl()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IWork_Center_InputElement input = (IWork_Center_InputElement) queryInputNodeElement;
Object pernr = null;
try {
pernr =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (pernr != null) {
input.setArbpl(pernr.toString());
}
}
}
//@@end
}
// ---------------------------------------------------------------------------
// This file has been generated partially by the Web Dynpro Code Generator.
// MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
// ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
// ---------------------------------------------------------------------------
package com.jxep;
//
// IMPORTANT NOTE:
// _ALL_ IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
// BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
// AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateCtr_I02_M01).
// OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
// A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
// OF IMPORT STATEMENTS.
//
//@@begin imports
import java.util.List;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import com.jxep.models.Zjxeppm_I02_M01_Input;
import com.jxep.utils.Reporter;
import com.jxep.utils.StringUtils;
import com.jxep.wdp.IPrivateCtr_I02_M01;
import com.jxep.wdp.IPublicCtr_I02_M01.ICostcenter_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.ICostcenter_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IOrdtype_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IOrdtype_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPernr_OutputNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlangrp_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlangrp_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPlant_OutputNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IPmacti_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IPmacti_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_InputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_ListElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_ListNode;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_OutputElement;
import com.jxep.wdp.IPublicCtr_I02_M01.IWork_Center_OutputNode;
import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException;
import com.sap.tc.webdynpro.progmodel.api.IWDNode;
import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
import com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener;
import com.sap.tc.webdynpro.progmodel.api.WDCopyService;
import com.sap.tc.webdynpro.progmodel.api.WDValueServices;
//@@end
//@@begin documentation
//@@end
public class Ctr_I02_M01
{
/**
* Logging location.
*/
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(Ctr_I02_M01.class);
static
{
//@@begin id
String id = "$Id$";
//@@end
com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
}
/**
* Private access to the generated Web Dynpro counterpart
* for this controller class. </p>
*
* Use <code>wdThis</code> to gain typed access to the context,
* to trigger navigation via outbound plugs, to get and enable/disable
* actions, fire declared events, and access used controllers and/or
* component usages.
*
* @see com.jxep.wdp.IPrivateCtr_I02_M01 for more details
*/
private final IPrivateCtr_I02_M01 wdThis;
/**
* Root node of this controller's context. </p>
*
* Provides typed access not only to the elements of the root node
* but also to all nodes in the context (methods node<i>XYZ</i>())
* and their currently selected element (methods current<i>XYZ</i>Element()).
* It also facilitates the creation of new elements for all nodes
* (methods create<i>XYZ</i>Element()). </p>
*
* @see com.jxep.wdp.IPrivateCtr_I02_M01.IContextNode for more details.
*/
private final IPrivateCtr_I02_M01.IContextNode wdContext;
/**
* A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
*
* Represents the generic API of the generic Web Dynpro counterpart
* for this controller. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDController wdControllerAPI;
/**
* A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
*
* Represents the generic API of the Web Dynpro component this controller
* belongs to. Can be used to access the message manager, the window manager,
* to add/remove event handlers and so on. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
public Ctr_I02_M01(IPrivateCtr_I02_M01 wdThis)
{
this.wdThis = wdThis;
this.wdContext = wdThis.wdGetContext();
this.wdControllerAPI = wdThis.wdGetAPI();
this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
}
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
{
//@@begin wdDoInit()
reporter = new Reporter(wdComponentAPI);
getI02_M01();
//@@end
}
//@@begin javadoc:wdDoExit()
/** Hook method called to clean up controller. */
//@@end
public void wdDoExit()
{
//@@begin wdDoExit()
//@@end
}
//@@begin javadoc:addPernrOVSExtension()
/** Declared method. */
//@@end
public void addPernrOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addPernrOVSExtension()
WDValueServices.addOVSExtension(
"Pernr Selection",
infos,
(IWDNode) wdContext.nodePernr_Input(),
(IWDNode) wdContext.nodePernr_Output(),
getPernrOVSListener(paramNames));
//@@end
}
//@@begin javadoc:addPlantOVSExtension()
/** Declared method. */
//@@end
public void addPlantOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addPlantOVSExtension()
WDValueServices.addOVSExtension(
"Plant Selection",
infos,
(IWDNode) wdContext.nodePlant_Input(),
(IWDNode) wdContext.nodePlant_Output(),
getPlantOVSListener(paramNames));
//@@end
}
//@@begin javadoc:addWcOVSExtension()
/** Declared method. */
//@@end
public void addWcOVSExtension( com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo[] infos, java.lang.String[] paramNames )
{
//@@begin addWcOVSExtension()
WDValueServices.addOVSExtension(
"Work Center Selection",
infos,
(IWDNode) wdContext.nodeWork_Center_Input(),
(IWDNode) wdContext.nodeWork_Center_Output(),
getWcOVSListener(paramNames));
//@@end
}
//@@begin javadoc:getCostcener()
/** Declared method. */
//@@end
public java.lang.String getCostcener( java.lang.String key )
{
//@@begin getCostcener()
if (key != null) {
return StringUtils.null2Empty(this.costcenterIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getI02_M01()
/** Declared method. */
//@@end
public void getI02_M01( )
{
//@@begin getI02_M01()
try {
Zjxeppm_I02_M01_Input input = new Zjxeppm_I02_M01_Input();
input.setUname(StringUtils.getLoggedUser());
//input.setUname("P00181901");
input.execute();
wdContext.nodeZjxeppm_I02_M01_Output().bind(input.getOutput());
IPernr_ListNode nodePernr = wdContext.nodePernr_List();
for (int i = 0; i < nodePernr.size(); i++) {
IPernr_ListElement element = nodePernr.getPernr_ListElementAt(i);
pernrIndex.put(StringUtils.null2Empty(element.getPernr()),
StringUtils.null2Empty(element.getPname()));
}
IPlant_ListNode nodePlant = wdContext.nodePlant_List();
for (int i = 0; i < nodePlant.size(); i++) {
IPlant_ListElement element = nodePlant.getPlant_ListElementAt(i);
plantIndex.put(StringUtils.null2Empty(element.getWerks()),
StringUtils.null2Empty( element.getName1()));
}
IWork_Center_ListNode nodeWc = wdContext.nodeWork_Center_List();
for (int i = 0; i < nodeWc.size(); i++) {
IWork_Center_ListElement element = nodeWc.getWork_Center_ListElementAt(i);
wcIndex.put(StringUtils.null2Empty(element.getArbpl()),
StringUtils.null2Empty( element.getKtext()));
}
IOrdtype_ListNode nodeOrd = wdContext.nodeOrdtype_List();
for (int i = 0; i < nodeOrd.size(); i++) {
IOrdtype_ListElement element = nodeOrd.getOrdtype_ListElementAt(i);
ordtypeIndex.put(StringUtils.null2Empty(element.getAuart()),
StringUtils.null2Empty( element.getTxt()));
//ordtypeIndex.put(element.getAuart(), element.getTxt());
}
//reporter.info(String.valueOf(nodeOrd.size()));
//reporter.info(String.valueOf(ordtypeIndex.size()));
ICostcenter_ListNode nodeCostCenter = wdContext.nodeCostcenter_List();
for (int i = 0; i < nodeCostCenter.size(); i++) {
ICostcenter_ListElement element =
nodeCostCenter.getCostcenter_ListElementAt(i);
costcenterIndex.put(StringUtils.null2Empty(element.getKostl()),
StringUtils.null2Empty( element.getKtext()));
}
IPlangrp_ListNode nodePlangrp = wdContext.nodePlangrp_List();
for (int i = 0; i < nodePlangrp.size(); i++) {
IPlangrp_ListElement element = nodePlangrp.getPlangrp_ListElementAt(i);
plangrpIndex.put(
StringUtils.null2Empty( element.getIwerk() )
+ StringUtils.null2Empty( element.getIngrp() ),
StringUtils.null2Empty(element.getInnam()) );
}
IPmacti_ListNode nodePmacti = wdContext.nodePmacti_List();
for (int i = 0; i < nodePmacti.size(); i++) {
IPmacti_ListElement element = nodePmacti.getPmacti_ListElementAt(i);
pmactiIndex.put(
StringUtils.null2Empty( element.getAuart() )
+ StringUtils.null2Empty( element.getIlart() ),
StringUtils.null2Empty(element.getIlatx()) );
}
} catch (WDDynamicRFCExecuteException e) {
reporter.error("Exception:get I02_M01 info|" + e.getMessage());
}
//@@end
}
//@@begin javadoc:getOrdType()
/** Declared method. */
//@@end
public java.lang.String getOrdType( java.lang.String key )
{
//@@begin getOrdType()
if (key != null) {
return StringUtils.null2Empty(this.ordtypeIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getPernrDesc()
/** Declared method. */
//@@end
public java.lang.String getPernrDesc( java.lang.String key )
{
//@@begin getPernrDesc()
return getDesc(key, 'P');
//@@end
}
//@@begin javadoc:getPlangrp()
/** Declared method. */
//@@end
public java.lang.String getPlangrp( java.lang.String key )
{
//@@begin getPlangrp()
if (key != null) {
return StringUtils.null2Empty(this.plangrpIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getPlantDesc()
/** Declared method. */
//@@end
public java.lang.String getPlantDesc( java.lang.String key )
{
//@@begin getPlantDesc()
return getDesc(key, 'F');
//@@end
}
//@@begin javadoc:getPmacti()
/** Declared method. */
//@@end
public java.lang.String getPmacti( java.lang.String key )
{
//@@begin getPmacti()
if (key != null) {
return StringUtils.null2Empty(this.pmactiIndex.get(key));
} else {
return "";
}
//@@end
}
//@@begin javadoc:getWcDesc()
/** Declared method. */
//@@end
public java.lang.String getWcDesc( java.lang.String key )
{
//@@begin getWcDesc()
return getDesc(key, 'W');
//@@end
}
/*
* The following code section can be used for any Java code that is
* not to be visible to other controllers/views or that contains constructs
* currently not supported directly by Web Dynpro (such as inner classes or
* member variables etc.). </p>
*
* Note: The content of this section is in no way managed/controlled
* by the Web Dynpro Designtime or the Web Dynpro Runtime.
*/
//@@begin others
private Reporter reporter = null;
private Hashtable pernrIndex = new Hashtable();
private Hashtable plantIndex = new Hashtable();
private Hashtable wcIndex = new Hashtable();
private Hashtable ordtypeIndex = new Hashtable();
private Hashtable plangrpIndex = new Hashtable();
private Hashtable pmactiIndex = new Hashtable();
private Hashtable costcenterIndex = new Hashtable();
private String getDesc(String key, char type) {
String ret = key;
Object obj = null;
if (key != null && key.length() > 0) {
switch (type) {
case 'P' :
obj = this.pernrIndex.get(key);
break;
case 'F' :
obj = this.plantIndex.get(key);
break;
case 'W' :
obj = this.wcIndex.get(key);
break;
default :
break;
}
}
if (obj != null)
ret = obj.toString();
return ret;
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getPernrOVSListener(String[] paramNames) {
List pernrLst = new ArrayList();
IPernr_ListNode node = wdContext.nodePernr_List();
for (int i = 0; i < node.size(); i++) {
IPernr_OutputElement item =
wdContext
.nodePernr_Output()
.createPernr_OutputElement();
IPernr_ListElement el = node.getPernr_ListElementAt(i);
WDCopyService.copyCorresponding(el, item);
pernrLst.add(item);
}
return new PernrOVSListener(pernrLst, paramNames);
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getPlantOVSListener(String[] paramNames) {
List list = new ArrayList();
IPlant_ListNode node = wdContext.nodePlant_List();
for (int i = 0; i < node.size(); i++) {
IPlant_OutputElement element = wdContext.nodePlant_Output().createPlant_OutputElement();
IPlant_ListElement el = node.getPlant_ListElementAt(i);
WDCopyService.copyCorresponding(el, element);
list.add(element);
}
return new PlantOVSListener(list, paramNames);
}
private com.sap.tc.webdynpro.progmodel.api.IWDOVSContextNotificationListener getWcOVSListener(String[] paramNames) {
List list = new ArrayList();
IWork_Center_ListNode node = wdContext.nodeWork_Center_List();
for (int i = 0; i < node.size(); i++) {
IWork_Center_OutputElement element = wdContext.nodeWork_Center_Output().createWork_Center_OutputElement();
IWork_Center_ListElement el = node.getWork_Center_ListElementAt(i);
WDCopyService.copyCorresponding(el, element);
list.add(element);
}
return new WcOVSListener(list, paramNames);
}
private class PernrOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List pernrLst = null;
private String[] paramNames = null;
public PernrOVSListener(List pernrLst, String[] paramNames){
this.pernrLst = pernrLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IPernr_InputElement input =
(
IPernr_InputElement) queryInputNodeElement;
IPernr_OutputNode ovsOutput =
(IPernr_OutputNode) queryOutputNode;
ovsOutput.invalidate();
// String btrtl = StringUtils.format(input.getBtrtl());
String pernr = StringUtils.format(input.getPernr());
// String kostl = StringUtils.format(input.getKostl());
String pname = StringUtils.format(input.getPname());
for (Iterator iter = pernrLst.iterator(); iter.hasNext();) {
IPernr_OutputElement element =
(IPernr_OutputElement) iter.next();
if (element.getPernr().matches(pernr)
// && element.getBtrtl().matches(btrtl)
// && element.getKostl().matches(kostl)
&& element.getPname().matches(pname)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IPernr_OutputElement output =
(IPernr_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getPernr()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (paramNames.length > 1) {
try {
applicationNodeElement
.getClass()
.getMethod(
"set" + paramNames[1],
new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getPname()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IPernr_InputElement input = (IPernr_InputElement) queryInputNodeElement;
Object pernr = null;
try {
pernr =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (pernr != null) {
input.setPernr(pernr.toString());
}
}
}
private class PlantOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List plantLst = null;
private String[] paramNames = null;
public PlantOVSListener(List plantLst, String[] paramNames){
this.plantLst = plantLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IPlant_InputElement input =
(
IPlant_InputElement) queryInputNodeElement;
IPlant_OutputNode ovsOutput =
(IPlant_OutputNode) queryOutputNode;
ovsOutput.invalidate();
String plant = StringUtils.format(input.getWerks());
String pname = StringUtils.format(input.getName1());
for (Iterator iter = plantLst.iterator(); iter.hasNext();) {
IPlant_OutputElement element =
(IPlant_OutputElement) iter.next();
if (element.getWerks().matches(plant)
&& element.getName1().matches(pname)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IPlant_OutputElement output =
(IPlant_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getWerks()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IPlant_InputElement input = (IPlant_InputElement) queryInputNodeElement;
Object plant = null;
try {
plant =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (plant != null) {
input.setWerks(plant.toString());
}
}
}
private class WcOVSListener implements IWDOVSContextNotificationListener {
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#onQuery(...) */
private List wcLst = null;
private String[] paramNames = null;
public WcOVSListener(List wcLst, String[] paramNames){
this.wcLst = wcLst;
this.paramNames = paramNames;
}
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IWork_Center_InputElement input =
(
IWork_Center_InputElement) queryInputNodeElement;
IWork_Center_OutputNode ovsOutput =
(IWork_Center_OutputNode) queryOutputNode;
ovsOutput.invalidate();
String ktext = StringUtils.format(input.getKtext());
String arbpl = StringUtils.format(input.getArbpl());
String objid = StringUtils.format(input.getObjid());
String werks = StringUtils.format(input.getWerks());
for (Iterator iter = wcLst.iterator(); iter.hasNext();) {
IWork_Center_OutputElement element =
(IWork_Center_OutputElement) iter.next();
if (element.getArbpl().matches(arbpl)
&& element.getKtext().matches(ktext)
&& element.getObjid().matches(objid)
&& element.getWerks().matches(werks)) {
ovsOutput.addElement(element);
}
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyResult(...)*/
public void applyResult(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryOutputNodeElement) {
IWork_Center_OutputElement output =
(IWork_Center_OutputElement) queryOutputNodeElement;
try {
applicationNodeElement
.getClass()
.getMethod("set" + paramNames[0], new Class[] { String.class })
.invoke(
applicationNodeElement,
new Object[] { output.getArbpl()});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
}
/* @see com.sap.tc.webdynpro.progmodel.api
* .IWDOVSContextNotificationListener#applyInputValues(...) */
public void applyInputValues(
IWDNodeElement applicationNodeElement,
IWDNodeElement queryInputNodeElement) {
IWork_Center_InputElement input = (IWork_Center_InputElement) queryInputNodeElement;
Object pernr = null;
try {
pernr =
applicationNodeElement
.getClass()
.getMethod("get" + paramNames[0], new Class[] {
}).invoke(applicationNodeElement, new Object[] {
});
} catch (Exception e) {
reporter.alert(e.getMessage());
}
if (pernr != null) {
input.setArbpl(pernr.toString());
}
}
}
//@@end
}
发表评论
-
webdynpro for java 表格内复制一行
2016-02-18 19:48 1227java webdynpro 中对于表格有时需要 ... -
Notes
2009-07-30 12:55 7241. R/3里的Boolean类型不是true or fals ... -
关于在回传节点内容时的注意事项
2008-10-23 10:54 8801.比方说,一个outputNode ... -
labelfor 对于inputfield等其他组件
2008-10-13 16:31 993label的labelfor属性要对应其后组件的id,例如:i ... -
消除jco缓存问题
2008-09-19 09:39 1774在页面操作完成,后台transaction完成返回后, ... -
添加删除
2008-09-18 12:02 1346原型: 一张表,要求实现可以动态的增加和删除一行,删除要求标记 ... -
新建节点
2008-09-04 10:59 871try { Zjxeppm_I06_T01_Input ... -
TableSorter
2008-07-30 14:49 2188package com.zpec.utils; impor ... -
异常及处理方案
2008-07-30 14:41 10071. 连接不同的r/3系统,destination需要更改,否 ... -
待考虑的几个问题
2008-07-22 20:53 10451.表的onsort. 解决方案: 加进TableSort ...
相关推荐
【中考数学专题一 整体思想复习题及答案2精选】文档主要涵盖了中考数学中整体思想的应用,通过一系列的题目来帮助学生理解和掌握这一概念。整体思想是解决数学问题的一种重要策略,它强调将复杂的问题简化,把多个...
中考数学思想方法 【整体思想】解方程中的整体思想(学生版+解析版) .pdf
本篇内容主要介绍了如何利用整体思想来优化解二元一次方程组的过程,从而提高解题效率和准确性。整体思想是一种将方程中的某些项视为一个整体,进行代入、加减操作,以简化计算的方法。 首先,我们来看代入消元法中...
《2014年中考数学二轮精品复习》文档聚焦于数学思想方法的讲解,主要涵盖了三个方面:整体思想、转化思想和分类讨论思想。这些思想是解决数学问题的关键策略,对于提升学生的解题能力和理解力至关重要。 整体思想...
【整体思想在七年级数学中的应用】 整体思想是中学数学教育中的一个重要概念,它强调从全局出发,将复杂的数学问题简化,使原本看似困难的计算变得清晰易解。这一思维方式对于解决代数式求值、方程求解等问题具有...
在中考数学复习中,整体思想和换元法是两个非常重要的解题策略,它们能够帮助学生解决复杂的代数问题和方程系统。整体思想强调将一个复杂的问题或表达式视为一个整体来处理,而换元法则通过设立新的变量来简化问题。...
在数学的复习过程中,整体思想和换元法是两种极其重要的解题策略,尤其是在解决复杂方程和不等式问题时。整体思想强调将复杂的部分视为一个整体来处理,简化问题,而换元法则是通过引入新的变量或表达式来转换原有的...
在解决七年级数学下册10.2章节的二元一次方程组问题时,我们主要采用两种基本方法——代入消元法和加减消元法,同时要灵活运用整体思想来简化计算过程,提高解题效率。整体思想是指将方程组中的某些项视为一个整体,...
KNN算法是机器学习里面比较简单的一个分类算法了,整体思想比较简单:计算一个点A与其他所有点之间的距离,取出与该点最近的k个点,然后统计这k个点里面所属分类比例最大的,则点A属于该分类。
整体思想在数学的多个领域有广泛应用,如代数式的化简、方程的求解、几何证明等。具体应用包括整体代入、叠加法、整体运算、整体设元、整体展开、整体补形等。这些技巧能够帮助学生更有效地处理复杂的数学问题。 ...
【整体思想】是数学中一种重要的解题策略,它强调将复杂的问题或多个部分视为一个整体来处理,以便简化问题并找到解决方案。在中考数学中,整体思想的应用广泛,不仅体现在代数式的求值、因式分解,还涉及到方程(组...
本文通过对初中数学思想的例题的分析,介绍了几种基本数学思想,例如符号思想、整体思想、数形结合思想等。这些思想方法可以使学生在解题时,寻求出已知和未知的联系,提高学生分析问题的能力,从而使学习的思维品质...
这表明民警队伍整体思想素质得到了提升,能够专注于中心工作,并确保了思想的稳定性。 2. 规章制度的遵守:全体民警严格遵守相关规章制度,如24小时值班备勤和重大警情上报制度,表现出良好的纪律性。这包括服从命令...
整体思想是数学思想的一种,它强调从整体上看待问题,找到问题的关联和规律,并且通过整体处理来解决问题。例如,在解决一个方程组时,我们可以通过整体思想来找到问题的答案。在这个过程中,学生可以建立起数学思想...
比如,微信的界面布局就是一个整体思想的体现,四大主要模块构成整体框架,再填充丰富细节。 5. 化归思想:面对复杂问题,产品经理可以借鉴数学中的化归思想,将其简化或转换为已知问题来解决。例如,在开发在线...
1. 整体思想:在处理复杂问题时,将部分视为整体,通过分析整体与局部的联系找到解决方案。例如,在解二元一次方程组时,整体思想可以帮助我们将多个未知数的关系整体考虑,简化问题。 2. 转化思想:将难以解决的...
本专题主要涵盖了四个数学思考方式:数形结合思想、分类讨论思想、转化与化归思想以及整体思想。这些思想在解决数学问题时具有重要的指导意义。 1. **数形结合思想** - 例子1:在函数 y1 = x 和 y2 = 1/x 的图象...
这篇资料主要针对七年级数学下册的一个专题训练——思想方法荟萃,涵盖了数形结合、整体思想和分类讨论三种重要的数学解题思想。 首先,数形结合思想是数学中的基本思维方式,它强调数学问题可以通过图形来理解和...
2. 整体思想:整体思想强调看待问题的整体性,而不是孤立的部分。在处理几何问题时,如图中的几何图形,可以通过整体视角简化问题,开拓解题思路,优化求解过程。 3. 化归思想:化归思想是将未知问题转化为已知问题...