<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<form id="__DSHi9Cu2eM5sr11kp7g">
  <name>enterScores</name>
  <parentId>__AT2erAITyWrFQyQEh3m</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <description>录入成绩</description>
  <templatecontext><![CDATA[<p><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__n8VdXhsWioHOqS5YIt8" text="text" name="personId" texttype="text" hidetype="parent" ishidetype="false" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="考试人员记录id" validaterule="" valuescript="" width="" hiddenscript="true" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" />&nbsp;</p>
<table width="80%" align="center" border="1" cellpadding="1" cellspacing="1" style="border: 1px solid rgb(180, 204, 238);">
    <tbody>
        <tr>
            <td style="border: 1px solid rgb(180, 204, 238);">姓名</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__2bpvcvmBBLcyeEepnrS" text="readonly" name="name" texttype="readonly" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="姓名" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
            <td style="border: 1px solid rgb(180, 204, 238);">公司名称</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__86tSGzNWib1ltJiaSDP" text="readonly" name="company" texttype="readonly" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="公司名称" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
        </tr>
        <tr>
            <td style="border: 1px solid rgb(180, 204, 238);">身份证</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__CHETzL2qsmUa1BPLfDA" text="readonly" name="idCardNo" texttype="readonly" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="身份证" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
            <td style="border: 1px solid rgb(180, 204, 238);">手机号</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__SXI4QXYncryAiQG8aG0" text="readonly" name="phone" texttype="readonly" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="手机号" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
        </tr>
        <tr>
            <td style="border: 1px solid rgb(180, 204, 238);">结业-理论成绩</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__mTq23S3Ns7pSMgziS0v" text="text" name="graduationTheoryScore" texttype="text" fieldtype="VALUE_TYPE_NUMBER" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="结业考试理论成绩" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="true" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="00.0" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
            <td style="border: 1px solid rgb(180, 204, 238);">结业-实操成绩</td>
            <td style="border: 1px solid rgb(180, 204, 238);"><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__PQzkG7tVbMjqXBIw7f9" text="text" name="graduationOperationScore" texttype="text" fieldtype="VALUE_TYPE_NUMBER" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="结业考试实操成绩" validaterule="" valuescript="" width="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="true" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="00.0" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /></td>
        </tr>
    </tbody>
</table>
<p>&nbsp;<input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__giLqoJIv2R9khgujPjY" text="text" name="classId" texttype="text" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="班级id" validaterule="" valuescript="" width="" hiddenscript="true" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" hidetype="parent" ishidetype="false" /><select classname="cn.myapps.runtime.dynaform.form.ejb.SelectField" id="__RouaIeKPTQlPPpKi0is" name="scoreState" discript="成绩确认状态" layout="horizontal" readonlyshowvalonly="true" valuescript="" optionsscript="(function(){@amp;#13;@nbsp;var@nbsp;opts=createOptions();@amp;#13;@nbsp;opts.add(@quot;未确认@quot;,@quot;0@quot;);@amp;#13;@nbsp;opts.add(@quot;已确认@quot;,@quot;1@quot;);@amp;#13;return@nbsp;opts;@amp;#13;})()" validaterule="" hiddenscript="" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" texttype="hidden" readonlyscript="" fieldtype="VALUE_TYPE_VARCHAR" processdescription="[];[]" filtercondition="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="false" instantvalidate="false" mobile="true" secrettext="false" multiselect="false" validatelibs="" editmode="01" width="" optionseditmode="01" dialogview="" module="" optionsvalue="" refreshmode="0" refreshfields="" optionstext="" hidetype="parent" ishidetype="false"></select><input classname="cn.myapps.runtime.dynaform.form.ejb.InputField" id="__fJDl9G4gYrDD5WOBqsU" text="readonly" name="sumScore" texttype="readonly" hidetype="parent" ishidetype="false" fieldtype="VALUE_TYPE_VARCHAR" fieldkeyevent="Tabkey" layout="horizontal" readonlyshowvalonly="true" discript="总成绩" validaterule="" valuescript="//修改表单数据@amp;#13;(function(){@nbsp;@nbsp;@nbsp;@amp;#13;var@nbsp;sumScore=@#146;0@#146;;@amp;#13;var@nbsp;graduationTheoryScore@nbsp;=@nbsp;getItemValueAsDouble(@quot;graduationTheoryScore@quot;);@nbsp;@nbsp;@nbsp;//获取理论成绩@amp;#13;var@nbsp;graduationOperationScore@nbsp;=@nbsp;getItemValueAsDouble(@quot;graduationOperationScore@quot;);@nbsp;//获取操作成绩@amp;#13;var@nbsp;sumScore=graduationTheoryScore+graduationOperationScore;@amp;#13;@nbsp;@nbsp;return@nbsp;sumScore;@amp;#13;})()" width="" hiddenscript="true" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" readonlyscript="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="true" mobile="true" secrettext="false" defaultvalueisnull="false" numberpattern="" processdescription="[];[]" filtercondition="" instantvalidate="false" validatelibs="" editmode="01" refreshmode="0" refreshfields="" /><select classname="cn.myapps.runtime.dynaform.form.ejb.SelectField" id="__b2xDoIJeP78jKg8G6K8" name="graduationTestResults" discript="结业考试结果" layout="horizontal" readonlyshowvalonly="true" valuescript="//修改表单数据@amp;#13;/*(function(){@nbsp;@nbsp;@nbsp;@amp;#13;var@nbsp;classId@nbsp;=@nbsp;getItemValueAsString(@quot;classId@quot;);@amp;#13;@nbsp;@nbsp;println(@quot;结果的classId@quot;+classId);@amp;#13;var@nbsp;personId@nbsp;=@nbsp;getItemValueAsString(@quot;personId@quot;);@amp;#13;var@nbsp;classInfoDoc=findDocument(classId);@amp;#13;@nbsp;@nbsp;@nbsp;println(@quot;结果的classInfoDoc@quot;+classInfoDoc);@amp;#13;var@nbsp;qualifiedGTheoryResult=classInfoDoc.findItem(@quot;qualifiedGTheoryResult@quot;).getValue();//合格理论成绩@amp;#13;var@nbsp;qualifiedGOperationResult=classInfoDoc.findItem(@quot;qualifiedGOperationResult@quot;).getValue();//合格实操成绩@amp;#13;var@nbsp;graduationTestResults=@#146;0@#146;;@amp;#13;var@nbsp;graduationTheoryScore@nbsp;=@nbsp;getItemValueAsString(@quot;graduationTheoryScore@quot;);@nbsp;@nbsp;@nbsp;//获取理论成绩@amp;#13;@amp;#13;var@nbsp;graduationOperationScore@nbsp;=@nbsp;getItemValueAsString(@quot;graduationOperationScore@quot;);@nbsp;//获取操作成绩@amp;#13;@nbsp;@nbsp;@amp;#13;var@nbsp;process@nbsp;=@nbsp;getDocumentProcess();@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@nbsp;@amp;#13;if((graduationTheoryScore@gt;=qualifiedGTheoryResult)@amp;@amp;(graduationOperationScore@gt;=qualifiedGOperationResult)){//判断是否合格@amp;#13;@nbsp;@nbsp;@nbsp;@amp;#13;@nbsp;@nbsp;return@nbsp;@#146;1@#146;@amp;#13;}else{@amp;#13;@nbsp;@nbsp;@nbsp;@amp;#13;@nbsp;@nbsp;@nbsp;return@nbsp;@#146;2@#146;@amp;#13;}@amp;#13;})()*/" optionsscript="(function(){@amp;#13;@nbsp;var@nbsp;opts=createOptions();@amp;#13;opts.add(@quot;未考试@quot;,@quot;0@quot;,true);@amp;#13;opts.add(@quot;合格@quot;,@quot;1@quot;);@amp;#13;opts.add(@quot;不合格@quot;,@quot;2@quot;);@amp;#13;return@nbsp;opts;@amp;#13;})()" validaterule="" hiddenscript="true" hiddenvalue="" hiddenprintscript="" printhiddenvalue="" texttype="text" readonlyscript="" fieldtype="VALUE_TYPE_VARCHAR" processdescription="[];[]" filtercondition="" refreshonchanged="false" isdefaultvalue="false" calculateonrefresh="true" instantvalidate="false" mobile="true" secrettext="false" multiselect="false" validatelibs="" editmode="01" width="" optionseditmode="01" dialogview="" module="" optionsvalue="" refreshmode="0" refreshfields="" optionstext="" hidetype="parent" ishidetype="false"></select></p>]]></templatecontext>
  <type>1</type>
  <styleId></styleId>
  <showLog>false</showLog>
  <openComment>false</openComment>
  <commentTitleScript><![CDATA[]]></commentTitleScript>
  <commentFlagScript><![CDATA[]]></commentFlagScript>
  <recordlogForever>false</recordlogForever>
  <showType>old</showType>
  <showWaterMark>false</showWaterMark>
  <waterMarkScript></waterMarkScript>
  <version>1</version>
  <isopenablescript><![CDATA[]]></isopenablescript>
  <iseditablescript><![CDATA[(function(){
  var scoreState = getItemValueAsString("scoreState"); //考试结果
  println("scoreState"+scoreState)
   var classId = getItemValueAsString("classId");
  //var classId=decodeURI(getParameter("classId"));
  println("classId---------------"+classId); 
  var classInfoDoc=findDocument(classId); 
  var  classStatus=classInfoDoc.findItem("classStatus").getValue();
  
  println("classStatus--111-------------"+classStatus)////成绩状态为已确认，且班级状态审核通过或已取消或已结束
   println("scoreState111-------------"+scoreState)
  
  if("0".equals(classStatus)||"2".equals(classStatus)||"3".equals(classStatus)){
     println("进来没963")
        return false//不可编辑
        
     
  }else{//145
    if("已确认".equals(scoreState)){
        println("进来没369")
        return false//不可编辑
       }
    return true//可编辑
  }
  
  
  /*if(("1".equals(classStatus)||"4".equals(classStatus)||"5".equals(classStatus))&&"1".equals(scoreState)){
    println("进来没111")
   
  
  }
  return true;*/
  


})()
]]></iseditablescript>
  <mappingStr><![CDATA[{"formName":"enterScores","tableName":"","columnMappings":[]}]]></mappingStr>
  <orderno>1</orderno>
  <permissionType>public</permissionType>
</form>