<template>
  <work-busy :is-busy="comp.isSend"></work-busy>
  <app-base>
    <div id="content"></div>
    <modal :show.sync="comp.showModel" width="500px" title="文件导入" v-ref:modal large backdrop="false">
      <article slot="modal-body" class="modal-body">
        <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
                     action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
        <img src="../../static/Excelformat.png" style="width: 100%"/>
      </article>

      <footer slot="modal-footer" class="modal-footer">
      </footer>
    </modal>
  </app-base>
</template>
<script>
import Comp from "./comp"
import TestData from "./TestData"
import {HttpResetClass,trans} from 'vue-client'
import Vue from "vue";
export default {
  data(){
    return{
      comp:{}
    }
  },
  ready() {
    try{
      if (this.$login) {
        console.log('登录信息', this.$login.f)
        if(this.$login.f){
          global.login=this.$login.f
        }else{
          this.$showMessage("未获取到当前登录人信息，请重新登陆！(可能由网络原因导致)")
        }
      }else{
        this.$showMessage("未获取到当前登录人信息，请重新登陆！(可能由网络原因导致)")
      }
      this.comp=new Comp()
      // 设置模板为测试,,
      global.canvas = "TestDataComponent";
      global.myjson = Object.assign(global.myjson, {
        TestDataComponent:{"Drag":{"NewPlan":{"type":"Grid","Row":"@*","Column":"@*","children":[{"Classes":"@NormalFontlight","Background":"@#ffffff","Column":"@80,170,80,170,80,170","children":[{"VAlign":"@Center","Right":"@10","type":"Text","Text":"@* 计划名称","HAlign":"@Right"},{"type":"Input","@Change":"stat.Call($setNewPlan$, $f_plan_name$, e.Value)"},{"type":"Text","VAlign":"@Center","Right":"@10","Text":"@计划年份","HAlign":"@Right"},{"Data":"stat.Call($years$)","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPlan$, $f_plan_year$, e.Value)","type":"Select"},{"VAlign":"@Center","Right":"@10","Text":"@计划月份","HAlign":"@Right","type":"Text"},{"type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Call($months$)","@Change":"stat.Call($setNewPlan$, $f_plan_month$, e.Value)"},{"type":"Text","Text":"@是否共享","Top":"@10","Right":"@10","HAlign":"@Right","VAlign":"@Center"},{"Selected":"stat.Data.isShare","Original":"@H","Data":"stat.Data.isAndNot","TemplateName":"@RadioButton","@Change":"stat.Call($fieldChange$, $isShare$, e.Value)","type":"Select"},{"type":"Text","Right":"@10","Text":"@安检员","HAlign":"@Right","VAlign":"@Center","Top":"@10","if":"stat.Data.isShare==$否$:true,false"},{"Selected":"stat.Data.newPlan.f_checker==$$:$请选择安检员$,stat.Data.newPlan.f_checker","Data":"stat.Data.checker","Top":"@10","HasSearch":"true","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($fieldChange$,$createPlan$,e.Value.self)","type":"Select"},{"Right":"@10","Top":"@10","type":"Text","Text":"@安检类型","HAlign":"@Right","VAlign":"@Center"},{"Top":"@10","Selected":"stat.Data.newPlan.f_safecheck_type","@Change":"stat.Call($setNewPlan$, $f_safecheck_type$, e.Value)","type":"Select","Data":"stat.Data.safecheckList","Classes":"@SelectWhite BorderRound"}],"Pos":"@Center","type":"Grid","Row":"@*,*","PaddingTop":"@20","PaddingBottom":"@20","PaddingLeft":"@20","PaddingRight":"@36"}]},"upPlan":{"type":"Grid","Column":"@*","Row":"@*","children":[{"PaddingBottom":"@20","Background":"@#ffffff","Classes":"@NormalFontlight","children":[{"Right":"@10","HAlign":"@Right","type":"Text","VAlign":"@Center","Text":"@* 计划名称"},{"@Change":"stat.Data.Call($setPlan$,$f_plan_name$,e.Value) ","type":"Input","Value":"stat.Data.plan.f_plan_name"},{"Right":"@10","HAlign":"@Right","type":"Text","VAlign":"@Center","Text":"@安检员"},{"Data":"stat.Data.checker","@Change":"stat.Call($fieldChange$,$upPlan$,e.Value.self)","type":"Select","Classes":"@SelectWhite BorderRound","Selected":"stat.Data.plan.f_checker","HasSearch":"true"},{"Top":"@10","Text":"@计划年份","type":"Text","Right":"@10","HAlign":"@Right","VAlign":"@Center"},{"Classes":"@SelectWhite BorderRound","Data":"stat.Data.Call($years$)","Top":"@10","Selected":"stat.Data.plan.f_plan_year","@Change":"stat.Data.Call($setPlan$,$f_plan_year$,e.Value) ","type":"Select"},{"Top":"@10","Text":"@计划月份","Right":"@10","type":"Text","HAlign":"@Right","VAlign":"@Center"},{"@Change":"stat.Data.Call($setPlan$,$f_plan_month$,e.Value) ","type":"Select","Top":"@10","Data":"stat.Data.Call($months$)","Selected":"stat.Data.plan.f_plan_month","Classes":"@SelectWhite BorderRound"}],"type":"Grid","PaddingTop":"@20","Column":"@80,170,80,170","Row":"@*,*","PaddingLeft":"@20","PaddingRight":"@36"}]},"suppPaper":{"Row":"@1*","Column":"@280,280,331","Classes":"@PopupSearch PopupShadow","children":[{"type":"Grid","Column":"@1*","Row":"@30,1*","Classes":"@BorderRect","children":[{"Text":"@用户基本信息","VAlign":"@Center","HAlign":"@Center","type":"Text"},{"PaddingRight":"@20","type":"Grid","children":[{"type":"Text","PaddingBottom":"@6","Text":"@用户地址","Classes":"@GridLabel"},{"Value":"stat.Data.suppplanitem.f_address","@Change":"stat.Call($setNewPaper$,$f_address$,e.Value)","type":"Input","Top":"@5","Bottom":"@5","Classes":"@SelectWhite"},{"PaddingBottom":"@6","Text":"@证件号","Classes":"@GridLabel","type":"Text"},{"@Change":"stat.Call($setNewPaper$,$f_idnumber$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_idnumber","Top":"@5","Bottom":"@5"},{"type":"Text","Text":"@电话号码","Classes":"@GridLabel","PaddingBottom":"@6"},{"Bottom":"@5","Value":"stat.Data.suppplanitem.f_user_phone","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_user_phone$,e.Value)","type":"Input"},{"Text":"@用户性质","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6"},{"@Change":"stat.Call($setNewPaper$,$f_userproperties$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_userproperties","Top":"@5","Bottom":"@5"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@区/县"},{"Value":"stat.Data.suppplanitem.f_area","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_area$,e.Value)","type":"Input","Bottom":"@5"},{"PaddingBottom":"@6","type":"Text","Text":"@备注信息","Classes":"@GridLabel"},{"@Change":"stat.Call($setNewPaper$,$f_comments$,e.Value)","type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_comments"},{"Classes":"@GridLabel","PaddingBottom":"@6","Text":"@楼号","type":"Text"},{"type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_building","@Change":"stat.Call($setNewPaper$,$f_building$,e.Value)"},{"PaddingBottom":"@6","Text":"@楼层","Classes":"@GridLabel","type":"Text"},{"Value":"stat.Data.suppplanitem.f_floor","@Change":"stat.Call($setNewPaper$,$f_floor$,e.Value)","type":"Input","Top":"@5","Bottom":"@5"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@小区"},{"Top":"@5","@Change":"stat.Call($setNewPaper$,$f_residential_area$,e.Value)","type":"Input","Bottom":"@5","Value":"stat.Data.suppplanitem.f_residential_area"},{"Text":"@街道","type":"Text","Classes":"@GridLabel","PaddingBottom":"@6"},{"Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_street$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_street"},{"Text":"@单元","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6"},{"@Change":"stat.Call($setNewPaper$,$f_unit$,e.Value)","type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_unit"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@用户名"},{"Value":"stat.Data.suppplanitem.f_user_name","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_user_name$,e.Value)","type":"Input"},{"PaddingBottom":"@6","Text":"@用户类型","type":"Text","Classes":"@GridLabel"},{"@Change":"stat.Call($setNewPaper$,$f_user_type$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_user_type","Top":"@5","Bottom":"@5"},{"PaddingBottom":"@6","Text":"@用户编号","type":"Text","Classes":"@GridLabel"},{"type":"Input","Value":"stat.Data.suppplanitem.f_userinfo_code","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_userinfo_code$,e.Value)"},{"Text":"@门牌号","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6"},{"Value":"stat.Data.suppplanitem.f_room","@Change":"stat.Call($setNewPaper$,$f_room$,e.Value)","type":"Input","Top":"@5","Bottom":"@5"}],"PaddingLeft":"@10","Row":"@35,35,35,35,35,35,35,35,35,35,35,35,35,35,35","PaddingTop":"@10","PaddingBottom":"@10","Classes":"@BorderRound NormalFont PopupSearch","Column":"@70,170"}]},{"Row":"@30,1*","Column":"@1*","children":[{"HAlign":"@Center","VAlign":"@Center","Text":"@安检状况","type":"Text"},{"children":[{"type":"Text","PaddingBottom":"@6","Text":"@到达时间","Classes":"@GridLabel"},{"Classes":"@SelectWhite BorderRound","Top":"@5","Bottom":"@5","Date":"stat.Data.suppplanitem.f_onsite_time","@Change":"stat.Call($setNewPaper$,$f_onsite_time$,e.Value)","type":"DateInput"},{"PaddingBottom":"@6","type":"Text","Text":"@离开时间","Classes":"@GridLabel"},{"type":"DateInput","Top":"@5","Bottom":"@5","Date":"stat.Data.suppplanitem.f_offsite_time","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPaper$,$f_offsite_time$,e.Value)"},{"PaddingBottom":"@6","Text":"@入户状态","Classes":"@GridLabel","type":"Text"},{"type":"Select","Bottom":"@5","Selected":"stat.Data.suppplanitem.f_entry_status","Data":"stat.Data.userState","Classes":"@SelectWhite BorderRound","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_entry_status$,e.Value)"},{"type":"Text","Text":"@燃气使用","Classes":"@GridLabel","PaddingBottom":"@6"},{"Selected":"stat.Data.suppplanitem.f_usegas","Data":"stat.Data.gasUse","Classes":"@SelectWhite BorderRound","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_usegas$,e.Value)","type":"Select","Bottom":"@5"},{"PaddingBottom":"@6","Classes":"@GridLabel","Text":"@安检员","type":"Text"},{"Top":"@5","Bottom":"@5","Selected":"stat.Data.suppplanitem.f_checker_name","Data":"stat.Data.checkersname","@Change":"stat.Call($setNewPaper$,$f_checker_name$,e.Value)","type":"Select","Classes":"@SelectWhite BorderRound"}],"PaddingBottom":"@10","type":"Grid","Column":"@70,170","PaddingTop":"@10","PaddingLeft":"@10","Row":"@35,35,35,35,35,35,35,35,35,35,35,35,35,35,35","Classes":"@BorderRound NormalFont PopupSearch","PaddingRight":"@20"}],"type":"Grid"},{"children":[{"HAlign":"@Center","type":"Text","VAlign":"@Center","Text":"@安检选项"},{"PaddingTop":"@10","PaddingBottom":"@10","children":[{"Height":"@525","Slots":{"item":{"Data":"stat.Data.listbutton","Slots":{"item":{"Row":"@35","children":[{"Row":"@1*","Column":"@100,200","children":[{"Width":"@100","Pos":"@Center","type":"Text","Classes":"@GridLabel","Text":"data.lname"},{"Width":"@200","Top":"@5","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","type":"Input","Bottom":"@5","Value":"data.selected","Height":"@25","if":"data.type==$string$:true,false"},{"type":"DateInput","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","Height":"@25","Classes":"@SelectWhite BorderRound","Bottom":"@5","Width":"@200","Date":"data.selected","Top":"@5","if":"data.type==$date$:true,false"},{"Width":"@200","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","Top":"@5","Height":"@25","Bottom":"@5","Classes":"@SelectWhite BorderRound","type":"Select","if":"data.type==$selector$:true,false","Data":"stat.Data.Call($reoption$,data.lname,data.mname)","Selected":"data.selected"}],"type":"Grid"}],"type":"Grid","Column":"@1*","Top":"@5","Bottom":"@5"}},"type":"List"}},"type":"Scroll"}],"PaddingRight":"@20","PaddingLeft":"@10","Row":"@*","Column":"@1*","type":"Grid","Classes":"@BorderRound NormalFont PopupSearch"}],"type":"Grid","Row":"@30,1*","Column":"@1*"}],"type":"Grid"},"SearchPlan":{"Row":"@1*","Column":"@1*","children":[{"Row":"@*,*,*,*,*,*,*","Classes":"@BorderRound NormalFont PopupSearch","type":"Grid","PaddingTop":"@10","PaddingBottom":"@10","PaddingRight":"@20","Column":"@70,170","children":[{"Classes":"@GridLabel","type":"Text","Text":"@计划名称","PaddingBottom":"@6"},{"Value":"stat.Data.checkplan.search.model.f_plan_name","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_name$, e.Value)","type":"Input"},{"Text":"@计划年份","Classes":"@GridLabel","type":"Text"},{"type":"Select","Data":"stat.Call($years$)","Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_year","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_year$, e.Value)"},{"type":"Text","Classes":"@GridLabel","Text":"@计划月份"},{"Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_month","Bottom":"@1","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_month$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Call($months$)"},{"Classes":"@GridLabel","type":"Text","Text":"@是否共享"},{"type":"Select","VAlign":"@Center","Data":"stat.Data.isAndNot","TemplateName":"@RadioButton","Selected":"stat.Data.sIsAndNotSelect","Original":"@H","@Change":"stat.Call($isAndNotChange$, e.Value)"},{"type":"Text","Text":"@安检员","Classes":"@GridLabel"},{"Selected":"stat.Data.checkplan.search.model.checkername","Data":"stat.Data.checker","@Change":"stat.Call($fieldChange$,$checkplan$,e.Value.self)","type":"Select","HasSearch":"true","Top":"@10","Classes":"@SelectWhite BorderRound"},{"Classes":"@GridLabel","type":"Text","Text":"@安检类型"},{"type":"Select","Data":"stat.Data.safecheckTypeList","Classes":"@SelectWhite BorderRound","Top":"@10","Selected":"stat.Data.checkplan.search.model.safechecktype","@Change":"stat.Call($setProperty$, $checkplan$, $safechecktype$, e.Value)"},{"HAlign":"@Center","Top":"@20","ColSpan":"@2","children":[{"type":"Button","Text":"@取消","Classes":"@Button2","Right":"@50","@Click":"stat.RestorePopup(this,e.draw)"},{"FillStyle":"@#ffffff","Classes":"@Button","Text":"@查询","@Click":"stat.Call($loadCheckPlan$,$$),stat.RestorePopup(this,e.draw)","type":"Button"}],"type":"Stack"}],"PaddingLeft":"@10"}],"type":"Grid","Classes":"@PopupSearch PopupShadow"},"start":{"Path":"@drag","type":"Image"},"condition":{"Classes":"@PopupSearch PopupShadow","Row":"@1*","children":[{"type":"Grid","Background":"@#fff","Column":"@*","Classes":"@BorderRound NormalFont PopupSearch","Row":"@*,*","children":[{"type":"Scroll","Height":"@200","Slots":{"item":{"Name":"@新","Slots":{"item":{"Column":"@*,*,*,*,*","type":"Grid","PaddingRight":"@10","PaddingBottom":"@10","PaddingTop":"@10","Background":"@#fff","children":[{"Selected":"data.selectitem","Data":"stat.Data.conditionJson","Background":"@#fff","Right":"@8","Width":"@150","StrokeStyle":"@#dfe4e7","@Change":"stat.Call($conditionListChange$,$conditionList$,index,$selectitem$,e.Value.self)","Text":"this.Selected.checkname","type":"Select","Slots":{"item":{"children":[{"Left":"@10","VAlign":"@Center","type":"Text","Text":"data.checkname"}],"type":"Stack","Height":"@30"}},"Classes":"@SelectGray BorderRound"},{"@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value)","type":"Input","Value":"data.selectValue","Width":"@150","if":"data.selectitem.type==$input$"},{"Width":"@150","Date":"data.selectValue","Classes":"@SelectGray BorderRound","StrokeStyle":"@#dfe4e7","@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value)","ShowDateAndTime":"@All","Background":"@#fff","type":"DateInput","if":"data.selectitem.type==$date$"},{"@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value),stat.Call($conditionChangeFun$,data.selectitem.column)","if":"data.selectitem.type==$selector$","Background":"@#fff","Selected":"data.selectValue","StrokeStyle":"@#dfe4e7","Data":"data.selectitem.options","Width":"@150","Classes":"@SelectGray BorderRound","type":"Select"},{"VAlign":"@Center","Path":"@littledelete","Left":"@8","@Click":"stat.Call($deletecondition$,$conditionList$,$user$,index)","type":"Image"}],"Row":"@*","PaddingLeft":"@10"}},"type":"List","Data":"stat.Data.conditionList"}}},{"@Click":"stat.Call($addconditionList$,$conditionList$)","type":"Image","HAlign":"@Center","Bottom":"@10","VAlign":"@Center","Path":"@littleadd"}]}],"type":"Grid","Column":"@1*"},"condition1":{"Classes":"@PopupSearch PopupShadow","children":[{"Column":"@*","Row":"@*,*","children":[{"Slots":{"item":{"Data":"stat.Data.planitemconditionList","Slots":{"item":{"PaddingBottom":"@10","type":"Grid","PaddingRight":"@10","Column":"@*,*,*,*,*","PaddingTop":"@10","PaddingLeft":"@10","Background":"@#fff","children":[{"Width":"@150","Background":"@#fff","Data":"stat.Data.planitemconditionJson","type":"Select","Text":"this.Selected.checkname","StrokeStyle":"@#dfe4e7","Slots":{"item":{"type":"Stack","Height":"@30","children":[{"Left":"@10","VAlign":"@Center","type":"Text","Text":"data.checkname"}]}},"@Change":"stat.Call($conditionListChange$,$planitemconditionList$,index,$selectitem$,e.Value.self)","Selected":"data.selectitem","Right":"@8","Classes":"@SelectGray BorderRound"},{"Value":"data.selectValue","@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","type":"Input","if":"data.selectitem.type==$input$","Width":"@150"},{"type":"DateInput","StrokeStyle":"@#dfe4e7","@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","Background":"@#fff","Date":"data.selectValue","ShowDateAndTime":"@All","Width":"@150","Classes":"@SelectGray BorderRound","if":"data.selectitem.type==$date$"},{"Background":"@#fff","Selected":"data.selectValue","Classes":"@SelectGray BorderRound","type":"Select","StrokeStyle":"@#dfe4e7","if":"data.selectitem.type==$selector$","Width":"@150","@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","Data":"data.selectitem.options"},{"Path":"@littledelete","@Click":"stat.Call($deletecondition$,$planitemconditionList$,$checkplanitems$,index)","type":"Image","Left":"@8","VAlign":"@Center"}],"Row":"@*"}},"type":"List","Name":"@新"}},"type":"Scroll","Height":"@200"},{"HAlign":"@Center","VAlign":"@Center","Path":"@littleadd","@Click":"stat.Call($addconditionList$,$planitemconditionList$)","type":"Image","Bottom":"@10"}],"type":"Grid","Classes":"@BorderRound NormalFont PopupSearch"}],"type":"Grid","Column":"@1*","Row":"@1*"},"drag":{"type":"Text","Text":"@ "}},"template":{"Row":"@1*","Background":"@#f5f7f9","Column":"@230,1*","children":[{"children":[{"children":[{"@MouseDown":"stat.Popup($SearchPlan$,stat,this,e.draw)","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg","type":"Image"}},"type":"Button","Text":"@查询"},{"StrokeStyle":"@#dfe4e7","Selected":"$按时间降序$","Data":"stat.Data.orderList","Left":"@10","Classes":"@SelectGray BorderRound","@Change":"stat.Call($loadCheckPlan$,e.Value)","type":"Select","Background":"@#fff"},{"type":"Text","Text":"@"},{"children":[{"Left":"@110","Text":"@下发","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","@Click":"stat.Call($sendCheckPlan$)","type":"Button"},{"Text":"@删除","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","Left":"@12","@Click":"stat.Call($delCheckPlan$)","type":"Button"}],"type":"Stack","PaddingTop":"@8","PaddingBottom":"@4"}],"type":"Grid","Column":"@*,1*","PaddingRight":"@5","Pos":"@Top","PaddingTop":"@3","StrokeStyle":"@#dce0e3","Bottom":"@1","PaddingLeft":"@5","Classes":"@BorderRect","PaddingBottom":"@4","Name":"@上边","Row":"@*,*"},{"Pos":"@Center","children":[{"type":"Scroll","@DragOver":"stat.DragOver()","Slots":{"item":{"Slots":{"item":{"Background":"data.id==stat.Data.SelectedPlan: $#d8eafb$, this.MouseIn: $#f5f6f7$, $$","PaddingBottom":"@1","Width":"@230","children":[{"PaddingLeft":"@10","PaddingBottom":"@20","Column":"@25,42,1*,42,1*","children":[{"children":[{"if":"stat.Data.Call($planIsChecked$, data.f_issued,data.plan_count)","@Change":"stat.Call($addParam$, $checkplan$, data.id)","type":"CheckBox","IsSelected":"stat.Data.checkplan.check.Call($isChecked$, data.id)"}],"type":"Stack","VAlign":"@Center","RowSpan":"@4"},{"Font":"@15px 微软雅黑","type":"Text","Text":"data.f_plan_name","ColSpan":"@3"},{"Classes":"@BorderRound","@Click":"stat.Data.Call($setPlanVal$,data.self),stat.ShowModal($upPlan$,$修改计划$,$upCheckPlan$,$cancel$)","Slots":{"item":{"Name":"Button_Image","Path":"@edit","type":"Image"}},"type":"Button","HAlign":"@Center"},{"Text":"data.f_issued","Top":"@12","FillStyle":"@#4792de","type":"Text"},{"Top":"@10","children":[{"PaddingLeft":"@5","Classes":"@BorderRound","ColSpan":"@3","StrokeStyle":"@#cfdce8","PaddingRight":"@5","FillStyle":"@#4792de","Text":"data.f_checker!=$$:data.f_checker,$共享","Font":"@12px 微软雅黑","type":"Text","PaddingTop":"@2","Background":"@#ffffff","Radius":"@8","PaddingBottom":"@2"}],"type":"Stack","ColSpan":"@3","HAlign":"@Right"},{"type":"Text","Classes":"@NormalFontLighter","Top":"@12","ColSpan":"@2","Text":"${data.f_plan_year}-{data.f_plan_month}$"},{"Top":"@12","Left":"@10","type":"Text","Classes":"@NormalFontLighter","Text":"@总"},{"HAlign":"@Right","Text":"data.plan_count","Top":"@12","Right":"@10","Classes":"@NormalFontHeavy","ColSpan":"@1","type":"Text","Name":"@总数"},{"Top":"@12","Classes":"@NormalFontLighter","type":"Text","Text":"@已检"},{"Classes":"@NormalFontHeavy","type":"Text","Top":"@12","Text":"data.checked","Left":"@5"},{"type":"Text","Top":"@12","Text":"@未检","Classes":"@NormalFontLighter","Left":"@10"},{"Right":"@10","Classes":"@NormalFontHeavy","type":"Text","Text":"data.unchecked","HAlign":"@Right","Top":"@12"}],"PaddingTop":"@20","PaddingRight":"@10","Row":"@*,*,*,*","@Drop":"stat.Call($dragtoPlan$,data.id,data.f_safecheck_type,data.f_filialeid,stat.GetDrag())","type":"Grid"},{"type":"Stack","Right":"@5","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Left":"@5"}],"type":"Stack","Original":"@V"}},"type":"List","Name":"@安检计划","Data":"stat.Data.checkplan.list.data","@Change":"stat.Call($openPlan$, e.Value.self)"}}},{"StrokeStyle":"@#dfe4e7","Classes":"@BorderRect","type":"Stack","Left":"@5","Right":"@5"},{"Row":"@1*","PaddingLeft":"@20","PaddingRight":"@20","PaddingTop":"@10","children":[{"type":"Text","Text":"$共{stat.Data.checkplan.list.count}条$"},{"type":"Button","HAlign":"@Right","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplan$)","Slots":{"item":{"Name":"LoadMoreButton_Stack","children":[{"Path":"@doubledown","type":"Image","VAlign":"@Bottom"},{"Text":"@更多","type":"Text","Left":"@4"}],"type":"Stack"}}}],"type":"Grid","PaddingBottom":"@10","Column":"@1*,1*"},{"Left":"@5","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7","Right":"@5","type":"Stack"},{"Classes":"@BorderRound","Bottom":"@20","HAlign":"@Center","@Click":"stat.ShowModal($NewPlan$,$生成计划$,$addNewPlan$,$cancel$)","Slots":{"item":{"Path":"this.MouseIn:$addnewhover$,$addnew$","type":"Image","Name":"Button_Image"}},"type":"Button","Top":"@20"}],"type":"Grid","Classes":"@NormalFontlight","Column":"@1*","Row":"@1*,0,*,0,*"}],"type":"Dock","Background":"@#ffffff","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Name":"@左边"},{"Background":"@#f5f7f9","Classes":"@BorderRect","children":[{"Name":"@工具条","StrokeStyle":"@#dce0e3","type":"Stack","Classes":"@BorderRect","Background":"@#ffffff","HAlign":"@Right","Top":"@2","Bottom":"@2","Pos":"@Top","children":[{"type":"Text","VAlign":"@Center","Text":"@组织机构","Right":"@10"},{"type":"Select","StrokeStyle":"@#dfe4e7","Right":"@400","@Change":"stat.Call($orgChange$,e.Value.self)","Slots":{"item":{"type":"Stack","Height":"@30","children":[{"VAlign":"@Center","type":"Text","Text":"data.label","Left":"@10"}]}},"Width":"@200","Data":"stat.Data.orgs","Background":"@#fff","Selected":"stat.Data.filialeidname","Classes":"@SelectWhite BorderRound"},{"children":[{"Text":"@专项计划派发","VAlign":"@Center","type":"Text"}],"type":"Stack","Right":"@600","Top":"@4","Bottom":"@4"},{"@Click":"stat.Call($clearUserInfoId$)","type":"Button","Text":"@清空用户编号","Classes":"@Button2","Right":"@10"}]},{"type":"Grid","Pos":"@Center","Row":"@1*,1*","Column":"@1*","children":[{"children":[{"type":"Stack","Bottom":"@17","children":[{"VAlign":"@Center","type":"Text","Text":"@计划信息"},{"Left":"@10","Width":"@150","PlaceHolder":"@用户编号","@Change":"stat.Call($setProperty$,$checkplanitems$,$usercode$, e.Value)","type":"Input","Classes":"@BorderRect"},{"type":"Input","Left":"@10","Width":"@150","Classes":"@BorderRect","PlaceHolder":"@用户名称","@Change":"stat.Call($setProperty$,$checkplanitems$,$username$, e.Value)"},{"Left":"@10","PlaceHolder":"@用户地址","@Change":"stat.Call($setProperty$,$checkplanitems$,$f_address$, e.Value)","type":"Input","Width":"@150"},{"type":"Button","Classes":"@DropDownButton BorderRound","Left":"@10","@Click":"stat.Popup($condition1$,stat,this,e.draw)","Slots":{"item":{"Name":"DropDownButton_Image","Classes":"@DropDownButtonImg","type":"Image"}}},{"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchPlanItem$)","Slots":{"item":{"Name":"SearchButton_Image","Classes":"@SearchButtonImg","type":"Image"}}},{"type":"Text","Text":"stat.Data.SelectedPlan.f_plan_name","VAlign":"@Center","Left":"@300"}]},{"@DragOver":"stat.DragOver()","@DragStart":"stat.SetDrag($item$)","@Drop":"stat.Call($dragtoPlanItem$,stat.Data.checkplanitems.search.model.f_plan_id,stat.Data.plan.f_safecheck_type,stat.GetDrag())","Slots":{"item":{"children":[{"Classes":"@DataGridBody","HAlign":"@Center","IsSelected":"stat.Data.checkplanitems.check.Call($isChecked$, data.f_check_item_id)","@Change":"stat.Call($addParam$, $checkplanitems$, data.f_check_item_id)","type":"CheckBox"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_userinfo_code"},{"type":"Text","Text":"data.f_user_name","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_user_type"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_residential_area"},{"Classes":"@DataGridBody","Text":"data.f_state","type":"Text"},{"Text":"data.f_check_state","Classes":"@DataGridBody","type":"Text"},{"Classes":"@DataGridBody","Text":"data.f_address","type":"Text"},{"HAlign":"@Center","Height":"@28","VAlign":"@Center","Classes":"@BorderRect","children":[{"Right":"@10","Text":"@补录","@Click":"stat.DrawModal($suppPaper$,$补录$,$addnewPaper$,$cancel$,e.draw),stat.Call($getselector$),stat.Call($suppfdevice$),stat.Call($fieldChange$,$suppplanitem$,data.self)","type":"Button","if":"data.f_state==$未检$:false,false","Classes":"@Button2"},{"@Click":"stat.DrawModal($suppPaper$,$修改$,$updatePaper$,$cancel$,e.draw),stat.Call($getselector$),stat.Call($getPaper$,data.f_check_item_id)","type":"Button","Classes":"@Button2","Text":"@修改","if":"stat.Data.Call($isUpdate$,data.f_state,data.f_supplement_tag):false,false"}],"type":"Stack","StrokeStyle":"@#dfe4e7"}],"type":"Grid","Row":"@1*"},"head":{"children":[{"HAlign":"@Center","Classes":"@DataGridHead","children":[{"@Change":"stat.Call($changeCheckAll$, $checkplanitems$)","type":"CheckBox","IsSelected":"stat.Data.checkplanitems.check.checkAll"},{"Left":"@9","type":"Text","Text":"@全选"}],"type":"Stack"},{"HAlign":"@Center","Text":"@用户编号","Classes":"@DataGridHead","type":"Text"},{"Text":"@用户名称","HAlign":"@Center","Classes":"@DataGridHead","type":"Text"},{"Text":"@用户类型","Classes":"@DataGridHead","HAlign":"@Center","type":"Text"},{"Classes":"@DataGridHead","HAlign":"@Center","Text":"@小区名称","type":"Text"},{"type":"Text","Classes":"@DataGridBody","HAlign":"@Center","Text":"@状态"},{"Text":"@安检结果","Classes":"@DataGridBody","type":"Text"},{"Text":"@地址","type":"Text","Classes":"@DataGridHead","HAlign":"@Center"},{"HAlign":"@Center","Classes":"@DataGridHead","type":"Text","Text":"@操作"}],"type":"Grid","Row":"@1*"}},"type":"DataGrid","Column":"@100,100,130,100,130,100,110,1*,1*","Data":"stat.Data.checkplanitems.list.data","Classes":"@BorderRect"},{"PaddingTop":"@5","Classes":"@NormalFontlight","Top":"@12","Row":"@1*","children":[{"type":"Stack","children":[{"type":"Text","Text":"$显示 1~{global.Length(stat.Data.checkplanitems.list.data)}$","VAlign":"@Center","if":"global.Length(stat.Data.checkplanitems.list.data)==0:false,true"}]},{"Left":"@20","VAlign":"@Center","type":"Text","Text":"$共{stat.Data.checkplanitems.list.count}条$"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplanitems$)","Slots":{"item":{"children":[{"Path":"@doubledown","type":"Image","VAlign":"@Bottom"},{"type":"Text","Left":"@4","Text":"@更多"}],"type":"Stack","Name":"LoadMoreButton_Stack"}}}],"type":"Grid","Column":"@*,*,1*,*"}],"PaddingBottom":"@20","Classes":"@BorderRect","PaddingRight":"@24","PaddingTop":"@12","Row":"@*,1*,*","PaddingLeft":"@10","type":"Grid","Column":"@1*","StrokeStyle":"@#dfe4e7"},{"PaddingLeft":"@10","StrokeStyle":"@#dfe4e7","PaddingBottom":"@20","PaddingTop":"@12","Row":"@*,1*,*","Classes":"@BorderRect","Column":"@1*","children":[{"children":[{"type":"Text","Text":"@用户信息","VAlign":"@Center"},{"Classes":"@BorderRect","Left":"@10","Width":"@150","PlaceHolder":"@用户编号","@Change":"stat.Call($setProperty$,$user$,$userinfocode$, e.Value)","type":"Input"},{"type":"Input","Left":"@10","PlaceHolder":"@用户名称","Width":"@150","@Change":"stat.Call($setProperty$,$user$,$username$, e.Value)"},{"type":"Text","Left":"@10","VAlign":"@Center","Text":"@距上次安检"},{"Width":"@40","Left":"@5","Right":"@5","@Change":"stat.Call($fieldChange$,$startday$,e.Value)","type":"Input"},{"type":"Text","Text":"@到","VAlign":"@Center"},{"Left":"@5","@Change":"stat.Call($fieldChange$,$endday$,e.Value)","type":"Input","Width":"@40"},{"Background":"@#fff","Width":"@50","Selected":"stat.Data.selectTime","StrokeStyle":"@#dfe4e7","Classes":"@SelectGray BorderRound","Data":"stat.Data.unitTime","Left":"@5","@Change":"stat.Call($fieldChange$,$selectTime$,e.Value)","type":"Select"},{"Background":"@#fff","Data":"stat.Data.residential_area","StrokeStyle":"@#dfe4e7","Left":"@10","Classes":"@SelectGray BorderRound","type":"Select","Selected":"stat.Data.user.search.model.f_residential_area","PlaceHolder":"@请选择小区","@Change":"stat.Call($selectChanged$,$user$,$f_residential_area$, e.Value)","HasSearch":"true","Width":"@150"},{"@Change":"stat.Call($selectChanged$,$user$,$userType$, e.Value)","type":"Select","Selected":"stat.Data.user.search.model.userType","TemplateName":"@RadioButton","Original":"@H","Data":"stat.Data.userTypes"},{"Classes":"@DropDownButton BorderRound","@Click":"stat.Popup($condition$,stat,this,e.draw)","Slots":{"item":{"Classes":"@DropDownButtonImg","type":"Image","Name":"DropDownButton_Image"}},"type":"Button","Left":"@10"},{"Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchUser$)"},{"Left":"@10","@Click":"stat.Call($show1$)","type":"Button","Text":"@导入用户编号","Classes":"@Button2"},{"Classes":"@Button2","Left":"@10","Text":"@限制购气","@Click":"stat.Call($LimitBuyGas$)","type":"Button"},{"Classes":"@Button2","@Click":"stat.Call($exportFile$)","type":"Button","Left":"@10","Text":"@导出Excel"}],"type":"Stack","Bottom":"@17"},{"Data":"stat.Data.user.list.data","@Drop":"stat.Call($delPlanItem$,stat.GetDrag())","@DragStart":"stat.SetDrag($user$)","@DragOver":"stat.DragOver()","Slots":{"item":{"type":"Grid","Row":"@*","children":[{"IsSelected":"stat.Data.user.check.Call($isChecked$, data.id)","HAlign":"@Center","@Change":"stat.Call($addParam$, $user$, data.id)","type":"CheckBox","Classes":"@DataGridBody","VAlign":"@Center"},{"Text":"data.f_userinfo_code","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Text":"data.f_user_name","Classes":"@DataGridBody"},{"Text":"data.f_user_type","type":"Text","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_residential_area","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","Text":"data.f_last_check_date","type":"Text"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_address"}]},"head":{"Row":"@*","children":[{"type":"Stack","Classes":"@DataGridHead","children":[{"@Change":"stat.Call($changeCheckAll$, $user$)","type":"CheckBox","IsSelected":"stat.Data.user.check.checkAll"},{"type":"Text","Left":"@9","Text":"@全选"}]},{"Classes":"@DataGridHead","type":"Text","Text":"@用户编号"},{"Text":"@用户名称","Classes":"@DataGridHead","type":"Text"},{"Text":"@用户类型","Classes":"@DataGridHead","type":"Text"},{"type":"Text","Text":"@小区","Classes":"@DataGridHead"},{"type":"Text","Text":"@安检时间","Classes":"@DataGridHead"},{"Text":"@地址","Classes":"@DataGridHead","type":"Text"}],"type":"Grid"}},"type":"DataGrid","Classes":"@BorderRect","Column":"@100,100,130,100,150,150,1*"},{"type":"Grid","Top":"@12","Row":"@1*","Column":"@*,*,1*,*","Classes":"@NormalFontlight","children":[{"children":[{"type":"Text","Text":"$显示 1~{global.Length(stat.Data.user.list.data)}$","if":"global.Length(stat.Data.user.list.data)==0:false,true"}],"type":"Stack"},{"type":"Text","Left":"@20","Text":"$共{stat.Data.user.list.count}条$"},{"Text":"@ ","type":"Text"},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","Text":"@加载更多","@Click":"stat.Call($loadMore$,$user$)","Slots":{"item":{"type":"Stack","children":[{"type":"Image","Path":"@doubledown","VAlign":"@Bottom"},{"Left":"@4","Text":"@更多","type":"Text"}]}}}]}],"type":"Grid","PaddingRight":"@24"}]}],"type":"Dock","Name":"@右边"}],"type":"Grid"}}
      });

      loadWasm().then(()=> {
        global.stat = this.comp
        global.stat.ready().then(()=> {
          console.log(global.stat)
          run()
          this.comp.isSend=false
        })
      })
    }catch (e) {
      this.$showAlert("加载出错啦！请清除缓存在试一次！"+JSON.stringify(e))
      this.comp.isSend=false
    }
  },
  events: {
    onFileUpload: function (file, res) {
      console.log("-------------"+JSON.stringify(res))
      console.log("-file------------"+JSON.stringify(file))
      let data = {
        filepath: res.f_downloadpath
      }
      new HttpResetClass().load('POST','/api/af-safecheck/logic/safe_GetUserInfoFromExcel', {data: data}, {
        resolveMsg: '导入成功！已生成条件，若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
        rejectMsg: '导入失败'
      }).then((res) => {
        this.comp.setProperty("user","uploadCondition",res.data.condition)
        this.comp.showModel = false
      })
    },

  },

  /*{"template":{"type":"Grid","Column":"@200,1*","Row":"@1*","Background":"@#f5f7f9","children":[{"StrokeStyle":"@#dce0e3","children":[{"PaddingLeft":"@5","Column":"@*,1*","Name":"@上边","Bottom":"@1","PaddingTop":"@3","Row":"@*","StrokeStyle":"@#dce0e3","type":"Grid","PaddingBottom":"@4","Classes":"@BorderRect","Pos":"@Top","PaddingRight":"@5","children":[{"type":"Button","Text":"@查询","@MouseDown":"stat.Popup($SearchPlan$,stat,this,e.draw)","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg"}}},{"Background":"@#fff","Selected":"$按时间降序$","Data":"stat.Data.orderList","@Change":"stat.Call($loadCheckPlan$,e.Value)","type":"Select","Left":"@10","Classes":"@SelectGray BorderRound"}]},{"Column":"@1*","children":[{"type":"Scroll","Slots":{"item":{"type":"List","Name":"@安检计划","Data":"stat.Data.checkplan.list.data","@Change":"stat.Call($openPlan$, e.Value.self)","Slots":{"item":{"PaddingBottom":"@1","children":[{"children":[{"type":"Text","Font":"@15px 微软雅黑","Text":"data.f_plan_name","ColSpan":"@4"},{"type":"Text","Top":"@12","Text":"@已下载"},{"children":[{"Classes":"@BorderRound","PaddingLeft":"@5","Font":"@12px 微软雅黑","Text":"data.f_checker!=$$:data.f_checker,$共享","PaddingTop":"@2","Background":"@#ffffff","Radius":"@8","FillStyle":"@#4792de","PaddingRight":"@5","ColSpan":"@3","StrokeStyle":"@#cfdce8","type":"Text","PaddingBottom":"@2"}],"type":"Stack","HAlign":"@Right","Top":"@10","ColSpan":"@3"},{"Classes":"@NormalFontLighter","type":"Text","Top":"@12","ColSpan":"@2","Text":"${data.f_plan_year}-{data.f_plan_month}$"},{"Text":"@总","Top":"@12","type":"Text","Left":"@10","Classes":"@NormalFontLighter"},{"Text":"stat.Call($getSumItem$, data.self)","Top":"@12","Classes":"@NormalFontHeavy","Name":"@总数","HAlign":"@Right","type":"Text"},{"type":"Text","Text":"@已检","Top":"@12","Classes":"@NormalFontLighter"},{"Top":"@12","Text":"stat.Call($getChecked$, data.self)","type":"Text","Left":"@5","Classes":"@NormalFontHeavy"},{"Left":"@10","Top":"@12","Text":"@未检","Classes":"@NormalFontLighter","type":"Text"},{"Top":"@12","Classes":"@NormalFontHeavy","type":"Text","Text":"stat.Call($getNotChecked$, data.self)","HAlign":"@Right"}],"Row":"@*,*,*,*","PaddingRight":"@15","PaddingTop":"@20","type":"Grid","PaddingLeft":"@15","Column":"@42,1*,42,1*","@Drop":"stat.Call($dragtoPlan$,data.id,data.f_filialeid,stat.GetDrag())","PaddingBottom":"@20"},{"Right":"@5","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","type":"Stack","Left":"@5"}],"type":"Stack","Width":"@200","Original":"@V"}}}}},{"StrokeStyle":"@#dfe4e7","type":"Stack","Classes":"@BorderRect","Left":"@5","Right":"@5"},{"type":"Grid","PaddingRight":"@20","PaddingTop":"@10","PaddingBottom":"@10","Column":"@1*,1*","Row":"@1*","PaddingLeft":"@20","children":[{"type":"Text","Text":"$共{stat.Data.checkplan.list.count}条$"},{"Slots":{"item":{"children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Left":"@4","Text":"@更多","type":"Text"}],"type":"Stack","Name":"LoadMoreButton_Stack"}},"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","HAlign":"@Right","@Click":"stat.Call($loadMore$,$checkplan$)"}]},{"type":"Stack","StrokeStyle":"@#dfe4e7","Right":"@5","Left":"@5","Classes":"@BorderRect"},{"Classes":"@BorderRound","Bottom":"@20","HAlign":"@Center","Top":"@20","@Click":"stat.ShowModal($NewPlan$,$生成计划$,$addNewPlan$,$cancel$)","Slots":{"item":{"Path":"this.MouseIn:$addnewhover$,$addnew$","type":"Image","Name":"Button_Image"}},"type":"Button"}],"type":"Grid","Row":"@1*,0,*,0,*","Pos":"@Center","Classes":"@NormalFontlight"}],"type":"Dock","Classes":"@BorderRect","Name":"@左边","Background":"@#ffffff"},{"children":[{"Classes":"@BorderRect","HAlign":"@Right","Pos":"@Top","children":[{"type":"Stack","Top":"@4","Bottom":"@4","children":[{"Text":"@删除","type":"Button","Right":"@10","Classes":"@Button2"},{"type":"Button","Right":"@10","Text":"@打印","Classes":"@Button2"},{"Classes":"@Button2","type":"Button","Right":"@24","Text":"@导出"}]}],"type":"Stack","Background":"@#ffffff","StrokeStyle":"@#dce0e3","Name":"@工具条"},{"type":"Grid","Column":"@1*","Pos":"@Center","Row":"@1*,1*","children":[{"type":"Grid","PaddingBottom":"@20","PaddingRight":"@24","children":[{"Bottom":"@17","children":[{"type":"Text","Text":"@计划信息","VAlign":"@Center"},{"Classes":"@BorderRect","Left":"@10","@Change":"stat.Call($setProperty$,$checkplanitems$,$f_address$, e.Value)","type":"Input","Width":"@150","PlaceHolder":"@住户地址"},{"type":"Input","Left":"@10","Width":"@150","Classes":"@BorderRect","PlaceHolder":"@其他条件"},{"Classes":"@DropDownButton BorderRound","Left":"@10","Slots":{"item":{"Name":"DropDownButton_Image","Classes":"@DropDownButtonImg","type":"Image"}},"type":"Button"},{"Slots":{"item":{"Classes":"@SearchButtonImg","type":"Image","Name":"SearchButton_Image"}},"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchPlanItem$)"}],"type":"Stack"},{"Data":"stat.Data.checkplanitems.list.data","Classes":"@BorderRect","@DragStart":"stat.SetDrag($item$)","Slots":{"head":{"type":"Grid","Row":"@1*","children":[{"children":[{"type":"CheckBox"},{"Text":"@全选","type":"Text","Left":"@9"}],"type":"Stack","HAlign":"@Center","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","Text":"@用户编号","type":"Text"},{"type":"Text","Text":"@用户名称","Classes":"@DataGridHead"},{"type":"Text","Classes":"@DataGridHead","Text":"@用户类型"},{"type":"Text","Text":"@小区名称","Classes":"@DataGridHead"},{"Text":"@状态","type":"Text","Classes":"@DataGridBody"},{"Classes":"@DataGridHead","type":"Text","Text":"@地址"}]},"item":{"children":[{"type":"CheckBox","Classes":"@DataGridBody","HAlign":"@Center","IsSelected":"stat.Data.checkplanitems.check.Call($isChecked$, data.itemid)","@Change":"stat.Call($addParam$, $checkplanitems$, data.itemid)"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_userinfo_code"},{"type":"Text","Text":"data.f_user_name","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_user_type","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_residential_area","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_state"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_address"}],"type":"Grid","Row":"@1*","@Drop":"stat.Call($dragtoPlanItem$,data.id,data.f_filialeid,stat.GetDrag())"}},"type":"DataGrid","Column":"@100,100,100,100,100,100,1*"},{"type":"Grid","Top":"@12","Row":"@1*","Column":"@*,*,1*,*","PaddingTop":"@5","Classes":"@NormalFontlight","children":[{"Text":"@显示1~22行","VAlign":"@Center","type":"Text"},{"Left":"@20","VAlign":"@Center","Text":"$共{stat.Data.checkplanitems.list.count}条$","type":"Text"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplanitems$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"Path":"@doubledown","type":"Image","VAlign":"@Bottom"},{"Text":"@更多","type":"Text","Left":"@4"}]}}}]}],"PaddingLeft":"@10","Column":"@1*","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7","Row":"@*,1*,*","PaddingTop":"@12"},{"PaddingLeft":"@10","Column":"@1*","PaddingBottom":"@20","PaddingTop":"@12","type":"Grid","StrokeStyle":"@#dfe4e7","Row":"@*,1*,*","PaddingRight":"@24","Classes":"@BorderRect","children":[{"type":"Stack","Bottom":"@17","children":[{"type":"Text","Text":"@用户信息","VAlign":"@Center"},{"type":"Input","Width":"@150","PlaceHolder":"@用户编号","Classes":"@BorderRect","Left":"@10","@Change":"stat.Call($setProperty$,$user$,$userinfocode$, e.Value)"},{"type":"Input","Left":"@10","Width":"@150","PlaceHolder":"@其它条件","Classes":"@BorderRect"},{"type":"Button","Classes":"@DropDownButton BorderRound","Left":"@10","Slots":{"item":{"Classes":"@DropDownButtonImg","type":"Image","Name":"DropDownButton_Image"}}},{"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchUser$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}}}]},{"Column":"@100,100,100,100,100,150,1*","Data":"stat.Data.user.list.data","@DragStart":"stat.SetDrag($user$)","@Drop":"stat.Call($delPlanItem$,stat.GetDrag())","Slots":{"item":{"type":"Grid","Row":"@*","children":[{"VAlign":"@Center","IsSelected":"stat.Data.user.check.Call($isChecked$, data.id)","HAlign":"@Center","Classes":"@DataGridBody","@Change":"stat.Call($addParam$, $user$, data.id)","type":"CheckBox"},{"Text":"data.f_userinfo_code","Classes":"@DataGridBody","type":"Text"},{"Text":"data.f_user_name","type":"Text","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"@无"},{"type":"Text","Text":"data.f_residential_area","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_plan_name"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_address"}]},"head":{"Row":"@*","children":[{"Classes":"@DataGridHead","children":[{"type":"CheckBox","@Change":"stat.Call($changeCheckAll$, $user$)"},{"type":"Text","Text":"@全选","Left":"@9"}],"type":"Stack"},{"Classes":"@DataGridHead","Text":"@用户编号","type":"Text"},{"type":"Text","Text":"@用户名称","Classes":"@DataGridHead"},{"Text":"@用户类型","Classes":"@DataGridHead","type":"Text"},{"Classes":"@DataGridHead","type":"Text","Text":"@区/县"},{"type":"Text","Text":"@所属计划","Classes":"@DataGridHead"},{"type":"Text","Text":"@地址","Classes":"@DataGridHead"}],"type":"Grid"}},"type":"DataGrid","Classes":"@BorderRect"},{"type":"Grid","Row":"@1*","Column":"@*,*,1*,*","Classes":"@NormalFontlight","Top":"@12","children":[{"type":"Text","Text":"@显示2~22行"},{"type":"Text","Left":"@20","Text":"$共{stat.Data.user.list.count}条$"},{"type":"Text","Text":"@ "},{"Text":"@加载更多","@Click":"stat.Call($loadMore$,$user$)","Slots":{"item":{"type":"Stack","children":[{"Path":"@doubledown","VAlign":"@Bottom","type":"Image"},{"type":"Text","Left":"@4","Text":"@更多"}]}},"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$"}]}]}]}],"type":"Dock","Name":"@右边","Background":"@#f5f7f9","Classes":"@BorderRect"}]},"Drag":{"SearchPlan":{"Column":"@1*","children":[{"Classes":"@BorderRound NormalFont PopupSearch","Column":"@70,170","PaddingLeft":"@10","PaddingRight":"@20","children":[{"type":"Text","PaddingBottom":"@6","Classes":"@GridLabel","Text":"@计划名称"},{"type":"Input","Value":"stat.Data.checkplan.search.model.f_plan_name","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_name$, e.Value)"},{"Text":"@计划年份","type":"Text","Classes":"@GridLabel"},{"Top":"@10","Classes":"@SelectWhite BorderRound","type":"Select"},{"Classes":"@GridLabel","type":"Text","Text":"@计划月份"},{"Top":"@10","Bottom":"@1","Classes":"@SelectWhite BorderRound","type":"Select"},{"type":"Text","Text":"@是否共享","Classes":"@GridLabel"},{"type":"Select","Data":"stat.Data.isAndNot","TemplateName":"@RadioButton","Original":"@H"},{"Classes":"@GridLabel","Text":"@安检员","type":"Text"},{"Classes":"@SelectWhite BorderRound","Top":"@10","type":"Select"},{"Top":"@20","ColSpan":"@2","children":[{"Classes":"@Button2","Right":"@50","@Click":"stat.RestorePopup(this,e.draw)","type":"Button","Text":"@取消"},{"type":"Button","Text":"@查询","FillStyle":"@#ffffff","Classes":"@Button","@Click":"stat.Call($loadCheckPlan$),stat.RestorePopup(this,e.draw)"}],"type":"Stack","HAlign":"@Center"}],"type":"Grid","PaddingBottom":"@10","PaddingTop":"@10","Row":"@*,*,*,*,*,*"}],"type":"Grid","Classes":"@PopupSearch PopupShadow","Row":"@1*"},"start":{"type":"Text","Text":"@start"},"drag":{"type":"Text","Text":"@drag"},"NewPlan":{"children":[{"Column":"@80,170,80,170,80,170","Background":"@#ffffff","PaddingRight":"@36","PaddingTop":"@20","Row":"@*,*","children":[{"HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Text":"@* 计划名称"},{"@Change":"stat.Call($setNewPlan$, $f_plan_name$, e.Value)","type":"Input"},{"Text":"@计划年份","HAlign":"@Right","VAlign":"@Center","Right":"@10","type":"Text"},{"Classes":"@SelectWhite BorderRound","Data":"stat.Call($years$)","@Change":"stat.Call($setNewPlan$, $f_plan_year$, e.Value)","type":"Select"},{"type":"Text","VAlign":"@Center","Right":"@10","Text":"@计划月份","HAlign":"@Right"},{"type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Call($months$)","@Change":"stat.Call($setNewPlan$, $f_plan_month$, e.Value)"},{"HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Text":"@是否共享","Top":"@10"},{"type":"Select","Data":"stat.Data.isAndNot","Original":"@H","TemplateName":"@RadioButton"},{"Text":"@安检员","HAlign":"@Right","type":"Text","VAlign":"@Center","Top":"@10","Right":"@10"},{"type":"Select","Classes":"@SelectWhite BorderRound","Top":"@10"}],"PaddingBottom":"@20","Classes":"@NormalFontlight","Pos":"@Center","PaddingLeft":"@20","type":"Grid"}],"type":"Grid","Row":"@*","Column":"@*"}}}
    */
//
  /*

  {"Drag":{"SearchPlan":{"type":"Grid","Classes":"@PopupSearch PopupShadow","Row":"@1*","Column":"@1*","children":[{"PaddingBottom":"@10","PaddingTop":"@10","children":[{"Classes":"@GridLabel","Text":"@计划名称","PaddingBottom":"@6","type":"Text"},{"type":"Input","Value":"stat.Data.checkplan.search.model.f_plan_name","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_name$, e.Value)"},{"type":"Text","Text":"@计划年份","Classes":"@GridLabel"},{"@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_year$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Call($years$)","Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_year"},{"Text":"@计划月份","type":"Text","Classes":"@GridLabel"},{"Bottom":"@1","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_month$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Call($months$)","Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_month"},{"type":"Text","Text":"@是否共享","Classes":"@GridLabel"},{"@Change":"stat.Call($isAndNotChange$, e.Value)","type":"Select","VAlign":"@Center","Data":"stat.Data.isAndNot","TemplateName":"@RadioButton","Selected":"stat.Data.sIsAndNotSelect","Original":"@H"},{"type":"Text","Text":"@安检员","Classes":"@GridLabel"},{"Selected":"stat.Data.checkplan.search.model.checkername","Top":"@10","Data":"stat.Data.checker","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($fieldChange$,$checkplan$,e.Value.self)","Slots":{"item":{"type":"Stack","Height":"@30","children":[{"type":"Text","VAlign":"@Center","Left":"@10","Text":"data.name"}]}},"type":"Select"},{"type":"Text","Classes":"@GridLabel","Text":"@安检类型"},{"Top":"@10","Selected":"stat.Data.checkplan.search.model.safechecktype","Data":"stat.Data.safecheckTypeList","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setProperty$, $checkplan$, $safechecktype$, e.Value)","type":"Select"},{"type":"Stack","Top":"@20","ColSpan":"@2","HAlign":"@Center","children":[{"type":"Button","Classes":"@Button2","Right":"@50","Text":"@取消","@Click":"stat.RestorePopup(this,e.draw)"},{"type":"Button","FillStyle":"@#ffffff","Classes":"@Button","Text":"@查询","@Click":"stat.Call($loadCheckPlan$,$$),stat.RestorePopup(this,e.draw)"}]}],"type":"Grid","Row":"@*,*,*,*,*,*,*","Classes":"@BorderRound NormalFont PopupSearch","PaddingRight":"@20","Column":"@70,170","PaddingLeft":"@10"}]},"start":{"Path":"@drag","type":"Image"},"condition":{"type":"Grid","Column":"@1*","Classes":"@PopupSearch PopupShadow","Row":"@1*","children":[{"Background":"@#fff","Column":"@*","Classes":"@BorderRound NormalFont PopupSearch","Row":"@*,*","children":[{"type":"Scroll","Height":"@200","Slots":{"item":{"type":"List","Data":"stat.Data.conditionList","Name":"@新","Slots":{"item":{"PaddingRight":"@10","Row":"@*","type":"Grid","PaddingLeft":"@10","Column":"@*,*,*,*,*","PaddingBottom":"@10","PaddingTop":"@10","Background":"@#fff","children":[{"Selected":"data.selectitem","Right":"@8","Background":"@#fff","@Change":"stat.Call($conditionListChange$,$conditionList$,index,$selectitem$,e.Value.self)","Slots":{"item":{"children":[{"Left":"@10","VAlign":"@Center","type":"Text","Text":"data.checkname"}],"type":"Stack","Height":"@30"}},"type":"Select","Width":"@150","StrokeStyle":"@#dfe4e7","Data":"stat.Data.conditionJson","Text":"this.Selected.checkname","Classes":"@SelectGray BorderRound"},{"type":"Input","Value":"data.selectValue","Width":"@150","if":"data.selectitem.type==$input$","@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value)"},{"ShowDateAndTime":"@All","Classes":"@SelectGray BorderRound","Date":"data.selectValue","StrokeStyle":"@#dfe4e7","Width":"@150","Background":"@#fff","if":"data.selectitem.type==$date$","@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value)","type":"DateInput"},{"type":"Select","Selected":"data.selectValue","Width":"@150","Classes":"@SelectGray BorderRound","@Change":"stat.Call($conditionListChange$,$conditionList$,data.num,$selectValue$,e.Value),stat.Call($conditionChangeFun$,data.selectitem.column)","StrokeStyle":"@#dfe4e7","if":"data.selectitem.type==$selector$","Data":"data.selectitem.options","Background":"@#fff"},{"type":"Image","VAlign":"@Center","Path":"@littledelete","Left":"@8","@Click":"stat.Call($deletecondition$,$conditionList$,$user$,index)"}]}}}}},{"@Click":"stat.Call($addconditionList$,$conditionList$)","type":"Image","HAlign":"@Center","Bottom":"@10","VAlign":"@Center","Path":"@littleadd"}],"type":"Grid"}]},"condition1":{"Row":"@1*","Classes":"@PopupSearch PopupShadow","children":[{"Column":"@*","Row":"@*,*","children":[{"type":"Scroll","Height":"@200","Slots":{"item":{"Name":"@新","Data":"stat.Data.planitemconditionList","Slots":{"item":{"Row":"@*","PaddingRight":"@10","PaddingBottom":"@10","Column":"@*,*,*,*,*","PaddingTop":"@10","type":"Grid","children":[{"@Change":"stat.Call($conditionListChange$,$planitemconditionList$,index,$selectitem$,e.Value.self)","Slots":{"item":{"children":[{"Left":"@10","VAlign":"@Center","type":"Text","Text":"data.checkname"}],"type":"Stack","Height":"@30"}},"Background":"@#fff","Classes":"@SelectGray BorderRound","Data":"stat.Data.planitemconditionJson","Selected":"data.selectitem","StrokeStyle":"@#dfe4e7","Text":"this.Selected.checkname","type":"Select","Width":"@150","Right":"@8"},{"Width":"@150","Value":"data.selectValue","@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","type":"Input","if":"data.selectitem.type==$input$"},{"type":"DateInput","Width":"@150","@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","if":"data.selectitem.type==$date$","Classes":"@SelectGray BorderRound","Date":"data.selectValue","Background":"@#fff","StrokeStyle":"@#dfe4e7","ShowDateAndTime":"@All"},{"@Change":"stat.Call($conditionListChange$,$planitemconditionList$,data.num,$selectValue$,e.Value)","type":"Select","Data":"data.selectitem.options","Width":"@150","StrokeStyle":"@#dfe4e7","Classes":"@SelectGray BorderRound","Background":"@#fff","Selected":"data.selectValue","if":"data.selectitem.type==$selector$"},{"VAlign":"@Center","Path":"@littledelete","@Click":"stat.Call($deletecondition$,$planitemconditionList$,$checkplanitems$,index)","type":"Image","Left":"@8"}],"Background":"@#fff","PaddingLeft":"@10"}},"type":"List"}}},{"Path":"@littleadd","@Click":"stat.Call($addconditionList$,$planitemconditionList$)","type":"Image","Bottom":"@10","HAlign":"@Center","VAlign":"@Center"}],"type":"Grid","Classes":"@BorderRound NormalFont PopupSearch"}],"type":"Grid","Column":"@1*"},"drag":{"Text":"@ ","type":"Text"},"NewPlan":{"type":"Grid","Row":"@*","Column":"@*","children":[{"children":[{"Right":"@10","Text":"@* 计划名称","HAlign":"@Right","type":"Text","VAlign":"@Center"},{"@Change":"stat.Call($setNewPlan$, $f_plan_name$, e.Value)","type":"Input"},{"HAlign":"@Right","VAlign":"@Center","Right":"@10","Text":"@计划年份","type":"Text"},{"type":"Select","Data":"stat.Call($years$)","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPlan$, $f_plan_year$, e.Value)"},{"VAlign":"@Center","Right":"@10","Text":"@计划月份","HAlign":"@Right","type":"Text"},{"Data":"stat.Call($months$)","@Change":"stat.Call($setNewPlan$, $f_plan_month$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound"},{"VAlign":"@Center","Right":"@10","Text":"@是否共享","type":"Text","Top":"@10","HAlign":"@Right"},{"Selected":"stat.Data.isShare","Data":"stat.Data.isAndNot","Original":"@H","@Change":"stat.Call($fieldChange$, $isShare$, e.Value)","type":"Select","TemplateName":"@RadioButton"},{"Top":"@10","Right":"@10","if":"stat.Data.isShare==$否$:true,false","Text":"@安检员","type":"Text","HAlign":"@Right","VAlign":"@Center"},{"@Change":"stat.Call($fieldChange$,$createPlan$,e.Value.self)","Slots":{"item":{"children":[{"VAlign":"@Center","type":"Text","Text":"data.name","Left":"@10"}],"type":"Stack","Height":"@30"}},"type":"Select","Top":"@10","Selected":"stat.Data.newPlan.f_checker==$$:$请选择安检员$,stat.Data.newPlan.f_checker","Data":"stat.Data.checker","Classes":"@SelectWhite BorderRound","if":"stat.Data.isShare==$否$:true,false"},{"Text":"@安检类型","HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Top":"@10"},{"@Change":"stat.Call($setNewPlan$, $f_safecheck_type$, e.Value)","type":"Select","Selected":"stat.Data.newPlan.f_checker==$$:$请选择安检员$,stat.Data.newPlan.f_safecheck_type","Data":"stat.Data.safecheckList","Classes":"@SelectWhite BorderRound","Top":"@10"}],"Column":"@80,170,80,170,80,170","PaddingLeft":"@20","PaddingTop":"@20","PaddingRight":"@36","Background":"@#ffffff","Pos":"@Center","Classes":"@NormalFontlight","PaddingBottom":"@20","type":"Grid","Row":"@*,*"}]},"upPlan":{"children":[{"PaddingLeft":"@20","Background":"@#ffffff","PaddingRight":"@36","children":[{"VAlign":"@Center","Text":"@* 计划名称","Right":"@10","type":"Text","HAlign":"@Right"},{"type":"Input","Value":"stat.Data.plan.f_plan_name","@Change":"stat.Data.Call($setPlan$,$f_plan_name$,e.Value) "},{"VAlign":"@Center","type":"Text","Text":"@安检员","Right":"@10","HAlign":"@Right"},{"@Change":"stat.Call($fieldChange$,$upPlan$,e.Value.self)","Slots":{"item":{"type":"Stack","Height":"@30","children":[{"Left":"@10","VAlign":"@Center","type":"Text","Text":"data.name"}]}},"type":"Select","Classes":"@SelectWhite BorderRound","Selected":"stat.Data.plan.f_checker","Data":"stat.Data.checkersname"},{"HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10","Text":"@计划年份","Right":"@10"},{"type":"Select","Data":"stat.Data.Call($years$)","Top":"@10","Selected":"stat.Data.plan.f_plan_year","Classes":"@SelectWhite BorderRound","@Change":"stat.Data.Call($setPlan$,$f_plan_year$,e.Value) "},{"Text":"@计划月份","Right":"@10","HAlign":"@Right","VAlign":"@Center","Top":"@10","type":"Text"},{"Classes":"@SelectWhite BorderRound","Top":"@10","@Change":"stat.Data.Call($setPlan$,$f_plan_month$,e.Value) ","type":"Select","Data":"stat.Data.Call($months$)","Selected":"stat.Data.plan.f_plan_month"}],"type":"Grid","Classes":"@NormalFontlight","Row":"@*,*","PaddingBottom":"@20","Column":"@80,170,80,170","PaddingTop":"@20"}],"type":"Grid","Row":"@*","Column":"@*"},"suppPaper":{"Column":"@280,280,331","Classes":"@PopupSearch PopupShadow","children":[{"type":"Grid","Column":"@1*","Row":"@30,1*","Classes":"@BorderRect","children":[{"HAlign":"@Center","type":"Text","Text":"@用户基本信息","VAlign":"@Center"},{"PaddingTop":"@10","Column":"@70,170","children":[{"PaddingBottom":"@6","Text":"@用户地址","Classes":"@GridLabel","type":"Text"},{"Bottom":"@5","Classes":"@SelectWhite","Value":"stat.Data.suppplanitem.f_address","@Change":"stat.Call($setNewPaper$,$f_address$,e.Value)","type":"Input","Top":"@5"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@证件号"},{"Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_idnumber$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_idnumber"},{"Classes":"@GridLabel","PaddingBottom":"@6","type":"Text","Text":"@电话号码"},{"Value":"stat.Data.suppplanitem.f_user_phone","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_user_phone$,e.Value)","type":"Input","Bottom":"@5"},{"PaddingBottom":"@6","Text":"@用户性质","Classes":"@GridLabel","type":"Text"},{"type":"Input","Value":"stat.Data.suppplanitem.f_userproperties","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_userproperties$,e.Value)"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@区/县"},{"type":"Input","Bottom":"@5","Value":"stat.Data.suppplanitem.f_area","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_area$,e.Value)"},{"Text":"@备注信息","Classes":"@GridLabel","PaddingBottom":"@6","type":"Text"},{"Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_comments","@Change":"stat.Call($setNewPaper$,$f_comments$,e.Value)","type":"Input"},{"Text":"@楼号","type":"Text","Classes":"@GridLabel","PaddingBottom":"@6"},{"type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_building","@Change":"stat.Call($setNewPaper$,$f_building$,e.Value)"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@楼层"},{"Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_floor","@Change":"stat.Call($setNewPaper$,$f_floor$,e.Value)","type":"Input"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","Text":"@小区"},{"Top":"@5","@Change":"stat.Call($setNewPaper$,$f_residential_area$,e.Value)","type":"Input","Bottom":"@5","Value":"stat.Data.suppplanitem.f_residential_area"},{"type":"Text","Classes":"@GridLabel","PaddingBottom":"@6","Text":"@街道"},{"Value":"stat.Data.suppplanitem.f_street","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_street$,e.Value)","type":"Input"},{"PaddingBottom":"@6","Text":"@单元","Classes":"@GridLabel","type":"Text"},{"type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_unit","@Change":"stat.Call($setNewPaper$,$f_unit$,e.Value)"},{"Text":"@用户名","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6"},{"type":"Input","Value":"stat.Data.suppplanitem.f_user_name","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_user_name$,e.Value)"},{"Text":"@用户类型","type":"Text","Classes":"@GridLabel","PaddingBottom":"@6"},{"type":"Input","Value":"stat.Data.suppplanitem.f_user_type","Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_user_type$,e.Value)"},{"Classes":"@GridLabel","PaddingBottom":"@6","Text":"@用户编号","type":"Text"},{"Top":"@5","Bottom":"@5","@Change":"stat.Call($setNewPaper$,$f_userinfo_code$,e.Value)","type":"Input","Value":"stat.Data.suppplanitem.f_userinfo_code"},{"Text":"@门牌号","Classes":"@GridLabel","type":"Text","PaddingBottom":"@6"},{"@Change":"stat.Call($setNewPaper$,$f_room$,e.Value)","type":"Input","Top":"@5","Bottom":"@5","Value":"stat.Data.suppplanitem.f_room"}],"PaddingBottom":"@10","Classes":"@BorderRound NormalFont PopupSearch","Row":"@35,35,35,35,35,35,35,35,35,35,35,35,35,35,35","PaddingRight":"@20","PaddingLeft":"@10","type":"Grid"}]},{"type":"Grid","Row":"@30,1*","Column":"@1*","children":[{"type":"Text","HAlign":"@Center","VAlign":"@Center","Text":"@安检状况"},{"PaddingBottom":"@10","Classes":"@BorderRound NormalFont PopupSearch","Column":"@70,170","Row":"@35,35,35,35,35,35,35,35,35,35,35,35,35,35,35","type":"Grid","children":[{"PaddingBottom":"@6","Text":"@到达时间","Classes":"@GridLabel","type":"Text"},{"Top":"@5","Bottom":"@5","Date":"stat.Data.suppplanitem.f_onsite_time","@Change":"stat.Call($setNewPaper$,$f_onsite_time$,e.Value)","type":"DateInput","Classes":"@SelectWhite BorderRound"},{"type":"Text","Text":"@离开时间","Classes":"@GridLabel","PaddingBottom":"@6"},{"Top":"@5","Bottom":"@5","Date":"stat.Data.suppplanitem.f_offsite_time","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPaper$,$f_offsite_time$,e.Value)","type":"DateInput"},{"PaddingBottom":"@6","Text":"@入户状态","Classes":"@GridLabel","type":"Text"},{"type":"Select","Bottom":"@5","Selected":"stat.Data.suppplanitem.f_entry_status","Data":"stat.Data.userState","Classes":"@SelectWhite BorderRound","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_entry_status$,e.Value)"},{"PaddingBottom":"@6","type":"Text","Text":"@燃气使用","Classes":"@GridLabel"},{"Classes":"@SelectWhite BorderRound","Top":"@5","@Change":"stat.Call($setNewPaper$,$f_usegas$,e.Value)","type":"Select","Bottom":"@5","Selected":"stat.Data.suppplanitem.f_usegas","Data":"stat.Data.gasUse"},{"PaddingBottom":"@6","Classes":"@GridLabel","Text":"@安检员","type":"Text"},{"@Change":"stat.Call($setNewPaper$,$f_checker_name$,e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Top":"@5","Bottom":"@5","Selected":"stat.Data.suppplanitem.f_checker_name","Data":"stat.Data.checkersname"}],"PaddingLeft":"@10","PaddingTop":"@10","PaddingRight":"@20"}]},{"Column":"@1*","children":[{"type":"Text","VAlign":"@Center","Text":"@安检选项","HAlign":"@Center"},{"type":"Grid","PaddingTop":"@10","PaddingBottom":"@10","Row":"@*","children":[{"type":"Scroll","Height":"@525","Slots":{"item":{"type":"List","Data":"stat.Data.listbutton","Slots":{"item":{"Row":"@35","children":[{"Row":"@1*","Column":"@100,200","children":[{"Classes":"@GridLabel","Text":"data.lname","Width":"@100","Pos":"@Center","type":"Text"},{"if":"data.type==$string$:true,false","Width":"@200","Top":"@5","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","type":"Input","Bottom":"@5","Value":"data.selected","Height":"@25"},{"Classes":"@SelectWhite BorderRound","if":"data.type==$date$:true,false","Bottom":"@5","Date":"data.selected","Width":"@200","Height":"@25","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","type":"DateInput","Top":"@5"},{"if":"data.type==$selector$:true,false","Top":"@5","Width":"@200","type":"Select","Height":"@25","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($changeSelected$,data.lname,data.mname,e.Value)","Data":"stat.Data.Call($reoption$,data.lname,data.mname)","Bottom":"@5","Selected":"data.selected"}],"type":"Grid"}],"type":"Grid","Column":"@1*","Top":"@5","Bottom":"@5"}}}}}],"Column":"@1*","PaddingRight":"@20","PaddingLeft":"@10","Classes":"@BorderRound NormalFont PopupSearch"}],"type":"Grid","Row":"@30,1*"}],"type":"Grid","Row":"@1*"}},"template":{"Row":"@1*","Background":"@#f5f7f9","Column":"@230,1*","children":[{"Classes":"@BorderRect","Name":"@左边","Background":"@#ffffff","StrokeStyle":"@#dce0e3","children":[{"type":"Grid","Bottom":"@1","PaddingBottom":"@4","PaddingLeft":"@5","StrokeStyle":"@#dce0e3","PaddingTop":"@3","Name":"@上边","Classes":"@BorderRect","Row":"@*,*","PaddingRight":"@5","Column":"@*,1*","Pos":"@Top","children":[{"Text":"@查询","@MouseDown":"stat.Popup($SearchPlan$,stat,this,e.draw)","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg"}},"type":"Button"},{"Left":"@10","Classes":"@SelectGray BorderRound","Background":"@#fff","StrokeStyle":"@#dfe4e7","@Change":"stat.Call($loadCheckPlan$,e.Value)","type":"Select","Selected":"$按时间降序$","Data":"stat.Data.orderList"},{"Text":"@","type":"Text"},{"type":"Stack","PaddingBottom":"@4","PaddingTop":"@8","children":[{"Text":"@下发","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","Left":"@110","@Click":"stat.Call($sendCheckPlan$)","type":"Button"},{"type":"Button","Left":"@12","Text":"@删除","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","@Click":"stat.Call($delCheckPlan$)"}]}]},{"type":"Grid","Row":"@1*,0,*,0,*","Pos":"@Center","Classes":"@NormalFontlight","Column":"@1*","children":[{"type":"Scroll","@DragOver":"stat.DragOver()","Slots":{"item":{"@Change":"stat.Call($openPlan$, e.Value.self)","Slots":{"item":{"Original":"@V","Background":"data.id==stat.Data.SelectedPlan: $#d8eafb$, this.MouseIn: $#f5f6f7$, $$","PaddingBottom":"@1","Width":"@230","children":[{"children":[{"VAlign":"@Center","children":[{"type":"CheckBox","if":"data.f_issued==$已下发$:false,true","IsSelected":"stat.Data.checkplan.check.Call($isChecked$, data.id)","@Change":"stat.Call($addParam$, $checkplan$, data.id)"}],"type":"Stack","RowSpan":"@4"},{"Font":"@15px 微软雅黑","Text":"data.f_plan_name","type":"Text","ColSpan":"@3"},{"Classes":"@BorderRound","HAlign":"@Center","@Click":"stat.Data.Call($setPlanVal$,data.self),stat.ShowModal($upPlan$,$修改计划$,$upCheckPlan$,$cancel$)","Slots":{"item":{"Path":"@edit","type":"Image","Name":"Button_Image"}},"type":"Button"},{"FillStyle":"@#4792de","type":"Text","Text":"data.f_issued","Top":"@12"},{"children":[{"Classes":"@BorderRound","PaddingBottom":"@2","Text":"data.f_checker!=$$:data.f_checker,$共享","type":"Text","Font":"@12px 微软雅黑","PaddingTop":"@2","FillStyle":"@#4792de","ColSpan":"@3","Background":"@#ffffff","Radius":"@8","PaddingRight":"@5","StrokeStyle":"@#cfdce8","PaddingLeft":"@5"}],"type":"Stack","Top":"@10","ColSpan":"@3","HAlign":"@Right"},{"Classes":"@NormalFontLighter","Top":"@12","ColSpan":"@2","type":"Text","Text":"${data.f_plan_year}-{data.f_plan_month}$"},{"Left":"@10","Classes":"@NormalFontLighter","type":"Text","Text":"@总","Top":"@12"},{"HAlign":"@Right","Text":"data.plan_count","Top":"@12","Right":"@10","Classes":"@NormalFontHeavy","ColSpan":"@1","type":"Text","Name":"@总数"},{"type":"Text","Classes":"@NormalFontLighter","Text":"@已检","Top":"@12"},{"Left":"@5","Classes":"@NormalFontHeavy","Top":"@12","type":"Text","Text":"data.checked"},{"type":"Text","Top":"@12","Text":"@未检","Classes":"@NormalFontLighter","Left":"@10"},{"type":"Text","Classes":"@NormalFontHeavy","Text":"data.unchecked","HAlign":"@Right","Top":"@12","Right":"@10"}],"PaddingRight":"@10","Row":"@*,*,*,*","@Drop":"stat.Call($dragtoPlan$,data.id,data.f_safecheck_type,data.f_filialeid,stat.GetDrag())","PaddingBottom":"@20","Column":"@25,42,1*,42,1*","PaddingLeft":"@10","PaddingTop":"@20","type":"Grid"},{"StrokeStyle":"@#dce0e3","Classes":"@BorderRect","type":"Stack","Left":"@5","Right":"@5"}],"type":"Stack"}},"type":"List","Data":"stat.Data.checkplan.list.data","Name":"@安检计划"}}},{"Left":"@5","type":"Stack","Right":"@5","StrokeStyle":"@#dfe4e7","Classes":"@BorderRect"},{"type":"Grid","PaddingRight":"@20","PaddingTop":"@10","PaddingBottom":"@10","Column":"@1*,1*","Row":"@1*","PaddingLeft":"@20","children":[{"type":"Text","Text":"$共{stat.Data.checkplan.list.count}条$"},{"HAlign":"@Right","@Click":"stat.Call($loadMore$,$checkplan$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Left":"@4","Text":"@更多","type":"Text"}]}},"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$"}]},{"type":"Stack","Left":"@5","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7","Right":"@5"},{"@Click":"stat.ShowModal($NewPlan$,$生成计划$,$addNewPlan$,$cancel$)","Slots":{"item":{"Name":"Button_Image","Path":"this.MouseIn:$addnewhover$,$addnew$","type":"Image"}},"type":"Button","Bottom":"@20","HAlign":"@Center","Top":"@20","Classes":"@BorderRound"}]}],"type":"Dock"},{"Background":"@#f5f7f9","children":[{"Name":"@工具条","Classes":"@BorderRect","children":[{"type":"Stack","Top":"@4","Bottom":"@4","children":[{"Height":"@30","type":"Stack"}]}],"type":"Stack","HAlign":"@Right","Pos":"@Top","Background":"@#ffffff","StrokeStyle":"@#dce0e3"},{"children":[{"type":"Grid","PaddingBottom":"@20","Row":"@*,1*,*","PaddingLeft":"@10","Column":"@1*","StrokeStyle":"@#dfe4e7","PaddingRight":"@24","Classes":"@BorderRect","PaddingTop":"@12","children":[{"type":"Stack","Bottom":"@17","children":[{"type":"Text","VAlign":"@Center","Text":"@计划信息"},{"Classes":"@BorderRect","Left":"@10","@Change":"stat.Call($setProperty$,$checkplanitems$,$usercode$, e.Value)","type":"Input","Width":"@150","PlaceHolder":"@用户编号"},{"type":"Input","Width":"@150","Classes":"@BorderRect","PlaceHolder":"@用户名称","Left":"@10","@Change":"stat.Call($setProperty$,$checkplanitems$,$username$, e.Value)"},{"@Change":"stat.Call($setProperty$,$checkplanitems$,$f_address$, e.Value)","type":"Input","PlaceHolder":"@用户地址","Width":"@150","Left":"@10"},{"type":"Button","Classes":"@DropDownButton BorderRound","Left":"@10","@Click":"stat.Popup($condition1$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Name":"DropDownButton_Image","Classes":"@DropDownButtonImg"}}},{"@Click":"stat.Call($searchPlanItem$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button","Classes":"@SearchButton BorderRound","Left":"@10"}]},{"Data":"stat.Data.checkplanitems.list.data","@DragOver":"stat.DragOver()","@DragStart":"stat.SetDrag($item$)","@Drop":"stat.Call($dragtoPlanItem$,stat.Data.checkplanitems.search.model.f_plan_id,stat.Data.plan.f_safecheck_type,stat.GetDrag())","Slots":{"item":{"Row":"@1*","children":[{"@Change":"stat.Call($addParam$, $checkplanitems$, data.f_check_item_id)","type":"CheckBox","HAlign":"@Center","IsSelected":"stat.Data.checkplanitems.check.Call($isChecked$, data.f_check_item_id)","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","Text":"data.f_userinfo_code","type":"Text"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_user_name"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_user_type"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_residential_area"},{"Text":"data.f_state","type":"Text","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_address","Classes":"@DataGridBody"},{"HAlign":"@Center","Height":"@28","VAlign":"@Center","Classes":"@BorderRect","children":[{"type":"Button","Right":"@10","Text":"@补录","Classes":"@Button2","if":"data.f_state==$未检$:false,false","@Click":"stat.DrawModal($suppPaper$,$补录$,$addnewPaper$,$cancel$,e.draw),stat.Call($getselector$),stat.Call($suppfdevice$),stat.Call($fieldChange$,$suppplanitem$,data.self)"},{"Classes":"@Button2","if":"stat.Data.Call($isUpdate$,data.f_state,data.f_supplement_tag):false,false","@Click":"stat.DrawModal($suppPaper$,$修改$,$updatePaper$,$cancel$,e.draw),stat.Call($getselector$),stat.Call($getPaper$,data.f_check_item_id)","type":"Button","Text":"@修改"}],"type":"Stack","StrokeStyle":"@#dfe4e7"}],"type":"Grid"},"head":{"type":"Grid","Row":"@1*","children":[{"Classes":"@DataGridHead","HAlign":"@Center","children":[{"type":"CheckBox","@Change":"stat.Call($changeCheckAll$, $checkplanitems$)"},{"Left":"@9","type":"Text","Text":"@全选"}],"type":"Stack"},{"Classes":"@DataGridHead","HAlign":"@Center","Text":"@用户编号","type":"Text"},{"Classes":"@DataGridHead","Text":"@用户名称","HAlign":"@Center","type":"Text"},{"type":"Text","Text":"@用户类型","Classes":"@DataGridHead","HAlign":"@Center"},{"HAlign":"@Center","type":"Text","Text":"@小区名称","Classes":"@DataGridHead"},{"Text":"@状态","Classes":"@DataGridBody","HAlign":"@Center","type":"Text"},{"type":"Text","Text":"@地址","Classes":"@DataGridHead","HAlign":"@Center"},{"Text":"@操作","HAlign":"@Center","Classes":"@DataGridHead","type":"Text"}]}},"type":"DataGrid","Classes":"@BorderRect","Column":"@100,100,130,100,130,100,1*,1*"},{"type":"Grid","PaddingTop":"@5","Classes":"@NormalFontlight","Top":"@12","Row":"@1*","Column":"@*,*,1*,*","children":[{"type":"Stack","children":[{"VAlign":"@Center","if":"global.Length(stat.Data.checkplanitems.list.data)==0:false,true","Text":"$显示 1~{global.Length(stat.Data.checkplanitems.list.data)}$","type":"Text"}]},{"VAlign":"@Center","Text":"$共{stat.Data.checkplanitems.list.count}条$","type":"Text","Left":"@20"},{"Text":"@ ","type":"Text"},{"FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplanitems$)","Slots":{"item":{"Name":"LoadMoreButton_Stack","children":[{"VAlign":"@Bottom","Path":"@doubledown","type":"Image"},{"type":"Text","Left":"@4","Text":"@更多"}],"type":"Stack"}},"type":"Button"}]}]},{"PaddingTop":"@12","Row":"@*,1*,*","Column":"@1*","children":[{"type":"Stack","Bottom":"@17","children":[{"type":"Text","VAlign":"@Center","Text":"@用户信息"},{"type":"Input","PlaceHolder":"@用户编号","Classes":"@BorderRect","Left":"@10","Width":"@150","@Change":"stat.Call($setProperty$,$user$,$userinfocode$, e.Value)"},{"type":"Input","PlaceHolder":"@用户名称","Width":"@150","Left":"@10","@Change":"stat.Call($setProperty$,$user$,$username$, e.Value)"},{"type":"Input","Left":"@10","PlaceHolder":"@用户地址","Width":"@150","@Change":"stat.Call($setProperty$,$user$,$useraddress$, e.Value)"},{"VAlign":"@Center","Text":"@距上次安检","Left":"@10","type":"Text"},{"Left":"@5","Right":"@5","Width":"@40","@Change":"stat.Call($fieldChange$,$startday$,e.Value)","type":"Input"},{"Text":"@到","VAlign":"@Center","type":"Text"},{"Width":"@40","@Change":"stat.Call($fieldChange$,$endday$,e.Value)","type":"Input","Left":"@5"},{"Width":"@50","@Change":"stat.Call($fieldChange$,$selectTime$,e.Value)","type":"Select","Data":"stat.Data.unitTime","Selected":"stat.Data.selectTime","Classes":"@SelectGray BorderRound","Background":"@#fff","StrokeStyle":"@#dfe4e7","Left":"@5"},{"Width":"@150","StrokeStyle":"@#dfe4e7","Selected":"stat.Data.user.search.model.f_residential_area","Data":"stat.Data.residential_area","@Change":"stat.Call($selectChanged$,$user$,$f_residential_area$, e.Value)","type":"Select","Classes":"@SelectGray BorderRound","PlaceHolder":"@请选择小区","Left":"@10","Background":"@#fff"},{"type":"Button","Classes":"@DropDownButton BorderRound","Left":"@10","@Click":"stat.Popup($condition$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Name":"DropDownButton_Image","Classes":"@DropDownButtonImg"}}},{"Classes":"@SearchButton BorderRound","Left":"@10","@Click":"stat.Call($searchUser$)","Slots":{"item":{"Name":"SearchButton_Image","Classes":"@SearchButtonImg","type":"Image"}},"type":"Button"},{"type":"Button","Text":"@导入用户编号","Classes":"@Button2","Left":"@10","@Click":"stat.Call($show1$)"},{"type":"Button","Classes":"@Button2","Left":"@10","Text":"@清空用户编号","@Click":"stat.Call($clearUserInfoId$)"},{"Left":"@10","Text":"@限制购气","Classes":"@Button2","@Click":"stat.Call($LimitBuyGas$)","type":"Button"}]},{"Slots":{"item":{"type":"Grid","Row":"@*","children":[{"Classes":"@DataGridBody","VAlign":"@Center","@Change":"stat.Call($addParam$, $user$, data.id)","type":"CheckBox","IsSelected":"stat.Data.user.check.Call($isChecked$, data.id)","HAlign":"@Center"},{"Text":"data.f_userinfo_code","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Text":"data.f_user_name","Classes":"@DataGridBody"},{"type":"Text","Text":"data.f_user_type","Classes":"@DataGridBody"},{"Text":"data.f_residential_area","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Text":"data.f_plan_name","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_address"}]},"head":{"children":[{"type":"Stack","Classes":"@DataGridHead","children":[{"@Change":"stat.Call($changeCheckAll$, $user$)","type":"CheckBox"},{"Text":"@全选","Left":"@9","type":"Text"}]},{"type":"Text","Classes":"@DataGridHead","Text":"@用户编号"},{"Text":"@用户名称","type":"Text","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","Text":"@用户类型","type":"Text"},{"Text":"@小区","Classes":"@DataGridHead","type":"Text"},{"Text":"@所属计划","Classes":"@DataGridHead","type":"Text"},{"type":"Text","Text":"@地址","Classes":"@DataGridHead"}],"type":"Grid","Row":"@*"}},"type":"DataGrid","Data":"stat.Data.user.list.data","Classes":"@BorderRect","Column":"@100,100,130,100,150,150,1*","@DragOver":"stat.DragOver()","@Drop":"stat.Call($delPlanItem$,stat.GetDrag())","@DragStart":"stat.SetDrag($user$)"},{"Classes":"@NormalFontlight","Top":"@12","children":[{"type":"Stack","children":[{"type":"Text","Text":"$显示 1~{global.Length(stat.Data.user.list.data)}$","if":"global.Length(stat.Data.user.list.data)==0:false,true"}]},{"type":"Text","Left":"@20","Text":"$共{stat.Data.user.list.count}条$"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","Text":"@加载更多","@Click":"stat.Call($loadMore$,$user$)","Slots":{"item":{"children":[{"Path":"@doubledown","VAlign":"@Bottom","type":"Image"},{"Text":"@更多","type":"Text","Left":"@4"}],"type":"Stack"}}}],"type":"Grid","Row":"@1*","Column":"@*,*,1*,*"}],"type":"Grid","PaddingBottom":"@20","PaddingLeft":"@10","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7","PaddingRight":"@24"}],"type":"Grid","Row":"@1*,1*","Column":"@1*","Pos":"@Center"}],"type":"Dock","Classes":"@BorderRect","Name":"@右边"}],"type":"Grid"}}


  * {"template":{"children":[{"StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Name":"@左边","children":[{"children":[{"@MouseDown":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"Classes":"@SearchButtonImg","type":"Image","Path":"this.MouseIn:$searchhover$,$searchnormal$"}},"type":"Button","Text":"@查询","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)"},{"type":"Select","StrokeStyle":"@#dfe4e7","Selected":"$按时间降序$","Data":"stat.Data.orderList","Left":"@10","Classes":"@SelectGray BorderRound","Background":"@#fff","@Change":"stat.Call($loadCheckPlan$,e.Value)"},{"type":"Text","Text":"@"},{"type":"Stack","PaddingBottom":"@4","PaddingTop":"@8","children":[{"type":"Button","Left":"@80","Text":"@下发","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","@Click":"stat.Call($sendCheckPlan$)"},{"type":"Button","FillStyle":"this.MouseIn: $#0f69c5$, $#4792de$","Left":"@12","Text":"@删除","@Click":"stat.Call($delCheckPlan$)"}]}],"type":"Grid","PaddingRight":"@5","Name":"@上边","PaddingTop":"@3","Bottom":"@1","Classes":"@BorderRect","StrokeStyle":"@#dce0e3","PaddingLeft":"@5","Pos":"@Top","Column":"@*,1*","Row":"@*,*","PaddingBottom":"@4"},{"children":[{"type":"Scroll","Slots":{"item":{"Slots":{"item":{"PaddingBottom":"@1","children":[{"PaddingTop":"@20","Row":"@*,*,*,*","Column":"@25,42,1*,42,1*","type":"Grid","children":[{"type":"Stack","VAlign":"@Center","RowSpan":"@4","children":[{"@Change":"stat.Call($addParam$, $checkplan$, data.id)","type":"CheckBox","IsSelected":"stat.Data.checkplan.check.Call($isChecked$, data.id)","if":"data.f_issued==$是$:false,true"}]},{"type":"Text","Font":"@15px 微软雅黑","Text":"data.f_plan_name","ColSpan":"@3"},{"type":"Button","Classes":"@BorderRound","@Click":"stat.ShowModal($upPlan$,$修改计划$,$upCheckPlan$,$cancel$)","Slots":{"item":{"Name":"Button_Image","Path":"@edit","type":"Image"}}},{"type":"Text","Top":"@12","FillStyle":"@#4792de","Text":"data.f_issued==$是$:$已下发$,$未下发$"},{"ColSpan":"@3","HAlign":"@Right","Top":"@10","children":[{"PaddingTop":"@2","ColSpan":"@3","Font":"@12px 微软雅黑","StrokeStyle":"@#cfdce8","FillStyle":"@#4792de","Classes":"@BorderRound","Text":"data.f_checker!=$$:data.f_checker,$共享","PaddingBottom":"@2","PaddingLeft":"@5","type":"Text","Background":"@#ffffff","PaddingRight":"@5","Radius":"@8"}],"type":"Stack"},{"Text":"${data.f_plan_year}-{data.f_plan_month}$","Classes":"@NormalFontLighter","type":"Text","Top":"@12","ColSpan":"@2"},{"Text":"@总","Top":"@12","type":"Text","Left":"@10","Classes":"@NormalFontLighter"},{"Top":"@12","type":"Text","Classes":"@NormalFontHeavy","ColSpan":"@1","Name":"@总数","HAlign":"@Right","Text":"stat.Call($getSumItem$, data.self)"},{"Classes":"@NormalFontLighter","type":"Text","Text":"@已检","Top":"@12"},{"Left":"@5","Classes":"@NormalFontHeavy","type":"Text","Top":"@12","Text":"stat.Call($getChecked$, data.self)"},{"Left":"@10","Top":"@12","Text":"@未检","type":"Text","Classes":"@NormalFontLighter"},{"Text":"stat.Call($getNotChecked$, data.self)","HAlign":"@Right","type":"Text","Top":"@12","Classes":"@NormalFontHeavy"}],"PaddingBottom":"@20","PaddingRight":"@10","@Drop":"stat.Call($dragtoPlan$,data.id,data.f_filialeid,stat.GetDrag())","PaddingLeft":"@10"},{"StrokeStyle":"@#dce0e3","type":"Stack","Classes":"@BorderRect","Left":"@5","Right":"@5"}],"type":"Stack","Width":"@200","Original":"@V","Background":"data.id==stat.Data.SelectedPlan: $#d8eafb$, this.MouseIn: $#f5f6f7$, $$"}},"type":"List","Data":"stat.Data.checkplan.list.data","Name":"@安检计划","@Change":"stat.Call($openPlan$, e.Value.self)"}}},{"type":"Stack","StrokeStyle":"@#dfe4e7","Classes":"@BorderRect","Left":"@5","Right":"@5"},{"children":[{"type":"Text","Text":"$共{stat.Data.checkplan.list.count}条$"},{"FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplan$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"type":"Text","Left":"@4","Text":"@更多"}]}},"type":"Button","HAlign":"@Right"}],"type":"Grid","PaddingBottom":"@10","Column":"@1*,1*","Row":"@1*","PaddingLeft":"@20","PaddingRight":"@20","PaddingTop":"@10"},{"Left":"@5","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7","type":"Stack","Right":"@5"},{"type":"Button","Top":"@20","Classes":"@BorderRound","Bottom":"@20","HAlign":"@Center","@Click":"stat.ShowModal($NewPlan$,$生成计划$,$addNewPlan$,$cancel$)","Slots":{"item":{"type":"Image","Name":"Button_Image","Path":"this.MouseIn:$addnewhover$,$addnew$"}}}],"type":"Grid","Classes":"@NormalFontlight","Column":"@1*","Row":"@1*,0,*,0,*","Pos":"@Center"}],"type":"Dock","Background":"@#ffffff"},{"Name":"@右边","children":[{"Name":"@工具条","Classes":"@BorderRect","children":[{"type":"Stack","Bottom":"@4","Top":"@4","children":[{"Text":"@删除","Right":"@10","Classes":"@Button2","type":"Button"},{"Right":"@10","Text":"@打印","type":"Button","Classes":"@Button2"},{"type":"Button","Classes":"@Button2","Right":"@24","Text":"@导出"}]}],"type":"Stack","HAlign":"@Right","Pos":"@Top","Background":"@#ffffff","StrokeStyle":"@#dce0e3"},{"type":"Grid","Column":"@1*","Pos":"@Center","Row":"@1*,1*","children":[{"Column":"@1*","children":[{"children":[{"type":"Text","VAlign":"@Center","Text":"@计划信息"},{"Left":"@10","Width":"@150","@Change":"stat.Call($setProperty$,$checkplanitems$,$f_address$, e.Value)","type":"Input","PlaceHolder":"@住户地址","Classes":"@BorderRect"},{"type":"Input","PlaceHolder":"@全文搜索","Left":"@10","Width":"@150","Classes":"@BorderRect"},{"Left":"@10","Data":"stat.Data.planItemCondition","type":"Select","Classes":"@SelectGray BorderRound","Width":"@120","Background":"@#fff","@Change":"stat.Call($fieldChange$,$planItemConditionSelect$,e.Value)","StrokeStyle":"@#dfe4e7","Selected":"$请选择条件$"},{"type":"Input","Left":"@10","Width":"@150","@Change":"stat.Call($fieldChange$,$planItemConditionValue$,e.Value)"},{"@Click":"stat.Call($searchPlanItem$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button","Classes":"@SearchButton BorderRound","Left":"@10"}],"type":"Stack","Bottom":"@17"},{"Classes":"@BorderRect","Column":"@100,100,100,100,100,100,1*","@Drop":"stat.Call($dragtoPlanItem$,stat.Data.checkplanitems.search.model.f_plan_id,stat.GetDrag())","@DragOver":"stat.DragOver()","@DragStart":"stat.SetDrag($item$)","Slots":{"item":{"children":[{"Classes":"@DataGridBody","@Change":"stat.Call($addParam$, $checkplanitems$, data.itemid)","type":"CheckBox","HAlign":"@Center","IsSelected":"stat.Data.checkplanitems.check.Call($isChecked$, data.itemid)"},{"Text":"data.f_userinfo_code","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_user_name"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_user_type"},{"Classes":"@DataGridBody","Text":"data.f_residential_area","type":"Text"},{"Text":"data.f_state","type":"Text","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","type":"Text","Text":"data.f_address"}],"type":"Grid","Row":"@1*"},"head":{"Row":"@1*","children":[{"type":"Stack","HAlign":"@Center","Classes":"@DataGridHead","children":[{"type":"CheckBox"},{"type":"Text","Left":"@9","Text":"@全选"}]},{"type":"Text","Classes":"@DataGridHead","Text":"@用户编号"},{"type":"Text","Text":"@用户名称","Classes":"@DataGridHead"},{"Text":"@用户类型","type":"Text","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","type":"Text","Text":"@小区名称"},{"Classes":"@DataGridBody","Text":"@状态","type":"Text"},{"type":"Text","Text":"@地址","Classes":"@DataGridHead"}],"type":"Grid"}},"type":"DataGrid","Data":"stat.Data.checkplanitems.list.data"},{"Column":"@*,*,1*,*","PaddingTop":"@5","children":[{"Text":"@显示 1~20","VAlign":"@Center","type":"Text"},{"type":"Text","Text":"$共{stat.Data.checkplanitems.list.count}条$","Left":"@20","VAlign":"@Center"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$checkplanitems$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Text":"@更多","type":"Text","Left":"@4"}]}}}],"type":"Grid","Classes":"@NormalFontlight","Top":"@12","Row":"@1*"}],"type":"Grid","PaddingBottom":"@20","PaddingRight":"@24","Classes":"@BorderRect","Row":"@*,1*,*","StrokeStyle":"@#dfe4e7","PaddingLeft":"@10","PaddingTop":"@12"},{"PaddingTop":"@12","PaddingLeft":"@10","PaddingBottom":"@20","Column":"@1*","Row":"@*,1*,*","type":"Grid","PaddingRight":"@24","StrokeStyle":"@#dfe4e7","Classes":"@BorderRect","children":[{"type":"Stack","Bottom":"@17","children":[{"type":"Text","Text":"@用户信息","VAlign":"@Center"},{"@Change":"stat.Call($setProperty$,$user$,$userinfocode$, e.Value)","type":"Input","Width":"@150","PlaceHolder":"@用户编号","Classes":"@BorderRect","Left":"@10"},{"Width":"@150","type":"Input","PlaceHolder":"@全文搜索","Classes":"@BorderRect","Left":"@10"},{"Width":"@120","Left":"@10","Data":"stat.Data.userCondition","Classes":"@SelectGray BorderRound","@Change":"stat.Call($fieldChange$,$userConditionSelect$,e.Value)","type":"Select","Background":"@#fff","Selected":"$请选择条件$","StrokeStyle":"@#dfe4e7"},{"Left":"@10","Width":"@150","@Change":"stat.Call($fieldChange$,$userConditionValue$,e.Value)","type":"Input"},{"Slots":{"item":{"Classes":"@SearchButtonImg","type":"Image","Name":"SearchButton_Image"}},"type":"Button","Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchUser$)"}]},{"Slots":{"head":{"type":"Grid","Row":"@*","children":[{"children":[{"type":"CheckBox","@Change":"stat.Call($changeCheckAll$, $user$)"},{"Left":"@9","type":"Text","Text":"@全选"}],"type":"Stack","Classes":"@DataGridHead"},{"Classes":"@DataGridHead","Text":"@用户编号","type":"Text"},{"Text":"@用户名称","Classes":"@DataGridHead","type":"Text"},{"Classes":"@DataGridHead","type":"Text","Text":"@用户类型"},{"Classes":"@DataGridHead","type":"Text","Text":"@区/县"},{"Classes":"@DataGridHead","type":"Text","Text":"@所属计划"},{"Classes":"@DataGridHead","type":"Text","Text":"@地址"}]},"item":{"Row":"@*","children":[{"HAlign":"@Center","Classes":"@DataGridBody","@Change":"stat.Call($addParam$, $user$, data.id)","type":"CheckBox","VAlign":"@Center","IsSelected":"stat.Data.user.check.Call($isChecked$, data.id)"},{"type":"Text","Text":"data.f_userinfo_code","Classes":"@DataGridBody"},{"Text":"data.f_user_name","type":"Text","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"@无"},{"type":"Text","Text":"data.f_residential_area","Classes":"@DataGridBody"},{"type":"Text","Classes":"@DataGridBody","Text":"data.f_plan_name"},{"Text":"data.f_address","type":"Text","Classes":"@DataGridBody"}],"type":"Grid"}},"type":"DataGrid","Column":"@100,100,100,100,100,150,1*","Data":"stat.Data.user.list.data","Classes":"@BorderRect","@DragStart":"stat.SetDrag($user$)","@Drop":"stat.Call($delPlanItem$,stat.GetDrag())"},{"Classes":"@NormalFontlight","Top":"@12","children":[{"type":"Text","Text":"@显示 1~20"},{"type":"Text","Text":"$共{stat.Data.user.list.count}条$","Left":"@20"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","Text":"@加载更多","@Click":"stat.Call($loadMore$,$user$)","Slots":{"item":{"children":[{"type":"Image","Path":"@doubledown","VAlign":"@Bottom"},{"type":"Text","Left":"@4","Text":"@更多"}],"type":"Stack"}}}],"type":"Grid","Row":"@1*","Column":"@*,*,1*,*"}]}]}],"type":"Dock","Background":"@#f5f7f9","Classes":"@BorderRect"}],"type":"Grid","Background":"@#f5f7f9","Column":"@200,1*","Row":"@1*"},"Drag":{"SearchPlan":{"type":"Grid","Row":"@1*","Column":"@1*","Classes":"@PopupSearch PopupShadow","children":[{"type":"Grid","PaddingRight":"@20","Column":"@70,170","PaddingTop":"@10","Row":"@*,*,*,*,*,*","PaddingLeft":"@10","PaddingBottom":"@10","Classes":"@BorderRound NormalFont PopupSearch","children":[{"Classes":"@GridLabel","type":"Text","Text":"@计划名称","PaddingBottom":"@6"},{"type":"Input","Value":"stat.Data.checkplan.search.model.f_plan_name","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_name$, e.Value)"},{"type":"Text","Text":"@计划年份","Classes":"@GridLabel"},{"type":"Select","Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_year","Classes":"@SelectWhite BorderRound","Data":"stat.Call($years$)","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_year$, e.Value)"},{"Text":"@计划月份","Classes":"@GridLabel","type":"Text"},{"Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setProperty$, $checkplan$, $f_plan_month$, e.Value)","type":"Select","Data":"stat.Call($months$)","Top":"@10","Selected":"stat.Data.checkplan.search.model.f_plan_month","Bottom":"@1"},{"type":"Text","Text":"@是否共享","Classes":"@GridLabel"},{"Data":"stat.Data.isAndNot","TemplateName":"@RadioButton","Selected":"stat.Data.sIsAndNotSelect","Original":"@H","VAlign":"@Center","@Change":"stat.Call($isAndNotChange$, e.Value)","type":"Select"},{"type":"Text","Classes":"@GridLabel","Text":"@安检员"},{"type":"Select","Top":"@10","Classes":"@SelectWhite BorderRound"},{"children":[{"@Click":"stat.RestorePopup(this,e.draw)","type":"Button","Right":"@50","Text":"@取消","Classes":"@Button2"},{"type":"Button","Text":"@查询","FillStyle":"@#ffffff","Classes":"@Button","@Click":"stat.Call($loadCheckPlan$,$$),stat.RestorePopup(this,e.draw)"}],"type":"Stack","ColSpan":"@2","HAlign":"@Center","Top":"@20"}]}]},"start":{"type":"Image","Path":"@drag"},"drag":{"Text":"@ ","type":"Text"},"NewPlan":{"type":"Grid","Row":"@*","Column":"@*","children":[{"PaddingRight":"@36","Row":"@*,*","PaddingBottom":"@20","PaddingLeft":"@20","Column":"@80,170,80,170,80,170","Background":"@#ffffff","Classes":"@NormalFontlight","Pos":"@Center","children":[{"Right":"@10","type":"Text","Text":"@* 计划名称","HAlign":"@Right","VAlign":"@Center"},{"type":"Input","@Change":"stat.Call($setNewPlan$, $f_plan_name$, e.Value)"},{"type":"Text","HAlign":"@Right","VAlign":"@Center","Right":"@10","Text":"@计划年份"},{"type":"Select","Data":"stat.Call($years$)","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPlan$, $f_plan_year$, e.Value)"},{"Text":"@计划月份","HAlign":"@Right","VAlign":"@Center","Right":"@10","type":"Text"},{"type":"Select","Data":"stat.Call($months$)","Classes":"@SelectWhite BorderRound","@Change":"stat.Call($setNewPlan$, $f_plan_month$, e.Value)"},{"Text":"@是否共享","Top":"@10","HAlign":"@Right","type":"Text","VAlign":"@Center","Right":"@10"},{"TemplateName":"@RadioButton","Selected":"stat.Data.newPlan.f_share","@Change":"stat.Call($setNewPlan$, $f_share$, e.Value),stat.Call($flush$)","type":"Select","Data":"stat.Data.isAndNot","Original":"@H"},{"Right":"@10","Text":"@安检员","HAlign":"@Right","VAlign":"@Center","Top":"@10","if":"stat.Data.newPlan.f_share==$否$:true,false","type":"Text"},{"type":"Select","Top":"@10","if":"stat.Data.newPlan.f_share==$否$:true,false","Classes":"@SelectWhite BorderRound"}],"type":"Grid","PaddingTop":"@20"}]},"upPlan":{"type":"Grid","Row":"@*","Column":"@*","children":[{"children":[{"type":"Text","VAlign":"@Center","Text":"@* 计划名称","Right":"@10","HAlign":"@Right"},{"type":"Input","Value":"stat.Data.plan.f_plan_name","@Change":"stat.Data.Call($setPlan$,$f_plan_name$,e.Value) "},{"type":"Text","HAlign":"@Right","VAlign":"@Center","Text":"@安检员","Right":"@10"},{"@Change":"stat.Data.Call($setPlan$,$f_checker$,e.Value) ","type":"Select","Classes":"@SelectWhite BorderRound","Selected":"stat.Data.plan.checker"},{"VAlign":"@Center","Top":"@10","Text":"@计划年份","type":"Text","Right":"@10","HAlign":"@Right"},{"Top":"@10","Selected":"stat.Data.plan.f_plan_year","@Change":"stat.Data.Call($setPlan$,$f_plan_year$,e.Value) ","type":"Select","Classes":"@SelectWhite BorderRound"},{"VAlign":"@Center","type":"Text","Top":"@10","Text":"@计划月份","Right":"@10","HAlign":"@Right"},{"Top":"@10","Selected":"stat.Data.plan.f_plan_month","Classes":"@SelectWhite BorderRound","@Change":"stat.Data.Call($setPlan$,$f_plan_month$,e.Value) ","type":"Select"}],"type":"Grid","Background":"@#ffffff","Classes":"@NormalFontlight","PaddingLeft":"@20","Column":"@80,170,80,170","PaddingTop":"@20","PaddingRight":"@36","Row":"@*,*","PaddingBottom":"@20"}]}}}
  * */
}
</script>
