public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e) { if (e == null) { return; } if (e.getAttribute("cType", 1).ToString().Equals("eq_ctrl")) { string dlk = e.getAttribute("dblink", 1).ToString(); if (e.getAttribute("dblink", 1) == null) { return; } // (markElement.markStateDef)Enum.Parse(typeof(markElement.markStateDef), (string)(dr["state"])); controlTypes ct = (controlTypes)Enum.Parse(typeof(controlTypes), dlk); if (ct == controlTypes.CUS_CTRL_RADIO) { ; } { controls.radioSelection rs = new DemoApp.eq_controls.controls.radioSelection(ct); rs.loadInfoFromElement(e); } } }
public static controlBase createBase(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) return new eq_controls.controls.alert(e); if (e == controlTypes.CUS_CTRL_BRIEF) return new eq_controls.controls.brief(e); if (e == controlTypes.CUS_CTRL_INFORMATION) return new eq_controls.controls.information(e); if (e == controlTypes.CUS_CTRL_RESCUEREQ) return new eq_controls.controls.rescueReq(e); if (e == controlTypes.CUS_CTRL_RESCUEPLAN) return new eq_controls.controls.rescuePlan(e); if (e == controlTypes.CUS_CTRL_RADIO) return new eq_controls.controls.radioSelection(e); if (e == controlTypes.CUS_CTRL_TEXTAREA) return new eq_controls.controls.textArea(e); if (e == controlTypes.CUS_CTRL_SUBMIT) return new eq_controls.controls.submit(e); if (e == controlTypes.CUS_CTRL_EFRAME) return new eq_controls.controls.eframe(e); return new eq_controls.imageCtrl(e); }
public static Boolean isImageCtrl(controlBase ctrl) { controlTypes e = ctrl.myType; if (e == controlTypes.CUS_CTRL_ALERT) { return(false); } if (e == controlTypes.CUS_CTRL_BRIEF) { return(false); } if (e == controlTypes.CUS_CTRL_INFORMATION) { return(false); } if (e == controlTypes.CUS_CTRL_RESCUEREQ) { return(false); } if (e == controlTypes.CUS_CTRL_RESCUEPLAN) { return(false); } if (e == controlTypes.CUS_CTRL_RADIO) { return(false); } if (e == controlTypes.CUS_CTRL_TEXTAREA) { return(false); } if (e == controlTypes.CUS_CTRL_SUBMIT) { return(false); } if (e == controlTypes.CUS_CTRL_EFRAME) { return(false); } if (e == controlTypes.CUS_CTRK_JSON) { return(false); } if (e == controlTypes.CUS_CTRK_DIV_TIME) { return(false); } return(true); }
public static controlBase createBase(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) { return(new eq_controls.controls.alert(e)); } if (e == controlTypes.CUS_CTRL_BRIEF) { return(new eq_controls.controls.brief(e)); } if (e == controlTypes.CUS_CTRL_INFORMATION) { return(new eq_controls.controls.information(e)); } if (e == controlTypes.CUS_CTRL_RESCUEREQ) { return(new eq_controls.controls.rescueReq(e)); } if (e == controlTypes.CUS_CTRL_RESCUEPLAN) { return(new eq_controls.controls.rescuePlan(e)); } if (e == controlTypes.CUS_CTRL_RADIO) { return(new eq_controls.controls.radioSelection(e)); } if (e == controlTypes.CUS_CTRL_TEXTAREA) { return(new eq_controls.controls.textArea(e)); } if (e == controlTypes.CUS_CTRL_SUBMIT) { return(new eq_controls.controls.submit(e)); } if (e == controlTypes.CUS_CTRL_EFRAME) { return(new eq_controls.controls.eframe(e)); } if (e == controlTypes.CUS_CTRK_JSON) { return(new eq_controls.controls.test(e, "test1.json"));//测试使用 } if (e == controlTypes.CUS_CTRK_DIV_TIME) { return(new eq_controls.controls.pDiv(e)); } return(new eq_controls.imageCtrl(e)); }
public static submit getCtrl(DemoApp.frmHTMLeditor f) { controlTypes t = controlTypes.CUS_CTRL_SUBMIT; submit s = new submit(t); s.pform = f; return(s); }
public static void doDoubleClick(IfacesEnumsStructsClasses.IHTMLElement e, DemoApp.frmHTMLeditor pform) { if (e == null) { return; } if (e.getAttribute("cType", 1).ToString().Equals("eq_ctrl")) { string dlk = e.getAttribute("dblink", 1).ToString(); if (e.getAttribute("dblink", 1) == null) { return; } // (markElement.markStateDef)Enum.Parse(typeof(markElement.markStateDef), (string)(dr["state"])); controlTypes ct = (controlTypes)Enum.Parse(typeof(controlTypes), dlk); if (ct == controlTypes.CUS_CTRL_RADIO) { controls.radioSelection rs = new DemoApp.eq_controls.controls.radioSelection(ct); IfacesEnumsStructsClasses.IHTMLElement newe = rs.loadInfoFromElement(e); // if (newe != null) // pform.addControl(newe); } if (ct == controlTypes.CUS_CTRL_EFRAME) { pform.iframeLoadCount = 1; controls.eframe rs = new DemoApp.eq_controls.controls.eframe(ct); rs.loadInfoFromElement(e); return; } if (ct == controlTypes.CUS_CTRL_SUBMIT) { controls.submit s = new DemoApp.eq_controls.controls.submit(ct); s.pform = pform; s.loadInfoFromElement(e); } } }
public static controlBase createBase(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) { return(new eq_controls.controls.alert(e)); } if (e == controlTypes.CUS_CTRL_BRIEF) { return(new eq_controls.controls.brief(e)); } if (e == controlTypes.CUS_CTRL_INFORMATION) { return(new eq_controls.controls.information(e)); } if (e == controlTypes.CUS_CTRL_RESCUEREQ) { return(new eq_controls.controls.rescueReq(e)); } if (e == controlTypes.CUS_CTRL_RESCUEPLAN) { return(new eq_controls.controls.rescuePlan(e)); } if (e == controlTypes.CUS_CTRL_RADIO) { return(new eq_controls.controls.radioSelection(e)); } if (e == controlTypes.CUS_CTRL_TEXTAREA) { return(new eq_controls.controls.textArea(e)); } return(new eq_controls.imageCtrl(e)); return(null); }
public static void deleteRelation(DemoApp.frmHTMLeditor pform, IfacesEnumsStructsClasses.IHTMLElement e) { string dlk = e.getAttribute("dblink", 1).ToString(); if (e.getAttribute("dblink", 1) == null) { return; } // (markElement.markStateDef)Enum.Parse(typeof(markElement.markStateDef), (string)(dr["state"])); controlTypes ct = (controlTypes)Enum.Parse(typeof(controlTypes), dlk); if (ct == controlTypes.CUS_CTRL_TEXTAREA) { controls.textArea t = new DemoApp.eq_controls.controls.textArea(ct); t.deletMeRelation(e, pform); } if (ct == controlTypes.CUS_CTRL_RADIO) { controls.radioSelection t = new DemoApp.eq_controls.controls.radioSelection(ct); t.deletMeRelation(e, pform); } }
public textArea(controlTypes t) : base(t) { }
public imageCtrl(controlTypes t) : base(t) { }
public static string getControTypeName(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) { return("灾情警报"); } if (e == controlTypes.CUS_CTRL_BRIEF) { return("灾情简报"); } if (e == controlTypes.CUS_CTRL_INFORMATION) { return("灾情汇报"); } if (e == controlTypes.CUS_CTRL_DECAY) { return("衰减分布"); } if (e == controlTypes.CUS_CTRL_HUMAN) { return("人员损失"); } if (e == controlTypes.CUS_CTRL_HOUSE) { return("房屋损失"); } if (e == controlTypes.CUS_CTRL_LIEFLINE) { return("生命线损失"); } if (e == controlTypes.CUS_CTRL_DANGER) { return("重要目标"); } if (e == controlTypes.CUS_CTRL_ECONOMY) { return("经济损失"); } if (e == controlTypes.CUS_CTRL_MAPLINK) { return("地图连接"); } if (e == controlTypes.CUS_CTRL_RESCUEREQ) { return("救援需求"); } if (e == controlTypes.CUS_CTRL_RESCUEPLAN) { return("救援方案"); } if (e == controlTypes.CUS_CTRL_RADIO) { return("选择对象"); } if (e == controlTypes.CUS_CTRL_TEXTAREA) { return("文本栏"); } if (e == controlTypes.CUS_CTRL_OTHER) { return("自定义"); } return(""); }
public radioSelection(controlTypes t) : base(t) { }
public rescuePlan(controlTypes t) : base(t) { }
public textArea(controlTypes t) : base(t) { }
public rescueReq(controlTypes t) : base(t) { }
public brief(controlTypes t) : base(t) { }
public test(controlTypes t) : base(t) { json = new jsonBase("test1.json"); }
public submit(controlTypes t) : base(t) { }
public pDiv(controlTypes t) : base(t) { }
public information(controlTypes t) : base(t) { }
public rescuePlan(controlTypes t) : base(t) { }
public submit(controlTypes t) : base(t) { }
public test(controlTypes t, string str) : base(t) { json = new jsonBase(str); }
public rescueReq(controlTypes t) : base(t) { }
public test(controlTypes t, string str) : base(t) { json = new jsonBase(str); }
public static string getControTypeName(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) return "灾情警报"; if (e == controlTypes.CUS_CTRL_BRIEF) return "灾情简报"; if (e == controlTypes.CUS_CTRL_INFORMATION) return "灾情汇报"; if (e == controlTypes.CUS_CTRL_DECAY) return "衰减分布"; if (e == controlTypes.CUS_CTRL_HUMAN) return "人员损失"; if (e == controlTypes.CUS_CTRL_HOUSE) return "房屋损失"; if (e == controlTypes.CUS_CTRL_LIEFLINE) return "生命线损失"; if (e == controlTypes.CUS_CTRL_DANGER) return "重要目标"; if (e == controlTypes.CUS_CTRL_ECONOMY) return "经济损失"; if (e == controlTypes.CUS_CTRL_MAPLINK) return "地图连接"; if (e == controlTypes.CUS_CTRL_RESCUEREQ) return "救援需求"; if (e == controlTypes.CUS_CTRL_RESCUEPLAN) return "救援方案"; if (e == controlTypes.CUS_CTRL_RADIO) return "选择对象"; if (e == controlTypes.CUS_CTRL_TEXTAREA) return "文本栏"; if (e == controlTypes.CUS_CTRL_SUBMIT) return "确认按钮"; if (e == controlTypes.CUS_CTRL_EFRAME) return "引用网站"; if (e == controlTypes.CUS_CTRL_OTHER) return "自定义"; if (e == controlTypes.CUS_CTRK_JSON) { return "自定义控件"; } if (e == controlTypes.CUS_CTRK_JSON_PEOPLE) { return "JSON人口"; } if (e == controlTypes.CUS_CTRK_JSON_HORSE) { return "JSON房子"; } if (e == controlTypes.CUS_CTRK_DIV_TIME) { return "时间DIV"; } if (e == controlTypes.CUS_DIV) { return "地图DIV"; } return ""; }
public radioSelection(controlTypes t) : base(t) { }
public eframe(controlTypes t) : base(t) { }
public information(controlTypes t) : base(t) { }
public eframe(controlTypes t) : base(t) { }
public alert(controlTypes t) : base(t) { }
public static string getControTypeName(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) { return("灾情警报"); } if (e == controlTypes.CUS_CTRL_BRIEF) { return("灾情简报"); } if (e == controlTypes.CUS_CTRL_INFORMATION) { return("灾情汇报"); } if (e == controlTypes.CUS_CTRL_DECAY) { return("衰减分布"); } if (e == controlTypes.CUS_CTRL_HUMAN) { return("人员损失"); } if (e == controlTypes.CUS_CTRL_HOUSE) { return("房屋损失"); } if (e == controlTypes.CUS_CTRL_LIEFLINE) { return("生命线损失"); } if (e == controlTypes.CUS_CTRL_DANGER) { return("重要目标"); } if (e == controlTypes.CUS_CTRL_ECONOMY) { return("经济损失"); } if (e == controlTypes.CUS_CTRL_MAPLINK) { return("地图连接"); } if (e == controlTypes.CUS_CTRL_RESCUEREQ) { return("救援需求"); } if (e == controlTypes.CUS_CTRL_RESCUEPLAN) { return("救援方案"); } if (e == controlTypes.CUS_CTRL_RADIO) { return("选择对象"); } if (e == controlTypes.CUS_CTRL_TEXTAREA) { return("文本栏"); } if (e == controlTypes.CUS_CTRL_SUBMIT) { return("确认按钮"); } if (e == controlTypes.CUS_CTRL_EFRAME) { return("引用网站"); } if (e == controlTypes.CUS_CTRL_OTHER) { return("自定义"); } if (e == controlTypes.CUS_CTRK_JSON) { return("自定义控件"); } if (e == controlTypes.CUS_CTRK_JSON_PEOPLE) { return("JSON人口"); } if (e == controlTypes.CUS_CTRK_JSON_HORSE) { return("JSON房子"); } if (e == controlTypes.CUS_CTRK_DIV_TIME) { return("时间DIV"); } if (e == controlTypes.CUS_DIV) { return("地图DIV"); } return(""); }
public controlBase(controlTypes t) { this.myType = t; }
public brief(controlTypes t) : base(t) { }
public pDiv(controlTypes t) : base(t) { }
public alert(controlTypes t) : base(t) { }
public controlBase(controlTypes t) { this.myType = t; }
public test(controlTypes t) : base(t) { json = new jsonBase("test1.json"); }
public imageCtrl(controlTypes t) : base(t) { }
public static string getControTypeName(controlTypes e) { if (e == controlTypes.CUS_CTRL_ALERT) return "灾情警报"; if (e == controlTypes.CUS_CTRL_BRIEF) return "灾情简报"; if (e == controlTypes.CUS_CTRL_INFORMATION) return "灾情汇报"; if (e == controlTypes.CUS_CTRL_DECAY) return "衰减分布"; if (e == controlTypes.CUS_CTRL_HUMAN) return "人员损失"; if (e == controlTypes.CUS_CTRL_HOUSE) return "房屋损失"; if (e == controlTypes.CUS_CTRL_LIEFLINE) return "生命线损失"; if (e == controlTypes.CUS_CTRL_DANGER) return "重要目标"; if (e == controlTypes.CUS_CTRL_ECONOMY) return "经济损失"; if (e == controlTypes.CUS_CTRL_MAPLINK) return "地图连接"; if (e == controlTypes.CUS_CTRL_RESCUEREQ) return "救援需求"; if (e == controlTypes.CUS_CTRL_RESCUEPLAN) return "救援方案"; if (e == controlTypes.CUS_CTRL_RADIO) return "选择对象"; if (e == controlTypes.CUS_CTRL_TEXTAREA) return "文本栏"; if (e == controlTypes.CUS_CTRL_OTHER) return "自定义"; return ""; }