| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- package xin.glue.ui.G.G01;
- 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.vo.PosParameter;
- import com.posdata.glue.dao.vo.PosRowSet;
- public class XinSaveCCMSt extends PosActivity {
- public String runActivity(PosContext context) {
-
- String[] CCM_SPEED_MIN = (String[])context.get("CCM_SPEED_MIN");
- String[] CCM_SPEED_MAX = (String[])context.get("CCM_SPEED_MAX");
- String[] CCM_SPEED_AVG = (String[])context.get("CCM_SPEED_AVG");
- String[] LT_ARRV_TEMP = (String[])context.get("LT_ARRV_TEMP");
- String[] SOLIDE_TEMP1 = (String[])context.get("SOLIDE_TEMP1");
- String[] SOLIDE_TEMP2 = (String[])context.get("SOLIDE_TEMP2");
- String[] TD_TEMP_MIN = (String[])context.get("TD_TEMP_MIN");
- String[] TD_TEMP_MAX = (String[])context.get("TD_TEMP_MAX");
- String[] TD_TEMP_AVG = (String[])context.get("TD_TEMP_AVG");
- String[] MD1_WTH_MIN = (String[])context.get("MD1_WTH_MIN");
- String[] MD1_WTH_MAX = (String[])context.get("MD1_WTH_MAX");
- String[] MD2_WTH_MIN = (String[])context.get("MD2_WTH_MIN");
- String[] MD2_WTH_MAX = (String[])context.get("MD2_WTH_MAX");
- String[] COOL_WATER = (String[])context.get("COOL_WATER");
- String[] MD1_OSCILL_CNT = (String[])context.get("MD1_OSCILL_CNT");
- String[] MD1_OSCILL_WTH = (String[])context.get("MD1_OSCILL_WTH");
- String[] MD2_OSCILL_CNT = (String[])context.get("MD2_OSCILL_CNT");
- String[] MD2_OSCILL_WTH = (String[])context.get("MD2_OSCILL_WTH");
- String[] STL_GRD = (String[])context.get("STL_GRD");
-
- PosParameter param = new PosParameter();
-
- param.setWhereClauseParameter(0, STL_GRD[0]);
-
- PosRowSet rowset = this.getDao("mesdao").find("UIG010020_03.select", param);
-
- if(rowset.hasNext()){
- param = new PosParameter();
-
- param.setWhereClauseParameter(0, CCM_SPEED_MIN[0]);
- param.setWhereClauseParameter(1, CCM_SPEED_MAX[0]);
- param.setWhereClauseParameter(2, CCM_SPEED_AVG[0]);
- param.setWhereClauseParameter(3, LT_ARRV_TEMP[0]);
- param.setWhereClauseParameter(4, SOLIDE_TEMP1[0]);
- param.setWhereClauseParameter(5, SOLIDE_TEMP2[0]);
- param.setWhereClauseParameter(6, TD_TEMP_MIN[0]);
- param.setWhereClauseParameter(7, TD_TEMP_MAX[0]);
- param.setWhereClauseParameter(8, TD_TEMP_AVG[0]);
- param.setWhereClauseParameter(9, MD1_WTH_MIN[0]);
- param.setWhereClauseParameter(10, MD1_WTH_MAX[0]);
- param.setWhereClauseParameter(11, MD2_WTH_MIN[0]);
- param.setWhereClauseParameter(12, MD2_WTH_MAX[0]);
- param.setWhereClauseParameter(13, COOL_WATER[0]);
- param.setWhereClauseParameter(14, MD1_OSCILL_CNT[0]);
- param.setWhereClauseParameter(15, MD1_OSCILL_WTH[0]);
- param.setWhereClauseParameter(16, MD2_OSCILL_CNT[0]);
- param.setWhereClauseParameter(17, MD2_OSCILL_WTH[0]);
- param.setWhereClauseParameter(18, STL_GRD[0]);
-
- this.getDao("mesdao").update("UIG010020_01.update", param);
- }else{
-
- param = new PosParameter();
-
- param.setValueParamter(0, CCM_SPEED_MIN[0]);
- param.setValueParamter(1, CCM_SPEED_MAX[0]);
- param.setValueParamter(2, CCM_SPEED_AVG[0]);
- param.setValueParamter(3, LT_ARRV_TEMP[0]);
- param.setValueParamter(4, SOLIDE_TEMP1[0]);
- param.setValueParamter(5, SOLIDE_TEMP2[0]);
- param.setValueParamter(6, TD_TEMP_MIN[0]);
- param.setValueParamter(7, TD_TEMP_MAX[0]);
- param.setValueParamter(8, TD_TEMP_AVG[0]);
- param.setValueParamter(9, MD1_WTH_MIN[0]);
- param.setValueParamter(10, MD1_WTH_MAX[0]);
- param.setValueParamter(11, MD2_WTH_MIN[0]);
- param.setValueParamter(12, MD2_WTH_MAX[0]);
- param.setValueParamter(13, COOL_WATER[0]);
- param.setValueParamter(14, MD1_OSCILL_CNT[0]);
- param.setValueParamter(15, MD1_OSCILL_WTH[0]);
- param.setValueParamter(16, MD2_OSCILL_CNT[0]);
- param.setValueParamter(17, MD2_OSCILL_WTH[0]);
- param.setValueParamter(18, STL_GRD[0]);
-
- this.getDao("mesdao").update("UIG010020_01.insert", param);
- }
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|