| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?xml version="1.0" encoding="UTF-8"?>
- <Glue:GlueDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Glue="http://www.glueframework.com/activitydiagram/" id="2" location="20,20" size="100,100">
- <child xsi:type="Glue:InitialState" id="66" location="305,-4" size="-1,-1" output="//@wire.4"/>
- <child xsi:type="Glue:Activity" id="67" location="44,45" size="596,-1" input="//@wire.4" output="//@wire.2" name="SetResultKeyList">
- <property key="ResultKeyList" value="MESSAGES|SlabCutting0|SlabCutting1|SlabCutting2|InitDataResult|ShiftResult|GroupResult|onclickResult|CHARGE_INFO"/>
- <property key="class" value="com.posdata.glue.biz.trustform.PosSetResultKeyList"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:RouterActivity" id="68" location="44,181" size="687,-1" input="//@wire.3" output="//@wire.0 //@wire.5 //@wire.8 //@wire.13 //@wire.15 //@wire.18" name="SlabResultRoute">
- <property key="class" value="com.posdata.glue.biz.activity.PosDefaultRouter"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="69" location="154,372" size="272,-1" input="//@wire.12" output="//@wire.10" name="SearchSlabCutting1">
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey" value="UIG020060_SLAB1.select"/>
- <property key="param0" value="CHARGE_NO"/>
- <property key="resultkey" value="SlabCutting1"/>
- <property key="param-count" value="1"/>
- <property key="description" value="- This activity is method selection for view slab master data from TBG02_SLAB_COMM
 
 "/>
- </child>
- <child xsi:type="Glue:Activity" id="70" location="264,235" size="132,-1" input="//@wire.0" output="//@wire.17" name="SaveSlabCutting">
- <property key="class" value="xin.glue.ui.G.G02.PosSaveSlabCutting"/>
- <property key="description" value=" 
 
 String[] SlabCnt = (String[])context.get("SLAB_CNT"); 
 String[] PlanSlabNo = (String[])context.get("PLAN_SLAB_NO"); 
 String[] SlabNo = (String[])context.get("SLAB_NO"); 
 
 Map specRst = new HashMap(50,1); 
 //********* ************
 for ( i=0; i < SlabCnt ;i++ ) {
 
 
 PosParameter param0 = new PosParameter();	 
 param.setWhereClauseParameter(0, PlanSlabNo[i]);
 
 PosRowSet rowset0 = getDao("mesdao").find("UIG02060_03.select", param0);
 while ( rowset0.hasNext()) {
 PosRow row0 = rowset0.next(); 	
 String CurProgCd = "RBA"; 
 String StlGrd = row.getAttributes("STL_GRD");
 String OrdNo1 = row.getAttributes("ORD_NO1"); 
 String OrdSeq1 = row.getAttributes("ORD_SEQ1"); 
 .
 .
 .
 .
 
 
 String sql = "select SLAB_NO from TG02_SLAB_COMM where SLAB_NO = ?"; 
 PosParameter param1 = new PosParameter(); 
 param1.setWhereClauseParameter(0,SlabNo);
 
 PosRowSet rowset1 = dao.findByQueryStatement(sql, param1);
 
 PosParameter param2 = new PosParameter();
 if (rowset1.hasNext())
 { 
 param2.setWhereClauseParameter(0, StlGrd);
			 param2.setWhereClauseParameter(1, "PosSaveSlabCutting");
			 param2.setWhereClauseParameter(2, "PosSaveSlabCutting");
			 param2.setWhereClauseParameter(3, OrdNo1);
			 param2.setWhereClauseParameter(4, OrdSeq1);
			 .
			 . 
			 .
			 
			 
			 getDao("mesdao").update("UIG020060_01.update",param2);
 
 
 } else {
 
 param2.setWhereClauseParameter(0, StlGrd);
			 param2.setWhereClauseParameter(1, "PosSaveSlabCutting");
			 param2.setWhereClauseParameter(2, "PosSaveSlabCutting");
			 param2.setWhereClauseParameter(3, OrdNo1);
			 param2.setWhereClauseParameter(4, OrdSeq1);
			 
			 getDao("mesdao").update("UIG020060_01.insert",param2);
 
 }
 
 }"/>
- </child>
- <child xsi:type="Glue:FinalState" id="149" location="272,586" size="-1,-1" input="//@wire.5 //@wire.7 //@wire.9 //@wire.14 //@wire.16"/>
- <child xsi:type="Glue:Activity" id="347" location="59,113" size="591,-1" input="//@wire.2" output="//@wire.3" name="INIT_PARAM">
- <property key="class" value="xin.glue.ui.common.PosInitParam"/>
- <property key="resultkey" value="InitDataResult"/>
- <property key="sqlkey-count" value="1"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey0" value="UIG030010.INIT_PARAM_02"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="1441" location="157,448" size="265,-1" input="//@wire.11" output="//@wire.6" name="SearchShiftCd">
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="resultkey" value="ShiftResult"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey" value="UIG020COMM_SHIFT.select"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="1442" location="152,514" size="258,-1" input="//@wire.6" output="//@wire.7" name="SearchGropCd">
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="resultkey" value="GroupResult"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey" value="UIG020COMM_GROUP.select"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="1443" location="604,262" size="130,-1" input="//@wire.8" output="//@wire.9" name="SearchOnCLick">
- <property key="sqlkey" value="UIG020060_EMP.select"/>
- <property key="resultkey" value="onclickResult"/>
- <property key="dao" value="mesdao"/>
- <property key="param0" value="WK_GROUP"/>
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="param-count" value="1"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="1444" location="163,409" size="268,-1" input="//@wire.10" output="//@wire.11" name="SearchSlabCutting2">
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey" value="UIG020060_SLAB2.select"/>
- <property key="param0" value="CHARGE_NO"/>
- <property key="resultkey" value="SlabCutting2"/>
- <property key="param-count" value="1"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="1446" location="156,330" size="268,-1" input="//@wire.19" output="//@wire.12" name="Search0">
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="dao" value="mesdao"/>
- <property key="sqlkey" value="UIG020060_SLAB0.select"/>
- <property key="param0" value="CHARGE_NO"/>
- <property key="resultkey" value="SlabCutting0"/>
- <property key="param-count" value="1"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:Activity" id="4717" location="442,247" size="120,-1" input="//@wire.13" output="//@wire.14" name="compulsory">
- <property key="class" value="xin.glue.ui.G.G02.CompulsoryCharge"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:Activity" id="4718" location="465,335" size="184,-1" input="//@wire.15" output="//@wire.16" name="Activity Label4718">
- <property key="class" value="xin.glue.ui.G.G02.PosSaveSlabRecut"/>
- <property key="description" value=""/>
- </child>
- <child xsi:type="Glue:SearchActivity" id="4720" location="148,290" size="268,-1" input="//@wire.17 //@wire.18" output="//@wire.19" name="CHARGE_INFO_select">
- <property key="sqlkey" value="UIG020060_CHARGE_INFO.select"/>
- <property key="resultkey" value="CHARGE_INFO"/>
- <property key="dao" value="mesdao"/>
- <property key="param0" value="CHARGE_NO"/>
- <property key="class" value="com.posdata.glue.biz.activity.PosSearch"/>
- <property key="param-count" value="1"/>
- <property key="description" value=""/>
- </child>
- <property key="tx1" value="true"/>
- <property key="description" value=""/>
- <wire id="226" guardcondition="save" firstRelativePoint="312,151" lastRelativePoint="312,245"/>
- <wire id="228" guardcondition="success" firstRelativePoint="243,83" lastRelativePoint="243,83"/>
- <wire id="229" guardcondition="success" firstRelativePoint="312,83" lastRelativePoint="312,113">
- <bendpoint weight="0.5" firstDimension="-28,29" secondDimension="-33,-31"/>
- </wire>
- <wire id="230" guardcondition="success" firstRelativePoint="374,143" lastRelativePoint="338,181">
- <bendpoint weight="0.5" firstDimension="20,32" secondDimension="-13,-36"/>
- <bendpoint weight="0.5" firstDimension="-35,34" secondDimension="-30,-34"/>
- </wire>
- <wire id="231" guardcondition="success" firstRelativePoint="314,16" lastRelativePoint="314,53">
- <bendpoint weight="0.5" firstDimension="-1,25" secondDimension="-26,-37"/>
- </wire>
- <wire id="266" guardcondition="success" firstRelativePoint="127,211" lastRelativePoint="271,595">
- <bendpoint weight="0.5" firstDimension="-260,400" secondDimension="-155,0"/>
- </wire>
- <wire id="640" guardcondition="success" firstRelativePoint="283,412" lastRelativePoint="283,438"/>
- <wire id="641" guardcondition="success" firstRelativePoint="246,468" lastRelativePoint="246,547"/>
- <wire id="644" guardcondition="onclick" firstRelativePoint="110,211" lastRelativePoint="235,557"/>
- <wire id="646" guardcondition="success" firstRelativePoint="719,292" lastRelativePoint="255,557">
- <bendpoint weight="0.5" firstDimension="50,281" secondDimension="473,0"/>
- </wire>
- <wire id="647" guardcondition="success" firstRelativePoint="288,355" lastRelativePoint="288,393"/>
- <wire id="648" guardcondition="success" firstRelativePoint="287,423" lastRelativePoint="287,449"/>
- <wire id="651" guardcondition="success" firstRelativePoint="257,318" lastRelativePoint="257,325"/>
- <wire id="904" guardcondition="compulsory" firstRelativePoint="446,272" lastRelativePoint="402,288"/>
- <wire id="906" guardcondition="success" firstRelativePoint="457,277" lastRelativePoint="282,585"/>
- <wire id="907" guardcondition="recut" firstRelativePoint="570,211" lastRelativePoint="570,335"/>
- <wire id="908" guardcondition="success" firstRelativePoint="480,365" lastRelativePoint="282,585"/>
- <wire id="909" guardcondition="success" firstRelativePoint="336,267" lastRelativePoint="336,292"/>
- <wire id="910" guardcondition="find" firstRelativePoint="211,211" lastRelativePoint="162,290">
- <bendpoint weight="0.5" firstDimension="-176,27" secondDimension="-71,-82"/>
- <bendpoint weight="0.5" firstDimension="-230,62" secondDimension="-124,-58"/>
- </wire>
- <wire id="911" guardcondition="success" firstRelativePoint="251,322" lastRelativePoint="251,333"/>
- </Glue:GlueDiagram>
|