fzzy-igdss-core/src/main/java/com/fzzy/igds/domain/Dept.java
@@ -29,6 +29,10 @@ @TableField("id") private String id; @Column(name = "parent_id", columnDefinition = "varchar(40) COMMENT 'æ¶å¨å ¬å¸'") @TableField("parent_id") private String parentId; @Column(name = "kqmc", columnDefinition = "varchar(256) COMMENT 'åºåºåç§°'") @TableField("kqmc") private String kqmc; fzzy-igdss-core/src/main/java/com/fzzy/igds/service/CoreDeptService.java
@@ -87,7 +87,9 @@ return; } Dept dept = new Dept(); dept.setId(sysDept.getDeptId() + ""); String deptId = sysDept.getDeptId() + ""; dept.setId(deptId); dept.setParentId(deptId.substring(0, deptId.length() - 3)); dept.setKqmc(sysDept.getDeptName()); dept.setCompanyId(sysDept.getCompanyId()); fzzy-igdss-view/src/main/java/com/fzzy/igds/ConfByDept.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,224 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model> <DataType name="dtMain"> <Property name="creationType">com.fzzy.igds.domain.Dept</Property> <PropertyDef name="id"> <Property></Property> <Property name="label">åºåºç¼ç </Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="parentId"> <Property></Property> <Property name="label">æ¶å¨å ¬å¸</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> <Property name="keyProperty">id</Property> <Property name="valueProperty">dwmc</Property> </Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="companyId"> <Property></Property> <Property name="label">ç»ç»ç¼ç </Property> </PropertyDef> <PropertyDef name="kqmc"> <Property></Property> <Property name="label">åºåºåç§°</Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="kqdz"> <Property></Property> <Property name="label">åºåºå°å</Property> </PropertyDef> <PropertyDef name="xzqhdm"> <Property></Property> <Property name="label">åºå代ç </Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="xzqhmc"> <Property></Property> <Property name="label">æå¨åºå¿</Property> </PropertyDef> <PropertyDef name="kqcq"> <Property></Property> <Property name="label">åºåºäº§æ</Property> <Property name="mapping"> <Property name="keyProperty">key</Property> <Property name="valueProperty">value</Property> <Property name="mapValues"> <Collection> <Entity> <Property name="key">1</Property> <Property name="value">1-èªæ</Property> </Entity> <Entity> <Property name="key">2</Property> <Property name="value">2-ç§èµ</Property> </Entity> <Entity> <Property name="key">3</Property> <Property name="value">3-å ±æ</Property> </Entity> <Entity> <Property name="key">4</Property> <Property name="value">4-æ··å</Property> </Entity> <Entity> <Property name="key">9</Property> <Property name="value">9-å ¶ä»</Property> </Entity> </Collection> </Property> </Property> </PropertyDef> <PropertyDef name="yxcr"> <Property name="dataType">Double</Property> <Property name="label">ææä»å®¹</Property> <Property name="displayFormat">#0.000 å¨</Property> </PropertyDef> <PropertyDef name="zdmj"> <Property name="dataType">Double</Property> <Property name="label">å å°é¢ç§¯</Property> <Property name="displayFormat">#0.000 å¹³æ¹ç±³</Property> </PropertyDef> <PropertyDef name="cfs"> <Property name="dataType">Integer</Property> <Property name="label">ä»åºæ°</Property> <Property name="displayFormat">#0 æ </Property> </PropertyDef> <PropertyDef name="jd"> <Property name="dataType">Double</Property> <Property name="label">ç»åº¦</Property> </PropertyDef> <PropertyDef name="wd"> <Property name="dataType">Double</Property> <Property name="label">纬度</Property> </PropertyDef> <PropertyDef name="remark"> <Property></Property> <Property name="label">夿³¨è¯´æ</Property> </PropertyDef> <PropertyDef name="createTime"> <Property name="dataType">DateTime</Property> <Property name="label">å建æ¶é´</Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="createBy"> <Property></Property> <Property name="label">å建人</Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="updateTime"> <Property name="dataType">DateTime</Property> <Property name="label">æ´æ°æ¶é´</Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="updateBy"> <Property></Property> <Property name="label">æ´æ°äºº</Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="imgPath"> <Property></Property> <Property name="label">å¾è·¯å¾</Property> </PropertyDef> <PropertyDef name="imgName"> <Property></Property> <Property name="label">é¸ç°å¾</Property> </PropertyDef> </DataType> </Model> <View layout="padding:10"> <ClientEvent name="onReady"> /**
 * åºå ¥åºé ç½®
 */
 inoutConf = function(){
 var cur = view.get("#dgMain").get("selection");
 if(cur){
 var deptId = cur.get("id");
 var url = "/com.fzzy.igds.inoutConfManage.d?deptId="+ deptId;
 window.$openTab("åºå ¥åºé ç½®", url); }else{
 $notify("请å éæ©åºåºâ¦â¦");
 } };
 /**
 * ææé ç½®
 */
 snapConf = function(){
 var cur = view.get("#dgMain").get("selection");
 if(cur){
 var deptId = cur.get("id");
 var url = "/com.fzzy.igds.SnapConf.d?deptId="+ deptId;
 window.$openTab("ææé ç½®", url); }else{
 $notify("请å éæ©åºåºâ¦â¦");
 } };
 /**
 * å·¡æ£é ç½®
 */
 patrolConf = function(){
 var cur = view.get("#dgMain").get("selection");
 if(cur){
 var deptId = cur.get("id");
 var url = "/com.fzzy.igds.PatrolConf.d?deptId="+ deptId;
 window.$openTab("å·¡æ£é ç½®", url); }else{
 $notify("请å éæ©åºåºâ¦â¦");
 } };
 //æä½
 renderCell1 = function(arg,self){
 var data = arg.data;
 var htm = "<a onClick='inoutConf()' class='a-btn1'>åºå ¥åºé ç½®</a>&nbsp;|&nbsp;<a onClick='snapConf()' class='a-btn2'>ææé ç½®</a>&nbsp;|&nbsp;<a onClick='patrolConf()' class='a-btn4'>å·¡æ£é ç½®</a>";
 arg.dom.innerHTML = htm;
 };
 
</ClientEvent> <Property name="packages">font-awesome,css-common</Property> <DataSet id="dsMain"> <Property name="dataProvider">deptPR#getData</Property> <Property name="dataType">[dtMain]</Property> </DataSet> <Container> <Property name="className">c-param</Property> <DataGrid id="dgMain" layoutConstraint="padding:8"> <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="parentId"> <Property name="property">parentId</Property> <Property name="align">left</Property> <Property name="width">360</Property> </DataColumn> <DataColumn name="kqmc"> <Property name="property">kqmc</Property> <Property name="align">left</Property> <Property name="width">380</Property> </DataColumn> <DataColumn name="xzqhmc"> <Property name="property">xzqhmc</Property> <Property name="align">center</Property> <Property name="width">160</Property> </DataColumn> <DataColumn> <ClientEvent name="onRenderCell">renderCell1(arg,self);</ClientEvent> <Property name="caption">é ç½®</Property> <Property name="align">center</Property> <Editor/> </DataColumn> </DataGrid> </Container> </View> </ViewConfig> fzzy-igdss-view/src/main/java/com/fzzy/igds/Dept.view.xml
@@ -10,6 +10,16 @@ <Property name="label">åºåºç¼ç </Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="parentId"> <Property></Property> <Property name="label">æ¶å¨å ¬å¸</Property> <Property name="mapping"> <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> <Property name="keyProperty">id</Property> <Property name="valueProperty">dwmc</Property> </Property> <Property name="readOnly">true</Property> </PropertyDef> <PropertyDef name="companyId"> <Property></Property> <Property name="label">ç»ç»ç¼ç </Property> @@ -30,7 +40,7 @@ </PropertyDef> <PropertyDef name="xzqhmc"> <Property></Property> <Property name="label">åºååç§°</Property> <Property name="label">æå¨åºå¿</Property> </PropertyDef> <PropertyDef name="kqcq"> <Property></Property> @@ -184,22 +194,16 @@ <Property name="property">kqmc</Property> <Property name="align">left</Property> </DataColumn> <DataColumn name="parentId"> <Property name="property">parentId</Property> <Property name="align">left</Property> </DataColumn> <DataColumn name="xzqhmc"> <Property name="property">xzqhmc</Property> <Property name="align">center</Property> </DataColumn> <DataColumn name="kqcq"> <Property name="property">kqcq</Property> <Property name="align">center</Property> <Property name="width">120</Property> </DataColumn> <DataColumn name="yxcr"> <Property name="property">yxcr</Property> <Property name="align">center</Property> <Property name="width">180</Property> </DataColumn> <DataColumn name="zdmj"> <Property name="property">zdmj</Property> <Property name="align">center</Property> <Property name="width">180</Property> </DataColumn> @@ -223,7 +227,7 @@ <Dialog id="dialogMain"> <Property name="iconClass">fa fa-tasks</Property> <Property name="caption">åºåºä¿¡æ¯</Property> <Property name="width">70%</Property> <Property name="width">65%</Property> <Property name="closeable">false</Property> <Buttons> <Button id="btnOk"> @@ -267,13 +271,8 @@ <Editor/> </AutoFormElement> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">kqdz</Property> <Property name="property">kqdz</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">kqcq</Property> <Property name="property">kqcq</Property> <Property name="name">parentId</Property> <Property name="property">parentId</Property> <Editor/> </AutoFormElement> <AutoFormElement> @@ -281,9 +280,9 @@ <Property name="property">yxcr</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">zdmj</Property> <Property name="property">zdmj</Property> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">kqdz</Property> <Property name="property">kqdz</Property> <Editor/> </AutoFormElement> <AutoFormElement> @@ -302,17 +301,14 @@ <Property name="property">xzqhdm</Property> <Editor/> </AutoFormElement> <Label> <Property name="text"></Property> </Label> <AutoFormElement> <Property name="name">createBy</Property> <Property name="property">createBy</Property> <Property name="name">zdmj</Property> <Property name="property">zdmj</Property> <Editor/> </AutoFormElement> <AutoFormElement> <Property name="name">createTime</Property> <Property name="property">createTime</Property> <AutoFormElement layoutConstraint="colSpan:2"> <Property name="name">remark</Property> <Property name="property">remark</Property> <Editor/> </AutoFormElement> <AutoFormElement> @@ -371,11 +367,6 @@ </Property> <Property name="text">帮å©ï¼ç¹å»åæ ä½ç½®æ¾å</Property> </Link> <AutoFormElement layoutConstraint="colSpan:3"> <Property name="name">remark</Property> <Property name="property">remark</Property> <Editor/> </AutoFormElement> </AutoForm> </Children> <Tools/> fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutConfManage.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model/> <View layout="padding:10"> <Property name="packages">font-awesome,css-common</Property> <TabControl> <IFrameTab> <Property name="caption">æµç¨é ç½®</Property> <Property name="path">com.fzzy.igds.InoutSysConf.d</Property> <Property name="width">200</Property> <Property name="iconClass">fa fa-gavel</Property> </IFrameTab> <IFrameTab> <Property name="caption">设å¤é ç½®</Property> <Property name="path">com.fzzy.igds.InoutConf.d</Property> <Property name="width">200</Property> <Property name="iconClass">fa fa-shopping-cart</Property> </IFrameTab> </TabControl> </View> </ViewConfig> fzzy-igdss-view/src/main/java/com/fzzy/igds/InoutNoticeManage.view.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> <ViewConfig> <Arguments/> <Context/> <Model/> <View layout="padding:10"> <Property name="packages">font-awesome,css-common</Property> <TabControl> <IFrameTab> <Property name="caption">å ¥åºéç¥å</Property> <Property name="path">com.fzzy.igds.InoutNoticeIn.d</Property> <Property name="width">200</Property> <Property name="iconClass">fa fa-gavel</Property> </IFrameTab> <IFrameTab> <Property name="caption">åºåºéç¥å</Property> <Property name="path">com.fzzy.igds.InoutNoticeOut.d</Property> <Property name="width">200</Property> <Property name="iconClass">fa fa-shopping-cart</Property> </IFrameTab> </TabControl> </View> </ViewConfig> fzzy-igdss-view/src/main/java/com/fzzy/igds/Patrol.view.xml
@@ -139,10 +139,10 @@ </Button> <Button> <ClientEvent name="onClick"> var url = "/com.fzzy.igds.PatrolConf.d";
 window.$openTab("å·¡æ´é ç½®", url); var url = "/com.fzzy.igds.ConfByDept.d";
 window.$openTab("åºåºé ç½®", url); </ClientEvent> <Property name="caption">å·¡æ´é ç½®</Property> <Property name="caption">åºåºé ç½®</Property> <Property name="exClassName">btn-q1</Property> <Property name="iconClass">fa fa-plus-square</Property> </Button> fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
@@ -336,14 +336,6 @@ }); } function openConf() { var url = ctx + "com.fzzy.igds.SnapConf.d"; var options = { title: "ææé ç½®", url: url, btn: 0, yes: function (index, layero) { $.modal.close(index); } }; $.modal.openOptions(options); var url = ctx + "com.fzzy.igds.ConfByDept.d"; $.modal.openTab("åºåºé ç½®", url); } fzzy-igdss-web/src/main/resources/templates/security/eventInfo/eventInfo.html
@@ -51,11 +51,6 @@ </ul> </div> </form> <div class="btn-group-sm" role="group"> <a class="btn btn-success"> <i class="fa fa-plus"></i> äºä»¶é ç½® </a> </div> </div> <div class="col-sm-12 " style="padding-top: 10px;background: #FFFFFF;margin-top: 10px;"> fzzy-igdss-web/src/main/resources/templates/security/snap/snapRecord/snapRecord.html
@@ -55,7 +55,7 @@ </form> <div class="btn-group-sm" role="group"> <a class="btn btn-success" onclick="openConf()"> <i class="fa fa-plus"></i> ææé ç½® <i class="fa fa-plus"></i> åºåºé ç½® </a> </div> </div>