public ActionResult ToolBar() { var buttons = GetCurrentUserPathActions(); DhtmlxToolbar toolBar = new DhtmlxToolbar(); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Export", "导出") { Img = "fa fa-clone", Imgdis = "fa fa-clone" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("1")); string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult ToolBar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); var buttons = GetCurrentUserPathActions(); if (HaveButtonFromAll(buttons, "Create")) { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Create", "新增") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("1")); } string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult ToolBar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("PrintStats", "打印统计表") { Img = "fa fa-files-o", Imgdis = "fa fa-files-o" }); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("ExportStats", "导出统计表") { Img = "fa fa-files-o", Imgdis = "fa fa-files-o" }); string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult Toolbar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("NewItemParm", "新建检测项目参数") { Img = "fa fa-clone", Imgdis = "fa fa-clone" }); string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult SixToolBar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); var currentUserRole = GetCurrentUserRole(); if (currentUserRole.Code == "JCZXYH") { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Create", "导入") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("1")); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Save", "保存") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("2")); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Updata", "社保人员文档") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("3")); } else { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Check", "社保人员文档") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("4")); } string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult ToolBar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); var buttons = GetCurrentUserPathActions(); if (HaveButtonFromAll(buttons, "Create")) { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("NewSTCheckEquip", "新增") { Img = "fa fa-plus", Imgdis = "fa fa-plus" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("1")); } if (HaveButtonFromAll(buttons, "Delete")) { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("DeleteEquip", "[删除]") { Img = "fa fa-times", Imgdis = "fa fa-times" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("3")); } if (HaveButtonFromAll(buttons, "Submit")) { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("SetState", "[递交]") { Img = "fa fa-paper-plane", Imgdis = "fa fa-paper-plane" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("4")); } if (HaveButtonFromAll(buttons, "ReturnStatus")) { toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("ReturnState", "[状态返回]") { Img = "fa fa-undo", Imgdis = "fa fa-undo" }); } string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }
public ActionResult ToolBar() { DhtmlxToolbar toolBar = new DhtmlxToolbar(); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("AdvSearch", "展开高级查询") { Img = "fa fa-chevron-circle-up", Imgdis = "fa fa-chevron-circle-up" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("4")); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Export", "导出") { Img = "fa fa-file-excel-o", Imgdis = "fa fa-file-excel-o" }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("5")); toolBar.AddToolbarItem(new DhtmlxToolbarTextItem("ReportNumText", "报告编号")); toolBar.AddToolbarItem(new DhtmlxToolbarInputItem("ReportNum", string.Empty) { Width = 140 }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("2")); toolBar.AddToolbarItem(new DhtmlxToolbarTextItem("SampleNumText", "样品编号")); toolBar.AddToolbarItem(new DhtmlxToolbarInputItem("SampleNum", string.Empty) { Width = 140 }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("3")); toolBar.AddToolbarItem(new DhtmlxToolbarTextItem("EntrustNumText", "委托编号")); toolBar.AddToolbarItem(new DhtmlxToolbarInputItem("EntrustNum", string.Empty) { Width = 140 }); toolBar.AddToolbarItem(new DhtmlxToolbarSeparatorItem("3")); toolBar.AddToolbarItem(new DhtmlxToolbarButtonItem("Search", "快速查询") { Img = "fa fa-search", Imgdis = "fa fa-search" }); string str = toolBar.BuildDhtmlXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting); return(Content(str, "text/xml")); }