public DataTable GetModulesFrontPanelbyPanel(string Panel, string lang) { ModulesFrontPanelDAO modulesFrontPanelDAO = new ModulesFrontPanelDAO(); DataView view = new DataView(modulesFrontPanelDAO.GetAllModulesFrontPanel()) { RowFilter = "ModulesFrontPanel_Panel = '" + Panel + "' And ModulesFrontPanel_Status = 1 and [language]= '" + lang + "' and ModulesFrontPanel_Parent=0", Sort = "ModulesFrontPanel_Order ASC" }; return view.ToTable(); }
/// <summary> /// Linhlv: bổ sung hàm này để có thể load được các panel con thuộc panel cha /// </summary> /// <param name="panel"></param> /// <param name="parentId"></param> /// <returns></returns> public DataTable GetModulesFrontPanelbyParentPanel(string panel, string parentId) { var modulesFrontPanelDao = new ModulesFrontPanelDAO(); var view = new DataView(modulesFrontPanelDao.GetAllModulesFrontPanel()) { RowFilter = "ModulesFrontPanel_Panel = '" + panel + "' And ModulesFrontPanel_Status = 1 and ModulesFrontPanel_Parent=" + parentId, Sort = "ModulesFrontPanel_Order ASC" }; return view.ToTable(); }
public DataTable GetAllModulesFrontPanel() { ModulesFrontPanelDAO modulesFrontPanelDAO = new ModulesFrontPanelDAO(); return modulesFrontPanelDAO.GetAllModulesFrontPanel(); }