| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package xin.glue.ui.B.B02;
- import com.posdata.glue.biz.activity.PosActivity;
- import com.posdata.glue.biz.constants.PosBizControlConstants;
- import com.posdata.glue.context.PosContext;
- import com.posdata.glue.dao.PosGenericDao;
- import com.posdata.glue.dao.vo.PosParameter;
- /**
- *
- * @Description 试样号材质实绩确定,被选择的钢卷进入可判定状态{界面ID:UIB020132}
- * @author 梅贵平{meiguiping}
- * @date 2009-2-5 上午11:56:44
- * @JDK Version jdk1.4.2
- */
- public class SaveSmpQltyDcsTp extends PosActivity
- {
- public String runActivity(PosContext context)
- {
- ///ready
- PosGenericDao dao = this.getDao("mesdao");
- PosParameter param = null;
-
- ///get request data
- String[] rowStatus = (String[])context.get("rowStatus");
- String[] SMP_NO = (String[])context.get("SMP_NO");//试样号
- String[] SMP_CUT_LOC = (String[])context.get("SMP_CUT_LOC");//试样位置
- String[] REG_NM = (String[])context.get("REG_NM");
- String[] REG_ID = (String[])context.get("REG_ID");
- String[] OLD_SAMPL_NO= (String[])context.get("OLD_SAMPL_NO");//钢卷号
-
- // System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!"+" SaveSmpQltyDcsTp");
- if(rowStatus==null)
- return PosBizControlConstants.SUCCESS;
-
- int len = rowStatus.length;
- for(int i = 0; i < len; i++)
- {
- param = new PosParameter();
- param.setWhereClauseParameter(0, SMP_NO[i]);//试样号
- param.setWhereClauseParameter(1, SMP_CUT_LOC[i]);//试样位置
- //表示样片检验完成,可做判定,判定时是根据其值是否为Y来确定是否做判定的
- dao.update("UIB020132Child_01.UPDATE", param);
-
- //判定人记录
- param = new PosParameter();
- param.setWhereClauseParameter(0, REG_ID[0]);
- param.setWhereClauseParameter(1, OLD_SAMPL_NO[i]);
- dao.update("UIB020132Child_02.UPDATE", param);
- }
-
- // System.out.println("~~~~~~~~~~~~~~~~~~~~~~"+ PosBizControlConstants.SUCCESS);
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|