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

      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":"@*"}}}
    */
//
  /*

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


  * {"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>
