^1640696286990
@
sname
DbUserEditor
slabel
DbUserEditor
ssingleInstance
false
scloseable
true
suseRef
false
sdescriptors
xworker.swt.app.view.swt.app.workbentch.Editor
sth_createIndex
false
sid
DbUserEditor
  @/@Control
  sname
  Control
  sdescriptors
  xworker.swt.app.view.swt.app.workbentch.Editor/@Control
  sth_createIndex
  false
  sid
  Control
    @/@Control/@composite
    sname
    composite
    sBORDER
    false
    sH_SCROLL
    false
    sV_SCROLL
    false
    sNO_BACKGROUND
    false
    sNO_FOCUS
    false
    sNO_MERGE_PAINTS
    false
    sNO_REDRAW_RESIZE
    false
    sNO_RADIO_GROUP
    false
    sEMBEDDED
    false
    sDOUBLE_BUFFERED
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@Composite,xworker.swt.widgets.Display/@Shell
    sth_createIndex
    false
    sid
    composite
      @/@Control/@composite/@compositeGridLayout
      sname
      compositeGridLayout
      smakeColumnsEqualWidth
      false
      smarginWidth
      5
      smarginHeight
      5
      smarginLeft
      0
      smarginTop
      0
      smarginRight
      0
      smarginBottom
      0
      shorizontalSpacing
      5
      sverticalSpacing
      5
      sdescriptors
      xworker.swt.Layouts/@GridLayout
      sth_createIndex
      false
      sid
      compositeGridLayout
      @/@Control/@composite/@819
      sname
      dataObjectCompositeGridLayout
      snumColumns
      1
      smakeColumnsEqualWidth
      false
      smarginWidth
      5
      smarginHeight
      5
      smarginLeft
      0
      smarginTop
      0
      smarginRight
      0
      smarginBottom
      0
      shorizontalSpacing
      5
      sverticalSpacing
      5
      sdescriptors
      xworker.swt.Layouts/@GridLayout
      sid
      819
      @/@Control/@composite/@820
      sname
      queryComposite
      sBORDER
      false
      sH_SCROLL
      false
      sV_SCROLL
      false
      sNO_BACKGROUND
      false
      sNO_FOCUS
      false
      sNO_MERGE_PAINTS
      false
      sNO_REDRAW_RESIZE
      false
      sNO_RADIO_GROUP
      false
      sEMBEDDED
      false
      sDOUBLE_BUFFERED
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      sdescriptors
      xworker.swt.Widgets/@Composite
      sid
      820
        @/@Control/@composite/@820/@821
        sname
        queryCompositeGridData
        sstyle
        FILL_HORIZONTAL
        shorizontalIndent
        0
        swidth
        -1
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        sdescriptors
        xworker.swt.layout.LayoutDatas/@GridData
        sid
        821
        @/@Control/@composite/@820/@822
        sname
        queryCompositeFillLayout
        stype
        SWT.HORIZONTAL
        sdescriptors
        xworker.swt.Layouts/@FillLayout
        sid
        822
        @/@Control/@composite/@820/@823
        sname
        queryForm
        sformType
        query
        sdataObject
        xworker.example.dataobject.db.User
        sdescriptors
        xworker.swt.app.view.swt.Items/@DataObjectForm
        sid
        823
      @/@Control/@composite/@824
      sname
      splitLine1
      sBORDER
      false
      sstyle
      SEPARATOR
      stype
      HORIZONTAL
      sshadow
      SHADOW_OUT
      salignment
      LEFT
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      sdescriptors
      xworker.swt.Widgets/@Label
      sth_createIndex
      false
      sid
      824
        @/@Control/@composite/@824/@825
        sname
        splitLineGridData
        sstyle
        FILL_HORIZONTAL
        shorizontalIndent
        0
        swidth
        -1
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        sdescriptors
        xworker.swt.layout.LayoutDatas/@GridData
        sth_createIndex
        false
        sid
        825
      @/@Control/@composite/@826
      sname
      buttonComposite
      sBORDER
      false
      sH_SCROLL
      false
      sV_SCROLL
      false
      sNO_BACKGROUND
      false
      sNO_FOCUS
      false
      sNO_MERGE_PAINTS
      false
      sNO_REDRAW_RESIZE
      false
      sNO_RADIO_GROUP
      false
      sEMBEDDED
      false
      sDOUBLE_BUFFERED
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      sdescriptors
      xworker.swt.Widgets/@Composite
      sid
      826
        @/@Control/@composite/@826/@827
        sname
        buttonCompositeGridData
        sstyle
        FILL_HORIZONTAL
        shorizontalIndent
        0
        swidth
        -1
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        sdescriptors
        xworker.swt.layout.LayoutDatas/@GridData
        sid
        827
        @/@Control/@composite/@826/@828
        sname
        buttonCompositeRowLayout
        sfill
        false
        sjustify
        false
        smarginWidth
        0
        smarginHeight
        0
        smarginLeft
        3
        smarginTop
        3
        smarginRight
        3
        smarginBottom
        3
        spack
        true
        sspacing
        3
        stype
        SWT.HORIZONTAL
        swrap
        true
        sdescriptors
        xworker.swt.Layouts/@RowLayout
        sid
        828
        @/@Control/@composite/@826/@829
        sname
        query
        stext
        查询
        stype
        SWT.PUSH
        sflat
        false
        sborder
        false
        sselected
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Button
        sid
        829
          @/@Control/@composite/@826/@829/@830
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sid
          830
            @/@Control/@composite/@826/@829/@830/@831
            sname
            queryButtonSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sid
            831
              @/@Control/@composite/@826/@829/@830/@831/@832
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Global
              sdisableGlobalContext
              false
              Scode
#$@text#$@
editButton.setEnabled(false);
deleteButton.setEnabled(false);

def params = queryForm.doAction("getValues", actionContext);
store.doAction("load", actionContext, ["params":params]);
#$@text#$@
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sid
              832
          @/@Control/@composite/@826/@829/@833
          sname
          RowData
          sexclude
          false
          swidth
          80
          sheight
          -1
          sdescriptors
          xworker.swt.layout.LayoutDatas/@RowData
          sth_createIndex
          false
          sid
          833
        @/@Control/@composite/@826/@834
        sname
        createButton
        stext
        新增
        stype
        SWT.PUSH
        sflat
        false
        sborder
        false
        sselected
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Button
        sth_createIndex
        false
        sid
        834
          @/@Control/@composite/@826/@834/@835
          sname
          RowData
          sexclude
          false
          swidth
          80
          sheight
          -1
          sdescriptors
          xworker.swt.layout.LayoutDatas/@RowData
          sth_createIndex
          false
          sid
          835
          @/@Control/@composite/@826/@834/@836
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sth_createIndex
          false
          sid
          836
            @/@Control/@composite/@826/@834/@836/@837
            sname
            createButtonSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sth_createIndex
            false
            sid
            837
              @/@Control/@composite/@826/@834/@836/@837/@838
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Global
              sdisableGlobalContext
              false
              scode
              store.doAction("openCreateForm", actionContext);
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sid
              838
        @/@Control/@composite/@826/@839
        sname
        editButton
        stext
        编辑
        stype
        SWT.PUSH
        sflat
        false
        sborder
        false
        sselected
        false
        scapture
        false
        senabled
        false
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Button
        sth_createIndex
        false
        sid
        839
          @/@Control/@composite/@826/@839/@840
          sname
          RowData
          sexclude
          false
          swidth
          80
          sheight
          -1
          sdescriptors
          xworker.swt.layout.LayoutDatas/@RowData
          sth_createIndex
          false
          sid
          840
          @/@Control/@composite/@826/@839/@841
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sth_createIndex
          false
          sid
          841
            @/@Control/@composite/@826/@839/@841/@842
            sname
            editButtonSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sth_createIndex
            false
            sid
            842
              @/@Control/@composite/@826/@839/@841/@842/@843
              sname
              editButtonAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Global
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

def items = dataTable.getSelection();
if(items == null || items.length == 0){
    def box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);
    box.setText("警告");
    box.setMessage("请先选择一条记录！");
    box.open();
    return;
}

store.doAction("openEditForm", actionContext, ["record":items[0].getData()]);
#$@text#$@
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sid
              843
        @/@Control/@composite/@826/@844
        sname
        deleteButton
        stext
        删除
        stype
        SWT.PUSH
        sflat
        false
        sborder
        false
        sselected
        false
        scapture
        false
        senabled
        false
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Button
        sth_createIndex
        false
        sid
        844
          @/@Control/@composite/@826/@844/@845
          sname
          RowData
          sexclude
          false
          swidth
          80
          sheight
          -1
          sdescriptors
          xworker.swt.layout.LayoutDatas/@RowData
          sth_createIndex
          false
          sid
          845
          @/@Control/@composite/@826/@844/@846
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sth_createIndex
          false
          sid
          846
            @/@Control/@composite/@826/@844/@846/@847
            sname
            deleteButtonSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sth_createIndex
            false
            sid
            847
              @/@Control/@composite/@826/@844/@846/@847/@848
              sname
              deleteButtonAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Global
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

def items = dataTable.getSelection();
if(items == null || items.length == 0){
    def box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);
    box.setText("警告");
    box.setMessage("请先选择一条记录！");
    box.open();
    return;
}

def box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
box.setText("警告");
box.setMessage("确认要删除选择的记录么！");
if(SWT.OK == box.open()){
    store.doAction("remove", actionContext, [record:items[0].getData()]);
}
#$@text#$@
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sid
              848
      @/@Control/@composite/@849
      sname
      dataTable
      sselectStyle
      SINGLE
      sV_SCROLL
      true
      sH_SCROLL
      true
      sCHECK
      false
      sFULL_SELECTION
      true
      sHIDE_SELECTION
      false
      sBORDER
      true
      slineVisible
      true
      smultipleColumns
      true
      sheaderVisible
      true
      ssortIndicator
      true
      smoveableColumns
      true
      sheadImages
      false
      ssubImages
      false
      sVIRTUAL
      false
      sdescriptors
      xworker.swt.Widgets/@Table
      sid
      849
        @/@Control/@composite/@849/@850
        sname
        dataTableGridData
        sstyle
        FILL_BOTH
        shorizontalIndent
        0
        swidth
        -1
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        sdescriptors
        xworker.swt.Commons/@GridData
        sid
        850
        @/@Control/@composite/@849/@851
        sname
        store
        sattachToParent
        true
        sloadBackground
        true
        sautoLoad
        true
        sautoSave
        false
        sdataObject
        xworker.example.dataobject.db.User
        sdescriptors
        xworker.swt.Commons/@DataStore
        sid
        851
        @/@Control/@composite/@849/@852
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sid
        852
          @/@Control/@composite/@849/@852/@853
          sname
          dataTableSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sid
          853
            @/@Control/@composite/@849/@852/@853/@854
            sname
            editButtonAction
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Global
            sdisableGlobalContext
            false
            Scode
#$@text#$@
editButton.setEnabled(true);
deleteButton.setEnabled(true);
#$@text#$@
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sth_createIndex
            false
            sid
            854
      @/@Control/@composite/@855
      sname
      pageToolbar
      sbeforePageText
      第
      safterPageText
      页 共{0}页
      sdisplayInfo
      true
      sdisplayMsg
      第{0}-第{1}条，共{2}条
      semptyMsg
      没有数据
      sfirstText
      首页
      slastText
      最后一页
      sstore
      store
      sdescriptors
      xworker.swt.app.view.swt.Items/@PagingToolbar
      sid
      855
        @/@Control/@composite/@855/@856
        sname
        pageToolbarGridData
        sstyle
        FILL_HORIZONTAL
        shorizontalIndent
        0
        swidth
        -1
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        sdescriptors
        xworker.swt.Commons/@GridData
        sid
        856
