mPaperFlag=(String)tTransferData.getValueByName("uPaperFlag");if(tTransferData.getValueByName("uRemark")!=null){if(!tTransferData.getValueByName("uRemark").equals("")||tTransferData.getValueByName("uRemark")!=""){mRemark=(String)tTransferData.getValueByName("uRemark");}}if(tTransferData.getValueByName("uAssNo")!=null){if(!tTransferData.getValueByName("uAssNo").equals("")||tTransferData.getValueByName("uAssNo")!=""){mAssNo=(String)tTransferData.getValueByName("uAssNo");}}if(tTransferData.getValueByName("uCodecostTime")!=null){if(!tTransferData.getValueByName("uCodecostTime").equals("")||tTransferData.getValueByName("uCodecostTime")!=""){mCodecostTime=(String)tTransferData.getValueByName("uCodecostTime");}}if(tTransferData.getValueByName("uTestcostTime")!=null){if(!tTransferData.getValueByName("uTestcostTime").equals("")||tTransferData.getValueByName("uTestcostTime")!=""){mTestcostTime=(String)tTransferData.getValueByName("uTestcostTime");}}if(tTransferData.getValueByName("uDemdcostTime")!=null){if(!tTransferData.getValueByName("uDemdcostTime").equals("")||tTransferData.getValueByName("uDemdcostTime")!=""){mDemdcostTime=(String)tTransferData.getValueByName("uDemdcostTime");}}if(tTransferData.getValueByName("uUpdateDatDate")!=null){if(!tTransferData.getValueByName("uUpdateDatDate").equals("")||tTransferData.getValueByName("uUpdateDatDate")!=""){mUpdateDatData=(String)tTransferData.getValueByName("uUpdateDatDate");}}if(tTransferData.getValueByName("uUpdateUatDate")!=null){if(!tTransferData.getValueByName("uUpdateUatDate").equals("")||tTransferData.getValueByName("uUpdateUatDate")!=""){mUpdateUatData=(String)tTransferData.getValueByName("uUpDateUatData");}}
mGlobalInput.setSchema((GlobalInput)mInputData.getObjectByObjectName("GlobalInput", 0));return true;}private boolean dealData(){boolean flag = false;ZRDemandInfoDB tZRDemandInfoDB = new ZRDemandInfoDB();ZRDemandInfoSchema tZRDemandInfoSchema = new ZRDemandInfoSchema();dataSchema(tZRDemandInfoDB,tZRDemandInfoSchema);try {if(tZRDemandInfoDB.update() && tZRDemandInfoDB.getInfo()){flag = true;}else{CError tError = new CError();tError.moduleName = "tZRDemandInfo";tError.functionName = "submitData";tError.errorMessage = "数据处理失败,请您仔细核对数据是否重复插入,或超出输入字数上限!";this.mErrors.addOneError(tError);flag = false;}}catch (Exception e) {e.printStackTrace();CError tError = new CError();tError.moduleName = "tZRDemandInfo";tError.functionName = "submitData";tError.errorMessage = "数据处理失败,请您仔细核对数据的正确性!";this.mErrors.addOneError(tError);flag = false;}return flag;}/** * 给Schema对象赋值 */public void dataSchema(ZRDemandInfoDB tZRDemandInfoDB,ZRDemandInfoSchema tZRDemandInfoSchema){tZRDemandInfoSchema.setDEMDNO(mDemdNo);tZRDemandInfoSchema.setEMERGENCYFLAG(mEmergencyFlag);tZRDemandInfoSchema.setINPERSON(mInPerson);tZRDemandInfoSchema.setINDEPT(mInDept);tZRDemandInfoSchema.setORIGINALINPERSON(mOriginalInPerson);tZRDemandInfoSchema.setORIGINALINCOMPANY(mOriginalInCompany);tZRDemandInfoSchema.setBELONGSYSTEM(mBelongSystem);tZRDemandInfoSchema.setMODULE(mModule);tZRDemandInfoSchema.setINNERMODULE(mInnerModule);tZRDemandInfoSchema.setITPERSON(mITPerson);tZRDemandInfoSchema.setDEMDABBREVIATION(mDemdAbbReviation);tZRDemandInfoSchema.setPROGRAMMER(mProgrammer);tZRDemandInfoSchema.setDEMDDISCRIPTION(mDemddIscription);tZRDemandInfoSchema.setINDATE(mInDate);tZRDemandInfoSchema.setDEMDSTATE(mDemdstate);tZRDemandInfoSchema.setCONFIRMDATE(mConfirmdate);tZRDemandInfoSchema.setPLANDEMDCOSTTIME(mPlanDemdcostTime);tZRDemandInfoSchema.setPLANCODECOSTTIME(mPlanCodecostTime);tZRDemandInfoSchema.setPLANTESTCOSTTIME(mPlanTestcostTime);tZRDemandInfoSchema.setPLANUPDATEDATDATE(mPlanUpdateDatDate);tZRDemandInfoSchema.setPLANUPDATEUATDATE(mPlanUpdateUatDate);tZRDemandInfoSchema.setDEMDISDELIVERIT(mDemdisDeliverIT);tZRDemandInfoSchema.setDEVELOPISPRINT(mDevelopisPrint);tZRDemandInfoSchema.setPAPERFLAG(mPaperFlag);tZRDemandInfoSchema.setMODIFYDATE(mModifyDate);tZRDemandInfoSchema.setMODIFYTIME(mModifyTime); if(mAssNo!=null&&!mAssNo.equals("")){tZRDemandInfoSchema.setASSNO(mAssNo);}if(mRemark!=null&&!mRemark.equals("")){tZRDemandInfoSchema.setREMARK(mRemark);}if(mCodecostTime!=null&&!mCodecostTime.equals("")){tZRDemandInfoSchema.setCODECOSTTIME(mCodecostTime);}if(mTestcostTime!=null&&!mTestcostTime.equals("")){tZRDemandInfoSchema.setTESTCOSTTIME(mTestcostTime);}if(mDemdcostTime!=null&&!mDemdcostTime.equals("")){tZRDemandInfoSchema.setDEMDCOSTTIME(mDemdcostTime);}if(mUpdateDatData!=null&&!mUpdateDatData.equals("")){tZRDemandInfoSchema.setUPDATEDATDATE(mUpdateDatData);}if(mUpdateUatData!=null&&!mUpdateUatData.equals("")){tZRDemandInfoSchema.setUPDATEDATDATE(mUpdateUatData);}tZRDemandInfoDB.setSchema(tZRDemandInfoSchema);} }