From 13b6ad41f0b057f8405f7976a990e9057547443a Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期一, 09 六月 2025 20:01:00 +0800
Subject: [PATCH] 提交首页实现
---
igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/Granary.view.xml | 228 +++++++++++++++++++++++++++++---------------------------
1 files changed, 118 insertions(+), 110 deletions(-)
diff --git a/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/Granary.view.xml b/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/Granary.view.xml
index 7f72b5c..f052593 100644
--- a/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/Granary.view.xml
+++ b/igds-dzhwk-view/src/main/java/com/fzzy/igds/sys/Granary.view.xml
@@ -110,56 +110,57 @@
</PropertyDef>
</DataType>
</Model>
- <View layout="regionPadding:10">
+ <View>
<Property name="packages">font-awesome,css-common</Property>
<DataSet id="dsMain">
<Property name="dataProvider">granaryPR#getGranary</Property>
<Property name="dataType">[dtMain]</Property>
</DataSet>
- <Container layout="regionPadding:10" layoutConstraint="top">
- <Property name="exClassName">bg-color</Property>
- <Property name="height">55</Property>
- <Property name="contentOverflow">hidden</Property>
- <Label layoutConstraint="left">
- <Property name="text">鑿滃崟鏍忥細</Property>
- </Label>
- <Button layoutConstraint="left">
- <ClientEvent name="onClick">view.get("#dsMain").insert();
+ <Container>
+ <Property name="exClassName">c-data</Property>
+ <ToolBar>
+ <ToolBarLabel>
+ <Property name="text">鑿滃崟鏍忥細</Property>
+ <Property name="exClassName">menu-bar-caption</Property>
+ </ToolBarLabel>
+ <ToolBarButton>
+ <ClientEvent name="onClick">view.get("#dsMain").insert();
view.get("#dialogMain").show();</ClientEvent>
- <Property name="caption">鏂板</Property>
- <Property name="exClassName">btn1</Property>
- <Property name="iconClass">fa fa-plus</Property>
- </Button>
- <Button layoutConstraint="left">
- <ClientEvent name="onClick">var dialog= view.get("#dialogMain");
-dialog.show();</ClientEvent>
- <Property name="caption">缂栬緫</Property>
- <Property name="exClassName">btn2</Property>
- <Property name="iconClass">fa fa-pencil</Property>
- </Button>
- <Button layoutConstraint="left">
- <ClientEvent name="onClick">var cur = view.get("#dsMain.data:#");
-if(!cur) return;
-view.get("#ajaxDel").set("parameter",cur).execute(function(result){
- if(result){
- $alert(result);
- return;
- }else{
- cur.remove();
- }
-});</ClientEvent>
- <Property name="caption">鍒犻櫎</Property>
- <Property name="exClassName">btn3</Property>
- <Property name="iconClass">fa fa-trash-o</Property>
- </Button>
- </Container>
- <Container layout="regionPadding:10" layoutConstraint="center">
- <Property name="exClassName">bg-color</Property>
- <DataGrid id="dgMain">
- <ClientEvent name="onDataRowDoubleClick">var dialog= view.get("#dialogMain");
-dialog.show();</ClientEvent>
+ <Property name="caption">鏂板</Property>
+ <Property name="exClassName">btn1</Property>
+ <Property name="iconClass">fa fa-plus</Property>
+ </ToolBarButton>
+ <ToolBarButton>
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+if(select){
+ view.get("#dialogMain").show();;
+}else{
+ $notify("璇烽�夋嫨闇�瑕佷慨鏀圭殑鏁版嵁鈥︹��");
+}</ClientEvent>
+ <Property name="caption">缂栬緫</Property>
+ <Property name="exClassName">btn2</Property>
+ <Property name="iconClass">fa fa-pencil</Property>
+ </ToolBarButton>
+ <ToolBarButton>
+ <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
+if(select){
+ view.get("#ajaxDel").set("parameter",select).execute(function(){
+ select.remove();
+ });
+}else{
+ $notify("璇烽�夋嫨闇�瑕佸垹闄ょ殑鏁版嵁鈥︹��");
+}</ClientEvent>
+ <Property name="caption">鍒犻櫎</Property>
+ <Property name="exClassName">btn3</Property>
+ <Property name="iconClass">fa fa-trash-o</Property>
+ </ToolBarButton>
+ </ToolBar>
+ <DataGrid id="dgMain" layoutConstraint="padding:15px 0px 0px 0px">
+ <ClientEvent name="onDataRowClick">view.get("#dgMain").set("selection",arg.data);</ClientEvent>
<Property name="dataSet">dsMain</Property>
<Property name="readOnly">true</Property>
+ <Property name="selectionMode">singleRow</Property>
+ <RowSelectorColumn/>
<RowNumColumn/>
<DataColumn name="ajdh">
<Property name="property">ajdh</Property>
@@ -203,7 +204,8 @@
</DataColumn>
</DataGrid>
</Container>
- <Dialog id="dialogMain">
+ <Dialog id="dialogMain" layout="regionPadding:10">
+ <Property name="iconClass">fa fa-pencil-square-o</Property>
<Property name="closeable">false</Property>
<Property name="caption">寤掗棿淇℃伅</Property>
<Property name="width">60%</Property>
@@ -231,73 +233,79 @@
</Button>
</Buttons>
<Children>
- <AutoForm>
- <Property name="dataSet">dsMain</Property>
- <Property name="cols">*,*</Property>
- <Property name="labelAlign">right</Property>
- <Property name="labelSeparator">锛�</Property>
- <Property name="labelWidth">150</Property>
- <AutoFormElement>
- <Property name="name">ajdh</Property>
- <Property name="property">ajdh</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">deptId</Property>
- <Property name="property">deptId</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajmc</Property>
- <Property name="property">ajmc</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">cfbh</Property>
- <Property name="property">cfbh</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajcd</Property>
- <Property name="property">ajcd</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajkd</Property>
- <Property name="property">ajkd</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajgd</Property>
- <Property name="property">ajgd</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajsjcr</Property>
- <Property name="property">ajsjcr</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajlxdh</Property>
- <Property name="property">ajlxdh</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajqyrq</Property>
- <Property name="property">ajqyrq</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">ajzt</Property>
- <Property name="property">ajzt</Property>
- <Editor/>
- </AutoFormElement>
- <AutoFormElement>
- <Property name="name">updateTime</Property>
- <Property name="property">updateTime</Property>
- <Editor/>
- </AutoFormElement>
- </AutoForm>
+ <FieldSet layout="padding:5">
+ <Property name="caption">鍩烘湰淇℃伅</Property>
+ <Buttons/>
+ <Children>
+ <AutoForm>
+ <Property name="dataSet">dsMain</Property>
+ <Property name="cols">*,*</Property>
+ <Property name="labelAlign">right</Property>
+ <Property name="labelSeparator">锛�</Property>
+ <Property name="labelWidth">150</Property>
+ <AutoFormElement>
+ <Property name="name">ajdh</Property>
+ <Property name="property">ajdh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">deptId</Property>
+ <Property name="property">deptId</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajmc</Property>
+ <Property name="property">ajmc</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">cfbh</Property>
+ <Property name="property">cfbh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajcd</Property>
+ <Property name="property">ajcd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajkd</Property>
+ <Property name="property">ajkd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajgd</Property>
+ <Property name="property">ajgd</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajsjcr</Property>
+ <Property name="property">ajsjcr</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajlxdh</Property>
+ <Property name="property">ajlxdh</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajqyrq</Property>
+ <Property name="property">ajqyrq</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">ajzt</Property>
+ <Property name="property">ajzt</Property>
+ <Editor/>
+ </AutoFormElement>
+ <AutoFormElement>
+ <Property name="name">updateTime</Property>
+ <Property name="property">updateTime</Property>
+ <Editor/>
+ </AutoFormElement>
+ </AutoForm>
+ </Children>
+ </FieldSet>
</Children>
<Tools/>
</Dialog>
--
Gitblit v1.9.3