¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public enum AiSerType { |
| | | TYPE_01("01", "01-AIæå¡å¨"), |
| | | TYPE_02("02", "02-AIæå头"), |
| | | TYPE_99("99", "99-ç¬ç«ç»ç«¯"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | AiSerType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | |
| | | if (DeviceSerType.TYPE_01.getCode().equals(code)) return DeviceSerType.TYPE_01.getMsg(); |
| | | if (DeviceSerType.TYPE_02.getCode().equals(code)) return DeviceSerType.TYPE_02.getMsg(); |
| | | |
| | | return DeviceSerType.TYPE_99.getMsg(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/12/24 10:05 |
| | | */ |
| | | public class AreationConst { |
| | | |
| | | /** æå¨æ¨¡å¼æ§è¡æ¨¡å¼ 01 = ç³»ç»æ§è¡ **/ |
| | | public static String EXE_MODE_01 = "01"; |
| | | |
| | | /** æå¨æ¨¡å¼æ§è¡æ¨¡å¼ 02 = ç»ç«¯æ§è¡ **/ |
| | | public static String EXE_MODE_02 = "02"; |
| | | |
| | | |
| | | |
| | | /** |
| | | * æºè½ä»»å¡ç¶æ-è¿è¡ä¸ |
| | | */ |
| | | public static String ARESTION_TASK_RUN = "01"; |
| | | |
| | | /** |
| | | * æºè½ä»»å¡ç¶æ-忢 |
| | | */ |
| | | public static String ARESTION_TASK_STOP = "02"; |
| | | |
| | | /** |
| | | * æºè½ä»»å¡ç¶æ-è¶
æ¶æ æ |
| | | */ |
| | | public static String ARESTION_TASK_NOUSE = "03"; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * é飿¨¡å¼æä¸¾ |
| | | */ |
| | | public enum AreationModel { |
| | | |
| | | MODEL_01("01", "鿏©éé£"), |
| | | MODEL_02("02", "èªç¶éé£"), |
| | | MODEL_03("03", "ä¿æ°´é温éé£"), |
| | | MODEL_04("04", "餿¹¿éé£"), |
| | | MODEL_05("05", "æç§¯çéé£"), |
| | | MODEL_99("99", "èªå®ä¹æ¨¡å¼"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | AreationModel(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * å·¥åç¶æ |
| | | * @author chen |
| | | * |
| | | */ |
| | | public enum AuditStatus { |
| | | Status_10("10", "å¾
å®¡æ ¸"), |
| | | Status_11("11", "å¾
ä»å¨å®¡æ ¸"), |
| | | Status_12("12", "å¾
è´¨æ£å®¡æ ¸"), |
| | | Status_13("13", "å¾
ç»è®¡å®¡æ ¸"), |
| | | Status_14("14", "å¾
ä¼è®¡å®¡æ ¸"), |
| | | Status_15("15", "å¾
é¢å¯¼å®¡æ ¸"), |
| | | Status_20("20", "éè¿"), |
| | | Status_30("30", "æç»"), |
| | | Status_40("40", "éå"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | AuditStatus(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return null; |
| | | |
| | | if(AuditStatus.Status_10.getCode().equals(code)) return AuditStatus.Status_10.getMsg(); |
| | | if(AuditStatus.Status_11.getCode().equals(code)) return AuditStatus.Status_11.getMsg(); |
| | | if(AuditStatus.Status_12.getCode().equals(code)) return AuditStatus.Status_12.getMsg(); |
| | | if(AuditStatus.Status_13.getCode().equals(code)) return AuditStatus.Status_13.getMsg(); |
| | | if(AuditStatus.Status_14.getCode().equals(code)) return AuditStatus.Status_14.getMsg(); |
| | | if(AuditStatus.Status_15.getCode().equals(code)) return AuditStatus.Status_15.getMsg(); |
| | | if(AuditStatus.Status_20.getCode().equals(code)) return AuditStatus.Status_20.getMsg(); |
| | | if(AuditStatus.Status_30.getCode().equals(code)) return AuditStatus.Status_30.getMsg(); |
| | | if(AuditStatus.Status_40.getCode().equals(code)) return AuditStatus.Status_40.getMsg(); |
| | | |
| | | return ""; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * æ´ä¸ªç³»ç»çä¸å¡åç±» |
| | | * |
| | | * // PRESSURE("pressure", "æ°åæ£æµ"), |
| | | */ |
| | | public enum BizType { |
| | | |
| | | GRAIN("grain", "ç²®æ
模å"), |
| | | PEST("pest", "è«å®³æ¨¡å"), |
| | | GAS("gas", "æ°ä½æ¨¡å"), |
| | | AREATION("areation", "é飿¨¡å"), |
| | | DEVICE_CONTROL("deviceControl", "è®¾å¤æä½"), |
| | | N2("n2", "æ°è°æ¨¡å"), |
| | | INOUT_IN("intou_in", "å
¥åº"), |
| | | INOUT_OUT("intou_out", "åºåº"), |
| | | TEMPCONTROL("temp", "ç¯æµæ§æ¸©"), |
| | | WEATHER("weather", "æ°è±¡ç«æ¨¡å"), |
| | | ES("es", "è½è模å"), |
| | | SECURITY("security", "å®é²æ¨¡å"), |
| | | SYS("sys", "ç³»ç»æå¡"), |
| | | QUANTITY("quantity", "æ°éç管"), |
| | | WARN("warn", "é¢è¦åæ"), |
| | | SCREEN("screen", "大屿¨¡å"), |
| | | SCREEN_INOUT("screen_inout", "åºå
¥åºå¤§å±æ¨¡å"), |
| | | SCREEN_CHECK("screen_check", "åéªå¤§å±æ¨¡å"); |
| | | private String code; |
| | | private String msg; |
| | | |
| | | private BizType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return null; |
| | | |
| | | if(BizType.GRAIN.getCode().equals(code)) return BizType.GRAIN.getMsg(); |
| | | if(BizType.PEST.getCode().equals(code)) return BizType.PEST.getMsg(); |
| | | if(BizType.GAS.getCode().equals(code)) return BizType.GAS.getMsg(); |
| | | if(BizType.AREATION.getCode().equals(code)) return BizType.AREATION.getMsg(); |
| | | if(BizType.N2.getCode().equals(code)) return BizType.N2.getMsg(); |
| | | if(BizType.INOUT_IN.getCode().equals(code)) return BizType.INOUT_IN.getMsg(); |
| | | if(BizType.INOUT_OUT.getCode().equals(code)) return BizType.INOUT_OUT.getMsg(); |
| | | if(BizType.TEMPCONTROL.getCode().equals(code)) return BizType.TEMPCONTROL.getMsg(); |
| | | if(BizType.WEATHER.getCode().equals(code)) return BizType.WEATHER.getMsg(); |
| | | if(BizType.ES.getCode().equals(code)) return BizType.ES.getMsg(); |
| | | if(BizType.SECURITY.getCode().equals(code)) return BizType.SECURITY.getMsg(); |
| | | if(BizType.SYS.getCode().equals(code)) return BizType.SYS.getMsg(); |
| | | if(BizType.QUANTITY.getCode().equals(code)) return BizType.QUANTITY.getMsg(); |
| | | if(BizType.WARN.getCode().equals(code)) return BizType.WARN.getMsg(); |
| | | if(BizType.SCREEN.getCode().equals(code)) return BizType.SCREEN.getMsg(); |
| | | if(BizType.SCREEN_INOUT.getCode().equals(code)) return BizType.SCREEN_INOUT.getMsg(); |
| | | if(BizType.SCREEN_CHECK.getCode().equals(code)) return BizType.SCREEN_CHECK.getMsg(); |
| | | return code; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * @Description æææ¹å¼ |
| | | * @Author CZT |
| | | * @Date 2024/12/10 16:48 |
| | | */ |
| | | public enum CameraPlayType { |
| | | |
| | | PLAY_TYPE_DEFAULT("DEFAULT", "ç³»ç»é»è®¤"), |
| | | PLAY_TYPE_WEB_RTC_DH("WEB_RTC_DH", "WEB-RTC-大å"), |
| | | PLAY_TYPE_WEB_RTC_HIK("WEB_RTC_HIK", "WEB-RTC-海康"), |
| | | PLAY_TYPE_HIK_WEB_WS("HIK_WEB_WS", "海康webæ æä»¶"), |
| | | PLAY_TYPE_DH_WEB_WS("DH_WEB_WS", "大åwebæ æä»¶"), |
| | | PLAY_TYPE_VLC("VLC", "VLCæä»¶"), |
| | | PLAY_TYPE_HIK_WEB4("HIK_WEB4", "海康webæä»¶"), |
| | | PLAY_TYPE_HIK_MEDIA("MEDIA_HIK", "海康综åå®é²å¹³å°"); |
| | | |
| | | private String code; |
| | | private String name; |
| | | |
| | | private CameraPlayType(String code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public static String getName(String code){ |
| | | if(null == code) { |
| | | return null; |
| | | } |
| | | if(CameraPlayType.PLAY_TYPE_DEFAULT.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_DEFAULT.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_WEB_RTC_DH.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_WEB_RTC_DH.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_WEB_RTC_HIK.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_WEB_RTC_HIK.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_HIK_WEB_WS.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_HIK_WEB_WS.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_DH_WEB_WS.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_DH_WEB_WS.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_VLC.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_VLC.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_HIK_WEB4.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_HIK_WEB4.getName(); |
| | | if(CameraPlayType.PLAY_TYPE_HIK_MEDIA.getCode().equals(code)) return CameraPlayType.PLAY_TYPE_HIK_MEDIA.getName(); |
| | | return code; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * @Description æææ¹å¼ |
| | | * @Author CZT |
| | | * @Date 2024/12/10 16:38 |
| | | */ |
| | | public enum CameraSnapType { |
| | | |
| | | SNAP_TYPE_FZZY_PLUGIN("FZZY-PLUGIN", "飿£è´è¿æä»¶ææ"), |
| | | SNAP_TYPE_MEDIA("MEDIA", "æµåªä½"), |
| | | SNAP_TYPE_OPEN_API("OPEN_API", "飿£è´è¿APIææ"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | private CameraSnapType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | if (CameraSnapType.SNAP_TYPE_FZZY_PLUGIN.getCode().equals(code)) |
| | | return CameraSnapType.SNAP_TYPE_FZZY_PLUGIN.getMsg(); |
| | | if (CameraSnapType.SNAP_TYPE_MEDIA.getCode().equals(code)) return CameraSnapType.SNAP_TYPE_MEDIA.getMsg(); |
| | | if (CameraSnapType.SNAP_TYPE_OPEN_API.getCode().equals(code)) return CameraSnapType.SNAP_TYPE_OPEN_API.getMsg(); |
| | | return code; |
| | | } |
| | | } |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | public class Constant { |
| | | |
| | | /** |
| | | * ç¨äºåæ¾ç²®é£åç§code -name |
| | | */ |
| | | public static Map<String, String> mapFoodVariety = new HashMap<>(); |
| | | |
| | | /** |
| | | * ç¨äºåæ¾ç²®ç±»åcode -name |
| | | */ |
| | | public static Map<String, String> mapFoodType = new HashMap<>(); |
| | | |
| | | /** |
| | | * åå§ååæ¾æµç¨å个ç¯èçåç§°ï¼åç§°éè¿æ´æ°åå
¸è¡¨çæ¶å忥 |
| | | */ |
| | | public static Map<String,String> mapProgressName = new HashMap<>(); |
| | | |
| | | public static final String MODEL_DZHWK = "dzhwk";// ç³»ç»æ¨¡åæ è®°-çµåè´§ä½å¡ |
| | | |
| | | /** |
| | | * é¨é¨ç±»å |
| | | */ |
| | | public static String DEPT_TYPE_10 = "10"; //å
¬å¸ |
| | | public static String DEPT_TYPE_20 = "20"; //åºåº |
| | | public static String DEPT_TYPE_30 = "30"; //é¨é¨ |
| | | |
| | | //-粮温å¤ç¨ç¹ |
| | | public static final double ERROR_TEMP = -100; |
| | | //-粮温æ
éç¹ |
| | | public static final double FAULT_TEMP = -101; |
| | | //-粮温补å¿ç¹-é对é¥å½¢ä»è¡¥ç¹ä½¿ç¨ |
| | | public static final double ADD_TEMP = -102; |
| | | |
| | | public static final String EMPTY = "NULL"; |
| | | |
| | | // ç¨äºæ¥æä¸çTAGæ ç¾è¯å«ï¼è¡¨ç¤ºååºåç§° |
| | | public static final String TAG_SUB_NAME = "SUB_NAME"; |
| | | |
| | | /** |
| | | * è¿ç®ç¬¦ |
| | | */ |
| | | public static final String OPERA_LE = "<="; |
| | | /** |
| | | * è¿ç®ç¬¦ |
| | | */ |
| | | public static final String OPERA_GE = ">="; |
| | | |
| | | /** |
| | | * ç³»ç»åç§° |
| | | */ |
| | | public static final String APP_NAME = "igds"; |
| | | |
| | | public static final String MODEL_GRAIN = "grain";// ç³»ç»æ¨¡åæ è®°-ç²®æ
管ç |
| | | public static final String MODEL_VERB = "verb";// ç³»ç»æ¨¡åæ è®°-éé£ç®¡ç |
| | | public static final String MODEL_N2 = "n2";// ç³»ç»æ¨¡åæ è®°-æ°è°ç®¡ç |
| | | public static final String MODEL_TEMP = "temp";// ç³»ç»æ¨¡åæ è®°-å
ç¯æµæ¸©æ§ |
| | | public static final String MODEL_HLXZ = "hlxz";// ç¯æµçè¸ |
| | | public static final String MODEL_QUANTITY = "quantity";// ç³»ç»æ¨¡åæ è®°-æ°éæ£æµ |
| | | public static final String MODEL_INOUT = "inout";// ç³»ç»æ¨¡åæ è®°-åºå
¥åºç®¡ç |
| | | public static final String MODEL_MANAGER = "manager";// ç³»ç»æ¨¡åæ è®°-综åä¸å¡ |
| | | public static final String MODEL_SECURITY = "security";// ç³»ç»æ¨¡åæ è®°-å®é²ç®¡ç |
| | | public static final String MODEL_ES = "es";// ç³»ç»æ¨¡åæ è®°-è½è管ç |
| | | public static final String MODEL_SYS = "sys";// ç³»ç»æ¨¡åæ è®°-ç³»ç»ç®¡ç |
| | | public static final String MODEL_WARN = "warn";// ç³»ç»æ¨¡åæ è®°-éç¨æ¨¡å |
| | | public static final String MODEL_COMMON = "common";// ç³»ç»æ¨¡åæ è®°-éç¨æ¨¡å |
| | | public static final String MODEL_GROUP = "group";// ç³»ç»æ¨¡åæ è®°-ç管 |
| | | |
| | | /** |
| | | * é»è®¤é¡¶çº§èç¹ç¼ç |
| | | */ |
| | | public static final String DEFAULT_PARENT_CODE = "0"; |
| | | |
| | | public static final String DEFAULT_DEPT_ID = "0000"; |
| | | |
| | | public static final String SYS_USER = "SYS"; |
| | | |
| | | public static final String YN_Y = "Y"; |
| | | public static final String YN_N = "N"; |
| | | public static final String YN_E = "E";//代表é误; |
| | | |
| | | public static final int TR_TRUE = 1; |
| | | public static final int TR_FALSE = 0; |
| | | |
| | | public static final String NETWORK_01 = "01";// æçº¿æ¨¡å¼ |
| | | public static final String NETWORK_02 = "02";// æ çº¿æ¨¡å¼ |
| | | |
| | | public static final String MODEL_KEY_LOGIN_USER = "loginUser"; |
| | | public static final String MODEL_KEY_DEFAULT_COMPANY = "company"; |
| | | |
| | | public static final String MODEL_KEY_DEPT_ID = "deptId";// æå±ååº |
| | | // ä»åºå表 |
| | | public static final String MODEL_KEY_DEPOT_LIST = "listDepot"; |
| | | |
| | | public static final String MODEL_KEY_BIZ_TYPE = "bizType"; |
| | | // ç²®æ
å表 |
| | | public static final String MODEL_KEY_GRAIN_MAP = "mapGrain"; |
| | | // æ°ä½å表 |
| | | public static final String MODEL_KEY_GAS_MAP = "mapGas"; |
| | | |
| | | /** |
| | | * 宿¶ç±»å-æ¯å¤©æ§è¡ |
| | | */ |
| | | public static final String TIM_TYPE_DAY = "day"; |
| | | /** |
| | | * 宿¶ç±»å-æ¯å¨ |
| | | */ |
| | | public static final String TIM_TYPE_WEEK = "week"; |
| | | /** |
| | | * 宿¶ç±»å-æå®å
·ä½å°æ¶æ¶é´ |
| | | */ |
| | | public static final String TIM_TYPE_HOUR = "hour"; |
| | | /** |
| | | * æ¯å¤© Hç¹ Må æ§è¡è¡¨è¾¾å¼ |
| | | */ |
| | | public static final String CRON_DAY = "0 M H ? * *"; |
| | | /** |
| | | * æ¯å¨W Hç¹ Må æ§è¡è¡¨è¾¾å¼ |
| | | */ |
| | | public static final String CRON_WEEK = "0 M H ? * W"; |
| | | /** |
| | | * å
·ä½æä¸ªæ¶é´ç¹-æ¯å¹´ |
| | | */ |
| | | public static final String CRON_HOUR = "S M H D & ?"; |
| | | |
| | | /** |
| | | * 䏿æ¡ç¹æ®ç¶ç¼ç -éé£ç®ç |
| | | */ |
| | | public static final String TRIGGER_PARENT_AREATION_TARGIT = "AREATION_TARGIT"; |
| | | |
| | | // åå
¸-ç²®é£ç级 |
| | | public static final String TRIGGER_PARENT_FOOD_LEVEL = "FOOD_LEVEL_"; |
| | | // åå
¸-ç²®é£åç§ |
| | | public static final String TRIGGER_PARENT_FOOD_VARIETY = "FOOD_VARIETY_"; |
| | | |
| | | // åå
¸-ç²®é£ç±»å |
| | | public static final String TRIGGER_PARENT_FOOD_TYPE = "FOOD_TYPE_"; |
| | | |
| | | /** |
| | | * 飿£è´è¿çè§é¢åè®®å®ä¹ |
| | | */ |
| | | public static final String PROTOCOL_VIDEO_FZZY = "PROTOCOL_VIDEO_FZZY"; |
| | | |
| | | // åå
¸-åºå
¥åºæµç¨ |
| | | public static final String TRIGGER_PARENT_PROCESS_STATUS = "PROCESS_STATUS_"; |
| | | |
| | | /** |
| | | * ç²®æ
æ£æµå®æ¶å¨ |
| | | */ |
| | | public static final String JOB_BEAN_GRAIN = "JobGrainService"; |
| | | /** |
| | | * ç²®æ
æ£æµå®æ¶å¨ |
| | | */ |
| | | public static final String JOB_BEAN_GAS = "JobGasService"; |
| | | /** |
| | | * ç²®æ
æ£æµå®æ¶å¨ |
| | | */ |
| | | public static final String JOB_BEAN_PEST = "JobPestService"; |
| | | /** |
| | | * ç
§ææ§å¶å®æ¶å¨ |
| | | */ |
| | | public static final String JOB_BEAN_LAMP = "JobLampService"; |
| | | /** |
| | | * ç©ºè°æ§å¶å®æ¶å¨ |
| | | */ |
| | | public static final String JOB_BEAN_TEMP = "JobTempService"; |
| | | |
| | | /** |
| | | * åæºå¨ä½¿ç¨ä¸çç¶æï¼ä¾å¦ï¼éé£ä¸ãæ°ä½ééä¸ãè«å®³ééä¸ç |
| | | */ |
| | | public static String STATUS_SER_RUN = "RUN"; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * ææº¢ç±»å-æè |
| | | */ |
| | | public static final String LOSS_OVER_LOSS = "LOSS"; |
| | | /** |
| | | * ææº¢ç±»å-æº¢åº |
| | | */ |
| | | public static final String LOSS_OVER_OVER = "OVER"; |
| | | |
| | | |
| | | /** |
| | | * ç²®æ
çµç¼èµ·å§æ¹ä½(é»è®¤å³è¾¹) |
| | | */ |
| | | public static final String GRAIN_START_ORIENTATION_RIGHT = "right"; //å³è¾¹ |
| | | public static final String GRAIN_START_ORIENTATION_RIGHT_UP = "right-up"; //å³ä¸ |
| | | public static final String GRAIN_START_ORIENTATION_LEFT = "left"; //左边 |
| | | public static final String GRAIN_START_ORIENTATION_LEFT_UP = "left-up"; //å·¦ä¸ |
| | | |
| | | /** |
| | | * ç²®æ
çµç¼å¸çº¿æ¹å(é»è®¤çºµå) |
| | | */ |
| | | public static final String GRAIN_START_DIRECTION_PORTRAIT = "portrait"; //纵å |
| | | public static final String GRAIN_START_DIRECTION_TRANSVERSE = "transverse"; //横å |
| | | |
| | | /** |
| | | * ç²®æ
çµç¼èµ·å§ç¹ä½(é»è®¤é¡¶é¨) |
| | | */ |
| | | public static final String GRAIN_START_POINT_TOP = "top"; //é¡¶é¨ |
| | | public static final String GRAIN_START_POINT_BELOW = "below"; //åºé¨ |
| | | |
| | | /** |
| | | * è¡å±è½¬æ¢(é»è®¤ä¸è½¬æ¢) |
| | | */ |
| | | public static final String GRAIN_CONVERT_DEFAULT = "default"; //é»è®¤ |
| | | public static final String GRAIN_CONVERT_CLOCKWISE = "clockwise"; //顺æ¶é |
| | | public static final String GRAIN_CONVERT_ANTICLOCKWISE = "anticlockwise"; //éæ¶é |
| | | |
| | | |
| | | //çä»é¥å½¢-æ éªè¯ |
| | | public static final String CABLE_CONE_0 = "0"; |
| | | //çä»é¥å½¢-ä¸é¥å½¢ |
| | | public static final String CABLE_CONE_1 = "1"; |
| | | //çä»é¥å½¢-ä¸é¥å½¢ |
| | | public static final String CABLE_CONE_2 = "2"; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * æ§å¶ææä½æ¨¡å¼ |
| | | */ |
| | | public enum ControlModel { |
| | | |
| | | MODEL_01("01", "æ¬å°æ¨¡å¼"), MODEL_02("02", "è¿ç¨æ¨¡å¼"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | ControlModel(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ä»åºç¶ææä¸¾ |
| | | */ |
| | | public enum DepotStatus { |
| | | |
| | | STATUS_1("1", "空ä»"), |
| | | STATUS_2("2", "å
¥åºä¸"), |
| | | STATUS_3("3", "å°ä»"), |
| | | STATUS_31("31", "å°ä»-æ°è°ä¸"), |
| | | STATUS_32("32", "å°ä»-çè¸ä¸"), |
| | | STATUS_33("33", "å°ä»-éé£ä¸"), |
| | | STATUS_34("34", "å°ä»-温æ§ä¸"), |
| | | STATUS_4("4", "åºåºä¸"), |
| | | STATUS_9("9", "å
¶ä»"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DepotStatus(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | |
| | | if (DepotStatus.STATUS_1.getCode().equals(code)) return DepotStatus.STATUS_1.getMsg(); |
| | | if (DepotStatus.STATUS_2.getCode().equals(code)) return DepotStatus.STATUS_2.getMsg(); |
| | | if (DepotStatus.STATUS_3.getCode().equals(code)) return DepotStatus.STATUS_3.getMsg(); |
| | | if (DepotStatus.STATUS_4.getCode().equals(code)) return DepotStatus.STATUS_4.getMsg(); |
| | | if (DepotStatus.STATUS_31.getCode().equals(code)) return DepotStatus.STATUS_31.getMsg(); |
| | | if (DepotStatus.STATUS_32.getCode().equals(code)) return DepotStatus.STATUS_32.getMsg(); |
| | | if (DepotStatus.STATUS_33.getCode().equals(code)) return DepotStatus.STATUS_33.getMsg(); |
| | | if (DepotStatus.STATUS_34.getCode().equals(code)) return DepotStatus.STATUS_34.getMsg(); |
| | | |
| | | return DepotStatus.STATUS_9.getMsg(); |
| | | } |
| | | |
| | | |
| | | public static String getGBCode(String code) { |
| | | if (null == code) DepotStatus.STATUS_9.getCode(); |
| | | |
| | | if (DepotStatus.STATUS_31.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_32.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_33.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_34.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | |
| | | return code; |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ä»åºç±»åï¼é对å½åç³»ç»ææ¯æç仿¿ç±»åï¼é彿 ç±»å |
| | | * |
| | | * @author jiazx |
| | | */ |
| | | public enum DepotType { |
| | | |
| | | TYPE_01("01", "å¹³æ¿ä»"), |
| | | TYPE_02("02", "æµ
åä»"), |
| | | TYPE_03("03", "卿²¹ç½"), |
| | | TYPE_04("04", "ç«çä»"), |
| | | TYPE_05("05", "楼æ¿ä»"), |
| | | TYPE_99("99", "å
¶ä»"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DepotType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | |
| | | if (DepotType.TYPE_01.getCode().equals(code)) return DepotType.TYPE_01.getMsg(); |
| | | |
| | | if (DepotType.TYPE_02.getCode().equals(code)) return DepotType.TYPE_02.getMsg(); |
| | | |
| | | if (DepotType.TYPE_03.getCode().equals(code)) return DepotType.TYPE_03.getMsg(); |
| | | |
| | | if (DepotType.TYPE_04.getCode().equals(code)) return DepotType.TYPE_04.getMsg(); |
| | | |
| | | if (DepotType.TYPE_05.getCode().equals(code)) return DepotType.TYPE_05.getMsg(); |
| | | |
| | | return TYPE_99.getMsg(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ç©èç½æå±è®¾å¤ç±»åæä¸¾ç±» |
| | | */ |
| | | public enum DeviceIotType { |
| | | |
| | | TYPE_01("01", "01-温湿度"), |
| | | |
| | | TYPE_02("02", "02-æ¶²ä½è®¡"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DeviceIotType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return null; |
| | | if(DeviceIotType.TYPE_01.getCode().equals(code)) return DeviceIotType.TYPE_01.getMsg(); |
| | | if(DeviceIotType.TYPE_02.getCode().equals(code)) return DeviceIotType.TYPE_02.getMsg(); |
| | | return "å
¶ä»"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * 设å¤ä½ç½® |
| | | */ |
| | | public enum DeviceLocation { |
| | | |
| | | L_01("01", "01-æ£é¢"), |
| | | L_02("02", "02-èé¢"), |
| | | L_03("03", "03-左侧"), |
| | | L_04("04", "04-å³ä¾§"), |
| | | L_05("05", "05-ä»å
"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DeviceLocation(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | if (DeviceLocation.L_01.getCode().equals(code)) return DeviceLocation.L_01.getMsg(); |
| | | if (DeviceLocation.L_02.getCode().equals(code)) return DeviceLocation.L_02.getMsg(); |
| | | if (DeviceLocation.L_03.getCode().equals(code)) return DeviceLocation.L_03.getMsg(); |
| | | if (DeviceLocation.L_04.getCode().equals(code)) return DeviceLocation.L_04.getMsg(); |
| | | if (DeviceLocation.L_05.getCode().equals(code)) return DeviceLocation.L_05.getMsg(); |
| | | return "æªé
ç½®"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * åæºç±»åï¼å
¶ä¸ç¬ç«ç»ç«¯å
æ¬ï¼ç¬ç«ç»ç«¯ï¼å°ç£
ãæ¦æ ·æºã车çè¯å«ãåéªè®¾å¤ãåºåºæ°è±¡ç«ãæºè½ç»ç«¯ãå¶æ°®æºçï¼ |
| | | */ |
| | | public enum DeviceSerType { |
| | | |
| | | TYPE_01("01", "01-ç»¼åæ§å¶æ"), |
| | | TYPE_02("02", "02-ç¬ç«ç²®æ
åæº"), |
| | | TYPE_03("03", "02-ç¬ç«éé£åæº"), |
| | | TYPE_99("99", "99-ç¬ç«ç»ç«¯"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DeviceSerType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) return null; |
| | | |
| | | if (DeviceSerType.TYPE_01.getCode().equals(code)) return DeviceSerType.TYPE_01.getMsg(); |
| | | if (DeviceSerType.TYPE_02.getCode().equals(code)) return DeviceSerType.TYPE_02.getMsg(); |
| | | |
| | | return DeviceSerType.TYPE_99.getMsg(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * 设å¤ç¶ææä¸¾ |
| | | */ |
| | | public enum DeviceStatus { |
| | | |
| | | // é»è®¤ç±» |
| | | CLOSE("CLOSE", "å
³é"), OPEN("OPEN", "æå¼"), |
| | | |
| | | // 飿ºç±»è®¾å¤ç¶æ |
| | | W_CLOSE("W_CLOSE", "é£å£å
³"), W_OPEN("W_OPEN", "é£å£å¼"), F_OPEN("F_OPEN", "飿ºæ£è½¬"), F_OPEN_F( |
| | | "F_OPEN_F", "飿ºå转"), F_CLOSE("F_CLOSE", "飿ºå
³"), ERROR("ERROR", "æ
é"), ZERO( |
| | | "ZERO", "æ æä½"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DeviceStatus(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getDeviceStatus(String code) { |
| | | if (null == code) |
| | | return ""; |
| | | |
| | | if (DeviceStatus.CLOSE.getCode().equals(code)) { |
| | | return DeviceStatus.CLOSE.getMsg(); |
| | | } |
| | | if (DeviceStatus.F_CLOSE.getCode().equals(code)) { |
| | | return DeviceStatus.F_CLOSE.getMsg(); |
| | | } |
| | | |
| | | if (DeviceStatus.F_OPEN.getCode().equals(code)) { |
| | | return DeviceStatus.F_OPEN.getMsg(); |
| | | } |
| | | if (DeviceStatus.OPEN.getCode().equals(code)) { |
| | | return DeviceStatus.OPEN.getMsg(); |
| | | } |
| | | |
| | | if (DeviceStatus.W_CLOSE.getCode().equals(code)) { |
| | | return DeviceStatus.W_CLOSE.getMsg(); |
| | | } |
| | | |
| | | if (DeviceStatus.W_OPEN.getCode().equals(code)) { |
| | | return DeviceStatus.W_OPEN.getMsg(); |
| | | } |
| | | |
| | | return ""; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å½åééç¶æåå
³èç¶æè·åå®é
ç设å¤ç¶æ |
| | | * |
| | | * @param status |
| | | * @param linkStatus |
| | | * @param deviceType |
| | | * @return |
| | | */ |
| | | public static String getStatus(String status, String linkStatus, |
| | | String deviceType) { |
| | | if (null == status || Constant.EMPTY.equalsIgnoreCase(status)) |
| | | status = ERROR.code; |
| | | |
| | | if(null == linkStatus) linkStatus = Constant.EMPTY; |
| | | |
| | | // if (null == linkStatus || |
| | | // Constant.EMPTY.equalsIgnoreCase(linkStatus)){ |
| | | // linkStatus = ERROR.code; |
| | | // } |
| | | |
| | | //åªæè½´æµé£æºåæ··æµé£æºæèèå
³è设å¤ï¼å
¶ä»å¿½ç¥å
³è |
| | | if(!DeviceType.TYPE_0C.getCode().equals(deviceType) && !DeviceType.TYPE_02.getCode().equals(deviceType)){ |
| | | linkStatus = null; |
| | | } |
| | | |
| | | if (ERROR.code.equals(status) && OPEN.getCode().equals(linkStatus)) { |
| | | return W_OPEN.getCode(); |
| | | } |
| | | if (ERROR.code.equals(status) && CLOSE.getCode().equals(linkStatus)) { |
| | | return W_CLOSE.getCode(); |
| | | } |
| | | // 飿ºç±»ç设å¤å¤ç |
| | | // 飿ºå
³ çªå£ å¼ |
| | | if (F_CLOSE.getCode().equals(status) |
| | | && OPEN.getCode().equals(linkStatus)) { |
| | | return W_OPEN.getCode(); |
| | | } |
| | | |
| | | // 飿ºå
³ çªå£å
³ |
| | | if (F_CLOSE.getCode().equals(status) |
| | | && CLOSE.getCode().equals(linkStatus)) { |
| | | return W_CLOSE.getCode(); |
| | | } |
| | | |
| | | // 飿ºå¼ çªå£å¼ |
| | | if (F_OPEN.getCode().equals(status) |
| | | && OPEN.getCode().equals(linkStatus)) { |
| | | return F_OPEN.getCode(); |
| | | } |
| | | // 飿ºå¼ çªå£å
³ |
| | | // if (F_OPEN.getCode().equals(status) |
| | | // && CLOSE.getCode().equals(linkStatus)) { |
| | | // return ERROR.getCode(); |
| | | // } |
| | | if (F_OPEN.getCode().equals(status)) { |
| | | return F_OPEN.getCode(); |
| | | } |
| | | |
| | | // 飿ºåå¼ çªå£å¼ |
| | | if (F_OPEN_F.getCode().equals(status) |
| | | && OPEN.getCode().equals(linkStatus)) { |
| | | return F_OPEN_F.getCode(); |
| | | } |
| | | |
| | | // 飿ºåå¼ çªå£å
³ |
| | | // if (F_OPEN_F.getCode().equals(status) |
| | | // && CLOSE.getCode().equals(linkStatus)) { |
| | | // return ERROR.getCode(); |
| | | // } |
| | | if (F_OPEN_F.getCode().equals(status)) { |
| | | return F_OPEN_F.getCode(); |
| | | } |
| | | |
| | | return status; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * 设å¤ç±»åæä¸¾ç±» |
| | | */ |
| | | public enum DeviceType { |
| | | |
| | | TYPE_01("01", "01-é£çª"), |
| | | TYPE_02("02", "02-è½´æµé£çª"), |
| | | TYPE_03("03", "03-离å¿é£æº"), |
| | | TYPE_04("04", "04-ç¯æµé£æº"), |
| | | TYPE_05("05", "05-空è°"), |
| | | TYPE_06("06", "06-ç
§æ"), |
| | | TYPE_07("07", "07-éé¨"), |
| | | TYPE_071("071", "071-空è°éé¨"), //æå±è®¾å¤ç±»å |
| | | TYPE_08("08", "08-æ°æ³µ"), |
| | | TYPE_09("09", "09-主éé¨"), |
| | | // TYPE_0A("0A", "0A-è½´æµé£çª"), |
| | | TYPE_0B("0B", "0B-éé£å£"), |
| | | TYPE_0C("0C", "0C-æ··æµé£å£"), |
| | | TYPE_0D("0D", "0D-å å飿º"), |
| | | TYPE_0E("0E", "0E-é¨ç¦è®¾å¤"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | DeviceType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return null; |
| | | |
| | | if(DeviceType.TYPE_01.getCode().equals(code)) return DeviceType.TYPE_01.getMsg(); |
| | | if(DeviceType.TYPE_02.getCode().equals(code)) return DeviceType.TYPE_02.getMsg(); |
| | | if(DeviceType.TYPE_03.getCode().equals(code)) return DeviceType.TYPE_03.getMsg(); |
| | | if(DeviceType.TYPE_04.getCode().equals(code)) return DeviceType.TYPE_04.getMsg(); |
| | | if(DeviceType.TYPE_05.getCode().equals(code)) return DeviceType.TYPE_05.getMsg(); |
| | | if(DeviceType.TYPE_071.getCode().equals(code)) return DeviceType.TYPE_071.getMsg(); |
| | | if(DeviceType.TYPE_06.getCode().equals(code)) return DeviceType.TYPE_06.getMsg(); |
| | | if(DeviceType.TYPE_07.getCode().equals(code)) return DeviceType.TYPE_07.getMsg(); |
| | | if(DeviceType.TYPE_08.getCode().equals(code)) return DeviceType.TYPE_08.getMsg(); |
| | | if(DeviceType.TYPE_09.getCode().equals(code)) return DeviceType.TYPE_09.getMsg(); |
| | | if(DeviceType.TYPE_0B.getCode().equals(code)) return DeviceType.TYPE_0B.getMsg(); |
| | | if(DeviceType.TYPE_0C.getCode().equals(code)) return DeviceType.TYPE_0C.getMsg(); |
| | | if(DeviceType.TYPE_0D.getCode().equals(code)) return DeviceType.TYPE_0D.getMsg(); |
| | | if(DeviceType.TYPE_0E.getCode().equals(code)) return DeviceType.TYPE_0E.getMsg(); |
| | | |
| | | return "å
¶ä»"; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | *ç²®é£ç级 |
| | | * |
| | | * æ´æ°è®°å½ï¼ |
| | | * 1ï¼å é¤ç¹çï¼ä»1çå¼å§ |
| | | */ |
| | | public enum FoodLevel { |
| | | |
| | | LEVEL_01("01", "ä¸ç"), |
| | | LEVEL_02("02", "äºç"), |
| | | LEVEL_03("03", "ä¸ç"), |
| | | LEVEL_04("04", "åç"), |
| | | LEVEL_05("05", "äºç"), |
| | | LEVEL_06("06", "çå¤"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | private FoodLevel(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code){ |
| | | if(null == code) return null; |
| | | if(FoodLevel.LEVEL_01.getCode().equals(code)) return FoodLevel.LEVEL_01.getMsg(); |
| | | if(FoodLevel.LEVEL_02.getCode().equals(code)) return FoodLevel.LEVEL_02.getMsg(); |
| | | if(FoodLevel.LEVEL_03.getCode().equals(code)) return FoodLevel.LEVEL_03.getMsg(); |
| | | if(FoodLevel.LEVEL_04.getCode().equals(code)) return FoodLevel.LEVEL_04.getMsg(); |
| | | if(FoodLevel.LEVEL_05.getCode().equals(code)) return FoodLevel.LEVEL_05.getMsg(); |
| | | return FoodLevel.LEVEL_06.getMsg(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ä»å¨æ§è´¨æä¸¾ |
| | | * å¨LS/T 1702ç²®é£å±æ§åç±»ä¸ä»£ç ç» |
| | | */ |
| | | public class FoodType { |
| | | |
| | | public static String getMsg(String code) { |
| | | if (null == code) { |
| | | return ""; |
| | | } |
| | | return Constant.mapFoodType.get(code); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * ç²®é£åç§ï¼ |
| | | * <p> |
| | | * æ´æ°è®°å½ï¼ |
| | | * åèï¼LST1703-2017 æ åéæ°å®ä¹ |
| | | */ |
| | | public class FoodVariety { |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°æ¾ç¼ç |
| | | * |
| | | * @param msg |
| | | * @return |
| | | */ |
| | | public static String getCode(String msg) { |
| | | Set<String> keys = Constant.mapFoodVariety.keySet(); |
| | | if (null == keys || keys.isEmpty()) return msg; |
| | | |
| | | for (String key : keys) { |
| | | if (Constant.mapFoodVariety.get(key).equals(msg)) { |
| | | return key; |
| | | } |
| | | } |
| | | return msg; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç¼ç æ¾åç§° |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static String getMsg(String code) { |
| | | if (null == code) return "æªé
ç½®"; |
| | | |
| | | return Constant.mapFoodVariety.get(code); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * é飿¨¡å¼æä¸¾ |
| | | */ |
| | | public enum GrainAnalysisModel { |
| | | |
| | | MODEL_01("01", "粮温å¼å¸¸ç¹ä½åæ"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | GrainAnalysisModel(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ç²®æ
ä¿å颿¬¡ |
| | | * |
| | | * @author jiazx |
| | | * |
| | | */ |
| | | public enum GrainFrequence { |
| | | |
| | | FREQ_01("01", "䏿¥å¤æ¬¡"), FREQ_02("02", "䏿¥ä¸æ¬¡"), FREQ_03("03", "䏿¥ä¸¤æ¬¡"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | GrainFrequence(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * åºå
¥åºå¸¸éå®ä¹ |
| | | * |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2020å¹´2æ19æ¥ |
| | | */ |
| | | public class InoutConstant { |
| | | |
| | | /** |
| | | * é»è®¤èº«ä»½è¯ |
| | | */ |
| | | public static final String DEFAULT_ID_CARD = "100000000000000000"; |
| | | |
| | | /** |
| | | * ç¼å-å
¥åºID |
| | | */ |
| | | public static final String CACHE_RECORD_ID = "RECORD_ID"; |
| | | |
| | | /** |
| | | * ç¼åKEY-åºå
¥åºé
置信æ¯ç¼å |
| | | */ |
| | | public static final String CACHE_INOUT_CONF_LIST = "INOUT_CONF"; |
| | | |
| | | /** |
| | | * ç¼åKEY-åºå
¥åºæµç¨é
ç½®ä¿¡æ¯ |
| | | */ |
| | | public static final String CACHE_INOUT_SYS_CONF = "INOUT_SYS_CONF"; |
| | | |
| | | /** |
| | | * 临æ¶ç¼åï¼åæ¾å½åçåºå
¥åºä¿¡æ¯ |
| | | */ |
| | | public static final String KEY_INOUT_LIST = "INOUT_LIST"; |
| | | |
| | | /** |
| | | * 临æ¶ç¼åï¼åæ¾å½åçåºå
¥åºä¿¡æ¯æ¶é´ï¼åºå
¥åºç¼åå¯è½åå¨ä¸¤å¤©å®æçæ
åµï¼æ¶é´è°æ´ä¸º48å°æ¶ |
| | | */ |
| | | public static final Integer KEY_INOUT_LIST_TIME = 72 * 60 * 60; |
| | | |
| | | |
| | | /** |
| | | * 临æ¶ç¼åï¼åæ¾å½æ¥å·²ç»å®æçåºå
¥åºä¿¡æ¯ |
| | | */ |
| | | public static final String KEY_INOUT_COMPLETE_LIST = "INOUT_COMPLETE"; |
| | | |
| | | /** |
| | | * 彿¥å®æçåºå
¥åºä¿¡æ¯ä»»å¡å表 |
| | | */ |
| | | public static final long KEY_INOUT_COMPLETE_LIST_TIME = 8 * 60 * 60; |
| | | |
| | | |
| | | // æ¦æ ·-åéªç¶æ |
| | | public static final String STATUS_NONE = "NONE"; |
| | | // æ¦æ ·-åéªç¶æ |
| | | public static final String STATUS_PASS = "PASS"; |
| | | // æ¦æ ·-åéªç¶æ |
| | | public static final String STATUS_UNPASS = "UNPASS"; |
| | | |
| | | /** |
| | | * åéªä¸åæ ¼è¿è¡æ¹å¼ |
| | | */ |
| | | public static final String CHECK_NOPASS_NORMAL = "0"; //æ£å¸¸æµè½¬ |
| | | public static final String CHECK_NOPASS_BACK = "1"; //åºåºæ¶å¡ |
| | | public static final String CHECK_NOPASS_RECORD = "2"; //æµç¨ç»æ |
| | | |
| | | // å®æç¶æ-æªå®æ |
| | | public static final String COMPLETE_STATUS_NONE = "NONE"; |
| | | // å®æç¶æ-已宿 |
| | | public static final String COMPLETE_STATUS_COMPLETE = "COMPLETE"; |
| | | |
| | | /** |
| | | * 设å¤ç¶æ-æªç¥ç¶æ |
| | | */ |
| | | public static final String MAC_STATUS_NONE = "NONE"; |
| | | /** |
| | | * 设å¤ç¶æ-æ£å¸¸ç¶æ |
| | | */ |
| | | public static final String MAC_STATUS_NORMAL = "NORMAL"; |
| | | /** |
| | | * 设å¤ç¶æ-æªè¿æ¥ãæ ä¿¡å· |
| | | */ |
| | | public static final String MAC_STATUS_NO_SIGNAL = "NO_SIGNAL"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å 10 = 车çè¯å« |
| | | */ |
| | | public static final String CONF_TYPE_10 = "10"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å 20 = æ¦æ ·æºå¨ |
| | | */ |
| | | public static final String CONF_TYPE_20 = "20"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å 21 = åéªæº |
| | | */ |
| | | public static final String CONF_TYPE_21 = "21"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å 30 = å°ç£
|
| | | */ |
| | | public static final String CONF_TYPE_30 = "30"; |
| | | |
| | | /** |
| | | * åºå
¥åºé
ç½®çç±»å40 = LEDæ¾ç¤ºå±å¹ |
| | | */ |
| | | public static final String CONF_TYPE_40 = "40"; |
| | | |
| | | /** |
| | | * åéªå¤§å±è§é¢ |
| | | */ |
| | | public static final String CONF_TYPE_50 = "50"; |
| | | |
| | | /** |
| | | * åºå
¥åºæææå头 |
| | | */ |
| | | public static final String CONF_TYPE_60 = "60"; |
| | | |
| | | /** |
| | | * ç§°é主æ§å¶å¨ |
| | | */ |
| | | public static final String CONF_TYPE_70 = "70"; |
| | | |
| | | /** |
| | | * æºæ
§å¡ |
| | | */ |
| | | public static final String CONF_TYPE_80 = "80"; |
| | | |
| | | // åºå
¥åºç±»å-å
¥åº |
| | | public static final String TYPE_IN = "IN"; |
| | | |
| | | // åºå
¥åºç±»å-åºåº |
| | | public static final String TYPE_OUT = "OUT"; |
| | | |
| | | public static final String TYPE_NONE = "NONE"; |
| | | |
| | | // æ°æ®ç¶æ-æ£å¸¸ |
| | | public static final String RECORD_STATUS_NORMAL = "NORMAL"; |
| | | |
| | | // æ°æ®ç¶æ-è¡¥å½ |
| | | public static final String RECORD_STATUS_ADD = "ADD"; |
| | | // æ°æ®ç¶æ-å·²å é¤ |
| | | public static final String RECORD_STATUS_DEL = "DEL"; |
| | | |
| | | // æµç¨-ç»è®° |
| | | public static final String PROGRESS_REGISTER = "REGISTER"; |
| | | // æµç¨-å
¥åºè´¨æ£ |
| | | public static final String PROGRESS_CHECK = "CHECK"; |
| | | // æµç¨-å¼ä» |
| | | public static final String PROGRESS_HANDLE = "HANDLE"; |
| | | // æµç¨-ç§°éï¼å
æ¬æ»¡è½¦ç§°éæè
空车称éï¼å½åç¶ææ¯è¾ç¹æ®ï¼ä¸ä½ä¸ºæµç¨èç¹ï¼åªä½ä¸ºæ ç¾ |
| | | public static final String PROGRESS_WEIGHT_TAG = "WEIGHT_TAG"; |
| | | // æµç¨-满车称é |
| | | public static final String PROGRESS_WEIGHT_FULL = "WEIGHT_FULL"; |
| | | // æµç¨-空车称é |
| | | public static final String PROGRESS_WEIGHT_EMPTY = "WEIGHT_EMPTY"; |
| | | // æµç¨-ç»ç® |
| | | public static final String PROGRESS_PAY = "PAY"; |
| | | // æµç¨-å¡çåæ¶ |
| | | public static final String PROGRESS_CARD_BACK = "CARD_BACK"; |
| | | |
| | | // æµç¨-夿¡ï¼è¡¨ç¤ºæµç¨æ´ä½å®æå夿¡ï¼ |
| | | public static final String PROGRESS_RECORD = "RECORD"; |
| | | |
| | | |
| | | /** |
| | | * 计åç±»å -è½®æ¢è®¡å |
| | | **/ |
| | | public static final String PLAN_TYPE_01 = "01"; |
| | | /** |
| | | * 计åç±»å -éè´è®¡å |
| | | **/ |
| | | public static final String PLAN_TYPE_02 = "02"; |
| | | /** |
| | | * 计åç±»å -éå®è®¡å |
| | | **/ |
| | | public static final String PLAN_TYPE_03 = "03"; |
| | | /** |
| | | * 计åç±»å -ç产å 工计å |
| | | **/ |
| | | public static final String PLAN_TYPE_04 = "04"; |
| | | |
| | | /** |
| | | * 计åæç»ç±»å -è½®åºè®¡å |
| | | **/ |
| | | public static final String PLAN_DETAIL_TYPE_1 = "1"; |
| | | |
| | | /** |
| | | * 计åæç»ç±»å -è½®å
¥è®¡å |
| | | **/ |
| | | public static final String PLAN_DETAIL_TYPE_2 = "2"; |
| | | /** |
| | | * æ£æµç»æ -åæ ¼ |
| | | */ |
| | | public static final String RESULT_1 = "1"; |
| | | /** |
| | | * æ£æµç»æ -ä¸åæ ¼ |
| | | */ |
| | | public static final String RESULT_0 = "0"; |
| | | |
| | | public static final String SAMPLE_TYPE_MANUAL = "0"; |
| | | public static final String SAMPLE_TYPE_AUTOMATIC = "1"; |
| | | public static final String SAMPLE_TYPE_RANDOM = "2"; |
| | | |
| | | /** |
| | | * åºå
¥åºæ¶è§é¢ç±»å |
| | | */ |
| | | public static String IMG_NAME_TYPE_DJ = "DJ"; //ç»è®°ç
§ç |
| | | public static String IMG_NAME_TYPE_RK = "RK"; //车è¾å
¥åºç
§ç |
| | | public static String IMG_NAME_TYPE_CK = "CK"; //车è¾åºåºç
§ç |
| | | public static String IMG_NAME_TYPE_GL = "GL"; //ç§°æ¯éåç
§ç |
| | | public static String IMG_NAME_TYPE_GR = "GR"; //ç§°æ¯éåç
§ç |
| | | public static String IMG_NAME_TYPE_GT = "GT"; //ç§°æ¯éé¡¶ç
§ç |
| | | public static String IMG_NAME_TYPE_TL = "TL"; //ç§°ç®éåç
§ç |
| | | public static String IMG_NAME_TYPE_TR = "TR"; //ç§°ç®éåç
§ç |
| | | public static String IMG_NAME_TYPE_TT = "TT"; //ç§°ç®éé¡¶ç
§ç |
| | | public static String IMG_NAME_TYPE_SL = "SL"; //ç»ç®æ¶å®ç²®äººç
§ç |
| | | public static String IMG_NAME_TYPE_SF = "SF"; //å®ç²®äººèº«ä»½è¯ç
§ç |
| | | public static String IMG_NAME_TYPE_IVG = "IVG"; //å
¥åºç§°æ¯éè§é¢ |
| | | public static String IMG_NAME_TYPE_IVT = "IVT"; //å
¥åºç§°ç®éè§é¢ |
| | | public static String IMG_NAME_TYPE_OVG = "OVG"; //åºåºç§°æ¯éè§é¢ |
| | | public static String IMG_NAME_TYPE_OVT = "OVT"; //åºåºç§°ç®éè§é¢ |
| | | public static String IMG_NAME_TYPE_DJV = "DJV"; //ç»è®°æ¶è§é¢ |
| | | public static String IMG_NAME_TYPE_RKV = "RKV"; //车è¾å
¥åºæ¶è§é¢ |
| | | public static String IMG_NAME_TYPE_CKV = "CKV"; //车è¾åºåºæ¶è§é¢ |
| | | |
| | | /** |
| | | * æ ¹æ®ä¸å¡ç±»åå å½åç¶æè¿åå½åç¶æçæµç¨åç§° |
| | | * |
| | | * @param type |
| | | * @param progress |
| | | * @return |
| | | */ |
| | | public static String getProcessName(String type, String progress) { |
| | | |
| | | if (PROGRESS_REGISTER.equals(progress)) |
| | | return "ç»è®°"; |
| | | |
| | | if (PROGRESS_CHECK.equals(progress)) |
| | | return "å
¥åºæ¦æ ·æµç¨"; |
| | | |
| | | if (PROGRESS_HANDLE.equals(progress)) |
| | | return "å¼ä»æµç¨"; |
| | | |
| | | if (PROGRESS_WEIGHT_FULL.equals(progress)) |
| | | return "æ»¡è½¦ç§°éæµç¨"; |
| | | |
| | | if (PROGRESS_WEIGHT_EMPTY.equals(progress)) |
| | | return "ç©ºè½¦ç§°éæµç¨"; |
| | | |
| | | if (PROGRESS_PAY.equals(progress)) |
| | | return "ç»ç®æµç¨"; |
| | | |
| | | if (PROGRESS_CARD_BACK.equals(progress)) |
| | | return "å¡çåæ¶"; |
| | | |
| | | if (PROGRESS_RECORD.equals(progress)) |
| | | return "æµç¨å®æ"; |
| | | |
| | | return ""; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * MOdBUS-åºç¡å¸¸éä¿¡æ¯ |
| | | */ |
| | | public class ModbusConstant { |
| | | |
| | | |
| | | //01-读线å |
| | | public static final String FUN_01 = "01"; |
| | | //02-读离æ£éè¾å
¥ |
| | | public static final String FUN_02 = "02"; |
| | | //03-è¯»ä¿æå¯åå¨ |
| | | public static final String FUN_03 = "03"; |
| | | //04-读è¾å
¥å¯åå¨ |
| | | public static final String FUN_04 = "04"; |
| | | //05-åå个线å |
| | | public static final String FUN_05 = "05"; |
| | | //06-åå个å¯åå¨ |
| | | public static final String FUN_06 = "06"; |
| | | //15-åå¤ä¸ªçº¿å |
| | | public static final String FUN_15 = "15"; |
| | | //16-åå¤ä¸ªå¯åå¨ |
| | | public static final String FUN_16 = "16"; |
| | | //99-ä¸æä½ |
| | | public static final String FUN_99 = "99"; |
| | | |
| | | |
| | | |
| | | public static final String MODBUS_DEVICE_CACHE = "MODBUS_DEVICE"; |
| | | |
| | | public static final String MODBUS_GAS_CACHE_LIST = "MODBUS_GAS_LIST"; |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * æ°è°ä¸æ°®æ°é䏿¨¡å¼ï¼å
æ¬å¨ä½åé¨åæµç¨æ¨¡å¼ï¼æµç¨ä¸»è¦å
æ¬ï¼æ°å¯æ§æ£æµåæºè½æ°è° |
| | | */ |
| | | public enum N2ModelTag { |
| | | |
| | | //å¨ä½ç±» |
| | | MODEL_01("01", "æ½è´å"), |
| | | MODEL_02("02", "ææ°"), |
| | | MODEL_03("03", "å
æ°®"), |
| | | MODEL_04("04", "åæ°®"), |
| | | |
| | | //å¨ä½ç±»-æ°®æ°åæ¶ |
| | | MODEL_20("20", "æ°®æ°åæ¶-ææ°"), |
| | | MODEL_21("21", "æ°®æ°åæ¶-å
æ°®"), |
| | | |
| | | //æµç¨ç±» |
| | | MODEL_30("30", "æ°å¯æ§æ£æµ"), |
| | | MODEL_31("31", "æºè½æ°è°"), |
| | | |
| | | //éèæ§è¡ç±»-æ£æµç±» |
| | | MODEL_40("40", "æ£æµç±»-ç²®æ
æ£æµ"), |
| | | MODEL_41("41", "æ£æµç±»-æ°ä½æ£æµ"), |
| | | MODEL_42("42", "æ£æµç±»-å忣æµ"), |
| | | MODEL_43("43", "æ£æµç±»-åè¡°ææ£æµ"), |
| | | |
| | | |
| | | MODEL_99("99", "èªå®ä¹æ¨¡å¼"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | N2ModelTag(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * è¦åéç¥ç±»å |
| | | * çä¿¡ï¼è¯é³ |
| | | * |
| | | * @author Andy |
| | | */ |
| | | public enum NoticeType { |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | NONE("NONE", "ä¸éç¥"), |
| | | SMS("SMS", "çä¿¡éç¥"), |
| | | EMAIL("EMAIL", "é®ç®±éç¥"), |
| | | VOICE("VOICE", "è¯é³éç¥"), |
| | | WECHAT("WECHAT", "微信éç¥"); |
| | | |
| | | private String code; |
| | | private String name; |
| | | |
| | | NoticeType(String code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | }} |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * æä½ååºç |
| | | * |
| | | * @author Andy |
| | | * |
| | | */ |
| | | public enum OrderRespEnum { |
| | | |
| | | ORDER_SUCCESS("ORDER_SUCCESS", "å½ä»¤åéæå"), |
| | | ORDER_ERROR("ORDER_ERROR", "å½ä»¤åéåºç°å¼å¸¸"), |
| | | ORDER_INORDER("ORDER_INORDER","å½ä»¤æ§è¡æéä¸"), |
| | | |
| | | ORDER_INPROGRESS("ORDER_INPROGRESS","å½ä»¤ç»§ç»æ§è¡ä¸"), |
| | | |
| | | NO_PROTOCOL("NO_PROTOCOL", "å½ååè®®æªå®ç°"), |
| | | NO_SIGN("NO_SIGN", "è¿æ¥å¼å¸¸ï¼æ²¡æè·åå°è¿æ¥"), |
| | | NO_FUNCTION("NO_FUNCTION", "ç»ç«¯æä¸æ¯æè¯¥åè½"), |
| | | |
| | | MSG_SUCCESS("MSG_SUCCESS", "ä¿¡æ¯è§£ææå"), |
| | | MSG_ERROR("MSG_ERROR", "ä¿¡æ¯è§£æå¼å¸¸"), |
| | | MSG_TIMEOUT("MSG_TIMEOUT", "è§£æè¶
æ¶"), |
| | | LOGOUT("LOGOUT", "离线") |
| | | ; |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | OrderRespEnum(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * ç³»ç»ä¸çåè®®é
ç½®ï¼æ²¡æ°å¢æ°çåè®®åéè¦å¨å½åæä¸¾ä¸æ·»å |
| | | * |
| | | * @author Andy |
| | | */ |
| | | public enum ProtocolEnum { |
| | | |
| | | TCP_DEFAULT("TCP_DEFAULT", "ç³»ç»é»è®¤åè®®"), |
| | | DG_TCP_01("TCP_DG", "大å
¬-TCPå议第ä¸çè®®"), |
| | | DG_TCP_03("DG_TCP_03", "大å
¬-TCPå议第ä¸ç"), |
| | | DG_TCP_LZ("TCP_WSM_LZ", "大å
¬-TCP-æè"), |
| | | DG_TCP_MS("TCP_DG_MS", "大å
¬-TCP-çå±±"), |
| | | TY_N2("TY_N2", "æ°®æ°-忦åè®®"), |
| | | TCP_CD_WEATHER("TCP_CD_WEATHER", "æé½æ°è±¡ç«åè®®"), |
| | | TCP_LZ_WEATHER("TCP_LZ_WEATHER", "æèæ°è±¡ç«åè®®"), |
| | | TCP_MS_STORAGE("TCP_MS_STORAGE", "çå±±æ°éæ£æµåè®®"), |
| | | TCP_XSX_V1("TCP_XSX_V1", "é«èé«ä¸»åè®®1.0"), |
| | | TCP_ZLDZ_GRAIN_V1("TCP_ZLDZ_GRAIN_V1", "æ£æ¥çµåç²®æ
åè®®1.0"), |
| | | TCP_FZZY_V3("TCP_FZZY_V3", "飿£è´è¿V3.0åè®®"), |
| | | TCP_DGCC_HNZK("TCP_DGCC_HNZK", "大å
¬ä»å¨ï¼æ²³åå¨å£ç²®åº"), |
| | | TCP_FZZY_IOT_V3("TCP_FZZY_IOT_V3", "飿£è´è¿ç©èç½V3.0åè®®"), |
| | | TCP_SHUHAN_V1("TCP_SHUHAN_V1", "èæ±æ°éæ£æµV1"), |
| | | TCP_FZZY_WEIGHT("TCP_FZZY_WEIGHT", "FZZY-å°ç£
主æ§åè®®"), |
| | | RK_WEATHER_V30("RK_WEATHER_V30", "建大ä»ç§æ°è±¡ç«äºV30"), |
| | | TCP_FZZY_N2_V3("TCP_FZZY_N2_V3", "FZZY-å¶æ°®æºåè®®"), |
| | | TCP_ZCL_N2("TCP_ZCL_N2", "ä¸å¨ç²®å¶æ°®æºåè®®"), |
| | | TCP_LT_SAMPLE_V3("TCP_LT_SAMPLE_V3", "æ¦æ ·æºåè®®"), |
| | | TCP_FZZY_QUANTITY_V35("TCP_FZZY_QUANTITY_V35", "æ°éæ£æµV35"), |
| | | TCP_BHZH_GRAIN_FM_V1("TCP_BHZH_GRAIN_FM_V1", "馿µ·æºè½æ 线主æºçV1"), |
| | | TCP_BHZH_GRAIN_V2("TCP_BHZH_GRAIN_V2", "馿µ·æºè½æçº¿çV2"), |
| | | TCP_BHZH_VERB_V2("TCP_BHZH_VERB_V2", "馿µ·æ§å¶ææºè½æçº¿çV2"), |
| | | TCP_BHZH_INOUT_V1("TCP_BHZH_INOUT_V1", "馿µ·æºè½åºå
¥åºæ§å¶å¨åè®®"), |
| | | TCP_BEIBO_GRAIN_V1("TCP_BEIBO_GRAIN_V1", "è´åç²®æ
åæºæå¡ç«¯åè®®"), |
| | | TCP_ES_DLT645_V1("TCP_ES_DLT645_V1", "DL/T 645å¤åè½çµè¡¨åè®®"), |
| | | FZZY_OPENAPI_HTTP("FZZY_OPENAPI_HTTP", "飿£è´è¿API-HTTPåè®®"), |
| | | SDK_HK_ALL("SDK_HK", "SDK-海康åè®®"), |
| | | TCP_MODBUS("TCP_MODBUS", "Modbus-TCPåè®®"), |
| | | TCP_SHYB_LED_BX06("TCP_SHYB_LED_BX06", "LED-䏿µ·ä»°é¦V6"), |
| | | TCP_ZH_LED_E3L("TCP_ZH_LED_E3L", "LED-ä¸èªE3L"), |
| | | FRID_REMOTE_SN("FRID_REMOTE_SN", "LED-è¿ç¨åè®®-å±±åç²®åº"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | ProtocolEnum(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * Redisç¼å使ç¨çç³»ç»å¸¸éé
ç½® 主è¦ç¨äºé
置系ç»ç¼åçKEYé
ç½® |
| | | */ |
| | | public class RedisConst { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç æå»ºå®é
使ç¨çKEY |
| | | * |
| | | * @param key1 ç»ç»ç¼ç |
| | | * @param key2 ç¼åKEY |
| | | * @return |
| | | */ |
| | | public static String buildKey(String key1, String key2) { |
| | | return Constant.APP_NAME + ":" + key1 + ":" + key2; |
| | | } |
| | | |
| | | /** |
| | | * ä¸å±ç»æçKEY |
| | | * |
| | | * @param key1 |
| | | * @param key2 |
| | | * @param tag |
| | | * @return |
| | | */ |
| | | public static String buildKey(String key1, String key2, String tag) { |
| | | return Constant.APP_NAME + ":" + key1 + ":" + key2 + ":" + tag; |
| | | } |
| | | |
| | | /** |
| | | * åå±ç»æçKEY |
| | | * |
| | | * @param companyId |
| | | * @param key |
| | | * @param tag1 |
| | | * @param tag2 |
| | | * @return |
| | | */ |
| | | public static String buildKey(String companyId, String key, String tag1, String tag2) { |
| | | return Constant.APP_NAME + ":" + companyId + ":" + key + ":" + tag1 + ":" + tag2; |
| | | } |
| | | |
| | | /** |
| | | * å建设å¤å表çKEYï¼ä»¥åæºä¸ºåç»å建 |
| | | * |
| | | * @param companyId |
| | | * @param key |
| | | * @param tag1 |
| | | * @return |
| | | */ |
| | | public static String buildDeviceKey(String companyId, String key, String tag1) { |
| | | return Constant.APP_NAME + ":" + companyId + ":" + key + ":" + tag1; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç¼åKEYçåç¼çæç¼åKEy |
| | | * |
| | | * @param prefix |
| | | * @param bizId |
| | | */ |
| | | public static String buildKeyByPrefix(String prefix, String bizId) { |
| | | if (null == bizId) return Constant.APP_NAME + ":" + prefix; |
| | | return Constant.APP_NAME + ":" + prefix + ":" + bizId; |
| | | } |
| | | |
| | | /** |
| | | * åå
¸è¡¨ç¼åé
ç½® |
| | | */ |
| | | public static final String KEY_DIC_TRIGGER = "KEY_DIC_TRIGGER"; |
| | | |
| | | /** |
| | | * ä»åºå表KEY |
| | | */ |
| | | public static final String KEY_DEPOT = "DEPOT_DATA"; |
| | | |
| | | /** |
| | | * ä»åºåæ°å表KEY |
| | | */ |
| | | public static final String KEY_DEPOT_CONF = "DEPOT_CONF"; |
| | | |
| | | /** |
| | | * åæºå表KEY |
| | | */ |
| | | public static final String KEY_DEVICE_SER_LIST = "SER_LIST"; |
| | | |
| | | /** |
| | | * 设å¤å表 |
| | | */ |
| | | public static final String KEY_DEVICE_LIST = "DEVICE_LIST"; |
| | | |
| | | /** |
| | | * å个è²å·å§ |
| | | */ |
| | | public static final String KEY_DEVICE = "DEVICE"; |
| | | |
| | | /** |
| | | * 设å¤å表 |
| | | */ |
| | | public static final String KEY_DEVICE_IOT_LIST = "DEVICE_IOT_LIST"; |
| | | /** |
| | | * ä»åºååæºçå¤å¯¹å¤å
³ç³»éå |
| | | */ |
| | | public static final String KEY_DEPOT_SER_LIST = "DEPOT_SER_LIST"; |
| | | |
| | | /** |
| | | * 建çç©ä¿¡æ¯ |
| | | */ |
| | | public static final String KEY_BUILDING_LIST = "BUILDING_LIST"; |
| | | |
| | | /** |
| | | * æ§è¡å½ä»¤KEYåç¼ |
| | | */ |
| | | public static final String KEY_ORDER_PRE = "ORDER"; |
| | | |
| | | /** |
| | | * ææ°ç²®æ
ä¿¡æ¯ç¼åå表ï¼ç¨äºåæ¾å½åææ°çç²®æ
ä¿¡æ¯ |
| | | */ |
| | | public static final String KEY_GRAIN = "GRAIN_DATA"; |
| | | |
| | | /** |
| | | * ææ°æ°ä½ä¿¡æ¯ç¼åå表 |
| | | */ |
| | | public static final String KEY_GAS_DATA = "GAS_DATA"; |
| | | |
| | | /** |
| | | * ç³»ç»é
ç½®KEY |
| | | */ |
| | | public static final String KEY_SYS_CONF = "SYS_CONF"; |
| | | |
| | | /** |
| | | * ç²®åºç温湿度信æ¯ç¼å |
| | | */ |
| | | public static final String KEY_DEPOT_TH_PREFIX = "DEPOT_TH_PREFIX"; |
| | | |
| | | /** |
| | | * ä»¥åæºæè
ä»åºä¸ºåä½åå¨ç仿¸©ä»æ¹¿ç¼åæ æ ç¾ |
| | | */ |
| | | public static final String KEY_T_TH = "T_TH"; |
| | | |
| | | /** |
| | | * åæ¾æ°è±¡ä¿¡æ¯çKEY |
| | | */ |
| | | public static final String KEY_WEATHER_INFO = "WEATHER_INFO"; |
| | | |
| | | /** |
| | | * æ ¹æ®ä»åºç¼ç åæ¾ææ°çè½èæ°æ®ä¿¡æ¯ |
| | | */ |
| | | public static final String KEY_ES_DATA_MAP = "ES_DATA_MAP"; |
| | | |
| | | /** |
| | | * ç³»ç»ä¸ç»ç»å表 |
| | | */ |
| | | public static final String KEY_DEPT_LIST = "DEPT_LIST"; |
| | | |
| | | /** |
| | | * å¶æ°®æºé
ç½®å表 |
| | | */ |
| | | public static final String KEY_N2_CONF_LIST = "N2_CONF_LIST"; |
| | | |
| | | /** |
| | | * ææ°æ°åä¿¡æ¯ç¼åå表 |
| | | */ |
| | | public static final String KEY_PRESSURE_DATA = "PRESSURE_DATA"; |
| | | |
| | | /** |
| | | * ç³»ç»é
ç½®çæåæºä¿¡æ¯ç¼å |
| | | */ |
| | | public static final String KEY_CAMERA_LIST = "CAMERA_LIST"; |
| | | |
| | | |
| | | /** |
| | | * ä¸ç»´é
ç½®å
³èä¿¡æ¯key |
| | | */ |
| | | public static final String KEY_THREE_CONF = "THREE_CONF"; |
| | | |
| | | /** |
| | | * 临æ¶ç¼åKEYåç¼ |
| | | */ |
| | | public static final String KEY_TEMP_PREFIX = "TEMP_"; |
| | | |
| | | /** |
| | | * æ°éçæµåæ°å表KEY--åä¸ªè®¾å¤ |
| | | */ |
| | | public static final String KEY_QUANTITY_CONF = "QUANTITY_CONF"; |
| | | |
| | | |
| | | /** |
| | | * ä»åºè´¨éå·¡æ£æ°æ®ç¼å |
| | | */ |
| | | public static final String KEY_DEPOT_QUALITY = "DEPOT_QUALITY"; |
| | | |
| | | /** |
| | | * ä»åºæ¶²ä½æ°æ®ç¼å |
| | | */ |
| | | public static final String KEY_DEPOT_HEIGHT = "DEPOT_HEIGHT"; |
| | | |
| | | /** |
| | | * ä»åºç©èç½å
³iotè®¾å¤æ¸©æ¹¿åº¦ç¼åkey |
| | | */ |
| | | public static final String KEY_IOT_DEPOT_TEMP_HUM = "IOT_DEPOT_TEMP_HUM"; |
| | | /** |
| | | * å个æ°éæ£æµæå¡ |
| | | */ |
| | | public static final String PREFIX_QUANTITY_SER = "QUANTITY_SER"; |
| | | |
| | | /** |
| | | * è¦åé
ç½®å表KEY |
| | | */ |
| | | public static final String KEY_WARN_CONF = "WARN_CONF"; |
| | | |
| | | /** |
| | | * é¨ç£è®¾å¤é
ç½®å表 |
| | | */ |
| | | public static final String KEY_DOOR_SENSOR_LIST = "DOOR_SENSOR_LIST"; |
| | | |
| | | /** |
| | | * ææåæºç¼ååç¼ |
| | | */ |
| | | public static final String CACHE_KEY_PRE = "SNAP_SER"; |
| | | |
| | | |
| | | /** |
| | | * AI设å¤ç¼åkey |
| | | */ |
| | | public static final String KEY_AI_SER = "AI_SER"; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * ååºç å®ä¹ |
| | | * |
| | | * @author Andy |
| | | * |
| | | */ |
| | | @Getter |
| | | public enum RespCodeEnum { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | CODE_0000("0000", "æå"), |
| | | CODE_1111("1111", "å端æå¡å¼å¸¸"), |
| | | CODE_1001("1001","æ°æ®æ ¼å¼æ ¡éªå¤±è´¥"), |
| | | CODE_1002("1002","该åºç¨æ æ¿æ´»ææ"), |
| | | CODE_1003("1003","该åºç¨å·²ç»æææå"), |
| | | CODE_1004("1004","设å¤é讯失败"), |
| | | CODE_1005("1005","该设å¤ä¸åå¨"), |
| | | CODE_1006("1006","å½åç»å½äººå·²æçº¿"), |
| | | CODE_1007("1007","请æ±åæ°å¼å¸¸"), |
| | | CODE_1008("1008","æµç¨ä¸æ£ç¡®"), |
| | | CODE_2000("2000","ååºæ°æ®ä¸ºç©º") |
| | | ; |
| | | |
| | | private String code; |
| | | private String msg; |
| | | |
| | | RespCodeEnum(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * è¿è¾æ¹å¼ |
| | | */ |
| | | public enum TransType { |
| | | TYPE_1("1", "汽车"), |
| | | TYPE_2("2", "ç«è½¦"), |
| | | TYPE_3("3", "è½®è¹"), |
| | | TYPE_9("9", "å
¶ä»"); |
| | | |
| | | private String code; |
| | | private String name; |
| | | |
| | | TransType(String code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public static String getName(String code) { |
| | | if(null == code) return ""; |
| | | if(TransType.TYPE_1.getCode().equals(code)) return TransType.TYPE_1.getName(); |
| | | if(TransType.TYPE_2.getCode().equals(code)) return TransType.TYPE_2.getName(); |
| | | if(TransType.TYPE_3.getCode().equals(code)) return TransType.TYPE_3.getName(); |
| | | return TransType.TYPE_9.getName(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * è¦åç级1 |
| | | * @author |
| | | */ |
| | | public enum WarnLevel { |
| | | |
| | | LEVEL_01("01", "ä¸çº§è¦å"), |
| | | LEVEL_02("02", "äºçº§è¦å"), |
| | | LEVEL_03("03", "ä¸çº§è¦å"); |
| | | private String code; |
| | | private String msg; |
| | | |
| | | WarnLevel(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return ""; |
| | | |
| | | if(WarnLevel.LEVEL_01.getCode().equals(code)) return WarnLevel.LEVEL_01.getMsg(); |
| | | if(WarnLevel.LEVEL_02.getCode().equals(code)) return WarnLevel.LEVEL_02.getMsg(); |
| | | if(WarnLevel.LEVEL_03.getCode().equals(code)) return WarnLevel.LEVEL_03.getMsg(); |
| | | |
| | | return ""; |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¥è¦ç¶æ |
| | | * @author |
| | | */ |
| | | @Getter |
| | | public enum WarnStatus { |
| | | |
| | | STATUS_10("10", "æªå¤ç"), |
| | | STATUS_20("20", "å»¶è¿å¤ç"), |
| | | STATUS_30("30", "å·²å¤ç"), |
| | | STATUS_40("40", "忽ç¥"); |
| | | |
| | | private String code; |
| | | private String name; |
| | | |
| | | WarnStatus(String code, String name) { |
| | | this.code = code; |
| | | this.name = name; |
| | | } |
| | | public static List<String> getListDesc(){ |
| | | List<String> result = new ArrayList<>(5); |
| | | result.add(WarnStatus.STATUS_30.getName()); |
| | | result.add(WarnStatus.STATUS_10.getName()); |
| | | result.add(WarnStatus.STATUS_40.getName()); |
| | | result.add(WarnStatus.STATUS_20.getName()); |
| | | return result; |
| | | } |
| | | /** |
| | | * æ ¹æ®codeè·å对åºçname |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static String getNameByCode(String code){ |
| | | for(WarnStatus warnStatus:WarnStatus.values()){ |
| | | if(warnStatus.getCode().equals(code)){ |
| | | return warnStatus.getName(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.constant; |
| | | |
| | | /** |
| | | * è¦åç±»å |
| | | * @author |
| | | */ |
| | | public enum WarnType { |
| | | |
| | | TYPE_01("01", "è¦å"), |
| | | TYPE_02("02", "é¢è¦"), |
| | | TYPE_03("03", "éç¥"); |
| | | private String code; |
| | | private String msg; |
| | | |
| | | WarnType(String code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return ""; |
| | | |
| | | if(WarnType.TYPE_01.getCode().equals(code)) return WarnType.TYPE_01.getMsg(); |
| | | if(WarnType.TYPE_02.getCode().equals(code)) return WarnType.TYPE_02.getMsg(); |
| | | if(WarnType.TYPE_03.getCode().equals(code)) return WarnType.TYPE_03.getMsg(); |
| | | |
| | | return ""; |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @date:2019.03.21 |
| | | **/ |
| | | @Data |
| | | public class BaseParam { |
| | | |
| | | private int limit = 10;// LAYUI ä¸ç¨ï¼æ¯é¡µæ¾ç¤ºçæ¡æ°ãlaypageå°ä¼åå© count å limit 计ç®åºåé¡µæ° |
| | | |
| | | private int curr = 1;// LAYUI ä¸ç¨ èµ·å§é¡µãä¸è¬ç¨äºå·æ°ç±»åç跳页以åHASH跳页 |
| | | |
| | | private int page = 1;// ç®æ é¡µé¢ |
| | | |
| | | public int getPage() { |
| | | return page; |
| | | } |
| | | |
| | | public void setPage(int page) { |
| | | this.page = page; |
| | | } |
| | | |
| | | private String companyId;// ç»ç»ç¼ç |
| | | |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date start; |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date end; |
| | | |
| | | private String depotId;// ä»åºç¼ç |
| | | |
| | | private String deptId;// åºåºç¼ç |
| | | |
| | | private String key;//å
³é®å |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.dzhwk.domain.MQuality; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Transient; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ç¨äºå°è£
çç²®æ
ä¿¡æ¯ï¼æ¯æ¬¡è·åç²®æ
æ°æ®ï¼å°è£
为å½å对象 |
| | | * |
| | | * @author jiazx |
| | | */ |
| | | @Data |
| | | public class GrainData implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | @Excel(name = "æ¹æ¬¡ç¼å·", sort = 2) |
| | | @PropertyDef(label = "æ¹æ¬¡ç¼å·") |
| | | private String batchId; |
| | | |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Excel(name = "æå±ä»åº", sort = 1) |
| | | @PropertyDef(label = "æå±ä»åº", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | @Excel(name = "æä½æ¸©ç²®æ¸©", sort = 7) |
| | | @PropertyDef(label = "æä½æ¸©ç²®æ¸©", description = "åä½âï¼ç²®æ
æä½æ¸©") |
| | | private Double tempMin = 0.0; |
| | | |
| | | @Excel(name = "æé«ç²®æ¸©", sort = 8) |
| | | @PropertyDef(label = "æé«ç²®æ¸©", description = "åä½âï¼ç²®æ
æé«æ¸©") |
| | | private Double tempMax = 0.0; |
| | | |
| | | @Excel(name = "å¹³å粮温", sort = 9) |
| | | @PropertyDef(label = "å¹³å粮温", description = "åä½âï¼ç²®æ
平忏©åº¦") |
| | | private Double tempAve = 0.0; |
| | | |
| | | @Excel(name = "ä»å
湿", sort = 4) |
| | | @PropertyDef(label = "ä»å
湿度") |
| | | private Double humidityIn; |
| | | |
| | | @Excel(name = "ä»å¤æ¸©", sort = 3) |
| | | @PropertyDef(label = "ä»å
温度") |
| | | private Double tempIn; |
| | | |
| | | @Excel(name = "ä»å¤æ¹¿", sort = 5) |
| | | @PropertyDef(label = "ä»å¤æ¹¿åº¦") |
| | | private Double humidityOut; |
| | | |
| | | @Excel(name = "ä»å¤æ¸©", sort = 6) |
| | | @PropertyDef(label = "ä»å¤æ¸©åº¦") |
| | | private Double tempOut; |
| | | |
| | | @PropertyDef(label = "å±è¡å", description = "ç¨-éå¼çé
置信æ¯") |
| | | private String cable; |
| | | |
| | | @PropertyDef(label = "çä»å±é
ç½®", description = "ç¨-éå¼çé
置信æ¯") |
| | | private String cableCir; |
| | | |
| | | @PropertyDef(label = "æ²¹é¢é«åº¦", description = "ç¨-éå¼ç两个å¼ï¼æ²¹é¢é«åº¦-建çé«åº¦") |
| | | private String oilHeight; |
| | | |
| | | @PropertyDef(label = "天æ°", description = "ç´æ¥å¡«åä¸æä¿¡æ¯ï¼æ´ï¼é´é¨å¤©") |
| | | private String weather = "#"; |
| | | |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | @PropertyDef(label = "æ¥æ¶æ¶é´") |
| | | private Date receiveDate; |
| | | |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String checkUser; |
| | | |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remark; |
| | | |
| | | @PropertyDef(label = "ééç¹ä¿¡æ¯", description = "ç¨éå·éå¼ç温度信æ¯ä¿¡æ¯") |
| | | private String points; |
| | | |
| | | @PropertyDef(label = "å个ééç¹çä¿¡æ¯", description = "å
³ç³»å段") |
| | | private List<GrainPoint> listPoints; |
| | | |
| | | @PropertyDef(label = "åå±ç²®æ¸©", description = "å
³ç³»å段") |
| | | private List<GrainLay> listLays; |
| | | |
| | | @PropertyDef(label = "åè¡æ¸©åº¦", description = "å
³ç³»å段") |
| | | private List<GrainRow> listRows; |
| | | |
| | | @PropertyDef(label = "仿¿ä¿¡æ¯", description = "å
³ç³»å段") |
| | | private Depot depotData; |
| | | |
| | | @PropertyDef(label = "åéªä¿¡æ¯", description = "å
³ç³»å段") |
| | | private MQuality mquality; |
| | | |
| | | @PropertyDef(label = "ç³»ç»æ¶é´", description = "å
³ç³»å段") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | private Date sysDate = new Date(); |
| | | |
| | | @PropertyDef(label = "建çé«åº¦") |
| | | private String depotHeight; |
| | | |
| | | @PropertyDef(label = "æ£æµå¨é", description = "åä½KG") |
| | | private Double storage; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "å½åä»iot设å¤çæ¸©æ¹¿åº¦æ°æ®") |
| | | private List<GrainIotData> grainIotData; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * ç¨äºå°è£
æåç²®æ¸©æ¹¿åº¦ä¿¡æ¯ |
| | | * |
| | | * @author chen |
| | | */ |
| | | @Data |
| | | public class GrainIotData implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ç»ç»ç¼ç |
| | | */ |
| | | private String companyId; |
| | | /** |
| | | * ä»åºç¼ç |
| | | */ |
| | | private String depotId; |
| | | /** |
| | | * 设å¤ç¼ç |
| | | */ |
| | | private String deviceId; |
| | | /** |
| | | * 设å¤åç§° |
| | | */ |
| | | private String name; |
| | | /** |
| | | * æ¶é´ |
| | | */ |
| | | private String time; |
| | | /** |
| | | * 温度 |
| | | */ |
| | | private Double temp = 0.0; |
| | | /** |
| | | * 湿度 |
| | | */ |
| | | private Double hum = 0.0; |
| | | |
| | | /** |
| | | * 夿¸© |
| | | */ |
| | | private Double outTemp = 0.0; |
| | | /** |
| | | * 夿¹¿ |
| | | */ |
| | | private Double outHum = 0.0; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç²®æ
æ°æ®è§£æå¯¹è±¡-å±ä¿¡æ¯ |
| | | */ |
| | | @Data |
| | | public class GrainLay { |
| | | |
| | | @PropertyDef(label = "æå¨å±") |
| | | private int fz; |
| | | |
| | | @PropertyDef(label = "æå¨å±") |
| | | private int z; |
| | | |
| | | @PropertyDef(label = "屿使¸©") |
| | | private Double tempMin; |
| | | |
| | | @PropertyDef(label = "屿髿¸©") |
| | | private Double tempMax; |
| | | |
| | | @PropertyDef(label = "å±å¹³å温") |
| | | private Double tempAve = 0.0; |
| | | |
| | | @PropertyDef(label = "å
å平忏©åº¦", description = "åä½âï¼ç²®æ
平忏©åº¦") |
| | | private Double tempAveIn = 0.0; |
| | | |
| | | @PropertyDef(label = "å¤å平忏©åº¦", description = "åä½âï¼ç²®æ
平忏©åº¦") |
| | | private Double tempAveOut = 0.0; |
| | | |
| | | |
| | | private int sumNum;//å½å屿»æ° |
| | | |
| | | private int sumInNum;//å
åä¸ªæ° |
| | | |
| | | private int sumOutNum;//å¤åä¸ªæ° |
| | | |
| | | private double sumTemp;//屿»æ¸©åº¦ |
| | | |
| | | private double sumInTemp; |
| | | |
| | | private double sumOutTemp; |
| | | |
| | | |
| | | public GrainLay() { |
| | | super(); |
| | | } |
| | | |
| | | public GrainLay(int fz, int z) { |
| | | super(); |
| | | this.fz = fz; |
| | | this.z = z; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç²®æ
æ°æ®è§£æå¯¹è±¡-ééç¹å¯¹è±¡ä¿¡æ¯ï¼XYZ表示çåè¡å±ï¼æ°å¼ä»1å¼å§ã |
| | | * |
| | | */ |
| | | @Data |
| | | public class GrainPoint { |
| | | |
| | | @PropertyDef(label = "æå¨å±") |
| | | private int z; |
| | | |
| | | @PropertyDef(label = "æå¨å±") |
| | | private int fz; |
| | | |
| | | @PropertyDef(label = "æå¨åï¼ç仿å¨åæ°") |
| | | private int x; |
| | | |
| | | @PropertyDef(label = "æå¨è¡ï¼ç仿 ¹å·ï¼æ»æ ¹å·") |
| | | private int y; |
| | | |
| | | @PropertyDef(label = "ééç¹æ¸©åº¦") |
| | | private Double temp = 0.0; |
| | | |
| | | public GrainPoint() { |
| | | super(); |
| | | } |
| | | |
| | | public GrainPoint(Double temp, int x, int y, int z, int fz) { |
| | | super(); |
| | | this.z = z; |
| | | this.x = x; |
| | | this.y = y; |
| | | this.fz = fz; |
| | | this.temp = temp; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ç²®æ
æ°æ®è§£æå¯¹è±¡-åä¿¡æ¯ |
| | | */ |
| | | @Data |
| | | public class GrainRow { |
| | | |
| | | @PropertyDef(label = "æå¨è¡", description = "æ°æ®ä»0å¼å§ï¼å¦ææ¯çä»çè¯ï¼ç¨äºè®°å½çä»çæ ¹æ°") |
| | | private int y; |
| | | |
| | | @PropertyDef(label = "屿使¸©") |
| | | private Double tempMin; |
| | | |
| | | @PropertyDef(label = "屿髿¸©") |
| | | private Double tempMax; |
| | | |
| | | @PropertyDef(label = "å±å¹³å温") |
| | | private Double tempAve = 0.0; |
| | | |
| | | private int sumNum;// å½å屿»æ° |
| | | |
| | | private double sumTemp;// 屿»æ¸©åº¦ |
| | | |
| | | public GrainRow() { |
| | | super(); |
| | | } |
| | | |
| | | public GrainRow(int y) { |
| | | super(); |
| | | this.y = y; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.data; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¹æ®éè¦éåå°è£
ç³»ç»ä½¿ç¨çPage对象ï¼ä¸»è¦æ¯ä¸ºäºæ»¡è¶³LayUIå端çä½¿ç¨ |
| | | * |
| | | * @author Andy |
| | | */ |
| | | public class Page<T> extends com.baomidou.mybatisplus.extension.plugins.pagination.Page<T> { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private List<T> data = Collections.emptyList();// LAYUIä¸ä½¿ç¨çæ°æ®ä¿¡æ¯ |
| | | |
| | | private String code = "0";// LAYUI ä¸çå®ä¹ |
| | | |
| | | private String msg;// LAYUI使ç¨çæç¤ºä¿¡æ¯ |
| | | |
| | | private int count;// LAYUI使ç¨çæ»æ° |
| | | |
| | | private int limit;// æ¯é¡µæ¾ç¤ºçæ¡æ°ãlaypageå°ä¼åå© count å limit 计ç®åºåé¡µæ° |
| | | |
| | | private int curr;// èµ·å§é¡µãä¸è¬ç¨äºå·æ°ç±»åç跳页以åHASH跳页 |
| | | |
| | | public int getLimit() { |
| | | Long size1 = super.getSize(); |
| | | limit = size1.intValue(); |
| | | return limit; |
| | | } |
| | | |
| | | public void setLimit(int limit) { |
| | | this.limit = limit; |
| | | this.setSize(limit); |
| | | } |
| | | |
| | | public int getCurr() { |
| | | Long size1 = super.getCurrent(); |
| | | curr = size1.intValue(); |
| | | return curr; |
| | | } |
| | | |
| | | public void setCurr(int curr) { |
| | | this.curr = curr; |
| | | super.setCurrent(curr); |
| | | } |
| | | |
| | | public List<T> getData() { |
| | | data = super.getRecords(); |
| | | return data; |
| | | } |
| | | |
| | | public void setData(List<T> data) { |
| | | this.data = data; |
| | | super.setRecords(data); |
| | | } |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public int getCount() { |
| | | Long size1 = super.getTotal(); |
| | | count = size1.intValue(); |
| | | return count; |
| | | } |
| | | |
| | | public void setCount(int count) { |
| | | this.count = count; |
| | | super.setTotal(count); |
| | | } |
| | | |
| | | |
| | | public Page() { |
| | | } |
| | | |
| | | public Page(int current, int size) { |
| | | super(current, size); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description 仿¿å®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 18:55 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_BUILDING") |
| | | public class Building implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 50) |
| | | @PropertyDef(label = "仿¿ç¼ç ") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±åºç¹") |
| | | private String deptId; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "仿¿åç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "STORAGE_") |
| | | @PropertyDef(label = "设计å¨é", description = "åä½ï¼å¨") |
| | | private Double storage; |
| | | |
| | | @Column(name = "USER_DATE_") |
| | | @PropertyDef(label = "ä½¿ç¨æ¥æ") |
| | | private Date userDate; |
| | | |
| | | @Column(name = "HEIGHT_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "仿¿é«åº¦", description = "åä½ï¼ç±³") |
| | | private Double height; |
| | | |
| | | @Column(name = "LENGTH_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "仿¿é¿åº¦", description = "åä½ï¼ç±³") |
| | | private Double length; |
| | | |
| | | @Column(name = "WIDTH_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "仿¿å®½åº¦", description = "åä½ï¼ç±³") |
| | | private Double width; |
| | | |
| | | @Column(name = "DIAMETER_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "çä»ç´å¾", description = "åä½ï¼ç±³") |
| | | private Double diameter; |
| | | |
| | | @Column(name = "VOLUME_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "çä»ä½ç§¯", description = "åä½ï¼ç«æ¹ç±³") |
| | | private Double volume; |
| | | |
| | | @Column(name = "DE_VOLUME_", precision = 16, scale = 2) |
| | | @PropertyDef(label = "æ£é¤ä½ç§¯", description = "åä½ï¼ç«æ¹ç±³") |
| | | private Double deVolume; |
| | | |
| | | @Column(name = "DOOR_NUM_") |
| | | @PropertyDef(label = "ä»é¨æ°") |
| | | private Integer doorNum; |
| | | |
| | | @Column(name = "GROUND_", length = 20) |
| | | @PropertyDef(label = "å°é¢ç»æ") |
| | | private String ground; |
| | | |
| | | @Column(name = "WALL_", length = 20) |
| | | @PropertyDef(label = "å¢ä½ç»æ") |
| | | private String wall; |
| | | |
| | | @Column(name = "ROOF_", length = 20) |
| | | @PropertyDef(label = "å±é¡¶ç»æ") |
| | | private String roof; |
| | | |
| | | @Column(name = "ROOF_TRUSS_", length = 20) |
| | | @PropertyDef(label = "屿¶ç»æ") |
| | | private String roofTruss; |
| | | |
| | | @Column(name = "CREATE_DATE_") |
| | | @PropertyDef(label = "å»ºé æ¥æ") |
| | | private Date createDate; |
| | | |
| | | @Column(name = "LON_", precision = 16, scale = 4) |
| | | @PropertyDef(label = "ç»åº¦") |
| | | private Double lon; |
| | | |
| | | @Column(name = "LAT_", precision = 16, scale = 4) |
| | | @PropertyDef(label = "纬度") |
| | | private Double lat; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @Description åéªé¡¹ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 19:06 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @IdClass(CheckItemKey.class) |
| | | @Table(name = "D_CHECK_ITEM") |
| | | public class CheckItem implements Serializable { |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Id |
| | | @Column(name = "CHECK_ID_", length = 40) |
| | | @PropertyDef(label = "æ£æµç¼ç ") |
| | | private String checkId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "STANDARD_ID_", length = 10) |
| | | @PropertyDef(label = "æ£æµé¡¹ç¼ç ") |
| | | private String standardId; |
| | | |
| | | @Column(name = "STANDARD_NAME_", length = 50) |
| | | @PropertyDef(label = "åéªé¡¹") |
| | | private String standardName; |
| | | |
| | | @Column(name = "UNIT_", length = 20) |
| | | @PropertyDef(label = "åä½") |
| | | private String unit; |
| | | |
| | | @Column(name = "UPPER_LIMIT_") |
| | | @PropertyDef(label = "æ åä¼å¼") |
| | | private Double upperLimit; |
| | | |
| | | @Column(name = "OPERA_SYMBOL_", length = 4) |
| | | @PropertyDef(label = "è¿ç®ç¬¦å·") |
| | | private String operaSymbol; |
| | | |
| | | @Column(name = "RULE_NUM_") |
| | | @PropertyDef(label = "æ£éç³»æ°") |
| | | private Double ruleNum; |
| | | |
| | | @Column(name = "RULE_ADD_") |
| | | @PropertyDef(label = "å¢é%") |
| | | private Double ruleAdd; |
| | | |
| | | @Column(name = "RULE_ADD_END_") |
| | | @PropertyDef(label = "å¢éä¸é%") |
| | | private Double ruleAddEnd; |
| | | |
| | | @Column(name = "RULE_REDUCE_") |
| | | @PropertyDef(label = "æ£éå¼%") |
| | | private Double ruleReduce; |
| | | |
| | | @Column(name = "VALUE_", length = 40) |
| | | @PropertyDef(label = "æ£æµå¼") |
| | | private String value; |
| | | |
| | | @Column(name = "RULE_PRICE_") |
| | | @PropertyDef(label = "æ£è´¹ç³»æ°") |
| | | private Double rulePrice; |
| | | |
| | | @Column(name = "RULE_REDUCE_PRICE_") |
| | | @PropertyDef(label = "æ£è´¹") |
| | | private Double ruleReducePrice; |
| | | |
| | | @Column(name = "ADD_NUM_") |
| | | @PropertyDef(label = "å¢é", description = "åä½ï¼kG") |
| | | private Double addNum; |
| | | |
| | | @Column(name = "DE_NUM_") |
| | | @PropertyDef(label = "æ£é", description = "åä½ï¼kG") |
| | | private Double deNum; |
| | | |
| | | @Column(name = "ADD_PRICE_") |
| | | @PropertyDef(label = "å¢ä»·", description = "åä½ï¼å
") |
| | | private Double addPrice; |
| | | |
| | | @Column(name = "DE_PRICE_") |
| | | @PropertyDef(label = "æ£ä»·", description = "åä½ï¼å
") |
| | | private Double dePrice; |
| | | |
| | | @Column(name = "RESULT_", length = 2) |
| | | @PropertyDef(label = "æ£éªç»æ", description = "0=ä¸åæ ¼ 1=åæ ¼") |
| | | private String result; |
| | | |
| | | @Column(name = "REMARKS_", length = 50) |
| | | @PropertyDef(label = "夿³¨") |
| | | private String remarks; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "è¿ç®ç¬¦å·å¼ï¼åªå页颿¾ç¤ºç¨") |
| | | private String operaSymbolValue; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "湿度") |
| | | private double perWet; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æè´¨") |
| | | private double perImpurity; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class CheckItemKey implements Serializable { |
| | | private String checkId; |
| | | private String companyId; |
| | | private String standardId; |
| | | |
| | | public CheckItemKey(){ |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | |
| | | /** |
| | | * @Description ä»å¨åä½å®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 18:58 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_COMPANY") |
| | | public class Company implements Serializable { |
| | | |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "é¨é¨id",description = "ç³»ç»å
使ç¨,ç»å®é¨é¨è¡¨") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | /*----------彿 åæ®µ----------*/ |
| | | @PropertyDef(label = "åä½ä»£ç ") |
| | | @Column(name = "dwdm", length = 18) |
| | | private String dwdm; |
| | | |
| | | @PropertyDef(label = "ç»ä¸åä½ç¼ç ") |
| | | @Column(name = "tydwbm", length = 20) |
| | | private String tydwbm; |
| | | |
| | | @PropertyDef(label = "åä½åç§°") |
| | | @Column(name = "dwmc", length = 256) |
| | | private String dwmc; |
| | | |
| | | @PropertyDef(label = "åä½ç±»å") |
| | | @Column(name = "dwlx", length = 2) |
| | | private String dwlx; |
| | | |
| | | @PropertyDef(label = "æ³¨åæ¥æ") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @Column(name = "zcrq") |
| | | private Date zcrq; |
| | | |
| | | @PropertyDef(label = "注åèµæ¬") |
| | | @Column(name = "zczb", precision = 20, scale = 6) |
| | | private Double zczb; |
| | | |
| | | @PropertyDef(label = "èµäº§æ»é¢") |
| | | @Column(name = "zcze", precision = 20, scale = 6) |
| | | private Double zcze; |
| | | |
| | | @PropertyDef(label = "æ³å®ä»£è¡¨äºº") |
| | | @Column(name = "fddbr", length = 100) |
| | | private String fddbr; |
| | | |
| | | @PropertyDef(label = "æ³äººèº«ä»½è¯å·") |
| | | @Column(name = "frsfzh", length = 18) |
| | | private String frsfzh; |
| | | |
| | | @PropertyDef(label = "æ³äººèç³»æ¹å¼") |
| | | @Column(name = "frlxfs", length = 50) |
| | | private String frlxfs; |
| | | |
| | | @PropertyDef(label = "ä¼ä¸è系人") |
| | | @Column(name = "qylxr", length = 100) |
| | | private String qylxr; |
| | | |
| | | @PropertyDef(label = "åå
¬çµè¯") |
| | | @Column(name = "bgdh", length = 50) |
| | | private String bgdh; |
| | | |
| | | @PropertyDef(label = "注åå°å") |
| | | @Column(name = "zcdz", length = 512) |
| | | private String zcdz; |
| | | |
| | | @PropertyDef(label = "çµåé®ç®±") |
| | | @Column(name = "dzyx", length = 50) |
| | | private String dzyx; |
| | | |
| | | @PropertyDef(label = "ä¼ä¸å®æ¹ç½ç«å°å") |
| | | @Column(name = "qygfwzdz", length = 128) |
| | | private String qygfwzdz; |
| | | |
| | | @PropertyDef(label = "ä¼ çå·ç ") |
| | | @Column(name = "czhm", length = 32) |
| | | private String czhm; |
| | | |
| | | @PropertyDef(label = "鮿¿ç¼ç ") |
| | | @Column(name = "yzbm", length = 6) |
| | | private String yzbm; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºå代ç ") |
| | | @Column(name = "xzqhdm", length = 6) |
| | | private String xzqhdm; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºååç§°") |
| | | @Column(name = "xzqhmc", length = 6) |
| | | private String xzqhmc; |
| | | |
| | | |
| | | @PropertyDef(label = "ä¸çº§åä½åç§°") |
| | | @Column(name = "sjdwmc", length = 256) |
| | | private String sjdwmc; |
| | | |
| | | @PropertyDef(label = "ä¸çº§åä½ä»£ç ") |
| | | @Column(name = "sjdwdm", length = 18) |
| | | private String sjdwdm; |
| | | |
| | | @PropertyDef(label = "ä¸çº§åä½ç»ä¸ç¼ç ") |
| | | @Column(name = "sjdwtybm", length = 20) |
| | | private String sjdwtybm; |
| | | |
| | | @PropertyDef(label = "åºåºæ°") |
| | | @Column(name = "kqs") |
| | | private Integer kqs; |
| | | |
| | | @PropertyDef(label = "仿¿æ°") |
| | | @Column(name = "cfs") |
| | | private Integer cfs; |
| | | |
| | | @PropertyDef(label = "æ²¹ç½æ°") |
| | | @Column(name = "ygs") |
| | | private Integer ygs; |
| | | |
| | | @PropertyDef(label = "ç»åº¦") |
| | | @Column(name = "jd", precision = 20, scale = 6) |
| | | private Double jd; |
| | | |
| | | @PropertyDef(label = "纬度") |
| | | @Column(name = "wd", precision = 20, scale = 6) |
| | | private Double wd; |
| | | |
| | | @PropertyDef(label = "åä½ç¶æ") |
| | | @Column(name = "dwzt",length = 1) |
| | | private String dwzt; |
| | | |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fzzy.igds.dzhwk.constant.*; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import lombok.Data; |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description è´§ä½å®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 18:45 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT") |
| | | public class Depot implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 50) |
| | | @PropertyDef(label = "è´§ä½ç¼å·") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @Excel(name = "è´§ä½åç§°", sort = 1) |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "è´§ä½åç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "BUILDING_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ä»æ¿") |
| | | private String buildingId; |
| | | |
| | | @Column(name = "GRANARY_ID_", length = 40) |
| | | @PropertyDef(label = "æå±å»é´") |
| | | private String granaryId; |
| | | |
| | | @Excel(name = "ä»åºç±»å", sort = 11, readConverterExp = "01=å¹³æ¿ä»,02=ç«çä»,03=æµ
åä»,04=卿²¹ç½,05=楼æ¿ä»,99=å
¶ä»") |
| | | @Column(name = "DEPOT_TYPE_", length = 10) |
| | | @PropertyDef(label = "ä»åºç±»å", description = "æ ¹æ®å½æ é
置类åï¼å¹³æ¿ä»ãç«çä»ãæµ
åä»ã卿²¹ç½") |
| | | private String depotType; |
| | | |
| | | @Excel(name = "è´§ä½ç¶æ", sort = 2, readConverterExp = "1=空ä»,2=å
¥åºä¸,3=å°ä»,31=å°ä»-æ°è°ä¸,32=å°ä»-çè¸ä¸,33=å°ä»-éé£ä¸") |
| | | @Column(name = "DEPOT_STATUS_", length = 10) |
| | | @PropertyDef(label = "ä»åºç¶æ", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String depotStatus; |
| | | |
| | | @Column(name = "STORE_TYPE_", length = 6) |
| | | @PropertyDef(label = "å¨ç²®æ¹å¼", description = "ä¸åºå表å
³è") |
| | | private String storeType; |
| | | |
| | | @Column(name = "STORAGE_MAX_") |
| | | @PropertyDef(label = "设计å¨é", description = "åä½ï¼KG") |
| | | private Double storageMax; |
| | | |
| | | @Excel(name = "å®é
å¨é(KG)", sort = 6) |
| | | @Column(name = "STORAGE_REAL_") |
| | | @PropertyDef(label = "å®é
å¨é", description = "åä½ï¼KGï¼éè¿åºååæ´") |
| | | private Double storageReal; |
| | | |
| | | @Excel(name = "ç²®é£æ§è´¨", sort = 4, dictType = "FOOD_TYPE_") |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodType; |
| | | |
| | | @Excel(name = "ç²®é£åç§", sort = 3, dictType = "FOOD_VARIETY_") |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodVariety; |
| | | |
| | | @Excel(name = "ç²®é£ç级", sort = 5, dictType = "FOOD_LEVEL_") |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_LOCATION_ID_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocationId; |
| | | |
| | | @Excel(name = "ç²®é£äº§å°", sort = 8) |
| | | @Column(name = "FOOD_LOCATION_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodLocation; |
| | | |
| | | @Excel(name = "ç²®é£å¹´ä»½", sort = 7) |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "ç²®é£å¹´ä»½", description = "ä¸åºå表å
³èï¼éè¿åºååæ´") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "PER_WET_") |
| | | @PropertyDef(label = "æ°´å", description = "ç¾åæ¯ï¼é»è®¤ä¸ºç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | private Double perWet; |
| | | |
| | | @Column(name = "PER_IMPURITY_") |
| | | @PropertyDef(label = "æè´¨", description = "ç¾åæ¯ï¼é»è®¤ä¸ºç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | private Double perImpurity; |
| | | |
| | | @Column(name = "BULK_WEIGHT_") |
| | | @PropertyDef(label = "容é g/L", description = "容é g/L") |
| | | private Double bulkWeight; |
| | | |
| | | @Column(name = "STORE_KEEPER_", length = 30) |
| | | @PropertyDef(label = "ä¿ç®¡åè´¦å·") |
| | | private String storeKeeper; |
| | | |
| | | @Excel(name = "ä¿ç®¡å", sort = 10) |
| | | @Column(name = "STORE_KEEPER_NAME_", length = 50) |
| | | @PropertyDef(label = "ä¿ç®¡å", description = "䏿åç§°") |
| | | private String storeKeeperName; |
| | | |
| | | @Excel(name = "å
¥åºæ¥æ", sort = 9, dateFormat = "yyyy-MM-dd") |
| | | @Column(name = "STORE_DATE_") |
| | | @PropertyDef(label = "å
¥åºæ¶é´", description = "é»è®¤ç©ºï¼éè¿åºååæ´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "CHECK_DATE_") |
| | | @PropertyDef(label = "æåè´¨æ£æ¶é´", description = "é»è®¤ç©ºï¼æ¥æºè´¨æ£ä¿¡æ¯") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date checkDate; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "BH_ID_", length = 50) |
| | | @PropertyDef(label = "馿µ·ç²®æ
åæºä»åºç¼ç ") |
| | | private String bhId; |
| | | |
| | | @Column(name = "ORDER_NUM_") |
| | | @PropertyDef(label = "æ¾ç¤ºé¡ºåº") |
| | | private Integer orderNum = 1; |
| | | |
| | | // ------------å
¶ä»å±æ§ä¿¡æ¯------------// |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVarietyName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodTypeName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºç±»å") |
| | | private String depotTypeName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä»åºç±»å") |
| | | private String depotStatusName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevelName; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "Xåæ ", description = "ä¸ç»´æ¨¡åä¸åæ ï¼é¡µé¢æ éç»´æ¤") |
| | | private Double posX; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "Yåæ ", description = "ä¸ç»´æ¨¡åä¸åæ ï¼é¡µé¢æ éç»´æ¤") |
| | | private Double posY; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä¿ç®¡åç级") |
| | | private String storeKeeperLevel = "é«çº§ä¿ç®¡å"; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "ä¿ç®¡åç级") |
| | | private String storeKeeperPhone = "####"; |
| | | |
| | | public String getFoodLevelName() { |
| | | if (null != this.foodLevel) { |
| | | return FoodLevel.getMsg(this.foodLevel); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getFoodVarietyName() { |
| | | if (null != this.foodVariety) { |
| | | return FoodVariety.getMsg(this.foodVariety); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getFoodTypeName() { |
| | | if (null != this.foodType) { |
| | | return FoodType.getMsg(this.foodType); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDepotTypeName() { |
| | | if (null != this.depotType) { |
| | | return DepotType.getMsg(this.depotType); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDepotStatusName() { |
| | | if (null != this.depotStatus) { |
| | | return DepotStatus.getMsg(this.depotStatus); |
| | | } |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Desc: 仿¿ç¶æç¡®è®¤è¡¨ |
| | | * @author: |
| | | * @update-time: |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT_STATUS_CONFIRM") |
| | | public class DepotStatusConfirm { |
| | | |
| | | public static String SORT_PROP = "fcqrdh"; |
| | | |
| | | /** |
| | | * 21yyyyMMdd+åä½é¡ºåºå· |
| | | * 21202405041234 |
| | | */ |
| | | @Id |
| | | @Column(name = "fcqrdh", length = 14) |
| | | @PropertyDef(label = "å°ä»ç¡®è®¤åå·", description = "æ ¹æ®ä¸å®çè§åçæ") |
| | | private String fcqrdh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 50) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 28) |
| | | @PropertyDef(label = "è´§ä½ç¼ç ") |
| | | private String depotId; |
| | | |
| | | /*** ------------------------确认å
容-------------------------------------**/ |
| | | @Column(name = "fcrq") |
| | | @PropertyDef(label = "å°ä»æ¥æ", description = "yyyy-MM-dd") |
| | | private Date fcrq; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 20) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 20) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_LOCATION_ID_", length = 20) |
| | | @PropertyDef(label = "产å°å称代ç ") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 40) |
| | | @PropertyDef(label = "产å°åç§°") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è´§å¹´åº¦") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "COUNTRY_", length = 10) |
| | | @PropertyDef(label = "å½å«") |
| | | private String country; |
| | | |
| | | @Column(name = "STORE_KEEPER_NAME_", length = 64) |
| | | @PropertyDef(label = "ä¿ç®¡å", description = "䏿åç§°") |
| | | private String storeKeeperName; |
| | | |
| | | @Column(name = "fcsl") |
| | | @PropertyDef(label = "å°ä»æ°é", description = "ææå
¥åºä¿¡æ¯ä¸çåéä¹åï¼åä½KG") |
| | | private Double fcsl = 0.0; |
| | | |
| | | |
| | | /*** ------------------------å
Œ
±å段-------------------------------------**/ |
| | | |
| | | @Column(name = "APPLY_USER_", length = 50) |
| | | @PropertyDef(label = "ç³è¯·äºº") |
| | | private String applyUser; |
| | | |
| | | @Column(name = "DEPT_AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "é¨é¨å®¡æ ¸äºº") |
| | | private String deptAuditUser; |
| | | |
| | | @Column(name = "LEADER_AUDIT_USER_", length = 50) |
| | | @PropertyDef(label = "é¢å¯¼å®¡æ ¸äºº") |
| | | private String leaderAuditUser; |
| | | |
| | | // 夿³¨ |
| | | @Column(name = "REMARKS_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remarks; |
| | | |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Desc: ç²®é£åºå管çï¼æ ¹æ®å½æ æ ç»æè¦æ±å建 |
| | | * @author: Andy |
| | | * @update-time: 2022/11/17 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPOT_STORE") |
| | | public class DepotStore implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±åºåº") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº") |
| | | private String depotId; |
| | | |
| | | @Column(name = "COUNTRY_", length = 10) |
| | | @PropertyDef(label = "å½å«") |
| | | private String country; |
| | | |
| | | @Column(name = "STORE_TYPE_", length = 6) |
| | | @PropertyDef(label = "å¨ç²®æ¹å¼", description = "1:æ£è£
å¨ç²® 2:å
è£
å¨ç²® 3:å´å
æ£å 9:å
¶ä»") |
| | | private String storeType; |
| | | |
| | | @Column(name = "MANAGE_TYPE_", length = 6) |
| | | @PropertyDef(label = "ç®¡çæ¹å¼", description = "01 ç´å¨02 代å¨03 ç§ä»04 å§æ") |
| | | private String manageType; |
| | | |
| | | @Column(name = "FOOD_TYPE_", length = 10) |
| | | @PropertyDef(label = "ç²®é£æ§è´¨") |
| | | private String foodType; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @Column(name = "FOOD_LOCATION_ID_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocationId; |
| | | |
| | | @Column(name = "FOOD_LOCATION_", length = 50) |
| | | @PropertyDef(label = "ç²®é£äº§å°") |
| | | private String foodLocation; |
| | | |
| | | @Column(name = "FOOD_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¶è´§å¹´åº¦") |
| | | private String foodYear; |
| | | |
| | | @Column(name = "DEPOT_STATUS_", length = 10) |
| | | @PropertyDef(label = "ä»åºç¶æ", description = "1=空ä»ã2=å
¥åºä¸ã3=满ä»ã4=åºåºä¸ã9=å
¶ä»") |
| | | private String depotStatus; |
| | | |
| | | @Column(name = "STORE_DATE_") |
| | | @PropertyDef(label = "å
¥åºæ¶é´", description = "å
¥åºæ¶é´ï¼ç¬¬ä¸è½¦ç²®é£å
¥ä»æ¶é´,æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "FULL_DATE_") |
| | | @PropertyDef(label = "å°ä»æ¥æ", description = "å½è´§ä½ï¼æ²¹ç½ï¼ç¶æä¸ºå°ä»æ¶ï¼æ¤é¡¹ä¸ºå¿
填项") |
| | | private Date fullDate; |
| | | |
| | | @Column(name = "OUT_DATE_") |
| | | @PropertyDef(label = "åºä»æ¶é´", description = "åºåºæ¶é´ï¼æåä¸è½¦ç²®é£åºä»å®ææ¶é´,æ ¼å¼ï¼yyyy-MM-dd HH:mm:ss") |
| | | private Date outDate; |
| | | |
| | | @Column(name = "STORAGE_REAL_") |
| | | @PropertyDef(label = "å®é
å¨é", description = "åä½ï¼KG") |
| | | private Double storageReal; |
| | | |
| | | @Column(name = "STORE_SETTLE__") |
| | | @PropertyDef(label = "计价æ°é", description = "åä½ï¼KG") |
| | | private Double storageSettle; |
| | | |
| | | @Column(name = "GRAIN_HEIGHT_") |
| | | @PropertyDef(label = "è£
粮线é«", description = "åä½ï¼ç±³") |
| | | private Double grainHeight; |
| | | |
| | | @Column(name = "GRAIN_VOLUME_") |
| | | @PropertyDef(label = "è£
ç²®ä½ç§¯", description = "åä½ï¼ç«æ¹ç±³") |
| | | private Double grainVolume; |
| | | |
| | | @Column(name = "REMARK_", length = 250) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_USER_", length = 50) |
| | | @PropertyDef(label = "ä¿®æ¹äºº") |
| | | private String updateUser; |
| | | |
| | | @PropertyDef(label = "ç²®æå½å±åä½ä»£ç ") |
| | | @Column(name = "lqgsdwdm", length = 18) |
| | | private String lqgsdwdm; |
| | | |
| | | |
| | | @Column(name = "UPDATE_DATE_") |
| | | @PropertyDef(label = "ä¿®æ¹æ¶é´") |
| | | private Date updateDate; |
| | | |
| | | @Column(name = "CREATE_DATE_") |
| | | private Date createDate; |
| | | |
| | | public DepotStore() { |
| | | } |
| | | |
| | | public DepotStore(String id, String companyId, String deptId, String depotId, String storeType, String foodType, String foodVariety, String foodLevel, String foodLocation, String depotStatus, String foodYear, Date storeDate, Double storageReal, Date fullDate, Date outDate, Double grainHeight, Double grainVolume, String remark, String updateUser, Date updateDate, Date createDate) { |
| | | this.id = id; |
| | | this.companyId = companyId; |
| | | this.deptId = deptId; |
| | | this.depotId = depotId; |
| | | this.storeType = storeType; |
| | | this.foodType = foodType; |
| | | this.foodVariety = foodVariety; |
| | | this.foodLevel = foodLevel; |
| | | this.foodLocation = foodLocation; |
| | | this.depotStatus = depotStatus; |
| | | this.foodYear = foodYear; |
| | | this.storeDate = storeDate; |
| | | this.storageReal = storageReal; |
| | | this.fullDate = fullDate; |
| | | this.outDate = outDate; |
| | | this.grainHeight = grainHeight; |
| | | this.grainVolume = grainVolume; |
| | | this.remark = remark; |
| | | this.updateUser = updateUser; |
| | | this.updateDate = updateDate; |
| | | } |
| | | |
| | | public DepotStore(Depot depot, String depotStatus) { |
| | | this.companyId = depot.getCompanyId(); |
| | | this.deptId = depot.getDeptId(); |
| | | this.depotId = depot.getId(); |
| | | this.storeType = depot.getStoreType(); |
| | | this.foodType = depot.getFoodType(); |
| | | this.foodVariety = depot.getFoodVariety(); |
| | | this.foodLevel = depot.getFoodLevel(); |
| | | this.foodLocation = depot.getFoodLocation(); |
| | | this.depotStatus = depotStatus; |
| | | this.foodYear = depot.getFoodYear(); |
| | | this.storageReal = depot.getStorageReal(); |
| | | this.storeDate = new Date(); |
| | | this.updateDate = new Date(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description åºåºå®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 19:02 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DEPT") |
| | | public class Dept implements Serializable { |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "é¨é¨id",description = "ç³»ç»å
使ç¨,ç»å®é¨é¨è¡¨") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | /*----------彿 åæ®µ----------*/ |
| | | @PropertyDef(label = "åºåºä»£ç ") |
| | | @Column(name = "kqdm", length = 21) |
| | | private String kqdm; |
| | | |
| | | @PropertyDef(label = "ç»ä¸åºåºç¼ç ") |
| | | @Column(name = "tykqbm", length = 22) |
| | | private String tykqbm; |
| | | |
| | | @PropertyDef(label = "åä½ä»£ç ") |
| | | @Column(name = "dwdm", length = 18) |
| | | private String dwdm; |
| | | |
| | | @PropertyDef(label = "ç»ä¸åä½ç¼ç ") |
| | | @Column(name = "tydwbm", length = 20) |
| | | private String tydwbm; |
| | | |
| | | @PropertyDef(label = "åºåºåç§°") |
| | | @Column(name = "kqmc", length = 256) |
| | | private String kqmc; |
| | | |
| | | @PropertyDef(label = "åºåºå°å") |
| | | @Column(name = "kqdz", length = 512) |
| | | private String kqdz; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºå代ç ") |
| | | @Column(name = "xzqhdm", length = 6) |
| | | private String xzqhdm; |
| | | |
| | | @PropertyDef(label = "è¡æ¿åºååç§°") |
| | | @Column(name = "xzqhmc", length = 6) |
| | | private String xzqhmc; |
| | | |
| | | @PropertyDef(label = "åºåºäº§æ", description = "1ï¼ èªæ 2ï¼ç§èµ 3ï¼å
±æ 4ï¼æ··å 9ï¼å
¶ä»") |
| | | @Column(name = "kqcq", length = 1) |
| | | private String kqcq; |
| | | |
| | | @PropertyDef(label = "ææä»å®¹") |
| | | @Column(name = "yxcr", precision = 20, scale = 6) |
| | | private Double yxcr; |
| | | |
| | | @PropertyDef(label = "ææç½å®¹") |
| | | @Column(name = "yxgr", precision = 20, scale = 6) |
| | | private Double yxgr; |
| | | |
| | | @PropertyDef(label = "å å°é¢ç§¯") |
| | | @Column(name = "zdmj", precision = 20, scale = 6) |
| | | private Double zdmj; |
| | | |
| | | @PropertyDef(label = "仿¿æ°") |
| | | @Column(name = "cfs") |
| | | private Integer cfs; |
| | | |
| | | @PropertyDef(label = "æ²¹ç½æ°") |
| | | @Column(name = "ygs") |
| | | private Integer ygs; |
| | | |
| | | @PropertyDef(label = "åºåºç»åº¦") |
| | | @Column(name = "jd", precision = 20, scale = 6) |
| | | private Double jd; |
| | | |
| | | @PropertyDef(label = "åºåºçº¬åº¦") |
| | | @Column(name = "wd", precision = 20, scale = 6) |
| | | private Double wd; |
| | | |
| | | @PropertyDef(label = "åºåºç¶æ", description = "1:æ£å¸¸ï¼é»è®¤ï¼ 2:éåºå¨å¤ç²®æ¿å¨") |
| | | @Column(name = "kqzt", length = 1) |
| | | private String kqzt; |
| | | |
| | | @PropertyDef(label = "æåæ´æ°æ¶é´") |
| | | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @Column(name = "zhgxsj") |
| | | private Date zhgxsj; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * å°åºåºåç |
| | | * |
| | | * @author |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_DIC_AREA") |
| | | public class DicArea implements Serializable { |
| | | |
| | | public static String SORT_PROP = "code"; |
| | | |
| | | @Id |
| | | @Column(name = "CODE_", length = 20) |
| | | @PropertyDef(label = "ç¼å·") |
| | | private String code; |
| | | |
| | | @Column(name = "NAME_", length = 50) |
| | | @PropertyDef(label = "åç§°") |
| | | private String name; |
| | | |
| | | @Column(name = "PARENT_CODE_", length = 20) |
| | | @PropertyDef(label = "ç¶ç¼å·", description = "ç级é»è®¤ä¸º0") |
| | | private String parentCode; |
| | | |
| | | @Column(name = "TYPE_", length = 50) |
| | | @PropertyDef(label = "ç±»å", description = "1-çï¼2-å¸ï¼3-åºå¿") |
| | | private String type; |
| | | |
| | | @PropertyDef(label = "ç®æ¼") |
| | | @Column(name = "SIMPLE_", length = 20) |
| | | private String simple; |
| | | |
| | | @PropertyDef(label = "æ¯å¦ç¦ç¨") |
| | | @Column(name = "DISABLED_TAG_", length = 1) |
| | | private String disabledTag = Constant.YN_N; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ç²®æ
æ°æ®-主表 |
| | | * <p> |
| | | * æ´æ°è®°å½ï¼ |
| | | * 1ï¼å é¤è¡æ°æ®ç表记å½ï¼è°æ´ä¸ºæ°æ®ç´æ¥ææ¬ä¿åä¸»è¡¨ä¸ |
| | | * 2ï¼ä¿çç¹ä½åæ ä¿¡æ¯ï¼ä¾¿äºä»¥åç¹ä½èµ°å¿å¾æ¥ç |
| | | * |
| | | * @author Andy |
| | | */ |
| | | @Entity |
| | | @Table(name = "D_GRAIN") |
| | | @Data |
| | | @IdClass(GrainKey.class) |
| | | public class Grain implements Serializable { |
| | | |
| | | public static String SORT_PROP = "batchId"; |
| | | |
| | | @Id |
| | | @Column(name = "BATCH_ID_", length = 30) |
| | | @PropertyDef(label = "æ¹æ¬¡ç¼å·") |
| | | private String batchId; |
| | | |
| | | @Id |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ", description = "") |
| | | private String companyId; |
| | | |
| | | @Id |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "æå±ä»åº", description = "ä»åºç¼å·") |
| | | private String depotId; |
| | | |
| | | |
| | | @Column(name = "TEMP_MIN_") |
| | | @PropertyDef(label = "æä½æ¸©ç²®æ¸©", description = "åä½âï¼ç²®æ
æä½æ¸©") |
| | | private Double tempMin = 0.0; |
| | | |
| | | @Column(name = "TEMP_MAX_") |
| | | @PropertyDef(label = "æé«ç²®æ¸©", description = "åä½âï¼ç²®æ
æé«æ¸©") |
| | | private Double tempMax = 0.0; |
| | | |
| | | @Column(name = "TEMP_AVE_") |
| | | @PropertyDef(label = "å¹³å粮温", description = "åä½âï¼ç²®æ
平忏©åº¦") |
| | | private Double tempAve = 0.0; |
| | | |
| | | @Column(name = "HUMIDITY_IN_") |
| | | @PropertyDef(label = "ä»å
湿度") |
| | | private Double humidityIn; |
| | | |
| | | @Column(name = "TEMP_IN_") |
| | | @PropertyDef(label = "ä»å
温度") |
| | | private Double tempIn; |
| | | |
| | | @Column(name = "HUMIDITY_OUT_") |
| | | @PropertyDef(label = "ä»å¤æ¹¿åº¦") |
| | | private Double humidityOut; |
| | | |
| | | @Column(name = "TEMP_OUT_") |
| | | @PropertyDef(label = "ä»å¤æ¸©åº¦") |
| | | private Double tempOut; |
| | | |
| | | @Column(name = "CABLE_", length = 20) |
| | | @PropertyDef(label = "å±è¡å", description = "ç¨éå·éå¼çé
置信æ¯,å±-è¡-å") |
| | | private String cable; |
| | | |
| | | @PropertyDef(label = "çä»å±é
ç½®", description = "ç¨-éå¼çé
置信æ¯") |
| | | @Column(name = "CABLE_CIR_", length = 20) |
| | | private String cableCir; |
| | | |
| | | @PropertyDef(label = "æ²¹é¢é«åº¦", description = "ç¨-éå¼ç两个å¼ï¼æ²¹é¢é«åº¦-建çé«åº¦") |
| | | @Column(name = "OIL_HEIGHT_", length = 20) |
| | | private String oilHeight; |
| | | |
| | | @Column(name = "WEATHER_", length = 20) |
| | | @PropertyDef(label = "天æ°", description = "ç´æ¥å¡«åä¸æä¿¡æ¯ï¼æ´ï¼é´é¨å¤©") |
| | | private String weather = ""; |
| | | |
| | | @Column(name = "RECEIVE_DATE_") |
| | | @PropertyDef(label = "æ¥æ¶æ¶é´") |
| | | private Date receiveDate; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 30) |
| | | @PropertyDef(label = "æ£æµäºº") |
| | | private String checkUser; |
| | | |
| | | @Column(name = "REMARK_", length = 500) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨") |
| | | private String remark; |
| | | |
| | | @Column(name = "POINTS_", length = 2000) |
| | | @PropertyDef(label = "ééç¹ä¿¡æ¯", description = "ç¨éå·éå¼ç温度信æ¯ä¿¡æ¯") |
| | | private String points; |
| | | |
| | | @Column(name = "PUSH_TAG_", length = 2) |
| | | @PropertyDef(label = "æ¨éæ è®°", description = "æ¨é平尿 è®°") |
| | | private String pushTag = "N"; |
| | | |
| | | @Column(name = "BATCH_TAG_", length = 2) |
| | | @PropertyDef(label = "çææ¹å¼", description = "01-设å¤ééï¼02-æå¨è¡¥å½") |
| | | private String batchTag = "01"; |
| | | |
| | | @Transient |
| | | @PropertyDef(label = "æå±ååº", description = "ååºç¼ç ï¼éæ°æ®åºå段") |
| | | private String deptId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @AllArgsConstructor |
| | | public class GrainKey implements Serializable { |
| | | private String batchId; |
| | | |
| | | private String companyId; |
| | | |
| | | private String depotId; |
| | | |
| | | public GrainKey() { |
| | | super(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.Table; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description å»é´å®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 18:48 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_GRANARY") |
| | | public class Granary implements Serializable { |
| | | |
| | | public static String SORT_PROP = "ajdh"; |
| | | |
| | | @Id |
| | | @PropertyDef(label = "å»é´ä»£ç ") |
| | | @Column(name = "ajdh", length = 28) |
| | | private String ajdh; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "æå±ååº") |
| | | private String deptId; |
| | | |
| | | @PropertyDef(label = "å»é´åç§°") |
| | | @Column(name = "ajmc", length = 100) |
| | | private String ajmc; |
| | | |
| | | @PropertyDef(label = "仿¿(ææ²¹ç½)ç¼ç ") |
| | | @Column(name = "cfbh", length = 25) |
| | | private String cfbh; |
| | | |
| | | @PropertyDef(label = "å»é´é¿åº¦") |
| | | @Column(name = "ajcd", precision = 8, scale = 4) |
| | | private double ajcd; |
| | | |
| | | @PropertyDef(label = "å»é´å®½åº¦") |
| | | @Column(name = "ajkd", precision = 8, scale = 4) |
| | | private double ajkd; |
| | | |
| | | @PropertyDef(label = "å»é´é«åº¦") |
| | | @Column(name = "ajgd", precision = 8, scale = 4) |
| | | private double ajgd; |
| | | |
| | | @PropertyDef(label = "å»é´è®¾è®¡ä»å®¹") |
| | | @Column(name = "ajsjcr", precision = 20, scale = 3) |
| | | private double ajsjcr; |
| | | |
| | | @PropertyDef(label = "å»é´èç³»çµè¯") |
| | | @Column(name = "ajlxdh", length = 20) |
| | | private String ajlxdh; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "å»é´å¯ç¨æ¥æ") |
| | | @Column(name = "ajqyrq") |
| | | private Date ajqyrq; |
| | | |
| | | @PropertyDef(label = "å»é´ç¶æ") |
| | | @Column(name = "ajzt", length = 1) |
| | | private String ajzt; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.dzhwk.domain; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | | import lombok.Data; |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description è´¨æ£å®ä½ |
| | | * @Author CZT |
| | | * @Date 2025/05/28 19:06 |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(name = "D_M_QUALITY") |
| | | public class MQuality implements Serializable { |
| | | |
| | | public static String SORT_PROP = "id"; |
| | | |
| | | @Id |
| | | @Column(name = "ID_", length = 40) |
| | | @PropertyDef(label = "主é®ID", description = "yyyyMMdd + 4ä½é¡ºåºå·") |
| | | private String id; |
| | | |
| | | @Column(name = "COMPANY_ID_", length = 10) |
| | | @PropertyDef(label = "ç»ç»ç¼ç ") |
| | | private String companyId; |
| | | |
| | | @Column(name = "DEPT_ID_", length = 40) |
| | | @PropertyDef(label = "åºåºç¼ç ") |
| | | private String deptId; |
| | | |
| | | @Column(name = "DEPOT_ID_", length = 50) |
| | | @PropertyDef(label = "ä»åºç¼ç ") |
| | | private String depotId; |
| | | |
| | | @Column(name = "FOOD_VARIETY_", length = 10) |
| | | @PropertyDef(label = "ç²®é£åç§") |
| | | private String foodVariety; |
| | | |
| | | @Column(name = "FOOD_LEVEL_", length = 10) |
| | | @PropertyDef(label = "ç²®é£ç级") |
| | | private String foodLevel; |
| | | |
| | | @PropertyDef(label = "å
¥åºæ¥æ") |
| | | @Column(name = "STORE_DATE_") |
| | | private Date storeDate; |
| | | |
| | | @Column(name = "TYPE_", length = 10) |
| | | @PropertyDef(label = "æ£éªç±»å«", description = "01ï¼å
¥ä»éªæ¶ 02ï¼åºä»æ£éª 03ï¼3 ææ«æ®æ£04ï¼9 ææ«æ®æ£ 05ï¼å
¥ä»åæ£ 06ï¼æåº¦æ£æ¥ 07ï¼3 ææ«åºå
æ®æ¥ 08ï¼9 ææ«åºå
æ®æ¥") |
| | | private String type; |
| | | |
| | | @Column(name = "TIME_") |
| | | @PropertyDef(label = "æ£éªæ¶é´") |
| | | private Date time; |
| | | |
| | | @Column(name = "UNIT_", length = 50) |
| | | @PropertyDef(label = "æ£éªåä½") |
| | | private String unit; |
| | | |
| | | @Column(name = "USER_", length = 50) |
| | | @PropertyDef(label = "æ£éªäºº", description = "æ£éªäººåå§åï¼è¥æå¤ä¸ªä¿ç®¡å") |
| | | private String user; |
| | | |
| | | @Column(name = "STANDARD_", length = 4) |
| | | @PropertyDef(label = "æ£éªä¾æ®", description = "1-彿 ï¼0-å
¶ä»") |
| | | private String standard; |
| | | |
| | | |
| | | @PropertyDef(label = "ææ ç±»å«", description = "1: è´¨éææ æ£éª2ï¼å¨ååè´¨æ£éª3ï¼é£åå®å
¨æ£éª 妿忶æ£éªäºå¤ä¸ªï¼ç¨#éå¼ï¼ä¾å¦ï¼1#2#3") |
| | | @Column(name = "zblb", length = 8) |
| | | private String zblb; |
| | | |
| | | @Column(name = "RESULT_", length = 40) |
| | | @PropertyDef(label = "æ£éªç»è®º", description = "1ãè´¨éææ å¡«å/è¾¾æ /ä¸è¾¾æ 2ãå¨ååè´¨ææ å¡«åâå®åâã轻度ä¸å®åâãâé度ä¸å®åâ3ãé£åå®å
¨ææ å¡«åâåæ ¼âãä¸åæ ¼â å¤é¡¹ææ æ¶ä»¥#åéï¼ä¾å¦ï¼è¾¾æ |综åå¤å®#å®å#åæ ¼ ") |
| | | private String result; |
| | | |
| | | @Column(name = "spaqzbsfhg", length = 40) |
| | | @PropertyDef(label = "é£åå®å
¨ææ æ¯å¦åæ ¼", description = "0-ä¸åæ ¼ï¼1-åæ ¼") |
| | | private String spaqzbsfhg; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd") |
| | | @PropertyDef(label = "ç¾åæ¥æ") |
| | | @Column(name = "qfrq") |
| | | private Date qfrq; |
| | | |
| | | @JSONField(format = "yyyy-MM-dd HH:mm:ss") |
| | | @PropertyDef(label = "æ¥ååºå
·æ¶é´") |
| | | @Column(name = "bgcjsj") |
| | | private Date bgcjsj; |
| | | |
| | | @PropertyDef(label = "å®¡æ ¸äººå§å") |
| | | @Column(name = "shrxm", length = 64) |
| | | private String shrxm; |
| | | |
| | | @PropertyDef(label = "æ¦æ ·åç¼å·") |
| | | @Column(name = "qydbh", length = 64) |
| | | private String qydbh; |
| | | |
| | | @Column(name = "CHECK_TIME_") |
| | | @PropertyDef(label = "æ¦æ ·æ¶é´", required = true) |
| | | private Date checkTime; |
| | | |
| | | @Column(name = "CHECK_AREA_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·åºå") |
| | | private String checkArea; |
| | | |
| | | @Column(name = "CHECK_USER_", length = 50) |
| | | @PropertyDef(label = "æ¦æ ·äºº", required = true) |
| | | private String checkUser; |
| | | |
| | | @PropertyDef(label = "çç£äººå§å") |
| | | @Column(name = "jdrxm", length = 64) |
| | | private String jdrxm; |
| | | |
| | | @PropertyDef(label = "æ ·åç¼å·") |
| | | @Column(name = "ypbh", length = 64) |
| | | private String ypbh; |
| | | |
| | | @PropertyDef(label = "æ ·åæ°é", required = true) |
| | | @Column(name = "ypsl", precision = 20, scale = 6) |
| | | private Double ypsl; |
| | | |
| | | @PropertyDef(label = "代表æ°é") |
| | | @Column(name = "dbsl", precision = 20, scale = 6) |
| | | private Double dbsl; |
| | | |
| | | @PropertyDef(label = "æ ·åç级") |
| | | @Column(name = "ypdj", length = 2) |
| | | private String ypdj; |
| | | |
| | | @Column(name = "NORMAL_YEAR_", length = 10) |
| | | @PropertyDef(label = "æ¯å¦æ£å¸¸åå¨å¹´é") |
| | | private String normalYear; |
| | | |
| | | @Column(name = "REMARK_", length = 200) |
| | | @PropertyDef(label = "夿³¨", description = "夿³¨ä¿¡æ¯") |
| | | private String remark; |
| | | |
| | | @Column(name = "UPDATE_TIME_") |
| | | @PropertyDef(label = "æ°æ®æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | |
| | | @Column(name = "REPORT_TYPE_", length = 10) |
| | | @PropertyDef(label = "æ¥åç±»å", description = "1-å使£éªï¼2-æ´ä½æ£éª(å æå¹³å)ï¼3-å
¶ä»") |
| | | private String reportType; |
| | | |
| | | /** |
| | | * åéªé¡¹ç®æç» |
| | | */ |
| | | @Transient |
| | | private List<CheckItem> checkItems; |
| | | |
| | | /** |
| | | * --------éä»¶-------- |
| | | **/ |
| | | @Column(name = "FILE_ID_", length = 30) |
| | | @PropertyDef(label = "éä»¶id") |
| | | private String fileId; |
| | | |
| | | @Column(name = "FILE_NAME_", length = 50) |
| | | @PropertyDef(label = "éä»¶åç§°") |
| | | private String fileName; |
| | | |
| | | @Column(name = "FILE_TIME_") |
| | | @PropertyDef(label = "éä»¶ä¸ä¼ æ¶é´") |
| | | private Date fileTime; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.RedisConst; |
| | | import com.fzzy.igds.dzhwk.domain.Building; |
| | | import com.fzzy.igds.sys.repository.BuildingRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description 仿¿serviceå± |
| | | * @Author CZT |
| | | * @Date 2024/11/20 19:03 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.buildingService") |
| | | public class BuildingService { |
| | | |
| | | @Resource |
| | | private BuildingRepository buildingRepository; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢ä»æ¿ä¿¡æ¯ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<Building> getBuilding(String companyId, String deptId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | return buildingRepository.getBuilding(companyId, deptId); |
| | | } |
| | | |
| | | /** |
| | | * ä¿å仿¿ä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | | public void saveOrUpdate(Building data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | data.setUpdateTime(new Date()); |
| | | buildingRepository.save(data); |
| | | |
| | | refreshCacheBuilding(data.getCompanyId()); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»æ¿ä¿¡æ¯ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String delData(Building data) { |
| | | buildingRepository.delete(data); |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * è·åç¼åä¸ä»æ¿ä¿¡æ¯ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<Building> getCacheBuilding(String companyId, String deptId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_BUILDING_LIST); |
| | | List<Building> result = redisCache.getCacheObject(key); |
| | | |
| | | if (null == result) { |
| | | refreshCacheBuilding(companyId); |
| | | return null; |
| | | } |
| | | |
| | | String finalDeptId = deptId; |
| | | return result.stream().filter(item -> item.getDeptId().equals(finalDeptId)) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¼åä¸ä»æ¿ä¿¡æ¯ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @param buildingId |
| | | * @return |
| | | */ |
| | | public Building getCacheBuilding(String companyId, String deptId, String buildingId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | List<Building> result = getCacheBuilding(companyId, deptId); |
| | | |
| | | if (null == result) { |
| | | refreshCacheBuilding(companyId); |
| | | return null; |
| | | } |
| | | for (Building building : result) { |
| | | if (buildingId.equals(building.getId())) { |
| | | return building; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void refreshCacheBuilding(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | List<Building> list = buildingRepository.getBuilding(companyId); |
| | | |
| | | redisCache.setCacheObject(RedisConst.buildKey(companyId, RedisConst.KEY_BUILDING_LIST), list); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Company; |
| | | import com.fzzy.igds.sys.repository.CompanyRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description serviceå± |
| | | * @Author CZT |
| | | * @Date 2024/11/28 15:03 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.coreCompanyService") |
| | | public class CoreCompanyService { |
| | | |
| | | @Resource |
| | | private CompanyRepository companyRepository; |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢å
¬å¸ä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Company getDataById(String id) { |
| | | |
| | | if (StringUtils.isEmpty(id)) { |
| | | return null; |
| | | } |
| | | return companyRepository.getDataById(id); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢å
¬å¸ä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<Company> getAllData(String companyId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | return companyRepository.getAllData(companyId); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢å
¬å¸ä¿¡æ¯ |
| | | * @param sysDept |
| | | * @return |
| | | */ |
| | | public Company initCompanyData(SysDept sysDept) { |
| | | |
| | | if (null == sysDept) { |
| | | return null; |
| | | } |
| | | Company company = new Company(); |
| | | company.setId(sysDept.getDeptId() + ""); |
| | | company.setDwmc(sysDept.getDeptName()); |
| | | company.setCompanyId(sysDept.getCompanyId()); |
| | | this.saveOrUpdate(company); |
| | | return company; |
| | | } |
| | | |
| | | /** |
| | | * ä¿å仿¿ä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | | public void saveOrUpdate(Company data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | data.setZhgxsj(new Date()); |
| | | companyRepository.save(data); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»æ¿ä¿¡æ¯ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public void delData(Company data) { |
| | | companyRepository.delete(data); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import com.fzzy.igds.sys.repository.DeptRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description serviceå± |
| | | * @Author CZT |
| | | * @Date 2024/11/28 19:03 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.coreDeptService") |
| | | public class CoreDeptService { |
| | | |
| | | @Resource |
| | | private DeptRepository deptRepository; |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢å
¬å¸ä¿¡æ¯ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Dept getDataById(String id) { |
| | | |
| | | if (StringUtils.isEmpty(id)) { |
| | | return null; |
| | | } |
| | | return deptRepository.getDataById(id); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢ä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<Dept> getAllData(String companyId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | return deptRepository.getAllData(companyId); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢å
¬å¸ä¿¡æ¯ |
| | | * @param sysDept |
| | | * @return |
| | | */ |
| | | public Dept initDeptData(SysDept sysDept) { |
| | | |
| | | if (null == sysDept) { |
| | | return null; |
| | | } |
| | | Dept dept = new Dept(); |
| | | dept.setId(sysDept.getDeptId() + ""); |
| | | dept.setKqmc(sysDept.getDeptName()); |
| | | dept.setCompanyId(sysDept.getCompanyId()); |
| | | this.saveOrUpdate(dept); |
| | | return dept; |
| | | } |
| | | |
| | | /** |
| | | * ä¿åä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | | public void saveOrUpdate(Dept data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | data.setZhgxsj(new Date()); |
| | | deptRepository.save(data); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä»æ¿ä¿¡æ¯ |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public void delData(Dept data) { |
| | | deptRepository.delete(data); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.*; |
| | | import com.fzzy.igds.dzhwk.constant.RedisConst; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.dzhwk.domain.DepotStore; |
| | | import com.fzzy.igds.sys.repository.DepotRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.SysDeptMapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 16:56 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.depotService") |
| | | public class DepotService { |
| | | |
| | | @Resource |
| | | private DepotRepository depotRepository; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | @Resource |
| | | private SysDeptMapper deptMapper; |
| | | @Resource |
| | | private DepotStoreService depotStoreService; |
| | | |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢ä»åºå表 |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<Depot> getData(String companyId, String deptId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | return depotRepository.getDepot(companyId, deptId); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ¥è¯¢ä»åºå表 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public List<Depot> getDepotByIds(List<String> ids) { |
| | | if (null == ids ||ids.isEmpty()) { |
| | | return null; |
| | | } |
| | | return depotRepository.getDepotByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * jpaä¿åæ´æ°ä»åºä¿¡æ¯ |
| | | * @param depot |
| | | */ |
| | | public void saveDepot(Depot depot) { |
| | | if (StringUtils.isEmpty(depot.getCompanyId())) { |
| | | depot.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(depot.getDeptId())) { |
| | | depot.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | if(null == depot.getOrderNum()){ |
| | | depot.setOrderNum(1); |
| | | } |
| | | depotRepository.save(depot); |
| | | flushCache(depot.getCompanyId()); |
| | | } |
| | | |
| | | /** |
| | | * jpaæ´æ°ä»åºç¶æ |
| | | * @param depotId |
| | | * @param status |
| | | */ |
| | | public void updateDepotStatus(String depotId, String status) { |
| | | if (StringUtils.isEmpty(depotId)) { |
| | | return; |
| | | } |
| | | depotRepository.updateDepotStatus(status, depotId); |
| | | } |
| | | |
| | | /** |
| | | * jpaå é¤ä»åºè´§ä½ä¿¡æ¯ |
| | | * @param depot |
| | | */ |
| | | public void deleteDepot(Depot depot) { |
| | | depotRepository.delete(depot); |
| | | |
| | | //å é¤é
ç½®ç¼å |
| | | this.delCacheDepot(depot, depot.getCompanyId()); |
| | | } |
| | | |
| | | /** |
| | | * å·æ°ä»åºè´§ä½ç¼å |
| | | * @param companyId |
| | | */ |
| | | public void flushCache(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | |
| | | List<Depot> list = depotRepository.getDepotByCompanyId(companyId); |
| | | |
| | | this.setCacheDepotList(list, companyId); |
| | | } |
| | | |
| | | /** |
| | | * 设置ç¼å |
| | | * @param list |
| | | * @param companyId |
| | | */ |
| | | public void setCacheDepotList(List<Depot> list, String companyId) { |
| | | if (null == list) return; |
| | | String key; |
| | | for (Depot depot : list) { |
| | | key = RedisConst.buildKey(companyId, RedisConst.KEY_DEPOT, depot.getId()); |
| | | redisCache.setCacheObject(key, depot); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å é¤ç¼åä¿¡æ¯ |
| | | * @param depot |
| | | * @param companyId |
| | | */ |
| | | public void delCacheDepot(Depot depot, String companyId) { |
| | | if (null == depot) { |
| | | return; |
| | | } |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_DEPOT, depot.getId()); |
| | | redisCache.deleteObject(key); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¼å-æ ¹æ®ç»ç»ç¼ç è·åä»åºéå |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<Depot> getCacheDepotList(String companyId) { |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | String patten = RedisConst.buildKey(companyId, RedisConst.KEY_DEPOT) + "*"; |
| | | |
| | | Collection<String> keys = redisCache.keys(patten); |
| | | if (null == keys) { |
| | | return null; |
| | | } |
| | | |
| | | List<Depot> list = new ArrayList<>(); |
| | | for (String key : keys) { |
| | | list.add((Depot) redisCache.getCacheObject(key)); |
| | | } |
| | | //ç¼åè·å为空ï¼åæ¥è¯¢æ°æ®åº |
| | | if(list.size() < 1){ |
| | | list = depotRepository.getDepotByCompanyId(companyId); |
| | | setCacheDepotList(list, companyId); |
| | | } |
| | | |
| | | //éæ°æåº |
| | | Collections.sort(list, (p1, p2) -> p1.getOrderNum() - p2.getOrderNum()); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * è·åç¼å-æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åä»åºéå |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public List<Depot> getCacheDepotList(String companyId, String deptId) { |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | return null; |
| | | } |
| | | List<Depot> list = getCacheDepotList(companyId); |
| | | if(null == list || list.isEmpty()){ |
| | | return null; |
| | | } |
| | | List<Depot> result = new ArrayList<>(); |
| | | for (Depot depot : list) { |
| | | if (deptId.equals(depot.getDeptId())) { |
| | | result.add(depot); |
| | | } |
| | | } |
| | | //éæ°æåº |
| | | Collections.sort(result, (p1, p2) -> p1.getOrderNum() - p2.getOrderNum()); |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * è·åä»åºä¿¡æ¯-æ ¹æ®ä»åºç¼ç è·åç¼åä¿¡æ¯ |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | public Depot getCacheDepot(String companyId, String depotId) { |
| | | if (StringUtils.isEmpty(depotId)) { |
| | | return null; |
| | | } |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_DEPOT, depotId); |
| | | Depot depot = redisCache.getCacheObject(key); |
| | | if(null == depot){ |
| | | depot = depotRepository.getDepotById(companyId, depotId); |
| | | redisCache.setCacheObject(key, depot); |
| | | } |
| | | return depot; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å½åä»åºç¼å·ä¿¡æ¯è·åä¸å½åä»åºç¸å建çç©çææä»åºéå |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | public List<Depot> getCacheCommonBuildingDepot(String companyId, String depotId) { |
| | | //è¥ä»åºæªé
ç½®ä»æ¿ç¼ç ï¼åç´æ¥è¿å对åºä»åº |
| | | Depot depot = getCacheDepot(companyId, depotId); |
| | | |
| | | if (StringUtils.isEmpty(depot.getBuildingId())) { |
| | | List<Depot> list = new ArrayList<>(); |
| | | list.add(depot); |
| | | return list; |
| | | } |
| | | |
| | | List<Depot> list = getCacheDepotList(companyId); |
| | | if (null == list) { |
| | | return null; |
| | | } |
| | | String buildingId = null; |
| | | Map<String, List<Depot>> mapList = new HashMap<>();// å®ä¹ä¸ä¸ªä»¥å»ºçç©ID为KEYçMAPéå对象 |
| | | |
| | | for (Depot item : list) { |
| | | if (item.getId().equals(depotId)) { |
| | | buildingId = item.getBuildingId(); |
| | | } |
| | | if (null == mapList.get(item.getBuildingId())) { |
| | | mapList.put(item.getBuildingId(), new ArrayList<>()); |
| | | } |
| | | mapList.get(item.getBuildingId()).add(item); |
| | | } |
| | | return mapList.get(buildingId); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åºåä¿¡æ¯æ´æ°ä»åºä¿¡æ¯ |
| | | * @param data |
| | | */ |
| | | public void updateByStore(DepotStore data) { |
| | | |
| | | Depot depot = this.getCacheDepot(data.getCompanyId(), data.getDepotId()); |
| | | if (null == depot) { |
| | | return; |
| | | } |
| | | |
| | | depot.setStorageReal(data.getStorageReal()); |
| | | depot.setDepotStatus(data.getDepotStatus()); |
| | | depot.setFoodLevel(data.getFoodLevel()); |
| | | depot.setFoodLocation(data.getFoodLocation()); |
| | | depot.setFoodVariety(data.getFoodVariety()); |
| | | depot.setFoodType(data.getFoodType()); |
| | | depot.setFoodYear(data.getFoodYear()); |
| | | if (null != data.getStoreDate()) { |
| | | depot.setStoreDate(data.getStoreDate()); |
| | | } |
| | | |
| | | this.saveDepot(depot); |
| | | } |
| | | |
| | | /** |
| | | * åå§åæ§å¶æä»åºçèæç¨æ· |
| | | * @param companyId |
| | | */ |
| | | public void initUserDeptMap(String companyId) { |
| | | List<Depot> list = this.getCacheDepotList(companyId); |
| | | if (null == list || list.isEmpty()) return; |
| | | for (Depot depot : list) { |
| | | ContextUtil.updateSubDept(depot.getId(), depot.getDeptId()); |
| | | } |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.RedisConst; |
| | | import com.fzzy.igds.dzhwk.domain.DepotStatusConfirm; |
| | | import com.fzzy.igds.sys.repository.DepotStatusConfirmRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 10:48 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.depotStatusConfirmService") |
| | | public class DepotStatusConfirmService { |
| | | |
| | | public static final String CACHE_DEPOT_STATUS_CONFIRM_ID = "DEPOT_STATUS_CONFIRM_ID"; |
| | | |
| | | @Resource |
| | | private DepotStatusConfirmRepository DepotStatusConfirmRepository; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | |
| | | /** |
| | | * JPAå页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param specification |
| | | * @param pageable |
| | | * @return |
| | | */ |
| | | public Page<DepotStatusConfirm> findAll(Specification<DepotStatusConfirm> specification, Pageable pageable) { |
| | | return DepotStatusConfirmRepository.findAll(specification, pageable); |
| | | } |
| | | |
| | | /** |
| | | * JPAæ´æ°ä¿å |
| | | * @param data |
| | | */ |
| | | public void saveOrUpdate(DepotStatusConfirm data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | data.setUpdateTime(new Date()); |
| | | if (StringUtils.isEmpty(data.getFcqrdh())) { |
| | | data.setFcqrdh(buildId(data.getFcrq())); |
| | | } |
| | | DepotStatusConfirmRepository.save(data); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * JPAå é¤ |
| | | * @param data |
| | | */ |
| | | public void delData(DepotStatusConfirm data) { |
| | | DepotStatusConfirmRepository.delete(data); |
| | | } |
| | | |
| | | /** |
| | | * è·åå°ä»åå· |
| | | * @param time |
| | | * @return |
| | | */ |
| | | public String buildId(Date time) { |
| | | |
| | | String timeKey = "21" + DateFormatUtils.format(time, "yyyyMMdd"); |
| | | // ä»ç¼åä¸è·åå·²æçç»ç»ç¼ç |
| | | String cacheKey = RedisConst.buildKey(ContextUtil.getCompanyId(), CACHE_DEPOT_STATUS_CONFIRM_ID); |
| | | |
| | | String cacheId = (String) redisCache.getCacheObject(cacheKey); |
| | | if (null != cacheId && cacheId.indexOf(timeKey) >= 0) { |
| | | String temp = cacheId.substring(cacheId.length() - 4); |
| | | Integer i = Integer.valueOf(temp); |
| | | cacheId = timeKey + String.format("%04d", ++i); |
| | | } else { |
| | | List<DepotStatusConfirm> list = DepotStatusConfirmRepository.getDataByFcqrdh(timeKey + "%"); |
| | | if (null == list || list.isEmpty()) { |
| | | cacheId = timeKey + "0001"; |
| | | } else { |
| | | String temp = list.get(0).getFcqrdh(); |
| | | String tempNum = temp.substring(temp.length() - 4); |
| | | Integer i = Integer.valueOf(tempNum); |
| | | cacheId = timeKey + String.format("%04d", ++i); |
| | | } |
| | | } |
| | | // æ´æ°ç¼å |
| | | redisCache.setCacheObject(cacheKey, cacheId); |
| | | return cacheId; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DepotStatusConfirm; |
| | | import com.fzzy.igds.dzhwk.domain.DepotStore; |
| | | import com.fzzy.igds.sys.repository.DepotStoreRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 11:29 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.depotStoreService") |
| | | public class DepotStoreService { |
| | | |
| | | @Resource |
| | | private DepotStoreRepository depotStoreRepository; |
| | | |
| | | /** |
| | | * JPAå页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param specification |
| | | * @param pageable |
| | | * @return |
| | | */ |
| | | public Page<DepotStore> findAll(Specification<DepotStore> specification, Pageable pageable) { |
| | | return depotStoreRepository.findAll(specification, pageable); |
| | | } |
| | | |
| | | /** |
| | | * JPAæ´æ°ä¿åæ°æ® |
| | | * @param data |
| | | */ |
| | | public void saveDepotStore(DepotStore data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | data.setUpdateUser(ContextUtil.getLoginUserCName()); |
| | | data.setUpdateDate(new Date()); |
| | | |
| | | data.setId(data.getDepotId() + "_" + DateFormatUtils.format(data.getStoreDate(), "yyyyMMddHHmmss") + "_" + DateFormatUtils.format(data.getUpdateDate(), "yyyyMMddHHmmss")); |
| | | data.setCreateDate(new Date()); |
| | | data.setRemark("ç³»ç»çæ"); |
| | | |
| | | depotStoreRepository.save(data); |
| | | } |
| | | |
| | | /** |
| | | * JPAå 餿°æ® |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String delDepotStore(DepotStore data) { |
| | | depotStoreRepository.delete(data); |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * JPAè·åä»åºæå䏿¡åºåæ°æ® |
| | | * @param depotId |
| | | * @param time |
| | | * @return |
| | | */ |
| | | public DepotStore getLastData(String depotId, Date time) { |
| | | List<DepotStore> list = depotStoreRepository.getDataByDepotId(depotId, time); |
| | | if(null == list || list.isEmpty()){ |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å°ä»ç¡®è®¤åä¿¡æ¯å¢å åºå |
| | | * @param data |
| | | */ |
| | | public void depotStoreStatus(DepotStatusConfirm data) { |
| | | // æ ¹æ®æåä¸è½¦è¿è¡æ±æ»ç»è®¡ï¼å¼å§æ¶é´æ¯ä»åºåºåæåä¸ä¸ªæ¶é´æªæ¢å°å½å |
| | | DepotStore lastStore = this.getLastData(data.getDepotId(), new Date()); |
| | | |
| | | lastStore.setRemark("å°ä»ç¡®è®¤"); |
| | | lastStore.setFullDate(data.getFcrq()); |
| | | lastStore.setDepotStatus("3"); |
| | | lastStore.setUpdateUser("ç³»ç»ç®¡çå"); |
| | | lastStore.setStorageReal(data.getFcsl()); |
| | | lastStore.setUpdateDate(new Date()); |
| | | lastStore.setCreateDate(new Date()); |
| | | lastStore.setId(null); |
| | | this.saveDepotStore(lastStore); |
| | | } |
| | | |
| | | public void addDepotStore(DepotStore store, boolean updateDepot) { |
| | | // if (null == store.getUpdateDate()) store.setUpdateDate(new Date()); |
| | | // if (null == store.getId()) store.setId(ContextUtil.getUUID()); |
| | | // if (null == store.getManageType() || "".equals(store.getManageType())) { |
| | | // store.setManageType("01"); |
| | | // } |
| | | // |
| | | // commonMapper.addDepotStore(store); |
| | | // |
| | | // |
| | | // if (updateDepot) { |
| | | // DepotParam param = new DepotParam(); |
| | | // param.setCompanyId(store.getCompanyId()); |
| | | // param.setDepotId(store.getDepotId()); |
| | | // param.setWeight(store.getStorageReal()); |
| | | // param.setDepotStatus(store.getDepotStatus()); |
| | | // |
| | | // commonMapper.updateDepotStorage(param); |
| | | // } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.data.BaseParam; |
| | | import com.fzzy.igds.dzhwk.domain.DicArea; |
| | | import com.fzzy.igds.sys.mapper.DicAreaMapper; |
| | | import com.fzzy.igds.sys.repository.DicAreaRepository; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.data.domain.Page; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 09:56 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.dicAreaService") |
| | | public class DicAreaService { |
| | | |
| | | @Resource |
| | | private DicAreaRepository dicAreaRepository; |
| | | @Resource |
| | | private DicAreaMapper dicAreaMapper; |
| | | |
| | | /** |
| | | * JPAå页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param pageable |
| | | */ |
| | | public Page<DicArea> findAll(Pageable pageable) { |
| | | return dicAreaRepository.findAll(pageable); |
| | | } |
| | | |
| | | /** |
| | | * JPAå页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param specification |
| | | * @param pageable |
| | | * @return |
| | | */ |
| | | public Page<DicArea> findAll(Specification<DicArea> specification, Pageable pageable) { |
| | | return dicAreaRepository.findAll(specification, pageable); |
| | | } |
| | | |
| | | /** |
| | | * JPAæ ¹æ®ç¶ç¼ç æ¥è¯¢åºåä¿¡æ¯ |
| | | * |
| | | * @param parentCode |
| | | * @return |
| | | */ |
| | | public List<DicArea> getDicAreaByParentCode(String parentCode) { |
| | | if(StringUtils.isEmpty(parentCode)){ |
| | | return dicAreaRepository.findAll(); |
| | | } |
| | | return dicAreaRepository.getDicAreaByParentCode(parentCode); |
| | | } |
| | | |
| | | /** |
| | | * JPAä¿åæ°æ® |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String saveDicArea(DicArea data) { |
| | | dicAreaRepository.save(data); |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * JPAå 餿°æ® |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | public String delDicArea(DicArea data) { |
| | | dicAreaRepository.delete(data); |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·ååºåç¼ç |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public DicArea listDicAreaByName(String name) { |
| | | return dicAreaRepository.listDicAreaByName(name); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åºåç¼ç è·ååç§° |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public DicArea listDicAreaByCode(String code) { |
| | | return dicAreaRepository.listDicAreaByCode(code); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Mybatis å页æ¥è¯¢æ°æ® |
| | | * |
| | | * @param specification |
| | | * @param pageable |
| | | * @return |
| | | */ |
| | | /** |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public List<DicArea> listDicArea(com.fzzy.igds.dzhwk.data.Page<DicArea> page, BaseParam param) { |
| | | return dicAreaMapper.listDicArea(page,param); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.*; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.fzzy.igds.util.WeatherUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.utils.DictUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.SysDictDataMapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 16:30 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.dicService") |
| | | public class DicService { |
| | | |
| | | @Autowired |
| | | private SysDictDataMapper dictDataMapper; |
| | | |
| | | /** |
| | | * åå§å常ç¨åå
¸å°å
å |
| | | * |
| | | * @param companyId |
| | | */ |
| | | public void initDicMap(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getDefaultCompanyId(); |
| | | } |
| | | //åå§åç²®é£åç§åå
¸ |
| | | List<SysDictData> dicList = DictUtils.getDictCache(Constant.TRIGGER_PARENT_FOOD_VARIETY, companyId); |
| | | if (null != dicList) { |
| | | for (SysDictData sysDictData : dicList) { |
| | | Constant.mapFoodVariety.put(sysDictData.getDictValue(), sysDictData.getDictLabel()); |
| | | } |
| | | } |
| | | //åå§åç²®é£æ§è´¨åå
¸ |
| | | dicList = DictUtils.getDictCache(Constant.TRIGGER_PARENT_FOOD_TYPE, companyId); |
| | | if (null != dicList) { |
| | | for (SysDictData sysDictData : dicList) { |
| | | Constant.mapFoodType.put(sysDictData.getDictValue(), sysDictData.getDictLabel()); |
| | | } |
| | | } |
| | | //åå§ååºå
¥åºæµç¨åå
¸ |
| | | dicList = DictUtils.getDictCache(Constant.TRIGGER_PARENT_PROCESS_STATUS, companyId); |
| | | if (null != dicList) { |
| | | for (SysDictData sysDictData : dicList) { |
| | | Constant.mapProgressName.put(sysDictData.getDictValue(), sysDictData.getDictLabel()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®typeåç»ç»ç¼ç è·ååå
¸,å
ä»ç¼åè·åï¼ç¼å没æåæ¥è¯¢æ°æ®åº |
| | | * |
| | | * @param dictType |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<SysDictData> getDictDataByType(String dictType, String companyId) { |
| | | |
| | | if (StringUtils.isEmpty(dictType)) { |
| | | return null; |
| | | } |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | List<SysDictData> list = DictUtils.getDictCache(dictType, companyId); |
| | | if (null == list || list.isEmpty()) { |
| | | list = dictDataMapper.selectDictDataByType(dictType, companyId); |
| | | DictUtils.setDictCache(dictType, list, companyId); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 仿¿ç±»å-é彿 å®ä¹ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerDepotType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(DepotType.TYPE_01.getMsg(), DepotType.TYPE_01.getCode())); |
| | | list.add(new SysDictData(DepotType.TYPE_02.getMsg(), DepotType.TYPE_02.getCode())); |
| | | list.add(new SysDictData(DepotType.TYPE_03.getMsg(), DepotType.TYPE_03.getCode())); |
| | | list.add(new SysDictData(DepotType.TYPE_04.getMsg(), DepotType.TYPE_04.getCode())); |
| | | list.add(new SysDictData(DepotType.TYPE_05.getMsg(), DepotType.TYPE_05.getCode())); |
| | | list.add(new SysDictData(DepotType.TYPE_99.getMsg(), DepotType.TYPE_99.getCode())); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * 仿¿ç¶æ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerDepotStatus() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(DepotStatus.STATUS_1.getMsg(), DepotStatus.STATUS_1.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_2.getMsg(), DepotStatus.STATUS_2.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_3.getMsg(), DepotStatus.STATUS_3.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_4.getMsg(), DepotStatus.STATUS_4.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_31.getMsg(), DepotStatus.STATUS_31.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_32.getMsg(), DepotStatus.STATUS_32.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_33.getMsg(), DepotStatus.STATUS_33.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_34.getMsg(), DepotStatus.STATUS_34.getCode())); |
| | | list.add(new SysDictData(DepotStatus.STATUS_9.getMsg(), DepotStatus.STATUS_9.getCode())); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * ç²®é£ç级 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerFoodLevel() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_01.getMsg(), FoodLevel.LEVEL_01.getCode())); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_02.getMsg(), FoodLevel.LEVEL_02.getCode())); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_03.getMsg(), FoodLevel.LEVEL_03.getCode())); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_04.getMsg(), FoodLevel.LEVEL_04.getCode())); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_05.getMsg(), FoodLevel.LEVEL_05.getCode())); |
| | | list.add(new SysDictData(FoodLevel.LEVEL_06.getMsg(), FoodLevel.LEVEL_06.getCode())); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * å¨ç²®æ¹å¼ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStoreType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("æ£è£
å¨ç²®", "1")); |
| | | list.add(new SysDictData("å
è£
å¨ç²®", "2")); |
| | | list.add(new SysDictData("å´å
å", "3")); |
| | | list.add(new SysDictData("å
¶ä»", "9")); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * ç®¡çæ¹å¼ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerManagerType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("ç´å¨", "01")); |
| | | list.add(new SysDictData("代å¨", "02")); |
| | | list.add(new SysDictData("ç§ä»", "03")); |
| | | list.add(new SysDictData("å§æ", "04")); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * çµç¼èµ·å§æ¹ä½ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStartOrientation() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("å³è¾¹", Constant.GRAIN_START_ORIENTATION_RIGHT)); |
| | | list.add(new SysDictData("å³ä¸", Constant.GRAIN_START_ORIENTATION_RIGHT_UP)); |
| | | list.add(new SysDictData("左边", Constant.GRAIN_START_ORIENTATION_LEFT)); |
| | | list.add(new SysDictData("å·¦ä¸", Constant.GRAIN_START_ORIENTATION_LEFT_UP)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * çµç¼å¸çº¿æ¹å |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStartDirection() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("纵å", Constant.GRAIN_START_DIRECTION_PORTRAIT)); |
| | | list.add(new SysDictData("横å", Constant.GRAIN_START_DIRECTION_TRANSVERSE)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * çµç¼èµ·å§ç¹ä½ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStartPoint() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("é¡¶é¨", Constant.GRAIN_START_POINT_TOP)); |
| | | list.add(new SysDictData("åºé¨", Constant.GRAIN_START_POINT_BELOW)); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * å±è¡è½¬æ¢ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStartConvert() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("é»è®¤", Constant.GRAIN_CONVERT_DEFAULT)); |
| | | list.add(new SysDictData("顺æ¶é", Constant.GRAIN_CONVERT_CLOCKWISE)); |
| | | list.add(new SysDictData("éæ¶é", Constant.GRAIN_CONVERT_ANTICLOCKWISE)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * çä»é¥å½¢ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerCableCone() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("æ é¥å½¢", Constant.CABLE_CONE_0)); |
| | | list.add(new SysDictData("ä¸é¥å½¢", Constant.CABLE_CONE_1)); |
| | | list.add(new SysDictData("ä¸é¥å½¢", Constant.CABLE_CONE_2)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ¯å¦ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerYN() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("æ¯", Constant.YN_Y)); |
| | | list.add(new SysDictData("å¦", Constant.YN_N)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * éè®¯ç¶æ |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public List<SysDictData> conStatus() { |
| | | List<SysDictData> list = new ArrayList<>(); |
| | | list.add(new SysDictData("æ£å¸¸", Constant.YN_Y)); |
| | | list.add(new SysDictData("æå¼", Constant.YN_N)); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ¬å°è¿ç¨æ¨¡å¼ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> controlModel() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | |
| | | list.add(new SysDictData(ControlModel.MODEL_01.getMsg(), ControlModel.MODEL_01.getCode())); |
| | | list.add(new SysDictData(ControlModel.MODEL_02.getMsg(), ControlModel.MODEL_02.getCode())); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * åè½æ¨¡å |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerBizType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(BizType.GRAIN.getMsg(), BizType.GRAIN.getCode())); |
| | | list.add(new SysDictData(BizType.PEST.getMsg(), BizType.PEST.getCode())); |
| | | list.add(new SysDictData(BizType.GAS.getMsg(), BizType.GAS.getCode())); |
| | | list.add(new SysDictData(BizType.AREATION.getMsg(), BizType.AREATION.getCode())); |
| | | list.add(new SysDictData(BizType.N2.getMsg(), BizType.N2.getCode())); |
| | | list.add(new SysDictData(BizType.INOUT_IN.getMsg(), BizType.INOUT_IN.getCode())); |
| | | list.add(new SysDictData(BizType.INOUT_OUT.getMsg(), BizType.INOUT_OUT.getCode())); |
| | | list.add(new SysDictData(BizType.TEMPCONTROL.getMsg(), BizType.TEMPCONTROL.getCode())); |
| | | list.add(new SysDictData(BizType.WEATHER.getMsg(), BizType.WEATHER.getCode())); |
| | | list.add(new SysDictData(BizType.ES.getMsg(), BizType.ES.getCode())); |
| | | list.add(new SysDictData(BizType.SECURITY.getMsg(), BizType.SECURITY.getCode())); |
| | | list.add(new SysDictData(BizType.SYS.getMsg(), BizType.SYS.getCode())); |
| | | list.add(new SysDictData(BizType.SCREEN.getMsg(), BizType.SCREEN.getCode())); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * æ°è±¡æ¥æº |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerSource() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData(WeatherUtil.SOURCE_01, "åºåºæ°è±¡ç«")); |
| | | list.add(new SysDictData(WeatherUtil.SOURCE_01, "å¤ç½æ°è±¡ç«")); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ£éªç±»å« |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("å
¥ä»éªæ¶", "01")); |
| | | list.add(new SysDictData("åºä»æ£éª", "02")); |
| | | list.add(new SysDictData("3ææ«æ®æ£", "03")); |
| | | list.add(new SysDictData("9ææ«æ®æ£", "04")); |
| | | list.add(new SysDictData("å
¥åºåæ£", "05")); |
| | | list.add(new SysDictData("æåº¦æ£æ¥", "06")); |
| | | list.add(new SysDictData("3ææ«åºå
æ®æ¥", "07")); |
| | | list.add(new SysDictData("9ææ«åºå
æ®æ¥", "08")); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * ææ ç±»å« |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStandard() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | |
| | | list.add(new SysDictData("彿 ", "1")); |
| | | list.add(new SysDictData("å
¶ä»", "0")); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * æ£éªä¾æ® |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerMetrics() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | |
| | | list.add(new SysDictData("è´¨éææ æ£éª", "1")); |
| | | list.add(new SysDictData("å¨ååè´¨æ£éª", "2")); |
| | | list.add(new SysDictData("é£åå®å
¨æ£éª", "3")); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * å®¡æ ¸ç¶æ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerStatusType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (AuditStatus w : AuditStatus.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * è¦åç±»å |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerWarnType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (WarnType w : WarnType.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * è¦åç级 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerWarnLevel() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (WarnLevel w : WarnLevel.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * è¦åç¶æ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerWarnStatus() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (WarnStatus w : WarnStatus.values()) { |
| | | list.add(new SysDictData(w.getName(), w.getCode())); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * è¦åéç¥æ¹å¼ |
| | | * |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerNoticeType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (NoticeType w : NoticeType.values()) { |
| | | list.add(new SysDictData(w.getName(), w.getCode())); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * AI设å¤ç±»å |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerAiSerType() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (AiSerType w : AiSerType.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * éé£ä»»å¡ç¶æ |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerVerbStatus() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | list.add(new SysDictData("è¿è¡ä¸", AreationConst.ARESTION_TASK_RUN)); |
| | | list.add(new SysDictData("忢", AreationConst.ARESTION_TASK_STOP)); |
| | | list.add(new SysDictData("è¶
æ¶æ æ", AreationConst.ARESTION_TASK_NOUSE)); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | | * é飿¨¡å¼ |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerAreationModel() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (AreationModel w : AreationModel.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°è°æ¨¡å¼ |
| | | * @return |
| | | */ |
| | | public List<SysDictData> triggerN2ModelTag() { |
| | | List<SysDictData> list = new ArrayList<SysDictData>(); |
| | | for (N2ModelTag w : N2ModelTag.values()) { |
| | | list.add(new SysDictData(w.getMsg(), w.getCode())); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Granary; |
| | | import com.fzzy.igds.sys.repository.GranaryRepository; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 14:48 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.granaryService") |
| | | public class GranaryService { |
| | | |
| | | @Resource |
| | | private GranaryRepository granaryRepository; |
| | | |
| | | public List<Granary> getGranary(String companyId, String deptId) { |
| | | |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | return granaryRepository.getGranary(companyId, deptId); |
| | | } |
| | | |
| | | public void saveOrUpdate(Granary data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | data.setUpdateTime(new Date()); |
| | | granaryRepository.save(data); |
| | | } |
| | | |
| | | public String delData(Granary data) { |
| | | granaryRepository.delete(data); |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import com.fzzy.igds.dzhwk.constant.RedisConst; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.SysUserMapper; |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 18:03 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.sysDeptService") |
| | | public class SysDeptService { |
| | | |
| | | @Resource |
| | | private SysUserMapper userMapper; |
| | | @Resource |
| | | private ISysDeptService iSysDeptService; |
| | | @Resource |
| | | private RedisCache redisCache; |
| | | |
| | | public void initUserDeptMap(String companyId) { |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | |
| | | SysUser sysUser = new SysUser(); |
| | | sysUser.setCompanyId(companyId); |
| | | List<SysUser> list = userMapper.selectUserList(sysUser); |
| | | if (null == list || list.isEmpty()){ |
| | | return; |
| | | } |
| | | for (SysUser userDept : list) { |
| | | ContextUtil.updateSubDept(userDept.getLoginName(), userDept.getDeptId().toString()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * å·æ°é¨é¨æ¶æä¿¡æ¯å°ç¼å |
| | | * @param companyId |
| | | */ |
| | | public List<SysDept> flushDeptCache(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | SysDept sysDept = new SysDept(); |
| | | sysDept.setCompanyId(companyId); |
| | | List<SysDept> listSysDept = iSysDeptService.selectDeptList(sysDept); |
| | | |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_DEPT_LIST); |
| | | |
| | | redisCache.setCacheObject(key, listSysDept); |
| | | return listSysDept; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç è·åææé¨é¨ä¿¡æ¯ |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<SysDept> getCacheDept(String companyId) { |
| | | if (StringUtils.isEmpty(companyId)) { |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | String key = RedisConst.buildKey(companyId, RedisConst.KEY_DEPT_LIST); |
| | | |
| | | List<SysDept> listSysDept = redisCache.getCacheObject(key); |
| | | if(null == listSysDept){ |
| | | listSysDept = flushDeptCache(companyId); |
| | | } |
| | | return listSysDept; |
| | | } |
| | | |
| | | /** |
| | | * ç¼åè·åç»ç»ä¸ææåºåºå表 |
| | | * @param companyId |
| | | */ |
| | | public List<SysDept> getAllDeptByCompanyId(String companyId) { |
| | | List<SysDept> list = getCacheDept(companyId); |
| | | return list.stream() |
| | | .filter(item -> item.getType().equals(Constant.DEPT_TYPE_20)) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®idè·åé¨é¨ä¿¡æ¯ |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public SysDept getCacheDept(String companyId, String deptId) { |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | return null; |
| | | } |
| | | List<SysDept> list = getCacheDept(companyId); |
| | | |
| | | if (null == list || list.isEmpty()){ |
| | | return null; |
| | | } |
| | | |
| | | for (SysDept dept : list) { |
| | | if (deptId.equals(dept.getDeptId() + "")) |
| | | return dept; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç±»åè·åé¨é¨ä¿¡æ¯ |
| | | * type: 10-å
¬å¸ï¼20-åºåºï¼30-é¨é¨ |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public List<SysDept> getDeptByType(String type) { |
| | | if (StringUtils.isEmpty(type)) { |
| | | return null; |
| | | } |
| | | List<SysDept> list = getCacheDept(null); |
| | | if (null == list || list.isEmpty()) { |
| | | return null; |
| | | } |
| | | //æ ¹æ®ç±»åæ¥è¯¢ |
| | | return list.stream() |
| | | .filter(item -> type.equals(item.getType())) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys; |
| | | |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.SysUserMapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 18:03 |
| | | */ |
| | | @Slf4j |
| | | @Service("sys.sysUserService") |
| | | public class SysUserService { |
| | | |
| | | @Resource |
| | | private SysUserMapper userMapper; |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ï¼è·åç¨æ·å表 |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | public List<SysUser> getUser(String companyId) { |
| | | if(StringUtils.isEmpty(companyId)){ |
| | | companyId = ContextUtil.getCompanyId(); |
| | | } |
| | | SysUser sysUser = new SysUser(); |
| | | sysUser.setCompanyId(companyId); |
| | | return userMapper.selectUserList(sysUser); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç»å½åç§°ï¼è·åç¨æ·ä¿¡æ¯ |
| | | * @param loginName |
| | | * @return |
| | | */ |
| | | public SysUser getUserByLoginName(String loginName) { |
| | | return userMapper.selectUserByLoginName(loginName); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.mapper; |
| | | |
| | | import com.fzzy.igds.dzhwk.data.BaseParam; |
| | | import com.fzzy.igds.dzhwk.data.Page; |
| | | import com.fzzy.igds.dzhwk.domain.DicArea; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * åå
¸ç¸å
³çæ ¸å¿å¤ç |
| | | * |
| | | * @author jiazx |
| | | */ |
| | | public interface DicAreaMapper { |
| | | |
| | | /** |
| | | * è·åè¡æ¿åºå |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | List<DicArea> listDicArea(@Param("page") Page<DicArea> page, @Param("param") BaseParam param); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Building; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/20 18:33 |
| | | */ |
| | | @Service |
| | | public interface BuildingRepository extends JpaRepository<Building, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åç³»ç»é
ç½®ä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from Building where companyId =:companyId and deptId =:deptId order by id") |
| | | List<Building> getBuilding(@Param("companyId") String companyId, @Param("deptId") String deptId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç è·åç³»ç»é
ç½®ä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query("from Building where companyId =:companyId order by id") |
| | | List<Building> getBuilding(@Param("companyId") String companyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Company; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/28 14:59 |
| | | */ |
| | | @Service |
| | | public interface CompanyRepository extends JpaRepository<Company, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®idè·åä¿¡æ¯ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Company where id =:id order by id") |
| | | Company getDataById(@Param("id") String id); |
| | | |
| | | /** |
| | | * æ ¹æ®companyIdè·åä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query("from Company where companyId =:companyId order by id") |
| | | List<Company> getAllData(@Param("companyId") String companyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Modifying; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 16:59 |
| | | */ |
| | | @Service("sys.depotRepository") |
| | | public interface DepotRepository extends JpaRepository<Depot, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç è·åä»åºè´§ä½ä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query("from Depot where companyId =:companyId order by orderNum") |
| | | List<Depot> getDepotByCompanyId(@Param("companyId") String companyId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åä»åºè´§ä½ä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from Depot where companyId =:companyId and deptId =:deptId order by orderNum") |
| | | List<Depot> getDepot(@Param("companyId") String companyId, @Param("deptId") String deptId); |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç åä»åºç¼ç è·åä»åºè´§ä½ä¿¡æ¯ |
| | | * @param companyId |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Depot where companyId =:companyId and id =:id") |
| | | Depot getDepotById(@Param("companyId") String companyId, @Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * æ´æ°ä»åºç¶æ |
| | | * @param status |
| | | * @param depotId |
| | | */ |
| | | @Transactional |
| | | @Modifying |
| | | @Query("update Depot set depotStatus =:status where id =:depotId") |
| | | void updateDepotStatus(@Param("status") String status, @Param("depotId") String depotId); |
| | | |
| | | /** |
| | | * æ ¹æ®idsè·åä»åº |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | @Query("from Depot where id IN :list order by orderNum") |
| | | List<Depot> getDepotByIds(@Param("list") List<String> list); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DepotStatusConfirm; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 10:59 |
| | | */ |
| | | @Service |
| | | public interface DepotStatusConfirmRepository extends JpaRepository<DepotStatusConfirm, String>, JpaSpecificationExecutor<DepotStatusConfirm> { |
| | | |
| | | /** |
| | | * æ ¹æ®å°ä»ç¼å·è·åä¿¡æ¯ |
| | | * @param fcqrdh |
| | | * @return |
| | | */ |
| | | @Query("from DepotStatusConfirm where fcqrdh like:fcqrdh order by fcqrdh desc") |
| | | List<DepotStatusConfirm> getDataByFcqrdh(@Param("fcqrdh") String fcqrdh); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DepotStore; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 10:59 |
| | | */ |
| | | @Service |
| | | public interface DepotStoreRepository extends JpaRepository<DepotStore, String>, JpaSpecificationExecutor<DepotStore> { |
| | | |
| | | /** |
| | | * æ ¹æ®ä»åºç¼ç è·åæå䏿¡æ°æ® |
| | | * @param depotId |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from DepotStore where depotId =:depotId and createDate <:end order by createDate desc") |
| | | List<DepotStore> getDataByDepotId(@Param("depotId") String depotId,@Param("end") Date end); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/28 17:59 |
| | | */ |
| | | @Service |
| | | public interface DeptRepository extends JpaRepository<Dept, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®idè·åä¿¡æ¯ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Dept where id =:id order by id") |
| | | Dept getDataById(@Param("id") String id); |
| | | |
| | | /** |
| | | * æ ¹æ®companyIdè·åä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @return |
| | | */ |
| | | @Query("from Dept where companyId =:companyId order by id") |
| | | List<Dept> getAllData(@Param("companyId") String companyId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.DicArea; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.JpaSpecificationExecutor; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 09:56 |
| | | */ |
| | | @Service |
| | | public interface DicAreaRepository extends JpaRepository<DicArea, String>, JpaSpecificationExecutor<DicArea> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç¶ç¼ç æ¥è¯¢åºåä¿¡æ¯ |
| | | * |
| | | * @param parentCode |
| | | * @return |
| | | */ |
| | | @Query("from DicArea where parentCode =:parentCode order by code") |
| | | List<DicArea> getDicAreaByParentCode(@Param("parentCode") String parentCode); |
| | | |
| | | /** |
| | | * æ ¹æ®åç§°è·ååºåä¿¡æ¯ |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @Query("from DicArea where name =:name order by code") |
| | | DicArea listDicAreaByName(@Param("name") String name); |
| | | |
| | | /** |
| | | * æ ¹æ®codeè·ååºåä¿¡æ¯ |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | @Query("from DicArea where code =:code order by code") |
| | | DicArea listDicAreaByCode(@Param("code") String code); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.repository; |
| | | |
| | | import com.fzzy.igds.dzhwk.domain.Granary; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 14:33 |
| | | */ |
| | | @Service |
| | | public interface GranaryRepository extends JpaRepository<Granary, String> { |
| | | |
| | | /** |
| | | * æ ¹æ®ç»ç»ç¼ç ååºåºç¼ç è·åå»é´ä¿¡æ¯ |
| | | * |
| | | * @param companyId |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Query("from Granary where companyId =:companyId and deptId =:deptId order by ajdh") |
| | | List<Granary> getGranary(@Param("companyId") String companyId, @Param("deptId") String deptId); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.util; |
| | | |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import com.fzzy.igds.dzhwk.constant.GrainFrequence; |
| | | import com.ruoyi.common.config.FrameworkConfig; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.ShiroUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.apache.commons.lang3.RandomUtils; |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * ç³»ç»å
¬ç¨æ¹æ³ |
| | | * |
| | | * @author Andy |
| | | */ |
| | | public class ContextUtil { |
| | | |
| | | public static Map<String ,Boolean> l = new HashMap<>(); |
| | | //å
¨å±ç¨æ·å®æ¶åå¨é¨é¨ |
| | | public static Map<String, String> contextUserDept = new HashMap<>(); |
| | | |
| | | /** |
| | | * å
¨å±ç¨äºåæ¾SNä¸ç»ç»ç¼ç çå
³ç³»ï¼ä¾å¦åæºSNåç»ç»ç¼ç å
³ç³» |
| | | */ |
| | | public static Map<String, String> contextSnCompanyIdMap = new HashMap<>(); |
| | | |
| | | |
| | | /** |
| | | * å
¨å±å½ä»¤ID |
| | | */ |
| | | public static Map<String, Integer> contextOrderId = new HashMap<>(); |
| | | |
| | | /** |
| | | * UUIDçæè§å |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getUUID() { |
| | | return UUID.randomUUID().toString().replaceAll("-", ""); |
| | | } |
| | | |
| | | public static String getCurTimeMillis() { |
| | | return System.currentTimeMillis() + ""; |
| | | } |
| | | |
| | | public static String getTimeId() { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMddHHmmss"); |
| | | } |
| | | |
| | | public static String getTimeId(int start, int end) { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMddHHmmss") + RandomUtils.nextInt(start, end); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®åæ°çæ æ§è¡å½ä»¤çç¼åKEY |
| | | * |
| | | * @param companyId |
| | | * @param serId |
| | | * @param bizType |
| | | * @return |
| | | */ |
| | | public static final String buildExeOrderId(String companyId, String serId, String bizType) { |
| | | Integer start = contextOrderId.get("ORDER_ID") == null ? 5000 : contextOrderId.get("ORDER_ID"); |
| | | |
| | | contextOrderId.put("ORDER_ID", start + 1); |
| | | |
| | | return start + ""; |
| | | } |
| | | |
| | | /** |
| | | * 设å¤IDçæè§å |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @param passCode |
| | | * @return |
| | | */ |
| | | public static final String buildDeviceId(String companyId, String depotId, int passCode) { |
| | | return companyId + "_" + depotId + "_" + passCode; |
| | | } |
| | | |
| | | /** |
| | | * 设å¤IDçæè§å |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @param passCode |
| | | * @return |
| | | */ |
| | | public static final String buildDeviceId(String companyId, String depotId, String serId, int passCode) { |
| | | return companyId + depotId + serId + "_" + passCode; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿¡æ¯è·åINFO表ç主é®ID å¨ç²®æ
ï¼æ°ä½åè«å®³ä¸åéè¦å½åæ¹æ³ |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @param batchId |
| | | * @return |
| | | */ |
| | | public static String buildInfoId(String companyId, String depotId, |
| | | String batchId) { |
| | | return companyId + "_" + depotId + "_" + batchId; |
| | | } |
| | | |
| | | public static String getDefaultBatchId() { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMddHHmm"); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®ç³»ç»é
ç½®çæ¹æ¬¡é¢çè·åæ¹æ¬¡ç¼å· |
| | | * |
| | | * @param freq |
| | | * @return |
| | | */ |
| | | public static String getBatchIdByFireq(String freq) { |
| | | // ä¸å¤©ä¸æ¬¡ |
| | | if (GrainFrequence.FREQ_02.getCode().equals(freq)) { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMdd") + "1801"; |
| | | } |
| | | |
| | | // ä¸å¤©ä¸¤æ¬¡ |
| | | if (GrainFrequence.FREQ_03.getCode().equals(freq)) { |
| | | String hour = DateFormatUtils.format(new Date(), "HH"); |
| | | if (Integer.valueOf(hour) >= 0 && Integer.valueOf(hour) <= 12) { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMdd") + "1301"; |
| | | } else { |
| | | return DateFormatUtils.format(new Date(), "yyyyMMdd") + "1802"; |
| | | } |
| | | } |
| | | return getDefaultBatchId(); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å½åç»é人è·åç»ç»ç¼å·ï¼å¦ææ²¡æç»é人è·åç³»ç»é»è®¤çç»ç»ç¼å· |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getCompanyId() { |
| | | SysUser user = ShiroUtils.getSysUser(); |
| | | if (null != user) { |
| | | return user.getCompanyId(); |
| | | } else { |
| | | return "Please login first!"; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åç³»ç»é»è®¤ç=companyId |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getDefaultCompanyId() { |
| | | SysUser user = ShiroUtils.getSysUser(); |
| | | if (null != user) { |
| | | return user.getCompanyId(); |
| | | } else { |
| | | return FrameworkConfig.getCompanyId(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åç»é人å¸å· |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getLoginUserName() { |
| | | SysUser user = ShiroUtils.getSysUser(); |
| | | return null == user ? "SYS" : user.getLoginName(); |
| | | } |
| | | |
| | | /** |
| | | * è·åç»éäººä¸æåç§° |
| | | * |
| | | * @return |
| | | */ |
| | | public static String getLoginUserCName() { |
| | | SysUser user = ShiroUtils.getSysUser(); |
| | | return null == user ? "ç³»ç»" : user.getUserName(); |
| | | } |
| | | |
| | | public static SysUser getLoginUser() { |
| | | return ShiroUtils.getSysUser(); |
| | | } |
| | | |
| | | /** |
| | | * æé«çç¼ç 为ï¼ç»ç»ç¼ç ï¼ç¶åé级å¾ä¸ï¼å¦ï¼5013,5013_001,5013_002,5013_001_001 |
| | | * |
| | | * @param companyId å¿
é¡» |
| | | * @param parentId å¯ç©º |
| | | * @param endId å¯ç©º |
| | | * @param format å¿
é¡» ä¸ä½ä¼ 1000ï¼åä½ä¼ 10000 |
| | | * @return |
| | | */ |
| | | public static String getNextId(String companyId, String parentId, |
| | | String endId, int format) { |
| | | if (parentId == null || Constant.DEFAULT_PARENT_CODE.equals(parentId)) { |
| | | return companyId; |
| | | } |
| | | try { |
| | | int endNum = 0; |
| | | if (StringUtils.isNotEmpty(endId)) { |
| | | endNum = Integer.valueOf(endId.substring(endId.length() - 3)); |
| | | } |
| | | String endStr = ("" + (endNum + format + 1)).substring(1); |
| | | |
| | | if (parentId.equals(companyId)) { |
| | | return companyId + "_" + endStr; |
| | | } |
| | | parentId = parentId.substring(parentId.lastIndexOf("_") + 1); |
| | | return companyId + "_" + parentId + "_" + endStr; |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * è·åä»åºç¼ç æ ¼å¼ï¼ |
| | | * |
| | | * @param deptId 5102_001_001 5102_001_002 |
| | | * å¿
é¡» ååºç¼ç |
| | | * @param endId å¿
é¡» æåçä»åºç¼ç |
| | | * @param format å¿
é¡» ä¸ä½ä¼ 1000ï¼åä½ä¼ 10000ï¼é»è®¤é½ä¼ 1000 |
| | | * @return |
| | | */ |
| | | public static String getNextDepotId(String deptId, String endId, int format) { |
| | | try { |
| | | int endNum = 0; |
| | | if (StringUtils.isNotEmpty(endId)) { |
| | | endNum = Integer.valueOf(endId.substring(endId.length() - 3)); |
| | | } |
| | | String endStr = ("" + (endNum + format + 1)).substring(1); |
| | | |
| | | endStr = deptId.substring(deptId.indexOf("_") + 1) + "_" + endStr; |
| | | |
| | | return endStr.replaceAll("_", ""); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * çæTCPè¿æ¥çKEY |
| | | * |
| | | * @param ip |
| | | * @param port |
| | | * @return |
| | | */ |
| | | public static String getServerKey(String ip, Integer port) { |
| | | return ip + ":" + port; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å½åç»å½äººè·åï¼è·åäºçº§é¨é¨IDï¼å½å人æå¨é¨é¨çäºçº§å°±æ¯ ååºID |
| | | * |
| | | * @param user |
| | | * @return |
| | | */ |
| | | public static String subDeptId(SysUser user) { |
| | | if (null == user) { |
| | | user = getLoginUser(); |
| | | } |
| | | |
| | | if (null == user) { |
| | | return getDefaultCompanyId() + "001"; |
| | | } |
| | | |
| | | //ä»å
¨å±è·åï¼å¦ææååå
¨å±çé»è®¤ï¼å¦ææ²¡æååèªå·±æå± |
| | | if (null != contextUserDept.get(user.getLoginName())) { |
| | | return contextUserDept.get(user.getLoginName()); |
| | | } |
| | | |
| | | if (null == user.getDeptId()) { |
| | | return user.getCompanyId(); |
| | | } |
| | | return user.getDeptId().toString(); |
| | | } |
| | | |
| | | public static void updateSubDept(String userId, String deptId) { |
| | | if (null == deptId) return; |
| | | contextUserDept.put(userId, deptId); |
| | | } |
| | | |
| | | /** |
| | | * éªè¯ å½å人æ¯å¦å¨ä¸»é¨é¨ï¼å³å½å人æå±é¨é¨é»è®¤å¨æé«é¨é¨ |
| | | * |
| | | * @param user |
| | | * @return |
| | | */ |
| | | public static boolean isMainDept(SysUser user) { |
| | | if (null == user) { |
| | | user = getLoginUser(); |
| | | } |
| | | if (null == user){ |
| | | return false; |
| | | } |
| | | if (user.getDeptId().equals(user.getCompanyId())) { |
| | | return true; |
| | | } |
| | | if (user.getDeptId()>1000000) { |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * åæ¾SN䏿å±ç»ç»çå
³ç³» |
| | | * |
| | | * @param sn |
| | | * @param companyId |
| | | */ |
| | | public static void addSerCompany(String sn, String companyId) { |
| | | contextSnCompanyIdMap.put(sn, companyId); |
| | | } |
| | | |
| | | /** |
| | | * éè¿SNè·åå½åSNæå±çç»ç» |
| | | * |
| | | * @param sn |
| | | * @return |
| | | */ |
| | | public static String getCompanyIdBySn(String sn) { |
| | | return contextSnCompanyIdMap.get(sn); |
| | | } |
| | | |
| | | |
| | | public static String buildDeviceStatusKey(String companyId, String serId, String passCode) { |
| | | if (null == passCode) passCode = "NULL"; |
| | | return companyId + "_" + serId + "_STATUS_" + passCode; |
| | | } |
| | | |
| | | public static String buildDeviceStatusKey(String companyId, String serId, int passCode) { |
| | | return companyId + "_" + serId + "_STATUS_" + passCode; |
| | | } |
| | | |
| | | public static <K extends Comparable<? super K>, V> Map<K, V> sortByKey(Map<K, V> map) { |
| | | Map<K, V> result = new LinkedHashMap<>(); |
| | | |
| | | map.entrySet().stream() |
| | | .sorted(Map.Entry.<K, V>comparingByKey()).forEachOrdered(e -> result.put(e.getKey(), e.getValue())); |
| | | return result; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * è·å顺åºå· |
| | | * @param oldOrderId åæé¡ºåºå· |
| | | * @param num 使° |
| | | * @return |
| | | */ |
| | | public static String getOrderId(String oldOrderId, Integer num) { |
| | | Integer index3 = 1001; |
| | | Integer index4 = 10001; |
| | | Integer index5 = 100001; |
| | | Integer index = 0; |
| | | String orderId = "001"; |
| | | if(StringUtils.isNotEmpty(oldOrderId)){ |
| | | index = Integer.valueOf(oldOrderId); |
| | | } |
| | | if(3 == num){ |
| | | orderId = ((index3 + index) + "").substring(1); |
| | | } |
| | | if(4 == num){ |
| | | orderId = ((index4 + index) + "").substring(1); |
| | | } |
| | | if(5 == num){ |
| | | orderId = ((index5 + index) + "").substring(1); |
| | | } |
| | | return orderId; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.util; |
| | | |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 常éå®ä¹ |
| | | * |
| | | * @author: andy.jia |
| | | * @description: |
| | | * @version: |
| | | * @data:2020å¹´2æ19æ¥ |
| | | */ |
| | | public class WeatherUtil { |
| | | |
| | | public static final String SOURCE_01 = "01"; |
| | | public static final String SOURCE_02 = "02"; |
| | | |
| | | /** |
| | | * å建æ°è±¡ä¿¡æ¯çä¸»é® |
| | | * <p> |
| | | * ç»ç»ç¼ç + yyyyMMddHHmm |
| | | * |
| | | * @return |
| | | */ |
| | | public static String buildWeatherId(String deptId, Date updateTime) { |
| | | if (null == updateTime) |
| | | updateTime = new Date(); |
| | | return deptId + "-" + DateFormatUtils.format(updateTime, "yyyyMMddHHmm"); |
| | | } |
| | | |
| | | /** |
| | | * 夿å½åæ°è±¡ä¿¡æ¯æ¯å¦éè¦æä¹
åï¼é»è®¤ç³»ç»åªä¿åå¨ä¸å8ç¹ åä¸å3ç¹çæ°è±¡ä¿¡ã |
| | | * |
| | | * @param updateTime |
| | | * @return |
| | | */ |
| | | public static boolean isSave(Date updateTime) { |
| | | |
| | | String tag = DateFormatUtils.format(updateTime, "HHmm"); |
| | | String tag1 = "0800"; |
| | | String tag2 = "1500"; |
| | | |
| | | if (tag.equals(tag1) || tag.equals(tag2)) { |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.fzzy.igds.sys.mapper.DicAreaMapper"> |
| | | |
| | | <!-- è·ååºåå表 --> |
| | | <select id="listDicArea" resultType="com.fzzy.igds.dzhwk.domain.DicArea" |
| | | parameterType="com.fzzy.igds.dzhwk.data.BaseParam"> |
| | | select |
| | | CODE_ as code, |
| | | NAME_ as name, |
| | | TYPE_ as type, |
| | | SIMPLE_ as simple |
| | | from D_DIC_AREA |
| | | <where> |
| | | <if test="param.key != null">AND (NAME_ like "%"#{param.key}"%" OR SIMPLE_ like "%"#{param.key}"%" )</if> |
| | | </where> |
| | | order by CODE_ |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.Building</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±åºç¹</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">deptId</Property> |
| | | <Property name="valueProperty">deptName</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storage"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">设计å¨é</Property> |
| | | <Property name="displayFormat">#0.000 å¨</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">ä½¿ç¨æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="height"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">仿¿é«åº¦</Property> |
| | | <Property name="displayFormat">#0.00 ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="length"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">仿¿é¿åº¦</Property> |
| | | <Property name="displayFormat">#0.00 ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="width"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">仿¿å®½åº¦</Property> |
| | | <Property name="displayFormat">#0.00 ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="diameter"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">çä»ç´å¾</Property> |
| | | <Property name="displayFormat">#0.00 ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="volume"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">çä»ä½ç§¯</Property> |
| | | <Property name="displayFormat">#0.00 ç«æ¹ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deVolume"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ£é¤ä½ç§¯</Property> |
| | | <Property name="displayFormat">#0.00 ç«æ¹ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="doorNum"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">ä»é¨æ°</Property> |
| | | <Property name="displayFormat">#0 个</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ground"> |
| | | <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">01</Property> |
| | | <Property name="value">01-æ··ååå°é¢</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">02</Property> |
| | | <Property name="value">02-éºç å°é¢</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">03</Property> |
| | | <Property name="value">03-æ°´æ³¥ç æµå°é¢</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">04</Property> |
| | | <Property name="value">04-é¢çæ··å忥¼æ¿å¼å°é¢</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">05</Property> |
| | | <Property name="value">05-临æ¶å°åª</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">06</Property> |
| | | <Property name="value">06-å
¶å®</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">07</Property> |
| | | <Property name="value">07-é¢çæ··ååå°é¢</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="wall"> |
| | | <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">01</Property> |
| | | <Property name="value">01-é¢çç ¼</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">02</Property> |
| | | <Property name="value">02-ç æ··</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">03</Property> |
| | | <Property name="value">03-é¢ç»æ</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">04</Property> |
| | | <Property name="value">04-ç ¼</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">99</Property> |
| | | <Property name="value">99-å
¶ä»</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="roof"> |
| | | <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">01</Property> |
| | | <Property name="value">01-大åå±é¢æ¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">02</Property> |
| | | <Property name="value">02-ç°æµé¢çç ¼æ¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">03</Property> |
| | | <Property name="value">03-å¤åä¿æ¸©é¢æ¿ï¼å¤¹è¯æ¿ï¼</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">04</Property> |
| | | <Property name="value">04-é¢åºåç ¼åTæ¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">05</Property> |
| | | <Property name="value">05-彩颿¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">06</Property> |
| | | <Property name="value">06-å
¶å®</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">07</Property> |
| | | <Property name="value">07-颿¡æ¶è½»åå¤åæ¿</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="roofTruss"> |
| | | <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">01</Property> |
| | | <Property name="value">01-é¢åºåç ¼æçº¿å½¢å±æ¶</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">02</Property> |
| | | <Property name="value">02-é¢çç ¼æ±æ¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">03</Property> |
| | | <Property name="value">03-颿¶</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">04</Property> |
| | | <Property name="value">04-æ¨å±æ¶</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">05</Property> |
| | | <Property name="value">05-é¢ç»æé¨å¼åæ¶</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">06</Property> |
| | | <Property name="value">06-é¢åºåç ¼åTæ¿</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">07</Property> |
| | | <Property name="value">07-é¢çç ¼é¨å¼åæ¶</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">08</Property> |
| | | <Property name="value">08-å
¶ä»</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å»ºé æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lon"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ç»åº¦</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lat"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">纬度</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataProvider">buildingPR#loadData</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();
 |
| | | 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 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> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <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> |
| | | </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="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storage"> |
| | | <Property name="property">storage</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="length"> |
| | | <Property name="property">length</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="width"> |
| | | <Property name="property">width</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="height"> |
| | | <Property name="property">height</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="diameter"> |
| | | <Property name="property">diameter</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="createDate"> |
| | | <Property name="property">createDate</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="userDate"> |
| | | <Property name="property">userDate</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateTime"> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">仿¿ä¿¡æ¯</Property> |
| | | <Property name="width">60%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $notify("ä¿åæåï¼ï¼");
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </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">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">storage</Property> |
| | | <Property name="property">storage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">length</Property> |
| | | <Property name="property">length</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">width</Property> |
| | | <Property name="property">width</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">height</Property> |
| | | <Property name="property">height</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">diameter</Property> |
| | | <Property name="property">diameter</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">volume</Property> |
| | | <Property name="property">volume</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">doorNum</Property> |
| | | <Property name="property">doorNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ground</Property> |
| | | <Property name="property">ground</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wall</Property> |
| | | <Property name="property">wall</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">roof</Property> |
| | | <Property name="property">roof</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">roofTruss</Property> |
| | | <Property name="property">roofTruss</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createDate</Property> |
| | | <Property name="property">createDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userDate</Property> |
| | | <Property name="property">userDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lon</Property> |
| | | <Property name="property">lon</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lat</Property> |
| | | <Property name="property">lat</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deVolume</Property> |
| | | <Property name="property">deVolume</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Link> |
| | | <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> |
| | | <Property name="target">_blank</Property> |
| | | <Property name="style"> |
| | | <Property name="padding-left">150px</Property> |
| | | </Property> |
| | | <Property name="text">帮å©ï¼ç¹å»åæ ä½ç½®æ¾å</Property> |
| | | </Link> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">buildingPR#saveData</Property> |
| | | <Property name="successMessage">æ°æ®ä¿å宿ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">buildingPR#delData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.Company</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç³»ç»ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwdm"> |
| | | <Property></Property> |
| | | <Property name="label">åä½ä¿¡ç¨ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="tydwbm"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ä¸åä½ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwmc"> |
| | | <Property></Property> |
| | | <Property name="label">åä½åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwlx"> |
| | | <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">11</Property> |
| | | <Property name="value">11-ä¸å¤®ç´å±å¨å¤ç²®åº</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">12</Property> |
| | | <Property name="value">12-ä¸è°·ç²®æ²¹éå¢</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">13</Property> |
| | | <Property name="value">13-ç级å¨å¤ç²®åº</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">14</Property> |
| | | <Property name="value">14-å°å¸çº§å¨å¤ç²®åº</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">15</Property> |
| | | <Property name="value">15-å¿çº§å¨å¤ç²®åº</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">19</Property> |
| | | <Property name="value">19-å
¶ä»ä»å¨ä¼ä¸</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> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zcrq"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ³¨åæ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zczb"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">注åèµæ¬</Property> |
| | | <Property name="displayFormat">#0.000 ä¸å
</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zcze"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">èµäº§æ»é¢</Property> |
| | | <Property name="displayFormat">#0.000 ä¸å
</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fddbr"> |
| | | <Property></Property> |
| | | <Property name="label">æ³å®ä»£è¡¨äºº</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="frsfzh"> |
| | | <Property></Property> |
| | | <Property name="label">æ³äººèº«ä»½è¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="frlxfs"> |
| | | <Property></Property> |
| | | <Property name="label">æ³äººçµè¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qylxr"> |
| | | <Property></Property> |
| | | <Property name="label">ä¼ä¸è系人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bgdh"> |
| | | <Property></Property> |
| | | <Property name="label">åå
¬çµè¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zcdz"> |
| | | <Property></Property> |
| | | <Property name="label">注åå°å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dzyx"> |
| | | <Property></Property> |
| | | <Property name="label">çµåé®ç®±</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qygfwzdz"> |
| | | <Property></Property> |
| | | <Property name="label">宿¹ç½å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="czhm"> |
| | | <Property></Property> |
| | | <Property name="label">ä¼ çå·ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="yzbm"> |
| | | <Property></Property> |
| | | <Property name="label">鮿¿ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="xzqhdm"> |
| | | <Property></Property> |
| | | <Property name="label">åºå代ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="xzqhmc"> |
| | | <Property></Property> |
| | | <Property name="label">åºååç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sjdwmc"> |
| | | <Property></Property> |
| | | <Property name="label">åä½åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sjdwdm"> |
| | | <Property></Property> |
| | | <Property name="label">åä½ä»£ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="sjdwtybm"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ä¸ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqs"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">åºåºæ°</Property> |
| | | <Property name="displayFormat">#0 个</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="cfs"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">仿¿æ°</Property> |
| | | <Property name="displayFormat">#0 æ </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ygs"> |
| | | <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="dwzt"> |
| | | <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> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zhgxsj"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataProvider">companyPR#getData</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">
 |
| | | 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> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <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> |
| | | </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="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="dwmc"> |
| | | <Property name="property">dwmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dwdm"> |
| | | <Property name="property">dwdm</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dwlx"> |
| | | <Property name="property">dwlx</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zcze"> |
| | | <Property name="property">zcze</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fddbr"> |
| | | <Property name="property">fddbr</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqs"> |
| | | <Property name="property">kqs</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="cfs"> |
| | | <Property name="property">cfs</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ygs"> |
| | | <Property name="property">ygs</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dwzt"> |
| | | <Property name="property">dwzt</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="caption">ä»å¨åä½ä¿¡æ¯</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $notify("ä¿åæåï¼ï¼");
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:15"> |
| | | <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">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">dwmc</Property> |
| | | <Property name="property">dwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwdm</Property> |
| | | <Property name="property">dwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">tydwbm</Property> |
| | | <Property name="property">tydwbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwlx</Property> |
| | | <Property name="property">dwlx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwzt</Property> |
| | | <Property name="property">dwzt</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcrq</Property> |
| | | <Property name="property">zcrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zczb</Property> |
| | | <Property name="property">zczb</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcze</Property> |
| | | <Property name="property">zcze</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fddbr</Property> |
| | | <Property name="property">fddbr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frsfzh</Property> |
| | | <Property name="property">frsfzh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frlxfs</Property> |
| | | <Property name="property">frlxfs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qylxr</Property> |
| | | <Property name="property">qylxr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bgdh</Property> |
| | | <Property name="property">bgdh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcdz</Property> |
| | | <Property name="property">zcdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dzyx</Property> |
| | | <Property name="property">dzyx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qygfwzdz</Property> |
| | | <Property name="property">qygfwzdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">czhm</Property> |
| | | <Property name="property">czhm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yzbm</Property> |
| | | <Property name="property">yzbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhmc</Property> |
| | | <Property name="property">xzqhmc</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhdm</Property> |
| | | <Property name="property">xzqhdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zhgxsj</Property> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jd</Property> |
| | | <Property name="property">jd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wd</Property> |
| | | <Property name="property">wd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Link> |
| | | <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> |
| | | <Property name="target">_blank</Property> |
| | | <Property name="style"> |
| | | <Property name="padding-left">150px</Property> |
| | | </Property> |
| | | <Property name="text">帮å©ï¼ç¹å»åæ ä½ç½®æ¾å</Property> |
| | | </Link> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <Control> |
| | | <Property name="height">10</Property> |
| | | </Control> |
| | | <FieldSet layout="padding:15"> |
| | | <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">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">sjdwmc</Property> |
| | | <Property name="property">sjdwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sjdwdm</Property> |
| | | <Property name="property">sjdwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sjdwtybm</Property> |
| | | <Property name="property">sjdwtybm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="padding:15"> |
| | | <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">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">kqs</Property> |
| | | <Property name="property">kqs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cfs</Property> |
| | | <Property name="property">cfs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ygs</Property> |
| | | <Property name="property">ygs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">companyPR#saveData</Property> |
| | | <Property name="successMessage">æ°æ®ä¿å宿ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">companyPR#delData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">xzqhmc=name,xzqhdm=code</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">10</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -- åç§° --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsFoodOrigin").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dataTypeUser"> |
| | | <Property name="creationType">com.ruoyi.common.core.domain.entity.SysUser</Property> |
| | | <PropertyDef name="loginName"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">ç¨æ·å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userName"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">䏿å</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtDepot" parent="global:dtDepot"/> |
| | | <DataType name="dtConfirm"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.DepotStatusConfirm</Property> |
| | | <PropertyDef name="fcqrdh"> |
| | | <Property></Property> |
| | | <Property name="label">确认åå·</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºç¼ç </Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">deptId</Property> |
| | | <Property name="valueProperty">deptName</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">è´§ä½ç¼ç </Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fcrq"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å°ä»æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£æ§è´¨</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_TYPE_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£ç级</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property></Property> |
| | | <Property name="label">产å°åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodYear"> |
| | | <Property></Property> |
| | | <Property name="label">æ¶è´§å¹´åº¦</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="country"> |
| | | <Property></Property> |
| | | <Property name="label">å½å«</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("GB_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeKeeperName"> |
| | | <Property></Property> |
| | | <Property name="label">ä¿ç®¡å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fcsl"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å°ä»æ°é</Property> |
| | | <Property name="displayFormat">#,##0 KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="applyUser"> |
| | | <Property></Property> |
| | | <Property name="label">å°ä»ç³è¯·äºº</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptAuditUser"> |
| | | <Property></Property> |
| | | <Property name="label">é¨é¨å®¡æ ¸äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="leaderAuditUser"> |
| | | <Property></Property> |
| | | <Property name="label">é¢å¯¼å®¡æ ¸äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View> |
| | | <ClientEvent name="onReady">
 |
| | | /**
 |
| | | * æ¥è¯¢
 |
| | | */
 |
| | | query = function(){
 |
| | | view.get("#dataSetdepot").flushAsync();
 |
| | | }
 |
| | | //æå°è´§ä½å¡
 |
| | | printBill = function (htmlStr) {
 |
| | | var LODOP = CLODOP;
 |
| | | LODOP.PRINT_INIT("è´§ä½å¡");
 |
| | | LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4");
 |
| | | //LODOP.SET_PRINT_PAGESIZE(1, 0, '90mm', "A4");
 |
| | | LODOP.ADD_PRINT_HTM(0, 0, "96%", "100%", htmlStr);
 |
| | | LODOP.PREVIEW();
 |
| | | };</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="javaScriptFile">./static/js/plugins/lodop/LodopFuncs.js</Property> |
| | | <DataSet id="dataSetdepot"> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetUser"> |
| | | <Property name="dataType">[dataTypeUser]</Property> |
| | | <Property name="dataProvider">sysUserPR#loadUser</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetConfirm"> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="dataType">[dtConfirm]</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <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("#dataSetdepot").insert();
 |
| | | view.get("#depotdialog").show();
 |
| | | view.get("#oneId").set("readOnly",false);
 |
| | | view.get("#twoId").set("readOnly",false);</ClientEvent> |
| | | <Property name="caption">æ°å¢</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-plus-circle</Property> |
| | | <Property name="width">80</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var select = view.get("#dataGridDepot").get("selection");
 |
| | | if(select){
 |
| | | view.get("#depotdialog").show();
 |
| | | view.get("#oneId").set("readOnly",true);
 |
| | | view.get("#twoId").set("readOnly",true); |
| | | }else{
 |
| | | $notify("è¯·éæ©éè¦ä¿®æ¹çä»åºâ¦â¦");
 |
| | | }</ClientEvent> |
| | | <Property name="caption">ä¿®æ¹</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | <Property name="width">80</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var select = view.get("#dataGridDepot").get("selection");
 |
| | | if(select){
 |
| | | view.get("#deleteAjaxAction").set("parameter",select).execute();
 |
| | | query();
 |
| | | }else{
 |
| | | $notify("è¯·éæ©éè¦å é¤çä»åºâ¦â¦");
 |
| | | }</ClientEvent> |
| | | <Property name="caption">å é¤</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-minus-circle</Property> |
| | | <Property name="width">80</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <Property name="caption">å·æ°ç¼å</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="action">ajaxRefreshCache</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var url = "com.fzzy.igds.sys.DepotStore.d";
 |
| | | var panelId = window.frameElement.getAttribute('data-id'); |
| | | window.parent.$.modal.openTab("åºå管ç", url, false, panelId);</ClientEvent> |
| | | <Property name="caption">åºå管ç</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-book</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var depot = view.get("#dataGridDepot").get("selection");
 |
| | | if(depot){
 |
| | | var depotId = depot.get("id");
 |
| | | var deptId = depot.get("deptId");
 |
| | | var fcsl = depot.get("storageReal");
 |
| | | var foodType = depot.get("foodType");
 |
| | | var foodVariety = depot.get("foodVariety");
 |
| | | var foodLevel = depot.get("foodLevel");
 |
| | | var foodLocation = depot.get("foodLocation");
 |
| | | var foodYear = depot.get("foodYear");
 |
| | | var storeKeeperName = depot.get("storeKeeperName");
 |
| | | var fcrq = new Date();
 |
| | | var updateTime = new Date();
 |
| | | view.get("#dataSetConfirm").insert({
 |
| | | deptId:deptId,
 |
| | | depotId:depotId,
 |
| | | fcrq:fcrq,
 |
| | | foodVariety:foodVariety,
 |
| | | foodType:foodType,
 |
| | | foodLevel:foodLevel,
 |
| | | foodLocation:foodLocation,
 |
| | | foodYear:foodYear,
 |
| | | storeKeeperName:storeKeeperName,
 |
| | | fcsl:fcsl,
 |
| | | updateTime:updateTime
 |
| | | });
 |
| | | view.get("#statusConfirmlog").show();
 |
| | | }else{
 |
| | | $notify("è¯·éæ©éè¦å°ä»çä»åºâ¦â¦");
 |
| | | }</ClientEvent> |
| | | <Property name="caption">å°ä»ç¡®è®¤</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-pencil-square-o</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var url = "com.fzzy.igds.sys.DepotStatusConfirm.d";
 |
| | | var panelId = window.frameElement.getAttribute('data-id'); |
| | | window.parent.$.modal.openTab("å°ä»è®°å½", url, false, panelId);</ClientEvent> |
| | | <Property name="caption">å°ä»è®°å½</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-file-pdf-o</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton layoutConstraint="right"> |
| | | <ClientEvent name="onClick">window.parent.$.table.exportExcelDorado("./export/depot-excel", "è´§ä½æ°æ®", null);</ClientEvent> |
| | | <Property name="caption">导åºExcel</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridDepot" layoutConstraint="padding:15px 0px 0px 0px"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridDepot").set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dataSetdepot</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotStatus"> |
| | | <Property name="property">depotStatus</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodType"> |
| | | <Property name="property">foodType</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodLevel"> |
| | | <Property name="property">foodLevel</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storageReal"> |
| | | <Property name="property">storageReal</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodYear"> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodLocation"> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storeDate"> |
| | | <Property name="property">storeDate</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storeKeeperName"> |
| | | <Property name="property">storeKeeperName</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotType"> |
| | | <Property name="property">depotType</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="depotdialog" layout="regionPadding:10"> |
| | | <Property name="iconClass">fa fa-pencil-square-o</Property> |
| | | <Property name="caption">è´§ä½ä¿¡æ¯</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | | <ClientEvent name="onClick">//åæ¶æäº¤åå²ä¹¦
 |
| | | var data = view.get("#dataSetdepot.data:#");
 |
| | | view.get("#updateactionSave").execute(function(result){
 |
| | | if(result){
 |
| | | $notify(result);
 |
| | | }else{
 |
| | | self.get("parent").hide();
 |
| | | query();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dataSetdepot.data:#");
 |
| | | if(cur) cur.cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">åºæ¬ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dataSetdepot</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">80</Property> |
| | | <AutoFormElement id="oneId" layoutConstraint="colSpan:2"> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- è§åï¼æ°åæåæ¯ --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storageMax</Property> |
| | | <Property name="property">storageMax</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">depotType</Property> |
| | | <Property name="property">depotType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">depotStatus</Property> |
| | | <Property name="property">depotStatus</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">granaryId</Property> |
| | | <Property name="property">granaryId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">buildingId</Property> |
| | | <Property name="property">buildingId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeKeeperName</Property> |
| | | <Property name="property">storeKeeperName</Property> |
| | | <Property name="trigger">triggerUserList</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">orderNum</Property> |
| | | <Property name="property">orderNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">bhId</Property> |
| | | <Property name="property">bhId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:3"> |
| | | <Property name="text">说æï¼1ãä»åºç¶æï¼ç©ºä»ã满ä»ãåºå
¥åºä¸ç¶æåæ´è¯·ä½¿ç¨âåºå管çâåè½</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">å¨ç²®ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dataSetdepot</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">80</Property> |
| | | <AutoFormElement id="twoId" layoutConstraint="colSpan:2"> |
| | | <Property name="name">storageReal</Property> |
| | | <Property name="property">storageReal</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeDate</Property> |
| | | <Property name="property">storeDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text"></Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:3"> |
| | | <Property name="text">说æï¼1ãå®é
å¨éè°æ´è¯·ä½¿ç¨âåºå管çâåè½ï¼</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">è´¨æ£ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dataSetdepot</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">80</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">perWet</Property> |
| | | <Property name="property">perWet</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">perImpurity</Property> |
| | | <Property name="property">perImpurity</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">bulkWeight</Property> |
| | | <Property name="property">bulkWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">checkDate</Property> |
| | | <Property name="property">checkDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text"></Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:3"> |
| | | <Property name="text">说æï¼å¨å¤ç²®è´¨æ£ä¿¡æ¯ä¼æ ¹æ®è´¨é管ç èªå¨åæ¥æ´æ°</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="statusConfirmlog" layout="regionPadding:10"> |
| | | <Property name="iconClass">fa fa-pencil-square-o</Property> |
| | | <Property name="caption">å°ä»ä¿¡æ¯</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dataSetConfirm.data:#");
 |
| | | view.get("#statusConfirmSave").execute(function(result){
 |
| | | if(result){
 |
| | | $notify(result);
 |
| | | }else{
 |
| | | self.get("parent").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dataSetConfirm.data:#");
 |
| | | if(cur) cur.cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:15"> |
| | | <Property name="caption">å°ä»ç¡®è®¤</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dataSetConfirm</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">fcqrdh</Property> |
| | | <Property name="property">fcqrdh</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- åå°èªå¨çæ --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fcrq</Property> |
| | | <Property name="property">fcrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">country</Property> |
| | | <Property name="property">country</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">storeKeeperName</Property> |
| | | <Property name="property">storeKeeperName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fcsl</Property> |
| | | <Property name="property">fcsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">applyUser</Property> |
| | | <Property name="property">applyUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptAuditUser</Property> |
| | | <Property name="property">deptAuditUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">leaderAuditUser</Property> |
| | | <Property name="property">leaderAuditUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="updateactionSave"> |
| | | <Property name="executingMessage">æ£å¨æ§è¡ä¸..</Property> |
| | | <Property name="dataResolver">depotPR#saveOrUpdate</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dataSetdepot</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="alias">data</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="statusConfirmSave"> |
| | | <Property name="executingMessage">æ£å¨æ§è¡ä¸..</Property> |
| | | <Property name="dataResolver">depotStatusConfirmPR#saveData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dataSetConfirm</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="alias">data</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="deleteAjaxAction"> |
| | | <Property name="successMessage">å 餿å</Property> |
| | | <Property name="service">depotPR#deletedepot</Property> |
| | | <Property name="executingMessage">æ£å¨å é¤</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxRefreshCache"> |
| | | <Property name="service">depotPR#flushCache</Property> |
| | | <Property name="successMessage">å·æ°æåï¼</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦å·æ°ç¼åä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxExcel"> |
| | | <Property name="async">false</Property> |
| | | <Property name="executingMessage">æ£å¨æ§è¡å¯¼åºâ¦â¦</Property> |
| | | <Property name="service">depotPR#excelDepot</Property> |
| | | <Property name="confirmMessage">ç¡®å®å¯¼åºå½åæ°æ®åï¼</Property> |
| | | </AjaxAction> |
| | | <YearDropDown id="yearDropDown1"/> |
| | | <DataSetDropDown id="triggerUserList"> |
| | | <Property name="dataSet">dataSetUser</Property> |
| | | <Property name="property">userName</Property> |
| | | <Property name="assignmentMap">storeKeeperName=userName,storeKeeper=loginName</Property> |
| | | </DataSetDropDown> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">30</Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -- åç§° --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsFoodOrigin").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <ListDropDown id="listOri"> |
| | | <Property name="items">ä¸,å,西,å,ä¸å,ä¸å,西å,西å</Property> |
| | | </ListDropDown> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.Dept</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç³»ç»ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºä»£ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="tykqbm"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ä¸åºåºç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dwdm"> |
| | | <Property></Property> |
| | | <Property name="label">åä½ä»£ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="tydwbm"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ä¸åä½ç¼ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqmc"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºåç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdz"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºå°å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="xzqhdm"> |
| | | <Property></Property> |
| | | <Property name="label">åºå代ç </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> |
| | | </PropertyDef> |
| | | <PropertyDef name="yxgr"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ææç½å®¹</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zdmj"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å å°é¢ç§¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="cfs"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">仿¿æ°</Property> |
| | | <Property name="displayFormat">#0 æ </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ygs"> |
| | | <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="kqzt"> |
| | | <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> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zhgxsj"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataProvider">deptPR#getData</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">
 |
| | | 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> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <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> |
| | | </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="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="kqmc"> |
| | | <Property name="property">kqmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqdm"> |
| | | <Property name="property">kqdm</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqcq"> |
| | | <Property name="property">kqcq</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yxcr"> |
| | | <Property name="property">yxcr</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yxgr"> |
| | | <Property name="property">yxgr</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="cfs"> |
| | | <Property name="property">cfs</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ygs"> |
| | | <Property name="property">ygs</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqzt"> |
| | | <Property name="property">kqzt</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="caption">åºåºä¿¡æ¯</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $notify("ä¿åæåï¼ï¼");
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:15"> |
| | | <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">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">kqmc</Property> |
| | | <Property name="property">kqmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqdm</Property> |
| | | <Property name="property">kqdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">tykqbm</Property> |
| | | <Property name="property">tykqbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwdm</Property> |
| | | <Property name="property">dwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">tydwbm</Property> |
| | | <Property name="property">tydwbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqdz</Property> |
| | | <Property name="property">kqdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhmc</Property> |
| | | <Property name="property">xzqhmc</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhdm</Property> |
| | | <Property name="property">xzqhdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqcq</Property> |
| | | <Property name="property">kqcq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yxcr</Property> |
| | | <Property name="property">yxcr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yxgr</Property> |
| | | <Property name="property">yxgr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zdmj</Property> |
| | | <Property name="property">zdmj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">cfs</Property> |
| | | <Property name="property">cfs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ygs</Property> |
| | | <Property name="property">ygs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqzt</Property> |
| | | <Property name="property">kqzt</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jd</Property> |
| | | <Property name="property">jd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wd</Property> |
| | | <Property name="property">wd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Link> |
| | | <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> |
| | | <Property name="target">_blank</Property> |
| | | <Property name="style"> |
| | | <Property name="padding-left">150px</Property> |
| | | </Property> |
| | | <Property name="text">帮å©ï¼ç¹å»åæ ä½ç½®æ¾å</Property> |
| | | </Link> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">deptPR#saveData</Property> |
| | | <Property name="successMessage">æ°æ®ä¿å宿ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">deptPR#delData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">xzqhmc=name,xzqhdm=code</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">10</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -- åç§° --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsFoodOrigin").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.DicArea</Property> |
| | | <PropertyDef name="code"> |
| | | <Property></Property> |
| | | <Property name="label">åºåç¼ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="parentCode"> |
| | | <Property></Property> |
| | | <Property name="label">æå±åºå</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicAreaPR#getDicAreaByParentCode").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="parentName"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸çº§åºå</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property></Property> |
| | | <Property name="label">ç±»å</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">ç</Property> |
| | | <Property name="value">1</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å¸</Property> |
| | | <Property name="value">2</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">åºå¿</Property> |
| | | <Property name="value">3</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="simple"> |
| | | <Property></Property> |
| | | <Property name="label">ç®æ¼</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="disabledTag"> |
| | | <Property></Property> |
| | | <Property name="label">æ¯å¦ç¦ç¨</Property> |
| | | <Property name="required">false</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">ç¦ç¨</Property> |
| | | <Property name="value">Y</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å¯ç¨</Property> |
| | | <Property name="value">N</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">//æ¥è¯¢
 |
| | | query = function(){
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | };
 |
| | | 
 |
| | | query();</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | <Property name="pageSize">20</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | <Property name="height">55</Property> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">èåæ ï¼</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <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 select = view.get("#dataGridMain").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> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick"> 
 |
| | | var select = view.get("#dataGridMain").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-minus</Property> |
| | | </Button> |
| | | </Container> |
| | | <Container layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dataGridMain" layoutConstraint="center"> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn> |
| | | <Property name="property">code</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">code</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">name</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">simple</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">simple</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">parentCode</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">parentCode</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">type</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">type</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">disabledTag</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">disabledTag</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">remark</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">remark</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">é
置信æ¯</Property> |
| | | <Property name="width">60%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | 
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("æ°æ®æ ¡éªå¤±è´¥ï¼ï¼");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | view.get("#uaAction").set("parameter",data).execute(function(){
 |
| | | 
 |
| | | $notify("æ°æ®æ§è¡å®æï¼ï¼");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </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">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">code</Property> |
| | | <Property name="property">code</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">simple</Property> |
| | | <Property name="property">simple</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">disabledTag</Property> |
| | | <Property name="property">disabledTag</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaAction"> |
| | | <Property name="dataResolver">dicAreaPR#saveDicArea</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">dicAreaPR#delDicArea</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.Granary</Property> |
| | | <PropertyDef name="ajdh"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´ä»£ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">deptId</Property> |
| | | <Property name="valueProperty">deptName</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajmc"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´åç§°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="cfbh"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿(ææ²¹ç½)ç¼ç </Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("buildingPR#getCacheBuilding").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajcd"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">å»é´é¿åº¦</Property> |
| | | <Property name="displayFormat">#0.00ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajkd"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">å»é´å®½åº¦</Property> |
| | | <Property name="displayFormat">#0.00ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajgd"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">å»é´é«åº¦</Property> |
| | | <Property name="displayFormat">#0.00ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajsjcr"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="label">å»é´è®¾è®¡ä»å®¹</Property> |
| | | <Property name="displayFormat">#0.000å¨</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajlxdh"> |
| | | <Property></Property> |
| | | <Property name="label">å»é´èç³»çµè¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajqyrq"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å»é´å¯ç¨æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ajzt"> |
| | | <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">5</Property> |
| | | <Property name="value">5-带æé¤</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">6</Property> |
| | | <Property name="value">6-æ»è§ä»</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">9</Property> |
| | | <Property name="value">9-å
¶ä»</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="regionPadding:10"> |
| | | <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();
 |
| | | 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="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="ajdh"> |
| | | <Property name="property">ajdh</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajmc"> |
| | | <Property name="property">ajmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="cfbh"> |
| | | <Property name="property">cfbh</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajcd"> |
| | | <Property name="property">ajcd</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajkd"> |
| | | <Property name="property">ajkd</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajgd"> |
| | | <Property name="property">ajgd</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajsjcr"> |
| | | <Property name="property">ajsjcr</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajqyrq"> |
| | | <Property name="property">ajqyrq</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ajzt"> |
| | | <Property name="property">ajzt</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateTime"> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">å»é´ä¿¡æ¯</Property> |
| | | <Property name="width">60%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $notify("ä¿åæåï¼ï¼");
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ç¡®å®</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </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> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">granaryPR#saveGranary</Property> |
| | | <Property name="successMessage">æ°æ®ä¿å宿ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="service">granaryPR#delGranary</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æ§è¡å é¤ä¹ï¼</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.domain.Building; |
| | | import com.fzzy.igds.sys.BuildingService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description 仿¿PRå± |
| | | * @Author CZT |
| | | * @Date 2024/11/20 19:01 |
| | | */ |
| | | @Component |
| | | public class BuildingPR { |
| | | |
| | | @Resource |
| | | private BuildingService buildingService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤,å°æä½ä¿¡æ¯è°æ´ä¸ºç©ºï¼é»è®¤å
æ¬ååºåæ° |
| | | * |
| | | * buildingPR#loadData |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Building> loadData() { |
| | | return buildingService.getBuilding(null, null); |
| | | } |
| | | |
| | | /** |
| | | * 䏿æ¡ä½¿ç¨ |
| | | * ${dorado.getDataProvider("buildingPR#getCacheBuilding").getResult()} |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Building> getCacheBuilding(){ |
| | | return buildingService.getCacheBuilding(null,null); |
| | | } |
| | | |
| | | /** |
| | | * buildingPR#saveData |
| | | */ |
| | | @DataResolver |
| | | public void saveData(Building data) { |
| | | |
| | | Building building = new Building(); |
| | | BeanUtils.copyProperties(data, building); |
| | | buildingService.saveOrUpdate(building); |
| | | } |
| | | |
| | | /** |
| | | * buildingPR#delData |
| | | */ |
| | | @Expose |
| | | public String delData(Building data) { |
| | | Building building = new Building(); |
| | | BeanUtils.copyProperties(data, building); |
| | | return buildingService.delData(building); |
| | | } |
| | | |
| | | /** |
| | | * buildingPR#refreshCache |
| | | * å·æ°ç¼å |
| | | */ |
| | | @Expose |
| | | public void refreshCache(){ |
| | | buildingService.refreshCacheBuilding(null); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import com.fzzy.igds.dzhwk.domain.Company; |
| | | import com.fzzy.igds.sys.CoreCompanyService; |
| | | import com.fzzy.igds.sys.SysDeptService; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description ä»å¨å
¬å¸PRå± |
| | | * @Author CZT |
| | | * @Date 2024/11/28 15:01 |
| | | */ |
| | | @Component |
| | | public class CompanyPR { |
| | | |
| | | @Resource |
| | | private CoreCompanyService coreCompanyService; |
| | | @Resource |
| | | private SysDeptService sysDeptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤,å°æä½ä¿¡æ¯è°æ´ä¸ºç©ºï¼é»è®¤å
æ¬ååºåæ° |
| | | * |
| | | * companyPR#getData |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Company> getData() { |
| | | |
| | | List<Company> companyList = coreCompanyService.getAllData(null); |
| | | if(null == companyList){ |
| | | List<SysDept> list = sysDeptService.getDeptByType(Constant.DEPT_TYPE_10); |
| | | if(null == list){ |
| | | return null; |
| | | } |
| | | Company company; |
| | | for (SysDept sysDept : list) { |
| | | company = coreCompanyService.getDataById(sysDept.getDeptId() +""); |
| | | if(null == company){ |
| | | company = coreCompanyService.initCompanyData(sysDept); |
| | | } |
| | | companyList.add(company); |
| | | } |
| | | } |
| | | |
| | | return companyList; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * companyPR#saveData |
| | | */ |
| | | @DataResolver |
| | | public void saveData(Company data) { |
| | | |
| | | Company company = new Company(); |
| | | BeanUtils.copyProperties(data, company); |
| | | coreCompanyService.saveOrUpdate(company); |
| | | } |
| | | |
| | | /** |
| | | * companyPR#delData |
| | | */ |
| | | @Expose |
| | | public String delData(Company data) { |
| | | Company company = new Company(); |
| | | BeanUtils.copyProperties(data, company); |
| | | coreCompanyService.delData(company); |
| | | return null; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.domain.Depot; |
| | | import com.fzzy.igds.sys.DepotService; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author jiazx |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class DepotPR { |
| | | |
| | | @Resource |
| | | private DepotService depotService; |
| | | |
| | | /** |
| | | * depotPR#getData |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Depot> getData(){ |
| | | return depotService.getData(null, null); |
| | | } |
| | | |
| | | /** |
| | | * depotPR#saveOrUpdate |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | public String saveOrUpdate(Depot data) { |
| | | |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |
| | | depotService.saveDepot(depot); |
| | | depotService.flushCache(null); |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * depotPR#deleteDepot |
| | | * @param data |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | public void deleteDepot(Depot data) { |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |
| | | depotService.deleteDepot(depot); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * depotPR#flushCache |
| | | */ |
| | | @Expose |
| | | public void flushCache() { |
| | | depotService.flushCache(null); |
| | | } |
| | | |
| | | /** |
| | | * ${dorado.getDataProvider("depotPR#getAllCache").getResult()} |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Depot> getAllCache() { |
| | | return depotService.getCacheDepotList(null, ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | /** |
| | | * depotPR#ajaxGetAllCache |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public List<Depot> ajaxGetAllCache() { |
| | | return depotService.getCacheDepotList(null, ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | /** |
| | | * depotPR#getDepot è·åä»åºä¿¡æ¯ |
| | | * |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public Depot getDepot(String depotId) { |
| | | return depotService.getCacheDepot(null, depotId); |
| | | } |
| | | |
| | | /** |
| | | * depotPR#excelDepot |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | public AjaxResult excelDepot(Map<String, Object> param) { |
| | | List<Depot> list = depotService.getData(null, null); |
| | | ExcelUtil<Depot> util = new ExcelUtil<Depot>(Depot.class); |
| | | return util.exportExcel(list, "è´§ä½æ°æ®", "å¨å¤ä¸å¿åºè´§ä½æ°æ®"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.dzhwk.domain.DepotStatusConfirm; |
| | | import com.fzzy.igds.sys.DepotStatusConfirmService; |
| | | import com.fzzy.igds.sys.DepotStoreService; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.domain.Sort; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.persistence.criteria.CriteriaBuilder; |
| | | import javax.persistence.criteria.CriteriaQuery; |
| | | import javax.persistence.criteria.Predicate; |
| | | import javax.persistence.criteria.Root; |
| | | import java.util.*; |
| | | |
| | | |
| | | /** |
| | | * å°ä»ç¡®è®¤å |
| | | */ |
| | | @Component |
| | | public class DepotStatusConfirmPR { |
| | | |
| | | @Resource |
| | | private DepotStatusConfirmService statusConfirmService; |
| | | @Resource |
| | | private DepotStoreService depotStoreService; |
| | | |
| | | /** |
| | | * depotStatusConfirmPR#pageDepotStatusConfirm |
| | | * |
| | | * @param page |
| | | * @param param |
| | | * @throws Exception |
| | | */ |
| | | @DataProvider |
| | | public void pageDepotStatusConfirm(Page<DepotStatusConfirm> page, Map<String, Object> param) { |
| | | if (null == param) { |
| | | param = new HashMap<>(); |
| | | } |
| | | Map<String, Object> finalParam = param; |
| | | |
| | | //å¤åæ°å页æ¥è¯¢ |
| | | Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.ASC, DepotStatusConfirm.SORT_PROP); |
| | | Specification<DepotStatusConfirm> specification = new Specification<DepotStatusConfirm>() { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public Predicate toPredicate(Root<DepotStatusConfirm> root, CriteriaQuery<?> query, CriteriaBuilder cb) { |
| | | List<Predicate> predicates = new ArrayList<Predicate>(); //ææçæè¨ |
| | | |
| | | Predicate predicate1 = cb.equal(root.get("companyId"), ContextUtil.getCompanyId()); |
| | | predicates.add(predicate1); |
| | | |
| | | Predicate predicate2 = cb.equal(root.get("deptId"), ContextUtil.subDeptId(null)); |
| | | predicates.add(predicate2); |
| | | |
| | | String key = (String) finalParam.get("depotId"); |
| | | if (StringUtils.isNotEmpty(key)) { |
| | | Predicate predicate3 = cb.equal(root.get("depotId"), key); |
| | | predicates.add(predicate3); |
| | | } |
| | | key = (String) finalParam.get("depotStatus"); |
| | | if (StringUtils.isNotEmpty(key)) { |
| | | Predicate predicate4 = cb.equal(root.get("depotStatus"), key); |
| | | predicates.add(predicate4); |
| | | } |
| | | Date start = (Date) finalParam.get("start"); |
| | | if (null != start) { |
| | | Predicate predicate5 = cb.greaterThan(root.get("updateDate"), start); |
| | | predicates.add(predicate5); |
| | | } |
| | | |
| | | Date end = (Date) finalParam.get("end"); |
| | | if (null != end) { |
| | | Predicate predicate6 = cb.lessThan(root.get("updateDate"), end); |
| | | predicates.add(predicate6); |
| | | } |
| | | return cb.and(predicates.toArray(new Predicate[0])); |
| | | } |
| | | }; |
| | | org.springframework.data.domain.Page<DepotStatusConfirm> japPage = statusConfirmService.findAll(specification, pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | page.setEntities(japPage.getContent()); |
| | | } |
| | | |
| | | /** |
| | | * depotStatusConfirmPR#saveData æ°å¢æè
ä¿®æ¹ |
| | | * |
| | | * @param data |
| | | */ |
| | | @DataResolver |
| | | public void saveData(DepotStatusConfirm data) { |
| | | DepotStatusConfirm depotStatusConfirm = new DepotStatusConfirm(); |
| | | BeanUtils.copyProperties(data, depotStatusConfirm); |
| | | statusConfirmService.saveOrUpdate(depotStatusConfirm); |
| | | |
| | | //å¢å ææ°åºå |
| | | depotStoreService.depotStoreStatus(depotStatusConfirm); |
| | | } |
| | | |
| | | /** |
| | | * depotStatusConfirmPR#delData |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public void delData(DepotStatusConfirm data) { |
| | | DepotStatusConfirm depotStatusConfirm = new DepotStatusConfirm(); |
| | | BeanUtils.copyProperties(data, depotStatusConfirm); |
| | | statusConfirmService.delData(depotStatusConfirm); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.dzhwk.constant.DepotStatus; |
| | | import com.fzzy.igds.dzhwk.domain.DepotStore; |
| | | import com.fzzy.igds.sys.DepotService; |
| | | import com.fzzy.igds.sys.DepotStoreService; |
| | | import com.fzzy.igds.util.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.domain.Sort; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Component; |
| | | import javax.annotation.Resource; |
| | | import javax.persistence.criteria.CriteriaBuilder; |
| | | import javax.persistence.criteria.CriteriaQuery; |
| | | import javax.persistence.criteria.Predicate; |
| | | import javax.persistence.criteria.Root; |
| | | import java.util.*; |
| | | |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 15:29 |
| | | */ |
| | | @Component |
| | | public class DepotStorePR { |
| | | |
| | | @Resource |
| | | private DepotStoreService depotStoreService; |
| | | @Resource |
| | | private DepotService depotService; |
| | | |
| | | /** |
| | | * JPAå页æ¥è¯¢æ°æ® |
| | | * depotStorePR#pageList |
| | | * @param page |
| | | * @param param |
| | | */ |
| | | @DataProvider |
| | | public void pageList(Page<DepotStore> page, Map<String, Object> param) { |
| | | if (null == param) { |
| | | param = new HashMap<>(); |
| | | } |
| | | Map<String, Object> finalParam = param; |
| | | |
| | | //å¤åæ°å页æ¥è¯¢ |
| | | Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.ASC, DepotStore.SORT_PROP); |
| | | Specification<DepotStore> specification = new Specification<DepotStore>() { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public Predicate toPredicate(Root<DepotStore> root, CriteriaQuery<?> query, CriteriaBuilder cb) { |
| | | List<Predicate> predicates = new ArrayList<Predicate>(); //ææçæè¨ |
| | | |
| | | Predicate predicate1 = cb.equal(root.get("companyId"), ContextUtil.getCompanyId()); |
| | | predicates.add(predicate1); |
| | | |
| | | Predicate predicate2 = cb.equal(root.get("deptId"), ContextUtil.subDeptId(null)); |
| | | predicates.add(predicate2); |
| | | |
| | | String depotId = (String) finalParam.get("depotId"); |
| | | if (StringUtils.isNotEmpty(depotId)) { |
| | | Predicate predicate3 = cb.equal(root.get("depotId"), depotId); |
| | | predicates.add(predicate3); |
| | | } |
| | | |
| | | Date start = (Date) finalParam.get("start"); |
| | | if (null != start) { |
| | | Predicate predicate4 = cb.greaterThan(root.get("fcrq"), start); |
| | | predicates.add(predicate4); |
| | | } |
| | | |
| | | Date end = (Date) finalParam.get("end"); |
| | | if (null != end) { |
| | | Predicate predicate5 = cb.lessThan(root.get("fcrq"), end); |
| | | predicates.add(predicate5); |
| | | } |
| | | return cb.and(predicates.toArray(new Predicate[0])); |
| | | } |
| | | }; |
| | | org.springframework.data.domain.Page<DepotStore> japPage = depotStoreService.findAll(specification, pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | page.setEntities(japPage.getContent()); |
| | | } |
| | | |
| | | /** |
| | | * depotStorePR#saveDepotStore |
| | | * |
| | | * @param data |
| | | */ |
| | | @DataResolver |
| | | public String saveDepotStore(DepotStore data) throws Exception { |
| | | |
| | | //妿ä»åºç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ |
| | | if (DepotStatus.STATUS_2.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_3.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_4.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_31.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_32.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_33.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_34.getCode().equals(data.getDepotStatus())) { |
| | | |
| | | if (null == data.getFoodYear()) return "è´§ä½ç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ï¼æ¶è´§å¹´åº¦ä¸è½ä¸ºç©º"; |
| | | |
| | | if (null == data.getCountry()) return "è´§ä½ç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ï¼å½å«ä¸è½ä¸ºç©º"; |
| | | |
| | | if (null == data.getFoodLocation()) return "è´§ä½ç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ï¼ç²®é£äº§å°ä¸è½ä¸ºç©º"; |
| | | |
| | | if (null == data.getFoodLocation()) return "è´§ä½ç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ï¼ç²®é£äº§å°ä¸è½ä¸ºç©º"; |
| | | |
| | | if (null == data.getStoreDate()) return "è´§ä½ç¶æ=å°ä»/å
¥åºä¸/åºåºä¸ï¼å
¥åºæ¶é´ä¸å¯ä¸ºç©º"; |
| | | } |
| | | |
| | | //è´§ä½ç¶æ=å°ä»/åºåºä¸ï¼å¿
å¡« |
| | | if (DepotStatus.STATUS_3.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_4.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_31.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_32.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_33.getCode().equals(data.getDepotStatus()) || |
| | | DepotStatus.STATUS_34.getCode().equals(data.getDepotStatus())) { |
| | | if (null == data.getFullDate()) { |
| | | return "è´§ä½ç¶æ=å°ä»/åºåºä¸ï¼å°ä»æ¶é´ä¸å¯ä¸ºç©º"; |
| | | } |
| | | } |
| | | |
| | | //è´§ä½ç¶æ=空ä»ï¼å¿
å¡«ãæåä¸è½¦ç²®é£åºä»æ¶é´ |
| | | if (DepotStatus.STATUS_1.getCode().equals(data.getDepotStatus())) { |
| | | if (null == data.getOutDate()) { |
| | | return "è´§ä½ç¶æ=空ä»ï¼åºä»å®ææ¶é´ä¸å¯ä¸ºç©º"; |
| | | } |
| | | } |
| | | DepotStore depotStore = new DepotStore(); |
| | | BeanUtils.copyProperties(data, depotStore); |
| | | depotStoreService.saveDepotStore(depotStore); |
| | | |
| | | //æ ¹æ®åºåä¿¡æ¯æ´æ°å°ä»åºä¿¡æ¯ï¼ä»åºå¨ç²®ä¿¡æ¯ä»¥å½å为å |
| | | depotService.updateByStore(depotStore); |
| | | |
| | | //è¿ç¨åæ¥ç¶æ |
| | | |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * depotStorePR#delDepotStore |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String delDepotStore(DepotStore data) { |
| | | DepotStore depotStore = new DepotStore(); |
| | | BeanUtils.copyProperties(data, depotStore); |
| | | return depotStoreService.delDepotStore(depotStore); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.constant.Constant; |
| | | import com.fzzy.igds.dzhwk.domain.Dept; |
| | | import com.fzzy.igds.sys.CoreDeptService; |
| | | import com.fzzy.igds.sys.SysDeptService; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description åºåºä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2024/11/21 18:01 |
| | | */ |
| | | @Component("deptPR") |
| | | public class DeptPR { |
| | | |
| | | @Resource |
| | | private CoreDeptService coreDeptService; |
| | | @Resource |
| | | private SysDeptService sysDeptService; |
| | | |
| | | /** |
| | | * è·åç»ç»ä¸ææåºåº |
| | | * ${dorado.getDataProvider("deptPR#loadParents").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDept> loadParents() { |
| | | return sysDeptService.getAllDeptByCompanyId(null); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è®¾å¤,å°æä½ä¿¡æ¯è°æ´ä¸ºç©ºï¼é»è®¤å
æ¬ååºåæ° |
| | | * |
| | | * deptPR#getData |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Dept> getData() { |
| | | List<Dept> deptList = coreDeptService.getAllData(null); |
| | | if(null == deptList){ |
| | | List<SysDept> list = sysDeptService.getDeptByType(Constant.DEPT_TYPE_20); |
| | | if(null == list){ |
| | | return null; |
| | | } |
| | | Dept dept; |
| | | for (SysDept sysDept : list) { |
| | | dept = coreDeptService.getDataById(sysDept.getDeptId() +""); |
| | | if(null == dept){ |
| | | dept = coreDeptService.initDeptData(sysDept); |
| | | } |
| | | deptList.add(dept); |
| | | } |
| | | } |
| | | return deptList; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * deptPR#saveData |
| | | */ |
| | | @DataResolver |
| | | public void saveData(Dept data) { |
| | | Dept dept = new Dept(); |
| | | BeanUtils.copyProperties(data, dept); |
| | | coreDeptService.saveOrUpdate(dept); |
| | | } |
| | | |
| | | /** |
| | | * deptPR#delData |
| | | */ |
| | | @Expose |
| | | public String delData(Dept data) { |
| | | Dept dept = new Dept(); |
| | | BeanUtils.copyProperties(data, dept); |
| | | coreDeptService.delData(dept); |
| | | return null; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.fzzy.igds.dzhwk.domain.DicArea; |
| | | import com.fzzy.igds.sys.DicAreaService; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.domain.PageRequest; |
| | | import org.springframework.data.domain.Pageable; |
| | | import org.springframework.data.domain.Sort; |
| | | import org.springframework.data.jpa.domain.Specification; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.persistence.criteria.CriteriaBuilder; |
| | | import javax.persistence.criteria.CriteriaQuery; |
| | | import javax.persistence.criteria.Predicate; |
| | | import javax.persistence.criteria.Root; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/23 09:36 |
| | | */ |
| | | @Component |
| | | public class DicAreaPR { |
| | | |
| | | @Resource |
| | | private DicAreaService dicAreaService; |
| | | |
| | | /** |
| | | * dicAreaPR#pageList |
| | | * |
| | | * @param page |
| | | */ |
| | | @DataProvider |
| | | public void pageList(Page<DicArea> page, String key) { |
| | | //å¤åæ°å页æ¥è¯¢ |
| | | Pageable pageable = PageRequest.of(page.getPageNo() - 1, page.getPageSize(), Sort.Direction.ASC, DicArea.SORT_PROP); |
| | | |
| | | if (StringUtils.isEmpty(key)) { |
| | | org.springframework.data.domain.Page<DicArea> japPage = dicAreaService.findAll(pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | page.setEntities(japPage.getContent()); |
| | | |
| | | return; |
| | | } |
| | | Specification<DicArea> specification = new Specification<DicArea>() { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | public Predicate toPredicate(Root<DicArea> root, CriteriaQuery<?> query, CriteriaBuilder cb) { |
| | | List<Predicate> predicates = new ArrayList<Predicate>(); //ææçæè¨ |
| | | |
| | | Predicate predicate1 = cb.like(root.get("name"), "%" + key + "%"); |
| | | predicates.add(predicate1); |
| | | |
| | | return cb.and(predicates.toArray(new Predicate[0])); |
| | | } |
| | | }; |
| | | org.springframework.data.domain.Page<DicArea> japPage = dicAreaService.findAll(specification, pageable); |
| | | page.setEntityCount((int) japPage.getTotalElements()); |
| | | page.setEntities(japPage.getContent()); |
| | | } |
| | | |
| | | /** |
| | | * dicAreaPR#getDicAreaByParentCode |
| | | */ |
| | | @DataProvider |
| | | public List<DicArea> getDicAreaByParentCode(String parentCode) { |
| | | return dicAreaService.getDicAreaByParentCode(parentCode); |
| | | } |
| | | |
| | | /** |
| | | * dicAreaPR#saveDicArea |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | public String saveDicArea(DicArea data) { |
| | | |
| | | DicArea dicArea = new DicArea(); |
| | | BeanUtils.copyProperties(data, dicArea); |
| | | return dicAreaService.saveDicArea(dicArea); |
| | | } |
| | | |
| | | /** |
| | | * dicAreaPR#delDicArea |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String delDicArea(DicArea data) { |
| | | |
| | | DicArea dicArea = new DicArea(); |
| | | BeanUtils.copyProperties(data, dicArea); |
| | | return dicAreaService.delDicArea(dicArea); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.fzzy.igds.sys.DicService; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description åå
¸æ°æ®PRå± |
| | | * @Author CZT |
| | | * @Date 2024/11/22 16:37 |
| | | */ |
| | | @Component |
| | | public class DicPR { |
| | | |
| | | @Resource |
| | | private DicService dicService; |
| | | |
| | | /** |
| | | * 䏿æ¡ä½¿ç¨ |
| | | * ${dorado.getDataProvider("dicPR#sysDictData").getResult("CATEGORY_ARCHIVES")} |
| | | * |
| | | * @param dictType |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> sysDictData(String dictType) { |
| | | return dicService.getDictDataByType(dictType, null); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 仿¿ç±»å-é彿 å®ä¹ |
| | | * ${dorado.getDataProvider("dicPR#triggerDepotType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerDepotType() { |
| | | return dicService.triggerDepotType(); |
| | | } |
| | | |
| | | /** |
| | | * 仿¿ç¶æ |
| | | * ${dorado.getDataProvider("dicPR#triggerDepotStatus").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerDepotStatus() { |
| | | return dicService.triggerDepotStatus(); |
| | | } |
| | | |
| | | /** |
| | | * ç²®é£ç级 |
| | | * ${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerFoodLevel() { |
| | | return dicService.triggerFoodLevel(); |
| | | } |
| | | |
| | | /** |
| | | * å¨ç²®æ¹å¼ |
| | | * ${dorado.getDataProvider("dicPR#triggerStoreType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStoreType() { |
| | | return dicService.triggerStoreType(); |
| | | } |
| | | |
| | | /** |
| | | * ç®¡çæ¹å¼ |
| | | * ${dorado.getDataProvider("dicPR#triggerManagerType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerManagerType() { |
| | | return dicService.triggerManagerType(); |
| | | } |
| | | |
| | | /** |
| | | * çµç¼èµ·å§æ¹ä½ |
| | | * ${dorado.getDataProvider("dicPR#triggerStartOrientation").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStartOrientation() { |
| | | return dicService.triggerStartOrientation(); |
| | | } |
| | | |
| | | /** |
| | | * çµç¼å¸çº¿æ¹å |
| | | * ${dorado.getDataProvider("dicPR#triggerStartDirection").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStartDirection() { |
| | | return dicService.triggerStartDirection(); |
| | | } |
| | | |
| | | /** |
| | | * çµç¼èµ·å§ç¹ä½ |
| | | * ${dorado.getDataProvider("dicPR#triggerStartPoint").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStartPoint() { |
| | | return dicService.triggerStartPoint(); |
| | | } |
| | | |
| | | /** |
| | | * å±è¡è½¬æ¢ |
| | | * ${dorado.getDataProvider("dicPR#triggerStartConvert").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStartConvert() { |
| | | return dicService.triggerStartConvert(); |
| | | } |
| | | |
| | | /** |
| | | * çä»é¥å½¢ |
| | | * ${dorado.getDataProvider("dicPR#triggerCableCone").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerCableCone() { |
| | | return dicService.triggerCableCone(); |
| | | } |
| | | |
| | | /** |
| | | * ${dorado.getDataProvider("dicTriggerPR#triggerYN").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerYN() { |
| | | return dicService.triggerYN(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * éè®¯ç¶æ |
| | | * ${dorado.getDataProvider("dicPR#conStatus").getResult()} |
| | | * |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> conStatus() { |
| | | return dicService.conStatus(); |
| | | } |
| | | |
| | | /** |
| | | * ${dorado.getDataProvider("dicPR#controlModel").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> controlModel() { |
| | | return dicService.controlModel(); |
| | | } |
| | | |
| | | /** |
| | | * ${dorado.getDataProvider("dicPR#triggerBizType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerBizType() { |
| | | return dicService.triggerBizType(); |
| | | } |
| | | |
| | | /** |
| | | * æ°è±¡æ¥æº |
| | | * ${dorado.getDataProvider("dicPR#triggerSource").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerSource() { |
| | | return dicService.triggerSource(); |
| | | } |
| | | |
| | | /** |
| | | * æ£éªç±»å« |
| | | * <p> |
| | | * ${dorado.getDataProvider("dicPR#triggerType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerType() { |
| | | return dicService.triggerType(); |
| | | } |
| | | |
| | | /** |
| | | * ææ ç±»å« |
| | | * <p> |
| | | * ${dorado.getDataProvider("dicPR#triggerStandard").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStandard() { |
| | | return dicService.triggerStandard(); |
| | | } |
| | | |
| | | /** |
| | | * æ£éªä¾æ® |
| | | * <p> |
| | | * ${dorado.getDataProvider("dicPR#triggerMetrics").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerMetrics() { |
| | | return dicService.triggerMetrics(); |
| | | } |
| | | |
| | | /** |
| | | * å®¡æ ¸ç¶æ |
| | | * ${dorado.getDataProvider("dicPR#triggerStatusType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerStatusType() { |
| | | return dicService.triggerStatusType(); |
| | | } |
| | | |
| | | /** |
| | | * è¦åç±»å |
| | | * ${dorado.getDataProvider("dicPR#triggerWarnType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerWarnType() { |
| | | return dicService.triggerWarnType(); |
| | | } |
| | | |
| | | /** |
| | | * è¦åç级 |
| | | * ${dorado.getDataProvider("dicPR#triggerWarnLevel").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerWarnLevel() { |
| | | return dicService.triggerWarnLevel(); |
| | | } |
| | | |
| | | /** |
| | | * è¦åç¶æ |
| | | * ${dorado.getDataProvider("dicPR#triggerWarnStatus").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerWarnStatus() { |
| | | return dicService.triggerWarnStatus(); |
| | | } |
| | | |
| | | /** |
| | | * è¦åéç¥æ¹å¼ |
| | | * ${dorado.getDataProvider("dicPR#triggerNoticeType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerNoticeType() { |
| | | return dicService.triggerNoticeType(); |
| | | } |
| | | |
| | | /** |
| | | * AI设å¤ç±»å |
| | | * |
| | | * ${dorado.getDataProvider("dicPR#triggerAiSerType").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerAiSerType() { |
| | | return dicService.triggerAiSerType(); |
| | | } |
| | | |
| | | /** |
| | | * éé£ä»»å¡ç¶æ |
| | | * |
| | | * ${dorado.getDataProvider("dicPR#triggerVerbStatus").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerVerbStatus() { |
| | | return dicService.triggerVerbStatus(); |
| | | } |
| | | |
| | | /** |
| | | * é飿¨¡å¼ |
| | | * |
| | | * ${dorado.getDataProvider("dicPR#triggerAreationModel").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerAreationModel() { |
| | | return dicService.triggerAreationModel(); |
| | | } |
| | | |
| | | /** |
| | | * æ°è°æ¨¡å¼ |
| | | * |
| | | * ${dorado.getDataProvider("dicPR#triggerN2ModelTag").getResult()} |
| | | * |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysDictData> triggerN2ModelTag() { |
| | | return dicService.triggerN2ModelTag(); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.igds.dzhwk.domain.Granary; |
| | | import com.fzzy.igds.sys.GranaryService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description |
| | | * @Author CZT |
| | | * @Date 2024/11/22 14:48 |
| | | */ |
| | | @Component |
| | | public class GranaryPR { |
| | | |
| | | @Resource |
| | | private GranaryService granaryService; |
| | | |
| | | /** |
| | | * ${dorado.getDataProvider("granaryPR#getGranary").getResult()} |
| | | * granaryPR#getGranary |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Granary> getGranary() { |
| | | return granaryService.getGranary(null, null); |
| | | } |
| | | |
| | | /** |
| | | * granaryPR#saveGranary æ°å¢æè
ä¿®æ¹ |
| | | * |
| | | * @param data |
| | | */ |
| | | @DataResolver |
| | | public void saveGranary(Granary data) { |
| | | Granary granary = new Granary(); |
| | | BeanUtils.copyProperties(data, granary); |
| | | granaryService.saveOrUpdate(granary); |
| | | } |
| | | |
| | | /** |
| | | * granaryPR#delGranary |
| | | * |
| | | * @param data |
| | | */ |
| | | @Expose |
| | | public String delGranary(Granary data){ |
| | | Granary granary = new Granary(); |
| | | BeanUtils.copyProperties(data, granary); |
| | | return granaryService.delData(granary); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.fzzy.igds.sys.pr; |
| | | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.fzzy.igds.sys.SysUserService; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description åºåºä¿¡æ¯ |
| | | * @Author CZT |
| | | * @Date 2024/11/21 18:01 |
| | | */ |
| | | @Component |
| | | public class SysUserPR { |
| | | |
| | | @Resource |
| | | private SysUserService sysUserService; |
| | | |
| | | /** |
| | | * sysUserPR#loadUser |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<SysUser> loadUser() { |
| | | return sysUserService.getUser(null); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <Model> |
| | | <DataType name="dtDepot"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.Depot</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | <Property name="label">ä»åºç¼å·</Property> |
| | | <Property name="required">false</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Validator name="validator1" type="regExp"> |
| | | <Property name="resultMessage">ä»åºç¼ç æ ¼å¼æè¯¯</Property> |
| | | <Property name="whiteRegExp">^[0-9A-Za-z]*[1-9A-Za-z_-][0-9A-Za-z_-]*$</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property> |
| | | <Property name="keyProperty">deptId</Property> |
| | | <Property name="valueProperty">deptName</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">ä»åºåç§°</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="buildingId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ä»æ¿</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("buildingPR#getCacheBuilding").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="granaryId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±å»é´</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("granaryPR#getGranary").getResult()}</Property> |
| | | <Property name="keyProperty">ajdh</Property> |
| | | <Property name="valueProperty">ajmc</Property> |
| | | </Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotType"> |
| | | <Property></Property> |
| | | <Property name="label">仿¿ç±»å</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerDepotType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotStatus"> |
| | | <Property></Property> |
| | | <Property name="label">ä»åºç¶æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerDepotStatus").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storageMax"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">设计å¨é</Property> |
| | | <Property name="displayFormat">#,##0 KG</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storageReal"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å®é
å¨é</Property> |
| | | <Property name="displayFormat">#,##0 KG</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeType"> |
| | | <Property></Property> |
| | | <Property name="label">å¨ç²®æ¹å¼</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerStoreType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£æ§è´¨</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_TYPE_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£ç级</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocationId"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perWet"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ°´å</Property> |
| | | <Property name="displayFormat">0.0 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="perImpurity"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æè´¨</Property> |
| | | <Property name="displayFormat">0.0 %</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bulkWeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">容é g/L</Property> |
| | | <Property name="displayFormat">0.0 g/L</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeKeeper"> |
| | | <Property></Property> |
| | | <Property name="label">ä¿ç®¡å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeKeeperName"> |
| | | <Property></Property> |
| | | <Property name="label">ä¿ç®¡å</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">è´¨æ£æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å
¥åºæ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodYear"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£å¹´ä»½</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bhId"> |
| | | <Property></Property> |
| | | <Property name="label">åæºç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="orderNum"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">顺åºå·</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtDepotStore"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.DepotStore</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ååº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">æå±ä»åº</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="country"> |
| | | <Property></Property> |
| | | <Property name="label">å½å«</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("GB_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="manageType"> |
| | | <Property></Property> |
| | | <Property name="label">ç®¡çæ¹å¼</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerManagerType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeType"> |
| | | <Property></Property> |
| | | <Property name="label">å¨ç²®æ¹å¼</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerStoreType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotStatus"> |
| | | <Property></Property> |
| | | <Property name="label">ä»åºç¶æ</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerDepotStatus").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£æ§è´¨</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_TYPE_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#sysDictData").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£ç级</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerFoodLevel").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocationId"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£äº§å°</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodYear"> |
| | | <Property></Property> |
| | | <Property name="label">æ¶è´§å¹´åº¦</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storeDate"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">å
¥ä»æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storageReal"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">å®é
å¨é</Property> |
| | | <Property name="displayFormat">#,##0 KG</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="storageSettle"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">计价æ°é</Property> |
| | | <Property name="displayFormat">#,##0 KG</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="fullDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">å°ä»æ¥æ</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="outDate"> |
| | | <Property name="label">åºä»å®ææ¶é´</Property> |
| | | <Property name="dataType">DateTime</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainHeight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">è£
粮线é«</Property> |
| | | <Property name="displayFormat">0.00 ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="grainVolume"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">è£
ç²®ä½ç§¯</Property> |
| | | <Property name="displayFormat">0.00 ç«æ¹ç±³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateUser"> |
| | | <Property></Property> |
| | | <Property name="label">ä¿®æ¹äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="updateDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">ä¿®æ¹æ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createDate"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lqgsdwdm"> |
| | | <Property/> |
| | | <Property name="label">ç²®æåä½ä»£ç </Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtArea"> |
| | | <Property name="creationType">com.fzzy.igds.dzhwk.domain.DicArea</Property> |
| | | <PropertyDef name="code"> |
| | | <Property></Property> |
| | | <Property name="label">åºåç¼ç </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | | <Property name="label">åç§°</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="parentCode"> |
| | | <Property></Property> |
| | | <Property name="label">æå±åºå</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicAreaPR#getDicAreaByParentCode").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="parentName"> |
| | | <Property></Property> |
| | | <Property name="label">ä¸çº§åºå</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property></Property> |
| | | <Property name="label">ç±»å</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">ç</Property> |
| | | <Property name="value">1</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å¸</Property> |
| | | <Property name="value">2</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">åºå¿</Property> |
| | | <Property name="value">3</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="simple"> |
| | | <Property></Property> |
| | | <Property name="label">ç®æ¼</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="disabledTag"> |
| | | <Property></Property> |
| | | <Property name="label">æ¯å¦ç¦ç¨</Property> |
| | | <Property name="required">false</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">ç¦ç¨</Property> |
| | | <Property name="value">Y</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">å¯ç¨</Property> |
| | | <Property name="value">N</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">value</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | |
| | | @Autowired |
| | | private SysPasswordService passwordService; |
| | | |
| | | // ç³»ç»é¦é¡µ |
| | | @GetMapping("/index") |
| | | public String index(@RequestParam(value = "bizType", required = false) String bizType, |
| | | /** |
| | | * åå°ç®¡ç主页 |
| | | * @param mmap |
| | | * @return |
| | | */ |
| | | @GetMapping("/home") |
| | | public String home(@RequestParam(value = "bizType", required = false) String bizType, |
| | | ModelMap mmap) { |
| | | // åèº«ä»½ä¿¡æ¯ |
| | | SysUser user = getSysUser(); |
| | | |
| | | mmap.put("user", user); |
| | | |
| | | //æ ¹æ®bizTypeè·åèå |
| | | if(StringUtils.isEmpty(bizType)){ |
| | | bizType = Constant.MODEL_DZHWK; |
| | | } |
| | | List<SysMenu> menus = this.getMenusByBizType(user, bizType); |
| | | mmap.put("menus", menus); |
| | | mmap.put("user", user); |
| | | |
| | | String welcomeUrl = "/welcome?t=" + bizType; |
| | | mmap.put("welcomeUrl", welcomeUrl); |
| | | mmap.put("sideTheme", configService.selectConfigByKey("sys.index.sideTheme", user.getCompanyId())); |
| | | mmap.put("skinName", configService.selectConfigByKey("sys.index.skinName", user.getCompanyId())); |
| | | Boolean footer = Convert.toBool(configService.selectConfigByKey("sys.index.footer", user.getCompanyId()), true); |
| | |
| | | // èåå¯¼èªæ¾ç¤ºé£æ ¼ |
| | | String menuStyle = configService.selectConfigByKey("sys.index.menuStyle", user.getCompanyId()); |
| | | // ç§»å¨ç«¯ï¼é»è®¤ä½¿å·¦ä¾§å¯¼èªèåï¼å¦ååé»è®¤é
ç½® |
| | | String indexStyle = ServletUtils.checkAgentIsMobile(ServletUtils.getRequest().getHeader("User-Agent")) ? "index" : menuStyle; |
| | | String indexStyle = ServletUtils.checkAgentIsMobile(ServletUtils.getRequest().getHeader("User-Agent")) ? "home" : menuStyle; |
| | | |
| | | // ä¼å
Cookieé
置导èªèå |
| | | Cookie[] cookies = ServletUtils.getRequest().getCookies(); |
| | |
| | | break; |
| | | } |
| | | } |
| | | String webIndex = "topnav".equalsIgnoreCase(indexStyle) ? "index-topnav" : "index"; |
| | | String webIndex = "topnav".equalsIgnoreCase(indexStyle) ? "home-topnav" : "home"; |
| | | return webIndex; |
| | | } |
| | | |
| | | @GetMapping("/welcome") |
| | | public String welcome(@RequestParam(value = "t", required = true) String model, |
| | | ModelMap mmap) { |
| | | mmap.put("version", FrameworkConfig.getVersion()); |
| | | // ç¨æ·ä¿¡æ¯ |
| | | SysUser user = getSysUser(); |
| | | mmap.put(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | //é»è®¤ç²®æ
欢è¿é¡µé¢ |
| | | String view = "dzhwk/welcome"; |
| | | if (Constant.MODEL_SYS.equals(model)) { |
| | | //ç³»ç»ç®¡çæ¨¡åæ¬¢è¿é¡µé¢ |
| | | view = "dzhwk/welcome"; |
| | | } |
| | | return view; |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®bizTypeè·åèå |
| | | * |
| | |
| | | .row-opt { |
| | | padding: 62px 65px 0 |
| | | } |
| | | |
| | | .m-tabopt{margin-bottom:20px;margin-left: 115px;} |
| | | .ul-listopt{display:block;overflow:hidden} |
| | | .ul-listopt li{margin-right:30px;float:left} |
| | | .ul-listopt .con{display:flex;align-items:center;justify-content:center;width:136px;height:50px;background-image:url(../img/dzhwk/sys/a1.png);background-position:center;background-size:cover;background-repeat:no-repeat;font-size:16px;font-weight:700;color:#0cf;transition:.4s;-webkit-transition:.4s;-moz-transition:.4s;-ms-transition:.4s;-o-transition:.4s} |
| | | .ul-listopt .con:hover,.ul-listopt .on .con{background-image:url(../img/dzhwk/sys/a1-1.png);color:#fff} |
| | | .m-contopt { |
| | | width: 1304px; |
| | | height: 736px; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @charset "utf-8"; |
| | | |
| | | /*----------------- |
| | | Author:xq |
| | | update:2019 |
| | | -------------------*/ |
| | | body { |
| | | font-family: "微软é
é»", Arial, sans-serif; |
| | | font-size: 14px; |
| | | background: #f3f5f8; |
| | | position: relative; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | i,em{ |
| | | font-style: normal; |
| | | } |
| | | |
| | | .i-bodyBg{ |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | z-index: -1; |
| | | } |
| | | .i-bodyBg img{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .i-container{ |
| | | width: 100%; |
| | | max-width: 1720px; |
| | | min-width: 1340px; |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | overflow: hidden; |
| | | position: relative; |
| | | } |
| | | |
| | | .wel-main{ |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | z-index: 2; |
| | | |
| | | } |
| | | |
| | | .wel-tit{ |
| | | height: 100px; |
| | | text-align: center; |
| | | margin: 6% 0 4%; |
| | | } |
| | | .wel-tit img{ |
| | | height: 100%; |
| | | max-width: 90%; |
| | | } |
| | | |
| | | .wel-item{ |
| | | width: 13.2%; |
| | | position: absolute; |
| | | } |
| | | |
| | | |
| | | .wel-item-img, |
| | | .wel-item>a, |
| | | .wel-item-img img{ |
| | | display: block; |
| | | width: 100%; |
| | | |
| | | } |
| | | |
| | | .wel-item-img img{ |
| | | height: 100%; |
| | | opacity: 0.7; |
| | | filter: alpha(opacity=70); |
| | | } |
| | | |
| | | .wel-item:hover .wel-item-img img{ |
| | | opacity: 1; |
| | | filter: alpha(opacity=100); |
| | | } |
| | | |
| | | .wel-item1{ |
| | | left: 18%; |
| | | top: 37.5%; |
| | | } |
| | | |
| | | |
| | | .wel-item2{ |
| | | left: 30.6%; |
| | | top: 51%; |
| | | } |
| | | |
| | | .wel-item3{ |
| | | left: 43.4%; |
| | | top: 37.5%; |
| | | } |
| | | |
| | | .wel-item4{ |
| | | left: 56%; |
| | | top: 51%; |
| | | } |
| | | |
| | | .wel-item5{ |
| | | left: 69%; |
| | | top: 37.5%; |
| | | } |
| | | |
| | | .wel-item>a{ |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | z-index: 3; |
| | | overflow: hidden; |
| | | height: 100%; |
| | | text-align: center; |
| | | } |
| | | |
| | | .wel-item>a p{ |
| | | color: #fff; |
| | | margin-top: 65%; |
| | | line-height: 1; |
| | | font-size: 20px; |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * é¦é¡µæ¹æ³å°è£
å¤ç |
| | | * Copyright (c) 2019 ruoyi |
| | | */ |
| | | layer.config({ |
| | | extend: 'moon/style.css', |
| | | skin: 'layer-ext-moon' |
| | | }); |
| | | |
| | | var isMobile = false; |
| | | var sidebarHeight = isMobile ? '100%' : '96%'; |
| | | |
| | | $(function() { |
| | | // MetsiMenu |
| | | $('#side-menu').metisMenu(); |
| | | |
| | | // åºå®èåæ |
| | | $('.sidebar-collapse').slimScroll({ |
| | | height: sidebarHeight, |
| | | railOpacity: 0.9, |
| | | alwaysVisible: false |
| | | }); |
| | | |
| | | // èå忢 |
| | | $('.navbar-minimalize').click(function() { |
| | | if (isMobile) { |
| | | $("body").toggleClass("canvas-menu"); |
| | | } else { |
| | | $("body").toggleClass("mini-navbar"); |
| | | } |
| | | SmoothlyMenu(); |
| | | }); |
| | | |
| | | $('#side-menu>li').click(function() { |
| | | if ($('body').hasClass('canvas-menu mini-navbar')) { |
| | | NavToggle(); |
| | | } |
| | | |
| | | }); |
| | | $('#side-menu>li li a:not(:has(span))').click(function() { |
| | | if ($(window).width() < 769) { |
| | | NavToggle(); |
| | | } |
| | | }); |
| | | |
| | | $('.nav-close').click(NavToggle); |
| | | |
| | | //iosæµè§å¨å
¼å®¹æ§å¤ç |
| | | if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { |
| | | $('#content-main').css('overflow-y', 'auto'); |
| | | } |
| | | |
| | | }); |
| | | |
| | | $(window).bind("load resize", function() { |
| | | isMobile = $.common.isMobile() || $(window).width() < 769; |
| | | if (isMobile) { |
| | | $('body').addClass('canvas-menu'); |
| | | $("body").removeClass("mini-navbar"); |
| | | $("nav .logo").addClass("hide"); |
| | | $(".slimScrollDiv").css({ "overflow": "hidden" }); |
| | | $('.navbar-static-side').fadeOut(); |
| | | } else { |
| | | if ($('body').hasClass('canvas-menu')) { |
| | | $('body').addClass('fixed-sidebar'); |
| | | $('body').removeClass('canvas-menu'); |
| | | $("body").removeClass("mini-navbar"); |
| | | $("nav .logo").removeClass("hide"); |
| | | $(".slimScrollDiv").css({ "overflow": "visible" }); |
| | | $('.navbar-static-side').fadeIn(); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | function openToCurrentTab(obj) { |
| | | if (isScrollToTop) { |
| | | $(obj).show().siblings('.RuoYi_iframe').hide(); |
| | | } else { |
| | | $(obj).css({"visibility": "visible", "position": "static"}).siblings('.RuoYi_iframe').css({"visibility": "hidden", "position": "absolute"}); |
| | | } |
| | | } |
| | | |
| | | function syncMenuTab(dataId) { |
| | | if (isLinkage) { |
| | | var $dataObj = $('a[href$="' + decodeURI(dataId) + '"]'); |
| | | if ($dataObj.attr("class") != null && !$dataObj.hasClass("noactive")) { |
| | | $('.tab-pane li').removeClass("active"); |
| | | $('.nav ul').removeClass("in"); |
| | | $dataObj.parents("ul").addClass("in") |
| | | $dataObj.parents("li").addClass("active").siblings().removeClass("active").find('li').removeClass("active"); |
| | | $dataObj.parents("ul").css('height', 'auto').height(); |
| | | $(".nav ul li, .nav li").removeClass("selected"); |
| | | $dataObj.parent("li").addClass("selected"); |
| | | setIframeUrl(dataId); |
| | | |
| | | // é¡¶é¨èå忥å¤ç |
| | | var tabStr = $dataObj.parents(".tab-pane").attr("id"); |
| | | if ($.common.isNotEmpty(tabStr)) { |
| | | var sepIndex = tabStr.lastIndexOf('_'); |
| | | var menuId = tabStr.substring(sepIndex + 1, tabStr.length); |
| | | $("#tab_" + menuId + " a").click(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | function NavToggle() { |
| | | $('.navbar-minimalize').trigger('click'); |
| | | } |
| | | |
| | | function fixedSidebar() { |
| | | $('#side-menu').hide(); |
| | | $("nav .logo").addClass("hide"); |
| | | setTimeout(function() { |
| | | $('#side-menu').fadeIn(500); |
| | | }, 100); |
| | | } |
| | | |
| | | // 设置éç¹ |
| | | function setIframeUrl(href) { |
| | | if ($.common.equals("history", mode)) { |
| | | storage.set('publicPath', href); |
| | | } else { |
| | | var nowUrl = window.location.href; |
| | | var newUrl = nowUrl.substring(0, nowUrl.indexOf("#")); |
| | | window.location.href = newUrl + "#" + href; |
| | | } |
| | | } |
| | | |
| | | function SmoothlyMenu() { |
| | | if (isMobile && !$('body').hasClass('canvas-menu')) { |
| | | $('.navbar-static-side').fadeIn(); |
| | | fixedSidebar(); |
| | | } else if (!isMobile &&!$('body').hasClass('mini-navbar')) { |
| | | fixedSidebar(); |
| | | $("nav .logo").removeClass("hide"); |
| | | } else if (isMobile && $('body').hasClass('fixed-sidebar')) { |
| | | $('.navbar-static-side').fadeOut(); |
| | | fixedSidebar(); |
| | | } else if (!isMobile && $('body').hasClass('fixed-sidebar')) { |
| | | fixedSidebar(); |
| | | } else { |
| | | $('#side-menu').removeAttr('style'); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * iframeå¤ç |
| | | */ |
| | | $(function() { |
| | | //计ç®å
ç´ éåçæ»å®½åº¦ |
| | | function calSumWidth(elements) { |
| | | var width = 0; |
| | | $(elements).each(function() { |
| | | width += $(this).outerWidth(true); |
| | | }); |
| | | return width; |
| | | } |
| | | |
| | | // æ¿æ´»æå®éé¡¹å¡ |
| | | function setActiveTab(element) { |
| | | if (!$(element).hasClass('active')) { |
| | | var currentId = $(element).data('id'); |
| | | syncMenuTab(currentId); |
| | | // æ¾ç¤ºtab对åºçå
å®¹åº |
| | | $('.RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == currentId) { |
| | | openToCurrentTab(this); |
| | | } |
| | | }); |
| | | $(element).addClass('active').siblings('.menuTab').removeClass('active'); |
| | | scrollToTab(element); |
| | | } |
| | | } |
| | | |
| | | //æ»å¨å°æå®éé¡¹å¡ |
| | | function scrollToTab(element) { |
| | | var marginLeftVal = calSumWidth($(element).prevAll()), |
| | | marginRightVal = calSumWidth($(element).nextAll()); |
| | | // å¯è§åºåétab宽度 |
| | | var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".menuTabs")); |
| | | //å¯è§åºåtab宽度 |
| | | var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth; |
| | | //å®é
æ»å¨å®½åº¦ |
| | | var scrollVal = 0; |
| | | if ($(".page-tabs-content").outerWidth() < visibleWidth) { |
| | | scrollVal = 0; |
| | | } else if (marginRightVal <= (visibleWidth - $(element).outerWidth(true) - $(element).next().outerWidth(true))) { |
| | | if ((visibleWidth - $(element).next().outerWidth(true)) > marginRightVal) { |
| | | scrollVal = marginLeftVal; |
| | | var tabElement = element; |
| | | while ((scrollVal - $(tabElement).outerWidth()) > ($(".page-tabs-content").outerWidth() - visibleWidth)) { |
| | | scrollVal -= $(tabElement).prev().outerWidth(); |
| | | tabElement = $(tabElement).prev(); |
| | | } |
| | | } |
| | | } else if (marginLeftVal > (visibleWidth - $(element).outerWidth(true) - $(element).prev().outerWidth(true))) { |
| | | scrollVal = marginLeftVal - $(element).prev().outerWidth(true); |
| | | } |
| | | $('.page-tabs-content').animate({ marginLeft: 0 - scrollVal + 'px' }, "fast"); |
| | | } |
| | | |
| | | //æ¥ç左侧éèçéé¡¹å¡ |
| | | function scrollTabLeft() { |
| | | var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left'))); |
| | | // å¯è§åºåétab宽度 |
| | | var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".menuTabs")); |
| | | //å¯è§åºåtab宽度 |
| | | var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth; |
| | | //å®é
æ»å¨å®½åº¦ |
| | | var scrollVal = 0; |
| | | if (($(".page-tabs-content").width()) < visibleWidth) { |
| | | return false; |
| | | } else { |
| | | var tabElement = $(".menuTab:first"); |
| | | var offsetVal = 0; |
| | | while ((offsetVal + $(tabElement).outerWidth(true)) <= marginLeftVal) { //æ¾å°ç¦»å½åtabæè¿çå
ç´ |
| | | offsetVal += $(tabElement).outerWidth(true); |
| | | tabElement = $(tabElement).next(); |
| | | } |
| | | offsetVal = 0; |
| | | if (calSumWidth($(tabElement).prevAll()) > visibleWidth) { |
| | | while ((offsetVal + $(tabElement).outerWidth(true)) < (visibleWidth) && tabElement.length > 0) { |
| | | offsetVal += $(tabElement).outerWidth(true); |
| | | tabElement = $(tabElement).prev(); |
| | | } |
| | | scrollVal = calSumWidth($(tabElement).prevAll()); |
| | | } |
| | | } |
| | | $('.page-tabs-content').animate({ marginLeft: 0 - scrollVal + 'px' }, "fast"); |
| | | } |
| | | |
| | | //æ¥çå³ä¾§éèçéé¡¹å¡ |
| | | function scrollTabRight() { |
| | | var marginLeftVal = Math.abs(parseInt($('.page-tabs-content').css('margin-left'))); |
| | | // å¯è§åºåétab宽度 |
| | | var tabOuterWidth = calSumWidth($(".content-tabs").children().not(".menuTabs")); |
| | | //å¯è§åºåtab宽度 |
| | | var visibleWidth = $(".content-tabs").outerWidth(true) - tabOuterWidth; |
| | | //å®é
æ»å¨å®½åº¦ |
| | | var scrollVal = 0; |
| | | if ($(".page-tabs-content").width() < visibleWidth) { |
| | | return false; |
| | | } else { |
| | | var tabElement = $(".menuTab:first"); |
| | | var offsetVal = 0; |
| | | while ((offsetVal + $(tabElement).outerWidth(true)) <= marginLeftVal) { //æ¾å°ç¦»å½åtabæè¿çå
ç´ |
| | | offsetVal += $(tabElement).outerWidth(true); |
| | | tabElement = $(tabElement).next(); |
| | | } |
| | | offsetVal = 0; |
| | | while ((offsetVal + $(tabElement).outerWidth(true)) < (visibleWidth) && tabElement.length > 0) { |
| | | offsetVal += $(tabElement).outerWidth(true); |
| | | tabElement = $(tabElement).next(); |
| | | } |
| | | scrollVal = calSumWidth($(tabElement).prevAll()); |
| | | if (scrollVal > 0) { |
| | | $('.page-tabs-content').animate({ marginLeft: 0 - scrollVal + 'px' }, "fast"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //éè¿éåç»èå项å ä¸data-index屿§ |
| | | $(".menuItem").each(function(index) { |
| | | if (!$(this).attr('data-index')) { |
| | | $(this).attr('data-index', index); |
| | | } |
| | | }); |
| | | |
| | | function menuItem() { |
| | | // è·åæ è¯æ°æ® |
| | | var dataUrl = $(this).attr('href'), |
| | | dataIndex = $(this).data('index'), |
| | | menuName = $(this).data('title') || $.trim($(this).text()), |
| | | isRefresh = $(this).data("refresh"), |
| | | flag = true; |
| | | |
| | | var $dataObj = $('a[href$="' + decodeURI(dataUrl) + '"]'); |
| | | if (!$dataObj.hasClass("noactive")) { |
| | | $('.tab-pane li').removeClass("active"); |
| | | $('.nav ul').removeClass("in"); |
| | | $dataObj.parents("ul").addClass("in") |
| | | $dataObj.parents("li").addClass("active").siblings().removeClass("active").find('li').removeClass("active"); |
| | | $dataObj.parents("ul").css('height', 'auto').height(); |
| | | $(".nav ul li, .nav li").removeClass("selected"); |
| | | $(this).parent("li").addClass("selected"); |
| | | } |
| | | setIframeUrl(dataUrl); |
| | | if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false; |
| | | |
| | | // é项å¡èåå·²åå¨ |
| | | $('.menuTab').each(function() { |
| | | if ($(this).data('id') == dataUrl) { |
| | | if (!$(this).hasClass('active')) { |
| | | $(this).addClass('active').siblings('.menuTab').removeClass('active'); |
| | | scrollToTab(this); |
| | | // æ¾ç¤ºtab对åºçå
å®¹åº |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == dataUrl) { |
| | | openToCurrentTab(this); |
| | | return false; |
| | | } |
| | | }); |
| | | } |
| | | if (isRefresh) { |
| | | refreshTab(); |
| | | } |
| | | flag = false; |
| | | return false; |
| | | } |
| | | }); |
| | | // é项å¡èåä¸åå¨ |
| | | if (flag) { |
| | | var str = '<a href="javascript:;" class="active menuTab" data-id="' + dataUrl + '">' + menuName + ' <i class="fa fa-times-circle"></i></a>'; |
| | | $('.menuTab').removeClass('active'); |
| | | |
| | | // æ·»å é项å¡å¯¹åºçiframe |
| | | var str1 = '<iframe class="RuoYi_iframe" name="iframe' + dataIndex + '" width="100%" height="100%" src="' + dataUrl + '" frameborder="0" data-id="' + dataUrl + '" data-refresh="' + isRefresh + '" seamless></iframe>'; |
| | | if (isScrollToTop) { |
| | | $('.mainContent').find('iframe.RuoYi_iframe').hide().parents('.mainContent').append(str1); |
| | | } else { |
| | | $('.mainContent').find('iframe.RuoYi_iframe').css({"visibility": "hidden", "position": "absolute"}).parents('.mainContent').append(str1); |
| | | } |
| | | |
| | | $.modal.loading("æ°æ®å è½½ä¸ï¼è¯·ç¨å..."); |
| | | |
| | | $('.mainContent iframe:visible').on('load', function() { |
| | | $.modal.closeLoading(); |
| | | }); |
| | | |
| | | // æ·»å éé¡¹å¡ |
| | | $('.menuTabs .page-tabs-content').append(str); |
| | | scrollToTab($('.menuTab.active')); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | function menuBlank() { |
| | | // æ°çªå£æå¼å¤ç½ä»¥http://å¼å¤´ï¼å¦http://ruoyi.vip |
| | | var dataUrl = $(this).attr('href'); |
| | | window.open(dataUrl); |
| | | return false; |
| | | } |
| | | |
| | | $('.menuItem').on('click', menuItem); |
| | | |
| | | $('.menuBlank').on('click', menuBlank); |
| | | |
| | | // å
³éé项å¡èå |
| | | function closeTab() { |
| | | var closeTabId = $(this).parents('.menuTab').data('id'); |
| | | var currentWidth = $(this).parents('.menuTab').width(); |
| | | var panelUrl = $(this).parents('.menuTab').data('panel'); |
| | | // å½åå
ç´ å¤äºæ´»å¨ç¶æ |
| | | if ($(this).parents('.menuTab').hasClass('active')) { |
| | | |
| | | // å½åå
ç´ å颿åè¾å
ç´ ï¼ä½¿åé¢çä¸ä¸ªå
ç´ å¤äºæ´»å¨ç¶æ |
| | | if ($(this).parents('.menuTab').next('.menuTab').length) { |
| | | |
| | | var activeId = $(this).parents('.menuTab').next('.menuTab:eq(0)').data('id'); |
| | | $(this).parents('.menuTab').next('.menuTab:eq(0)').addClass('active'); |
| | | |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == activeId) { |
| | | openToCurrentTab(this); |
| | | return false; |
| | | } |
| | | }); |
| | | |
| | | var marginLeftVal = parseInt($('.page-tabs-content').css('margin-left')); |
| | | if (marginLeftVal < 0) { |
| | | $('.page-tabs-content').animate({ marginLeft: (marginLeftVal + currentWidth) + 'px' }, "fast"); |
| | | } |
| | | |
| | | // ç§»é¤å½åéé¡¹å¡ |
| | | $(this).parents('.menuTab').remove(); |
| | | |
| | | // ç§»é¤tab对åºçå
å®¹åº |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == closeTabId) { |
| | | $(this).remove(); |
| | | return false; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // å½åå
ç´ å颿²¡æåè¾å
ç´ ï¼ä½¿å½åå
ç´ çä¸ä¸ä¸ªå
ç´ å¤äºæ´»å¨ç¶æ |
| | | if ($(this).parents('.menuTab').prev('.menuTab').length) { |
| | | var activeId = $(this).parents('.menuTab').prev('.menuTab:last').data('id'); |
| | | $(this).parents('.menuTab').prev('.menuTab:last').addClass('active'); |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == activeId) { |
| | | openToCurrentTab(this); |
| | | return false; |
| | | } |
| | | }); |
| | | |
| | | // ç§»é¤å½åéé¡¹å¡ |
| | | $(this).parents('.menuTab').remove(); |
| | | |
| | | // ç§»é¤tab对åºçå
å®¹åº |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == closeTabId) { |
| | | $(this).remove(); |
| | | return false; |
| | | } |
| | | }); |
| | | |
| | | if ($.common.isNotEmpty(panelUrl)) { |
| | | $('.menuTab[data-id="' + panelUrl + '"]').addClass('active').siblings('.menuTab').removeClass('active'); |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == panelUrl) { |
| | | openToCurrentTab(this); |
| | | return false; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | // å½åå
ç´ ä¸å¤äºæ´»å¨ç¶æ |
| | | else { |
| | | // ç§»é¤å½åéé¡¹å¡ |
| | | $(this).parents('.menuTab').remove(); |
| | | |
| | | // ç§»é¤ç¸åºtab对åºçå
å®¹åº |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == closeTabId) { |
| | | $(this).remove(); |
| | | return false; |
| | | } |
| | | }); |
| | | } |
| | | scrollToTab($('.menuTab.active')); |
| | | syncMenuTab($.common.isNotEmpty(panelUrl) ? panelUrl : $('.page-tabs-content').find('.active').attr('data-id')); |
| | | return false; |
| | | } |
| | | |
| | | $('.menuTabs').on('click', '.menuTab i', closeTab); |
| | | |
| | | //æ»å¨å°å·²æ¿æ´»çéé¡¹å¡ |
| | | function showActiveTab() { |
| | | scrollToTab($('.menuTab.active')); |
| | | } |
| | | $('.tabShowActive').on('click', showActiveTab); |
| | | |
| | | // ç¹å»é项å¡èå |
| | | function activeTab() { |
| | | if (!$(this).hasClass('active')) { |
| | | var currentId = $(this).data('id'); |
| | | var isRefresh = false; |
| | | syncMenuTab(currentId); |
| | | // æ¾ç¤ºtab对åºçå
å®¹åº |
| | | $('.mainContent .RuoYi_iframe').each(function() { |
| | | if ($(this).data('id') == currentId) { |
| | | openToCurrentTab(this); |
| | | isRefresh = $.common.nullToDefault($(this).data('refresh'), false); |
| | | return false; |
| | | } |
| | | }); |
| | | $(this).addClass('active').siblings('.menuTab').removeClass('active'); |
| | | if (isRefresh) { |
| | | refreshTab(); |
| | | } |
| | | scrollToTab(this); |
| | | } |
| | | } |
| | | |
| | | // ç¹å»é项å¡èå |
| | | $('.menuTabs').on('click', '.menuTab', activeTab); |
| | | |
| | | // å·æ°iframe |
| | | function refreshTab() { |
| | | var currentId = $('.page-tabs-content').find('.active').attr('data-id'); |
| | | var target = $('.RuoYi_iframe[data-id="' + currentId + '"]'); |
| | | var url = target.attr('src'); |
| | | target.attr('src', url).ready(); |
| | | } |
| | | |
| | | // 页ç¾å
¨å± |
| | | function fullScreenTab() { |
| | | var currentId = $('.page-tabs-content').find('.active').attr('data-id'); |
| | | var target = $('.RuoYi_iframe[data-id="' + currentId + '"]'); |
| | | target.fullScreen(true); |
| | | } |
| | | |
| | | // å
³éå½åéé¡¹å¡ |
| | | function tabCloseCurrent() { |
| | | $('.page-tabs-content').find('.active i').trigger("click"); |
| | | } |
| | | |
| | | //å
³éå
¶ä»éé¡¹å¡ |
| | | function tabCloseOther() { |
| | | $('.page-tabs-content').children("[data-id]").not(":first").not(".active").each(function() { |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').remove(); |
| | | $(this).remove(); |
| | | }); |
| | | $('.page-tabs-content').animate({ marginLeft: '0px' }, "fast"); |
| | | } |
| | | |
| | | // å
³éå
¨é¨éé¡¹å¡ |
| | | function tabCloseAll() { |
| | | $('.page-tabs-content').children("[data-id]").not(":first").each(function() { |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').remove(); |
| | | $(this).remove(); |
| | | }); |
| | | $('.page-tabs-content').children("[data-id]:first").each(function() { |
| | | if (isScrollToTop) { |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').show(); |
| | | } else { |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').css({"visibility": "visible", "position": "static"}); |
| | | } |
| | | $(this).addClass("active"); |
| | | }); |
| | | $('.page-tabs-content').css("margin-left", "0"); |
| | | syncMenuTab($('.page-tabs-content').find('.active').attr('data-id')); |
| | | } |
| | | |
| | | |
| | | // å
¨å±æ¾ç¤º |
| | | $('#fullScreen').on('click', function () { |
| | | $(document).toggleFullScreen(); |
| | | }); |
| | | |
| | | // éå®å±å¹ |
| | | $('#lockScreen').on('click', function () { |
| | | storage.set('lockPath', $('.page-tabs-content').find('.active').attr('data-id')); |
| | | location.href = ctx + "lockscreen"; |
| | | }); |
| | | |
| | | // 页ç¾å·æ°æé® |
| | | $('.tabReload').on('click', refreshTab); |
| | | |
| | | // 页ç¾å
¨å±æé® |
| | | $('.tabFullScreen').on('click', fullScreenTab); |
| | | |
| | | // åå»é项å¡å
¨å±æ¾ç¤º |
| | | $('.menuTabs').on('dblclick', '.menuTab', activeTabMax); |
| | | |
| | | // å·¦ç§»ææ |
| | | $('.tabLeft').on('click', scrollTabLeft); |
| | | |
| | | // å³ç§»ææ |
| | | $('.tabRight').on('click', scrollTabRight); |
| | | |
| | | // å
³éå½å |
| | | $('.tabCloseCurrent').on('click', tabCloseCurrent); |
| | | |
| | | // å
³éå
¶ä» |
| | | $('.tabCloseOther').on('click', tabCloseOther); |
| | | |
| | | // å
³éå
¨é¨ |
| | | $('.tabCloseAll').on('click', tabCloseAll); |
| | | |
| | | // tabå
¨å±æ¾ç¤º |
| | | $('.tabMaxCurrent').on('click', function () { |
| | | $('.page-tabs-content').find('.active').trigger("dblclick"); |
| | | }); |
| | | |
| | | // å
³éå
¨å± |
| | | $('#ax_close_max').click(function(){ |
| | | $('#content-main').toggleClass('max'); |
| | | $('#ax_close_max').hide(); |
| | | }) |
| | | |
| | | // åå»é项å¡å
¨å±æ¾ç¤º |
| | | function activeTabMax() { |
| | | $('#content-main').toggleClass('max'); |
| | | $('#ax_close_max').show(); |
| | | } |
| | | |
| | | $(window).keydown(function(event) { |
| | | if (event.keyCode == 27) { |
| | | $('#content-main').removeClass('max'); |
| | | $('#ax_close_max').hide(); |
| | | } |
| | | }); |
| | | |
| | | window.onhashchange = function() { |
| | | var hash = location.hash; |
| | | var url = hash.substring(1, hash.length); |
| | | $('a[href$="' + url + '"]').click(); |
| | | }; |
| | | |
| | | // å³é®èåå®ç° |
| | | $.contextMenu({ |
| | | selector: ".menuTab", |
| | | trigger: 'right', |
| | | autoHide: true, |
| | | items: { |
| | | "close_current": { |
| | | name: "å
³éå½å", |
| | | icon: "fa-close", |
| | | callback: function(key, opt) { |
| | | opt.$trigger.find('i').trigger("click"); |
| | | } |
| | | }, |
| | | "close_other": { |
| | | name: "å
³éå
¶ä»", |
| | | icon: "fa-window-close-o", |
| | | callback: function(key, opt) { |
| | | setActiveTab(this); |
| | | tabCloseOther(); |
| | | } |
| | | }, |
| | | "close_left": { |
| | | name: "å
³é左侧", |
| | | icon: "fa-reply", |
| | | callback: function(key, opt) { |
| | | setActiveTab(this); |
| | | this.prevAll('.menuTab').not(":last").each(function() { |
| | | if ($(this).hasClass('active')) { |
| | | setActiveTab(this); |
| | | } |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').remove(); |
| | | $(this).remove(); |
| | | }); |
| | | $('.page-tabs-content').animate({ marginLeft: '0px' }, "fast"); |
| | | } |
| | | }, |
| | | "close_right": { |
| | | name: "å
³éå³ä¾§", |
| | | icon: "fa-share", |
| | | callback: function(key, opt) { |
| | | setActiveTab(this); |
| | | this.nextAll('.menuTab').each(function() { |
| | | $('.RuoYi_iframe[data-id="' + $(this).data('id') + '"]').remove(); |
| | | $(this).remove(); |
| | | }); |
| | | } |
| | | }, |
| | | "close_all": { |
| | | name: "å
¨é¨å
³é", |
| | | icon: "fa-window-close", |
| | | callback: function(key, opt) { |
| | | tabCloseAll(); |
| | | } |
| | | }, |
| | | "step": "---------", |
| | | "full": { |
| | | name: "å
¨å±æ¾ç¤º", |
| | | icon: "fa-arrows-alt", |
| | | callback: function(key, opt) { |
| | | setActiveTab(this); |
| | | var target = $('.RuoYi_iframe[data-id="' + this.data('id') + '"]'); |
| | | target.fullScreen(true); |
| | | } |
| | | }, |
| | | "refresh": { |
| | | name: "å·æ°é¡µé¢", |
| | | icon: "fa-refresh", |
| | | callback: function(key, opt) { |
| | | setActiveTab(this); |
| | | var target = $('.RuoYi_iframe[data-id="' + this.data('id') + '"]'); |
| | | var url = target.attr('src'); |
| | | $.modal.loading("æ°æ®å è½½ä¸ï¼è¯·ç¨å..."); |
| | | target.attr('src', url).on('load', function() { |
| | | $.modal.closeLoading(); |
| | | }); |
| | | } |
| | | }, |
| | | "open": { |
| | | name: "æ°çªå£æå¼", |
| | | icon: "fa-link", |
| | | callback: function(key, opt) { |
| | | var target = $('.RuoYi_iframe[data-id="' + this.data('id') + '"]'); |
| | | window.open(target.attr('src')); |
| | | } |
| | | }, |
| | | } |
| | | }); |
| | | }); |
| | |
| | | <div class="left-slide"> |
| | | <div class="g-boxl1"> |
| | | |
| | | <div class="row-opt" style="margin: 25px 0 72px 0;"> |
| | | <div class="row-opt" style="padding: 30px;margin: 0 0 30px 0;"> |
| | | <div class="m-tabopt"> |
| | | <ul class="ul-listopt TAB_CLICK" id=".tab1"> |
| | | <li> |
| | | <a href="javascript:void(0)" onclick="toHome()" class="con"> |
| | | <div class="txt">åå°ç®¡ç</div> |
| | | </a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="m-contopt"> |
| | | <div class="tab1"> |
| | | <div class="m-opt1"> |
| | |
| | | timeFormate() |
| | | }, 1000); |
| | | |
| | | function toHome() { |
| | | window.location.href = "../home?bizType=sys"; |
| | | } |
| | | |
| | | //çå¬æä½ |
| | | document.addEventListener('mousemove', resetTimeout); //é¼ æ ç§»å¨ |
| | | document.addEventListener('click', resetTimeout); //é¼ æ ç¹å» |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh-cn" xmlns:th=http://www.thymeleaf.org> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>ç³»ç»ç®¡ç-欢è¿é¡µ</title> |
| | | <meta name="description" content="æºæ
§ç²®åºç»¼å管çå¹³å°"> |
| | | |
| | | <link rel="stylesheet" th:href="@{/ajax/libs/layui/css/layui.css}"/> |
| | | <link th:href="@{/dzhwk/welcome/welcome.css}" rel="stylesheet" type="text/css"> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="i-container "> |
| | | <div class="i-bodyBg"> |
| | | <img th:src="@{/img/dzhwk/welcome/wel-body_03.png}"/> |
| | | </div> |
| | | <div class="wel-main"> |
| | | <h2 class="wel-tit"> |
| | | <img th:src="@{/img/dzhwk/welcome/title-sys.png}"/> |
| | | </h2> |
| | | <div class="wel-nav"> |
| | | <div class="wel-item wel-item1"> |
| | | <span class="wel-item-img"> |
| | | <img th:src="@{/img/dzhwk/welcome/sys-depot.png}"/> |
| | | </span> |
| | | <a href="javascript:;" onclick="open1()"> |
| | | <p>ä»åºç®¡ç</p> |
| | | </a> |
| | | </div> |
| | | <div class="wel-item wel-item2"> |
| | | <span class="wel-item-img"> |
| | | <img th:src="@{/img/dzhwk/welcome/sys-grain.png}"/> |
| | | </span> |
| | | <a href="javascript:;" onclick="open2()"> |
| | | <p>ç³»ç»åæ°</p> |
| | | </a> |
| | | </div> |
| | | <div class="wel-item wel-item3"> |
| | | <span class="wel-item-img"> |
| | | <img th:src="@{/img/dzhwk/welcome/sys-device.png}"/> |
| | | </span> |
| | | <a href="javascript:;" onclick="open3()"> |
| | | <p>ä¼ä¸ç»ç»</p> |
| | | </a> |
| | | </div> |
| | | <div class="wel-item wel-item4"> |
| | | <span class="wel-item-img"> |
| | | <img th:src="@{/img/dzhwk/welcome/sys-url.png}"/> |
| | | </span> |
| | | <a href="javascript:;" onclick="open4()"> |
| | | <p>èå管ç</p> |
| | | </a> |
| | | </div> |
| | | <div class="wel-item wel-item5"> |
| | | <span class="wel-item-img"> |
| | | <img th:src="@{/img/dzhwk/welcome/sys-user.png}"/> |
| | | </span> |
| | | <a href="javascript:;" onclick="open5()"> |
| | | <p>ç¨æ·ç®¡ç</p> |
| | | </a> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--wel-main end--> |
| | | </div> |
| | | |
| | | <script type="text/javascript"> |
| | | function open1() { |
| | | // window.parent.openTab("com.ld.igds.view.Depot.d", "ä»åºç®¡ç", "Depot"); |
| | | }; |
| | | |
| | | function open2() { |
| | | // window.parent.openTab("com.ld.igds.view.SysConf.d", "ç³»ç»åæ°", "SysConf"); |
| | | }; |
| | | |
| | | function open3() { |
| | | // window.parent.openTab("com.ld.igds.sys.Dept.d", "ä¼ä¸ç»ç»ç®¡ç", "Dept"); |
| | | }; |
| | | |
| | | function open4() { |
| | | // window.parent.openTab("com.ld.igds.sys.UrlMaintain.d", "èå管ç", "UrlMaintain"); |
| | | }; |
| | | |
| | | function open5() { |
| | | // window.parent.openTab("com.ld.igds.sys.User.d", "ç¨æ·ç®¡ç", "User"); |
| | | }; |
| | | </script> |
| | | </body> |
| | | </html> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>è¥ä¾ç³»ç»é¦é¡µ</title> |
| | | <!-- é¿å
IE使ç¨å
¼å®¹æ¨¡å¼ --> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <link href="../static/favicon.ico" rel="shortcut icon"/> |
| | | <link href="../static/css/bootstrap.min.css" rel="stylesheet"/> |
| | | <link href="../static/css/jquery.contextMenu.min.css" rel="stylesheet"/> |
| | | <link href="../static/css/font-awesome.min.css" rel="stylesheet"/> |
| | | <link href="../static/css/animate.min.css" rel="stylesheet"/> |
| | | <link href="../static/css/style.min.css" rel="stylesheet"/> |
| | | <link href="../static/css/skins.css" rel="stylesheet"/> |
| | | <link href="../static/ruoyi/css/ry-ui.css?v=4.7.8" rel="stylesheet"/> |
| | | </head> |
| | | <body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden"> |
| | | <div id="wrapper"> |
| | | |
| | | <!--左侧导èªå¼å§--> |
| | | <nav class="navbar-default navbar-static-side" role="navigation"> |
| | | <div class="nav-close"> |
| | | <i class="fa fa-times-circle"></i> |
| | | </div> |
| | | <a th:href="./home-static.html"> |
| | | <li class="logo hidden-xs"> |
| | | <span class="logo-lg">飿£è´è¿è¿ç»´ç³»ç»</span> |
| | | </li> |
| | | </a> |
| | | <div class="sidebar-collapse"> |
| | | <ul class="nav" id="side-menu"> |
| | | <li> |
| | | <div class="user-panel"> |
| | | <a class="menuItem noactive" title="个人ä¸å¿" href="./home-static.html"> |
| | | <div class="hide" th:text="个人ä¸å¿"></div> |
| | | <div class="pull-left image"> |
| | | <img src="../static/img/profile.jpg" class="img-circle" alt="User Image"> |
| | | </div> |
| | | </a> |
| | | <div class="pull-left info"> |
| | | <p>管çå</p> |
| | | <a href="javascript:;"><i class="fa fa-circle text-success"></i> å¨çº¿</a> |
| | | <a href="./home-static.html" style="padding-left:5px;"><i |
| | | class="fa fa-sign-out text-danger"></i> 注é</a> |
| | | </div> |
| | | </div> |
| | | </li> |
| | | |
| | | <!--é¦é¡µèå---> |
| | | <li> |
| | | <a class="menuItem" href="./demo/form/button.html"><i class="fa fa-home"></i> <span |
| | | class="nav-label">é¦é¡µ</span> </a> |
| | | </li> |
| | | |
| | | |
| | | <!--1å2级èå---> |
| | | <li> |
| | | <a href="#" data-refresh="false"> |
| | | <i class="fa fa-bar-chart-o" class="fa fa-home"></i> |
| | | <span class="nav-label">ä¸çº§èå</span> |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | |
| | | |
| | | <li> |
| | | <a href="#" data-refresh="false"> |
| | | <i class="fa fa-bar-chart-o" class="fa fa-home"></i> |
| | | <span class="nav-label">ä¸çº§èå</span> |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | <a class="menuItem" href="./demo/form/button.html" data-refresh="false">äºçº§èå</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | |
| | | <!--1å2级3级èå---> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-desktop"></i><span class="nav-label">å«ä¸çº§èå</span><span |
| | | class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a>表å<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" href="./demo/form/button.html">æé®</a></li> |
| | | <li><a class="menuItem" href="./demo/form/grid.html">æ
æ ¼</a></li> |
| | | <li><a class="menuItem" href="./demo/form/select.html">䏿æ¡</a></li> |
| | | <li><a class="menuItem" href="./demo/form/timeline.html">æ¶é´è½´</a></li> |
| | | <li><a class="menuItem" href="./demo/form/progress_bars.html">è¿åº¦æ¡</a></li> |
| | | <li><a class="menuItem" href="./demo/form/basic.html">åºæ¬è¡¨å</a></li> |
| | | <li><a class="menuItem" href="./demo/form/cards.html">å¡çå表</a></li> |
| | | <li><a class="menuItem" href="./demo/form/jasny.html">åè½æ©å±</a></li> |
| | | <li><a class="menuItem" href="./demo/form/sortable.html">æå¨æåº</a></li> |
| | | <li><a class="menuItem" href="./demo/form/invoice.html">åæ®æå°</a></li> |
| | | <li><a class="menuItem" href="./demo/form/labels_tips.html">æ ç¾ & æç¤º</a></li> |
| | | <li><a class="menuItem" href="./demo/form/tabs_panels.html">éé¡¹å¡ & 颿¿</a></li> |
| | | <li><a class="menuItem" href="./demo/form/validate.html">è¡¨åæ ¡éª</a></li> |
| | | <li><a class="menuItem" href="./demo/form/wizard.html">表åå导</a></li> |
| | | <li><a class="menuItem" href="./demo/form/upload.html">æä»¶ä¸ä¼ </a></li> |
| | | <li><a class="menuItem" href="./demo/form/datetime.html">æ¥æåæ¶é´</a></li> |
| | | <li><a class="menuItem" href="./demo/form/summernote.html">坿æ¬ç¼è¾å¨</a></li> |
| | | <li><a class="menuItem" href="./demo/form/duallistbox.html">å·¦å³äºéç»ä»¶</a></li> |
| | | <li><a class="menuItem" href="./demo/form/autocomplete.html">æç´¢èªå¨è¡¥å
¨</a></li> |
| | | <li><a class="menuItem" href="./demo/form/cxselect.html">å¤çº§èå¨ä¸æ</a></li> |
| | | <li><a class="menuItem" href="./demo/form/localrefresh.html">Ajaxå±é¨å·æ°</a></li> |
| | | </ul> |
| | | </li> |
| | | <li><a>è¡¨æ ¼<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" th:href="@{/demo/table/search}">æ¥è¯¢æ¡ä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/footer}">æ°æ®æ±æ»</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/groupHeader}">ç»å表头</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/export}">è¡¨æ ¼å¯¼åº</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/exportSelected}">导åºéæ©å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/remember}">翻页记ä½éæ©</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/pageGo}">è·³è½¬è³æå®é¡µ</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/params}">èªå®ä¹æ¥è¯¢åæ°</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/multi}">åå§å¤è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/button}">ç¹å»æé®å è½½è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/data}">ç´æ¥å è½½è¡¨æ ¼æ°æ®</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/fixedColumns}">è¡¨æ ¼å»ç»å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/event}">èªå®ä¹è§¦åäºä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/headerStyle}">è¡¨æ ¼æ 颿 ¼å¼å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/detail}">è¡¨æ ¼ç»èè§å¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/child}">è¡¨æ ¼ç¶åè§å¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/image}">è¡¨æ ¼å¾çé¢è§</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/curd}">卿å¢å æ¹æ¥</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/reorderRows}">è¡¨æ ¼è¡ææ½æä½</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/reorderColumns}">è¡¨æ ¼åææ½æä½</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/resizable}">è¡¨æ ¼å宽æå¨</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/editable}">è¡¨æ ¼è¡å
ç¼è¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/subdata}">主å表æäº¤</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/refresh}">è¡¨æ ¼èªå¨å·æ°</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/print}">è¡¨æ ¼æå°é
ç½®</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/dynamicColumns}">è¡¨æ ¼å¨æå</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/customView}">èªå®ä¹è§å¾å页</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/asynTree}">弿¥å è½½è¡¨æ ¼æ </a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/other}">è¡¨æ ¼å
¶ä»æä½</a></li> |
| | | </ul> |
| | | </li> |
| | | <li><a>å¼¹æ¡<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/dialog}">模æçªå£</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/layer}">å¼¹å±ç»ä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/table}">å¼¹å±è¡¨æ ¼</a></li> |
| | | </ul> |
| | | </li> |
| | | <li><a>æä½<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" th:href="@{/demo/operate/table}">è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/operate/other}">å
¶ä»</a></li> |
| | | </ul> |
| | | </li> |
| | | <li><a>æ¥è¡¨<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" th:href="@{/demo/report/echarts}">ç¾åº¦ECharts</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/peity}">peity</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/sparkline}">sparkline</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/metrics}">å¾è¡¨ç»å</a></li> |
| | | </ul> |
| | | </li> |
| | | <li><a>徿 <span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li><a class="menuItem" th:href="@{/demo/icon/fontawesome}">Font Awesome</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/icon/glyphicons}">Glyphicons</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-sitemap"></i>åå±èå<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level collapse"> |
| | | <li> |
| | | <a href="javascript:;" id="damian">ä¸çº§èå1<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level"> |
| | | <li> |
| | | <a href="javascript:;">å级èå1</a> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;">å级èå2</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | <li><a href="javascript:;">ä¸çº§èå2</a></li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </nav> |
| | | <!--左侧导èªç»æ--> |
| | | |
| | | <!--å³ä¾§é¨åå¼å§--> |
| | | <div id="page-wrapper" class="gray-bg dashbard-1"> |
| | | <div class="row border-bottom"> |
| | | <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0"> |
| | | <div class="navbar-header"> |
| | | <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="javascript:;" title="æ¶èµ·èå"> |
| | | <i class="fa fa-bars"></i> |
| | | </a> |
| | | </div> |
| | | <ul class="nav navbar-top-links navbar-right welcome-message"> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å¼åææ¡£" |
| | | href="http://doc.ruoyi.vip/ruoyi" target="_blank"><i class="fa fa-question-circle"></i> |
| | | ææ¡£</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="éå®å±å¹" |
| | | href="javascript:;" id="lockScreen"><i class="fa fa-lock"></i> éå±</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å
¨å±æ¾ç¤º" |
| | | href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> å
¨å±</a></li> |
| | | <li class="dropdown user-menu"> |
| | | <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown"> |
| | | <img src="../static/img/profile.jpg" class="user-image"> |
| | | <span class="hidden-xs">管çå</span> |
| | | </a> |
| | | <ul class="dropdown-menu"> |
| | | <li class="mt5"> |
| | | <a th:href="./home-static.html" class="menuItem noactive"> |
| | | <i class="fa fa-user"></i> 个人ä¸å¿</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="resetPwd()"> |
| | | <i class="fa fa-key"></i> ä¿®æ¹å¯ç </a> |
| | | </li> |
| | | <li> |
| | | <a onclick="switchSkin()"> |
| | | <i class="fa fa-dashboard"></i> 忢䏻é¢</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="toggleMenu()"> |
| | | <i class="fa fa-toggle-off"></i> 横åèå</a> |
| | | </li> |
| | | <li class="divider"></li> |
| | | <li> |
| | | <a th:href="@{logout}"> |
| | | <i class="fa fa-sign-out"></i> éåºç»å½</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </nav> |
| | | </div> |
| | | <div class="row content-tabs" classappend="|hide|"> |
| | | <button class="roll-nav roll-left tabLeft"> |
| | | <i class="fa fa-backward"></i> |
| | | </button> |
| | | <nav class="page-tabs menuTabs"> |
| | | <div class="page-tabs-content"> |
| | | <a href="javascript:;" class="active menuTab" data-id="http://www.fzzygf.com">é¦é¡µ</a> |
| | | </div> |
| | | </nav> |
| | | <button class="roll-nav roll-right tabRight"> |
| | | <i class="fa fa-forward"></i> |
| | | </button> |
| | | <a href="javascript:void(0);" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> å·æ°</a> |
| | | </div> |
| | | |
| | | <a id="ax_close_max" class="ax_close_max" href="javascript:;" title="å
³éå
¨å±"> <i class="fa fa-times-circle-o"></i> |
| | | </a> |
| | | |
| | | <div class="row mainContent" id="content-main" classappend="mainClass"> |
| | | <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" data-id="http://www.fzzygf.com" |
| | | src="http://www.fzzygf.com" frameborder="0" seamless></iframe> |
| | | </div> |
| | | |
| | | <div class="footer"> |
| | | <div class="pull-right">© [2023 飿£è´è¿è¡ä»½] FZZY Copyright</div> |
| | | </div> |
| | | </div> |
| | | <!--å³ä¾§é¨åç»æ--> |
| | | </div> |
| | | <!-- å
¨å±js --> |
| | | <script src="../static/js/jquery.min.js"></script> |
| | | <script src="../static/js/bootstrap.min.js"></script> |
| | | <script src="../static/js/plugins/metisMenu/jquery.metisMenu.js"></script> |
| | | <script src="../static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script> |
| | | <script src="../static/js/jquery.contextMenu.min.js"></script> |
| | | <script src="../static/ajax/libs/blockUI/jquery.blockUI.js"></script> |
| | | <script src="../static/ajax/libs/layer-ruoyi/layer.min.js"></script> |
| | | <script src="../static/ruoyi/js/ry-ui.js?v=4.7.8"></script> |
| | | <script src="../static/ruoyi/js/common.js?v=4.7.8"></script> |
| | | <script src="../static/ruoyi/home.js?v=20201208"></script> |
| | | <script src="../static/ajax/libs/fullscreen/jquery.fullscreen.js"></script> |
| | | <script inline="javascript"> |
| | | window.history.forward(1); |
| | | var ctx ="./"; |
| | | var lockscreen = "lockscreen"; |
| | | if (lockscreen) { |
| | | window.top.location = ctx + "lockscreen"; |
| | | } |
| | | // ç®è¤ç¼å |
| | | var skin = storage.get("skin"); |
| | | // historyï¼è¡¨ç¤ºå»æå°åç#ï¼å¦åå°å以"#"å½¢å¼å±ç¤º |
| | | var mode = "history"; |
| | | // åå²è®¿é®è·¯å¾ç¼å |
| | | var historyPath = storage.get("historyPath"); |
| | | // æ¯å¦é¡µç¾ä¸èåèå¨ |
| | | var isLinkage = true; |
| | | // æ¯å¦é¡µç¾åæ¢æ»å¨å°é¡¶é¨ |
| | | var isScrollToTop = true; |
| | | |
| | | // æ¬å°ä¸»é¢ä¼å
ï¼æªè®¾ç½®åç³»ç»é
ç½® |
| | | if ($.common.isNotEmpty(skin)) { |
| | | $("body").addClass(skin.split('|')[0]); |
| | | $("body").addClass(skin.split('|')[1]); |
| | | } else { |
| | | $("body").addClass([[${sideTheme}]]); |
| | | $("body").addClass([[${skinName}]]); |
| | | } |
| | | |
| | | /* ç¨æ·ç®¡ç-éç½®å¯ç */ |
| | | function resetPwd() { |
| | | var url = ctx + 'system/user/profile/resetPwd'; |
| | | $.modal.open("éç½®å¯ç ", url, '770', '380'); |
| | | } |
| | | |
| | | /* åæ¢ä¸»é¢ */ |
| | | function switchSkin() { |
| | | layer.open({ |
| | | type: 2, |
| | | shadeClose: true, |
| | | title: "忢䏻é¢", |
| | | area: ["530px", "386px"], |
| | | content: [ctx + "system/switchSkin", 'no'] |
| | | }) |
| | | } |
| | | |
| | | /* 忢èå */ |
| | | function toggleMenu() { |
| | | $.modal.confirm("确认è¦åæ¢ææ¨ªåèååï¼", function () { |
| | | $.get(ctx + 'system/menuStyle/topnav', function (result) { |
| | | window.location.reload(); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | /** å·æ°æ¶è®¿é®è·¯å¾é¡µç¾ */ |
| | | function applyPath(url) { |
| | | $('a[href$="' + decodeURI(url) + '"]').click(); |
| | | if (!$('a[href$="' + url + '"]').hasClass("noactive")) { |
| | | $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in"); |
| | | } |
| | | } |
| | | |
| | | $(function () { |
| | | var lockPath = storage.get('lockPath'); |
| | | if ($.common.equals("history", mode) && window.performance.navigation.type == 1) { |
| | | var url = storage.get('publicPath'); |
| | | if ($.common.isNotEmpty(url)) { |
| | | applyPath(url); |
| | | } |
| | | } else if ($.common.isNotEmpty(lockPath)) { |
| | | applyPath(lockPath); |
| | | storage.remove('lockPath'); |
| | | } else { |
| | | var hash = location.hash; |
| | | if ($.common.isNotEmpty(hash)) { |
| | | var url = hash.substring(1, hash.length); |
| | | applyPath(url); |
| | | } else { |
| | | if ($.common.equals("history", mode)) { |
| | | storage.set('publicPath', ""); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /* åå§å¯ç æç¤º */ |
| | | if ([[${isDefaultModifyPwd}]]) { |
| | | layer.confirm("æ¨çå¯ç è¿æ¯åå§å¯ç ï¼è¯·ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认', 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | /* è¿æå¯ç æç¤º */ |
| | | if ([[${isPasswordExpired}]]) { |
| | | layer.confirm("æ¨çå¯ç å·²è¿æï¼è¯·å°½å¿«ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认', 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | $("[data-toggle='tooltip']").tooltip(); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>è¥ä¾ç³»ç»é¦é¡µ</title> |
| | | <!-- é¿å
IE使ç¨å
¼å®¹æ¨¡å¼ --> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <link th:href="@{favicon.ico}" rel="shortcut icon"/> |
| | | <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/jquery.contextMenu.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/animate.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/style.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/skins.css?v=20200902}" rel="stylesheet"/> |
| | | <link th:href="@{/ruoyi/css/ry-ui.css?v=4.7.8}" rel="stylesheet"/> |
| | | <style type="text/css">.fixed-sidebar .nav:not(.navbar-toolbar)>li.active{border-left:0px!important;}</style> |
| | | </head> |
| | | <body class="fixed-sidebar full-height-layout gray-bg" th:classappend="${isMobile} ? 'canvas-menu'" style="overflow: hidden"> |
| | | <div id="wrapper"> |
| | | |
| | | <!--左侧导èªå¼å§--> |
| | | <nav class="navbar-default navbar-static-side" role="navigation"> |
| | | <div class="nav-close"> |
| | | <i class="fa fa-times-circle"></i> |
| | | </div> |
| | | <a th:href="@{/index}"> |
| | | <li class="logo hidden-xs"> |
| | | <span class="logo-lg">RuoYi</span> |
| | | </li> |
| | | </a> |
| | | <div class="sidebar-collapse tab-content" id="side-menu"> |
| | | <div class="user-panel"> |
| | | <a class="menuItem noactive" title="个人ä¸å¿" th:href="@{/system/user/profile}"> |
| | | <div class="hide" th:text="个人ä¸å¿"></div> |
| | | <div class="pull-left image"> |
| | | <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" th:onerror="this.src='img/profile.jpg'" class="img-circle" alt="User Image"> |
| | | </div> |
| | | </a> |
| | | <div class="pull-left info"> |
| | | <p>[[${user.loginName}]]</p> |
| | | <a href="javascript:;"><i class="fa fa-circle text-success"></i> å¨çº¿</a> |
| | | <a th:href="@{logout}" style="padding-left:5px;"><i class="fa fa-sign-out text-danger"></i> 注é</a> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 左侧èå --> |
| | | <th:block th:each="menu : ${menus}"> |
| | | <div class="tab-pane fade height-full" th:id="|menu_${menu.menuId}|"> |
| | | <ul class="nav"> |
| | | <li th:each="cmenu : ${menu.children}"> |
| | | <a class="menu-content" th:if="${#lists.isEmpty(cmenu.children)}" th:href="@{${cmenu.url}}" th:classappend="${#strings.isEmpty(cmenu.target)} ? |menuItem| : ${cmenu.target}" th:data-refresh="${cmenu.isRefresh == '0'}"> |
| | | <i th:class="${cmenu.icon} + ' fa-fw'"></i> <span class="nav-label">[[${cmenu.menuName}]]</span> |
| | | </a> |
| | | <a class="menu-content" th:if="${not #lists.isEmpty(cmenu.children)}" href="javascript:;"> |
| | | <i th:class="${cmenu.icon} + ' fa-fw'"></i> |
| | | <span class="nav-label">[[${cmenu.menuName}]]</span> |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul th:if="${not #lists.isEmpty(cmenu.children)}" class="nav nav-second-level collapse"> |
| | | <li th:each="emenu : ${cmenu.children}"> |
| | | <a th:if="${#lists.isEmpty(emenu.children)}" th:href="@{${emenu.url}}" th:class="${#strings.isEmpty(emenu.target)} ? |menuItem| : ${emenu.target}" th:data-refresh="${emenu.isRefresh == '0'}"> |
| | | <i th:class="${emenu.icon} + ' fa-fw'"></i> |
| | | [[${emenu.menuName}]] |
| | | </a> |
| | | <a th:if="${not #lists.isEmpty(emenu.children)}" href="javascript:;"> |
| | | <i th:class="${emenu.icon} + ' fa-fw'"></i> |
| | | [[${emenu.menuName}]] |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul th:if="${not #lists.isEmpty(emenu.children)}" class="nav nav-third-level collapse"> |
| | | <li th:each="fmenu : ${emenu.children}"><a th:if="${#lists.isEmpty(fmenu.children)}" th:class="${#strings.isEmpty(fmenu.target)} ? |menuItem| : ${fmenu.target}" th:href="@{${fmenu.url}}" th:data-refresh="${fmenu.isRefresh == '0'}">[[${fmenu.menuName}]]</a></li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </th:block> |
| | | |
| | | <!-- é¦é¡µèå --> |
| | | <div class="tab-pane fade height-full" id="index"> |
| | | <ul class="nav"> |
| | | <li> |
| | | <a class="menuItem" th:href="@{/system/main}"> |
| | | <i class="fa fa-home"></i> <span class="nav-label">é¦é¡µ</span></a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | |
| | | <!-- å®ä¾æ¼ç¤ºèå --> |
| | | <div class="tab-pane fade height-full" id="demo" th:if="${demoEnabled}"> |
| | | <ul class="nav"> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-edit"></i> <span class="nav-label">表å</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/form/button}">æé®</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/grid}">æ
æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/select}">䏿æ¡</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/timeline}">æ¶é´è½´</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/progress_bars}">è¿åº¦æ¡</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/basic}">åºæ¬è¡¨å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/cards}">å¡çå表</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/jasny}">åè½æ©å±</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/sortable}">æå¨æåº</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/invoice}">åæ®æå°</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/labels_tips}">æ ç¾ & æç¤º</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/tabs_panels}">éé¡¹å¡ & 颿¿</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/validate}">è¡¨åæ ¡éª</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/wizard}">表åå导</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/upload}">æä»¶ä¸ä¼ </a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/datetime}">æ¥æåæ¶é´</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/summernote}">坿æ¬ç¼è¾å¨</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/duallistbox}">å·¦å³äºéç»ä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/autocomplete}">æç´¢èªå¨è¡¥å
¨</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/cxselect}">å¤çº§èå¨ä¸æ</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/form/localrefresh}">Ajaxå±é¨å·æ°</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-table"></i> <span class="nav-label">è¡¨æ ¼</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/table/search}">æ¥è¯¢æ¡ä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/footer}">æ°æ®æ±æ»</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/groupHeader}">ç»å表头</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/export}">è¡¨æ ¼å¯¼åº</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/exportSelected}">导åºéæ©å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/remember}">翻页记ä½éæ©</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/pageGo}">è·³è½¬è³æå®é¡µ</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/params}">èªå®ä¹æ¥è¯¢åæ°</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/multi}">åå§å¤è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/button}">ç¹å»æé®å è½½è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/data}">ç´æ¥å è½½è¡¨æ ¼æ°æ®</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/fixedColumns}">è¡¨æ ¼å»ç»å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/event}">èªå®ä¹è§¦åäºä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/headerStyle}">è¡¨æ ¼æ 颿 ¼å¼å</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/detail}">è¡¨æ ¼ç»èè§å¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/child}">è¡¨æ ¼ç¶åè§å¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/image}">è¡¨æ ¼å¾çé¢è§</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/curd}">卿å¢å æ¹æ¥</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/reorderRows}">è¡¨æ ¼è¡ææ½æä½</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/reorderColumns}">è¡¨æ ¼åææ½æä½</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/resizable}">è¡¨æ ¼å宽æå¨</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/editable}">è¡¨æ ¼è¡å
ç¼è¾</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/subdata}">主å表æäº¤</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/refresh}">è¡¨æ ¼èªå¨å·æ°</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/print}">è¡¨æ ¼æå°é
ç½®</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/dynamicColumns}">è¡¨æ ¼å¨æå</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/customView}">èªå®ä¹è§å¾å页</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/asynTree}">弿¥å è½½è¡¨æ ¼æ </a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/table/other}">è¡¨æ ¼å
¶ä»æä½</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-flask"></i> <span class="nav-label">å¼¹æ¡</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/dialog}">模æçªå£</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/layer}">å¼¹å±ç»ä»¶</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/modal/table}">å¼¹å±è¡¨æ ¼</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-wpforms"></i> <span class="nav-label">æä½</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/operate/table}">è¡¨æ ¼</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/operate/other}">å
¶ä»</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">æ¥è¡¨</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/report/echarts}">ç¾åº¦ECharts</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/peity}">peity</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/sparkline}">sparkline</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/report/metrics}">å¾è¡¨ç»å</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-book"></i> <span class="nav-label">徿 </span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li><a class="menuItem" th:href="@{/demo/icon/fontawesome}">Font Awesome</a></li> |
| | | <li><a class="menuItem" th:href="@{/demo/icon/glyphicons}">Glyphicons</a></li> |
| | | </ul> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;"><i class="fa fa-navicon"></i> <span class="nav-label">åå±èå</span><span class="fa arrow"></span></a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li> |
| | | <a href="javascript:;" id="damian">ä¸çº§èå1<span class="fa arrow"></span></a> |
| | | <ul class="nav nav-third-level collapse"> |
| | | <li> |
| | | <a href="javascript:;">å级èå1</a> |
| | | </li> |
| | | <li> |
| | | <a href="javascript:;">å级èå2</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | <li><a href="javascript:;">ä¸çº§èå2</a></li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | </nav> |
| | | <!--左侧导èªç»æ--> |
| | | |
| | | <!--å³ä¾§é¨åå¼å§--> |
| | | <div id="page-wrapper" class="gray-bg dashbard-1"> |
| | | <div class="row border-bottom"> |
| | | <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0"> |
| | | <div class="navbar-header"> |
| | | <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="javascript:;" title="æ¶èµ·èå"> |
| | | <i class="fa fa-bars"></i> |
| | | </a> |
| | | </div> |
| | | <!-- 顶鍿 --> |
| | | <div id="navMenu"> |
| | | <ul class="nav navbar-toolbar nav-tabs navbar-left hidden-xs"> |
| | | |
| | | <!-- é¡¶é¨èåå表 --> |
| | | <th:block th:each="menu : ${menus}"> |
| | | <li role="presentation" th:id="|tab_${menu.menuId}|"> |
| | | <a th:if="${#lists.isEmpty(menu.children)}" data-toggle="tab" th:class="@{${!#strings.isEmpty(menu.target) && menu.target == 'menuBlank'} ? 'menuBlank' : 'menuItem noactive'}" th:href="@{${menu.url}}"> |
| | | <i th:class="${menu.icon}"></i> <span>[[${menu.menuName}]]</span> |
| | | </a> |
| | | <a th:if="${not #lists.isEmpty(menu.children)}" data-toggle="tab" th:class="@{${!#strings.isEmpty(menu.target) && menu.target == 'menuBlank'} ? 'menuBlank'}" th:href="@{${!#strings.isEmpty(menu.target) && menu.target == 'menuBlank'} ? @{${menu.url}} : |#menu_${menu.menuId}|}"> |
| | | <i th:class="${menu.icon}"></i> <span>[[${menu.menuName}]]</span> |
| | | </a> |
| | | </li> |
| | | </th:block> |
| | | |
| | | <li role="presentation" id="tab_index"> |
| | | <a data-toggle="tab" href="#index"> |
| | | <i class="fa fa-area-chart"></i> <span>ç»è®¡æ¥è¡¨</span> |
| | | </a> |
| | | </li> |
| | | |
| | | <li role="presentation" id="tab_demo" th:if="${demoEnabled}"> |
| | | <a data-toggle="tab" href="#demo"> |
| | | <i class="fa fa-desktop"></i> <span>å®ä¾æ¼ç¤º</span> |
| | | </a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <!-- å³ä¾§æ --> |
| | | <ul class="nav navbar-top-links navbar-right welcome-message"> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å¼åææ¡£" href="http://doc.ruoyi.vip/ruoyi" target="_blank"><i class="fa fa-question-circle"></i> ææ¡£</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="éå®å±å¹" href="javascript:;" id="lockScreen"><i class="fa fa-lock"></i> éå±</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å
¨å±æ¾ç¤º" href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> å
¨å±</a></li> |
| | | |
| | | <li class="dropdown user-menu"> |
| | | <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown"> |
| | | <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" th:onerror="this.src='img/profile.jpg'" class="user-image"> |
| | | <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span> |
| | | </a> |
| | | <ul class="dropdown-menu"> |
| | | <li class="mt5"> |
| | | <a th:href="@{/system/user/profile}" class="menuItem noactive"> |
| | | <i class="fa fa-user"></i> 个人ä¸å¿</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="resetPwd()"> |
| | | <i class="fa fa-key"></i> ä¿®æ¹å¯ç </a> |
| | | </li> |
| | | <li> |
| | | <a onclick="switchSkin()"> |
| | | <i class="fa fa-dashboard"></i> 忢䏻é¢</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="toggleMenu()"> |
| | | <i class="fa fa-toggle-off"></i> 左侧èå</a> |
| | | </li> |
| | | <li class="divider"></li> |
| | | <li> |
| | | <a th:href="@{logout}"> |
| | | <i class="fa fa-sign-out"></i> éåºç»å½</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </nav> |
| | | </div> |
| | | <div class="row content-tabs" th:classappend="${#bools.isFalse(tagsView)} ? |hide|"> |
| | | <button class="roll-nav roll-left tabLeft"> |
| | | <i class="fa fa-backward"></i> |
| | | </button> |
| | | <nav class="page-tabs menuTabs"> |
| | | <div class="page-tabs-content"> |
| | | <a href="javascript:;" class="active menuTab" th:data-id="@{/system/main}">é¦é¡µ</a> |
| | | </div> |
| | | </nav> |
| | | <button class="roll-nav roll-right tabRight"> |
| | | <i class="fa fa-forward"></i> |
| | | </button> |
| | | <a href="javascript:void(0);" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> å·æ°</a> |
| | | </div> |
| | | |
| | | <a id="ax_close_max" class="ax_close_max" href="javascript:;" title="å
³éå
¨å±"> <i class="fa fa-times-circle-o"></i> </a> |
| | | |
| | | <div class="row mainContent" id="content-main" th:classappend="${mainClass}"> |
| | | <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" th:data-id="@{/system/main}" |
| | | th:src="@{/system/main}" frameborder="0" seamless></iframe> |
| | | </div> |
| | | |
| | | <div th:if="${footer}" class="footer"> |
| | | <div class="pull-right">© [[${copyrightYear}]] RuoYi Copyright </div> |
| | | </div> |
| | | </div> |
| | | <!--å³ä¾§é¨åç»æ--> |
| | | </div> |
| | | <!-- å
¨å±js --> |
| | | <script th:src="@{/js/jquery.min.js}"></script> |
| | | <script th:src="@{/js/bootstrap.min.js}"></script> |
| | | <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script> |
| | | <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script> |
| | | <script th:src="@{/js/jquery.contextMenu.min.js}"></script> |
| | | <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script> |
| | | <script th:src="@{/ajax/libs/layer-ruoyi/layer.min.js}"></script> |
| | | <script th:src="@{/ruoyi/js/ry-ui.js?v=4.7.8}"></script> |
| | | <script th:src="@{/ruoyi/js/common.js?v=4.7.8}"></script> |
| | | <script th:src="@{/ruoyi/home.js?v=20201208}"></script> |
| | | <script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script> |
| | | <script th:src="@{/js/resize-tabs.js}"></script> |
| | | <script th:inline="javascript"> |
| | | window.history.forward(1); |
| | | var ctx = [[@{/}]]; |
| | | var lockscreen = [[${session.lockscreen}]]; |
| | | if(lockscreen){window.top.location=ctx+"lockscreen";} |
| | | // ç®è¤ç¼å |
| | | var skin = storage.get("skin"); |
| | | // historyï¼è¡¨ç¤ºå»æå°åç#ï¼å¦åå°å以"#"å½¢å¼å±ç¤º |
| | | var mode = "history"; |
| | | // åå²è®¿é®è·¯å¾ç¼å |
| | | var historyPath = storage.get("historyPath"); |
| | | // æ¯å¦é¡µç¾ä¸èåèå¨ |
| | | var isLinkage = true; |
| | | // æ¯å¦é¡µç¾åæ¢æ»å¨å°é¡¶é¨ |
| | | var isScrollToTop = true; |
| | | |
| | | // æ¬å°ä¸»é¢ä¼å
ï¼æªè®¾ç½®åç³»ç»é
ç½® |
| | | if($.common.isNotEmpty(skin)){ |
| | | $("body").addClass(skin.split('|')[0]); |
| | | $("body").addClass(skin.split('|')[1]); |
| | | } else { |
| | | $("body").addClass([[${sideTheme}]]); |
| | | $("body").addClass([[${skinName}]]); |
| | | } |
| | | |
| | | /* ç¨æ·ç®¡ç-éç½®å¯ç */ |
| | | function resetPwd() { |
| | | var url = ctx + 'system/user/profile/resetPwd'; |
| | | $.modal.open("éç½®å¯ç ", url, '770', '380'); |
| | | } |
| | | /* åæ¢ä¸»é¢ */ |
| | | function switchSkin() { |
| | | layer.open({ |
| | | type : 2, |
| | | shadeClose : true, |
| | | title : "忢䏻é¢", |
| | | area : ["530px", "386px"], |
| | | content : [ctx + "system/switchSkin", 'no'] |
| | | }) |
| | | } |
| | | |
| | | /* 忢èå */ |
| | | function toggleMenu() { |
| | | $.modal.confirm("确认è¦åæ¢æå·¦ä¾§èååï¼", function() { |
| | | $.get(ctx + 'system/menuStyle/default', function(result) { |
| | | window.location.reload(); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | /** å·æ°æ¶è®¿é®è·¯å¾é¡µç¾ */ |
| | | function applyPath(url) { |
| | | var $dataObj = $('a[href$="' + decodeURI(url) + '"]'); |
| | | $dataObj.click(); |
| | | if (!$dataObj.hasClass("noactive")) { |
| | | $dataObj.parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in"); |
| | | } |
| | | // é¡¶é¨èå忥å¤ç |
| | | var tabStr = $dataObj.parents(".tab-pane").attr("id"); |
| | | if ($.common.isNotEmpty(tabStr)) { |
| | | var sepIndex = tabStr.lastIndexOf('_'); |
| | | var menuId = tabStr.substring(sepIndex + 1, tabStr.length); |
| | | $("#tab_" + menuId + " a").click(); |
| | | } |
| | | } |
| | | |
| | | $(function() { |
| | | var lockPath = storage.get('lockPath'); |
| | | if($.common.equals("history", mode) && window.performance.navigation.type == 1) { |
| | | var url = storage.get('publicPath'); |
| | | if ($.common.isNotEmpty(url)) { |
| | | applyPath(url); |
| | | } else { |
| | | $(".navbar-toolbar li a").eq(0).click(); |
| | | } |
| | | } else if($.common.isNotEmpty(lockPath)) { |
| | | applyPath(lockPath); |
| | | storage.remove('lockPath'); |
| | | } else { |
| | | var hash = location.hash; |
| | | if ($.common.isNotEmpty(hash)) { |
| | | var url = hash.substring(1, hash.length); |
| | | applyPath(url); |
| | | } else { |
| | | if($.common.equals("history", mode)) { |
| | | storage.set('publicPath', ""); |
| | | } |
| | | $(".navbar-toolbar li a").eq(0).click(); |
| | | } |
| | | } |
| | | |
| | | /* åå§å¯ç æç¤º */ |
| | | if([[${isDefaultModifyPwd}]]) { |
| | | layer.confirm("æ¨çå¯ç è¿æ¯åå§å¯ç ï¼è¯·ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认' , 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | /* è¿æå¯ç æç¤º */ |
| | | if([[${isPasswordExpired}]]) { |
| | | layer.confirm("æ¨çå¯ç å·²è¿æï¼è¯·å°½å¿«ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认' , 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | $("[data-toggle='tooltip']").tooltip(); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="zh" xmlns:th="http://www.thymeleaf.org"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <meta name="renderer" content="webkit"> |
| | | <title>æºæ
§ç²®åºç»¼å管çå¹³å°</title> |
| | | <!-- é¿å
IE使ç¨å
¼å®¹æ¨¡å¼ --> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <link th:href="@{favicon.ico}" rel="shortcut icon"/> |
| | | <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/jquery.contextMenu.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/animate.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/style.min.css}" rel="stylesheet"/> |
| | | <link th:href="@{/css/skins.css}" rel="stylesheet"/> |
| | | <link th:href="@{/ruoyi/css/ry-ui.css?v=4.7.8}" rel="stylesheet"/> |
| | | </head> |
| | | <body class="fixed-sidebar full-height-layout gray-bg" th:classappend="${isMobile} ? 'canvas-menu'" |
| | | style="overflow: hidden"> |
| | | <div id="wrapper"> |
| | | |
| | | <!--左侧导èªå¼å§--> |
| | | <nav class="navbar-default navbar-static-side" role="navigation"> |
| | | <div class="nav-close"> |
| | | <i class="fa fa-times-circle"></i> |
| | | </div> |
| | | <a th:href="@{/dzhwk/index}"> |
| | | <li class="logo hidden-xs"> |
| | | <span class="logo-lg">çµåè´§ä½å¡ç³»ç»</span> |
| | | </li> |
| | | </a> |
| | | <div class="sidebar-collapse"> |
| | | <ul class="nav" id="side-menu"> |
| | | <li> |
| | | <div class="user-panel"> |
| | | <a class="menuItem noactive" title="个人ä¸å¿" th:href="@{/system/user/profile}"> |
| | | <div class="hide" th:text="个人ä¸å¿"></div> |
| | | <div class="pull-left image"> |
| | | <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" |
| | | th:onerror="this.src='img/profile.jpg'" class="img-circle" alt="User Image"> |
| | | </div> |
| | | </a> |
| | | <div class="pull-left info"> |
| | | <p>[[${user.loginName}]]</p> |
| | | <a href="javascript:;"><i class="fa fa-circle text-success"></i> å¨çº¿</a> |
| | | <a th:href="@{logout}" style="padding-left:5px;"><i class="fa fa-sign-out text-danger"></i> |
| | | 注é</a> |
| | | </div> |
| | | </div> |
| | | </li> |
| | | <li th:each="menu : ${menus}"> |
| | | <a th:class="@{${!#strings.isEmpty(menu.url) && menu.url != '#'} ? ${menu.target}}" |
| | | th:href="@{${#strings.isEmpty(menu.url)} ? |#| : ${menu.url}}" |
| | | th:data-refresh="${menu.isRefresh == '0'}"> |
| | | <i class="fa fa-bar-chart-o" th:class="${menu.icon}"></i> |
| | | <span class="nav-label" th:text="${menu.menuName}">ä¸çº§èå</span> |
| | | <span th:class="${#strings.isEmpty(menu.url) || menu.url == '#'} ? |fa arrow|"></span> |
| | | </a> |
| | | <ul class="nav nav-second-level collapse"> |
| | | <li th:each="cmenu : ${menu.children}"> |
| | | <a th:if="${#lists.isEmpty(cmenu.children)}" |
| | | th:class="${#strings.isEmpty(cmenu.target)} ? |menuItem| : ${cmenu.target}" |
| | | th:utext="${cmenu.menuName}" th:href="@{${cmenu.url}}" |
| | | th:data-refresh="${cmenu.isRefresh == '0'}">äºçº§èå |
| | | </a> |
| | | <a th:if="${not #lists.isEmpty(cmenu.children)}" href="javascript:;">[[${cmenu.menuName}]] |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul th:if="${not #lists.isEmpty(cmenu.children)}" class="nav nav-third-level"> |
| | | <li th:each="emenu : ${cmenu.children}"> |
| | | <a th:if="${#lists.isEmpty(emenu.children)}" |
| | | th:class="${#strings.isEmpty(emenu.target)} ? |menuItem| : ${emenu.target}" |
| | | th:text="${emenu.menuName}" th:href="@{${emenu.url}}" |
| | | th:data-refresh="${emenu.isRefresh == '0'}">ä¸çº§èå |
| | | </a> |
| | | <a th:if="${not #lists.isEmpty(emenu.children)}" href="javascript:;">[[${emenu.menuName}]] |
| | | <span class="fa arrow"></span> |
| | | </a> |
| | | <ul th:if="${not #lists.isEmpty(emenu.children)}" class="nav nav-four-level"> |
| | | <li th:each="fmenu : ${emenu.children}"> |
| | | <a th:if="${#lists.isEmpty(fmenu.children)}" |
| | | th:class="${#strings.isEmpty(fmenu.target)} ? |menuItem| : ${fmenu.target}" |
| | | th:text="${fmenu.menuName}" th:href="@{${fmenu.url}}" |
| | | th:data-refresh="${fmenu.isRefresh == '0'}">å级èå |
| | | </a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </nav> |
| | | <!--左侧导èªç»æ--> |
| | | |
| | | <!--å³ä¾§é¨åå¼å§--> |
| | | <div id="page-wrapper" class="gray-bg dashbard-1"> |
| | | <div class="row border-bottom"> |
| | | <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0"> |
| | | <div class="navbar-header"> |
| | | <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="javascript:;" |
| | | title="æ¶èµ·èå"> |
| | | <i class="fa fa-bars"></i> |
| | | </a> |
| | | </div> |
| | | <ul class="nav navbar-top-links navbar-right welcome-message"> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å¼åææ¡£" |
| | | href="http://doc.ruoyi.vip/ruoyi" target="_blank"><i class="fa fa-question-circle"></i> |
| | | ææ¡£</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="éå®å±å¹" |
| | | href="javascript:;" id="lockScreen"><i class="fa fa-lock"></i> éå±</a></li> |
| | | <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="å
¨å±æ¾ç¤º" |
| | | href="javascript:;" id="fullScreen"><i class="fa fa-arrows-alt"></i> å
¨å±</a></li> |
| | | <li class="dropdown user-menu"> |
| | | <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown"> |
| | | <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" |
| | | th:onerror="this.src='img/profile.jpg'" class="user-image"> |
| | | <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span> |
| | | </a> |
| | | <ul class="dropdown-menu"> |
| | | <li class="mt5"> |
| | | <a th:href="@{/system/user/profile}" class="menuItem noactive"> |
| | | <i class="fa fa-user"></i> 个人ä¸å¿</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="resetPwd()"> |
| | | <i class="fa fa-key"></i> ä¿®æ¹å¯ç </a> |
| | | </li> |
| | | <li> |
| | | <a onclick="switchSkin()"> |
| | | <i class="fa fa-dashboard"></i> 忢䏻é¢</a> |
| | | </li> |
| | | <li> |
| | | <a onclick="toggleMenu()"> |
| | | <i class="fa fa-toggle-off"></i> 横åèå</a> |
| | | </li> |
| | | <li class="divider"></li> |
| | | <li> |
| | | <a th:href="@{logout}"> |
| | | <i class="fa fa-sign-out"></i> éåºç»å½</a> |
| | | </li> |
| | | </ul> |
| | | </li> |
| | | </ul> |
| | | </nav> |
| | | </div> |
| | | <div class="row content-tabs" th:classappend="${#bools.isFalse(tagsView)} ? |hide|"> |
| | | <button class="roll-nav roll-left tabLeft"> |
| | | <i class="fa fa-backward"></i> |
| | | </button> |
| | | <nav class="page-tabs menuTabs"> |
| | | <div class="page-tabs-content"> |
| | | <a href="javascript:;" class="active menuTab" th:data-id="${welcomeUrl}">欢è¿</a> |
| | | </div> |
| | | </nav> |
| | | <button class="roll-nav roll-right tabRight"> |
| | | <i class="fa fa-forward"></i> |
| | | </button> |
| | | <a href="javascript:void(0);" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> å·æ°</a> |
| | | </div> |
| | | |
| | | <a id="ax_close_max" class="ax_close_max" href="javascript:;" title="å
³éå
¨å±"> <i |
| | | class="fa fa-times-circle-o"></i> |
| | | </a> |
| | | |
| | | <div class="row mainContent" id="content-main" th:classappend="${mainClass}"> |
| | | <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" th:data-id="${welcomeUrl}" |
| | | th:src="${welcomeUrl}" frameborder="0" seamless></iframe> |
| | | </div> |
| | | |
| | | <div th:if="${footer}" class="footer"> |
| | | <div class="pull-right">© [[${copyrightYear}]]-[[${support}]]</div> |
| | | </div> |
| | | </div> |
| | | <!--å³ä¾§é¨åç»æ--> |
| | | </div> |
| | | <!-- å
¨å±js --> |
| | | <script th:src="@{/js/jquery.min.js}"></script> |
| | | <script th:src="@{/js/bootstrap.min.js}"></script> |
| | | <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script> |
| | | <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script> |
| | | <script th:src="@{/js/jquery.contextMenu.min.js}"></script> |
| | | <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script> |
| | | <script th:src="@{/ajax/libs/layer-ruoyi/layer.min.js}"></script> |
| | | <script th:src="@{/ruoyi/js/ry-ui.js?v=4.7.8}"></script> |
| | | <script th:src="@{/ruoyi/js/common.js?v=4.7.8}"></script> |
| | | <script th:src="@{/ruoyi/home.js?v=20201208}"></script> |
| | | <script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script> |
| | | <script th:inline="javascript"> |
| | | window.history.forward(1); |
| | | var ctx = [[@{/}]]; |
| | | var lockscreen = [[${session.lockscreen}]]; |
| | | if (lockscreen) { |
| | | window.top.location = ctx + "lockscreen"; |
| | | } |
| | | // ç®è¤ç¼å |
| | | var skin = storage.get("skin"); |
| | | // historyï¼è¡¨ç¤ºå»æå°åç#ï¼å¦åå°å以"#"å½¢å¼å±ç¤º |
| | | var mode = "history"; |
| | | // åå²è®¿é®è·¯å¾ç¼å |
| | | var historyPath = storage.get("historyPath"); |
| | | // æ¯å¦é¡µç¾ä¸èåèå¨ |
| | | var isLinkage = true; |
| | | // æ¯å¦é¡µç¾åæ¢æ»å¨å°é¡¶é¨ |
| | | var isScrollToTop = true; |
| | | |
| | | // æ¬å°ä¸»é¢ä¼å
ï¼æªè®¾ç½®åç³»ç»é
ç½® |
| | | if ($.common.isNotEmpty(skin)) { |
| | | $("body").addClass(skin.split('|')[0]); |
| | | $("body").addClass(skin.split('|')[1]); |
| | | } else { |
| | | $("body").addClass([[${sideTheme}]]); |
| | | $("body").addClass([[${skinName}]]); |
| | | } |
| | | |
| | | /* ç¨æ·ç®¡ç-éç½®å¯ç */ |
| | | function resetPwd() { |
| | | var url = ctx + 'system/user/profile/resetPwd'; |
| | | $.modal.open("éç½®å¯ç ", url, '770', '380'); |
| | | } |
| | | |
| | | /* åæ¢ä¸»é¢ */ |
| | | function switchSkin() { |
| | | layer.open({ |
| | | type: 2, |
| | | shadeClose: true, |
| | | title: "忢䏻é¢", |
| | | area: ["530px", "386px"], |
| | | content: [ctx + "system/switchSkin", 'no'] |
| | | }) |
| | | } |
| | | |
| | | /* 忢èå */ |
| | | function toggleMenu() { |
| | | $.modal.confirm("确认è¦åæ¢ææ¨ªåèååï¼", function () { |
| | | $.get(ctx + 'system/menuStyle/topnav', function (result) { |
| | | window.location.reload(); |
| | | }); |
| | | }) |
| | | } |
| | | |
| | | /** å·æ°æ¶è®¿é®è·¯å¾é¡µç¾ */ |
| | | function applyPath(url) { |
| | | $('a[href$="' + decodeURI(url) + '"]').click(); |
| | | if (!$('a[href$="' + url + '"]').hasClass("noactive")) { |
| | | $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in"); |
| | | } |
| | | } |
| | | |
| | | $(function () { |
| | | var lockPath = storage.get('lockPath'); |
| | | if ($.common.equals("history", mode) && window.performance.navigation.type == 1) { |
| | | var url = storage.get('publicPath'); |
| | | if ($.common.isNotEmpty(url)) { |
| | | applyPath(url); |
| | | } |
| | | } else if ($.common.isNotEmpty(lockPath)) { |
| | | applyPath(lockPath); |
| | | storage.remove('lockPath'); |
| | | } else { |
| | | var hash = location.hash; |
| | | if ($.common.isNotEmpty(hash)) { |
| | | var url = hash.substring(1, hash.length); |
| | | applyPath(url); |
| | | } else { |
| | | if ($.common.equals("history", mode)) { |
| | | storage.set('publicPath', ""); |
| | | } |
| | | } |
| | | } |
| | | |
| | | /* åå§å¯ç æç¤º */ |
| | | if ([[${isDefaultModifyPwd}]]) { |
| | | layer.confirm("æ¨çå¯ç è¿æ¯åå§å¯ç ï¼è¯·ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认', 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | |
| | | /* è¿æå¯ç æç¤º */ |
| | | if ([[${isPasswordExpired}]]) { |
| | | layer.confirm("æ¨çå¯ç å·²è¿æï¼è¯·å°½å¿«ä¿®æ¹å¯ç ï¼", { |
| | | icon: 0, |
| | | title: "å®å
¨æç¤º", |
| | | btn: ['确认', 'åæ¶'], |
| | | offset: ['30%'] |
| | | }, function (index) { |
| | | resetPwd(); |
| | | layer.close(index); |
| | | }); |
| | | } |
| | | $("[data-toggle='tooltip']").tooltip(); |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |