string GetCate() { string s = ""; if (igparentidCurrent.Equals("0")) { DataTable dt = new DataTable(); fields = "*"; condition = GroupsTSql.GetGroupsCondition(language, Modul, "", " IGENABLE <> '2' "); orderBy = " IGORDER ASC "; dt = Groups.GetGroups(top, fields, condition, orderBy); if (dt.Rows.Count > 0) { s += cateControls.DisplayCate(dt); } } else { s = cateControls.GetSubCate(igparentidCurrent); } return(s); }
void GetListColor() { if (HienThiMau()) { pnMauTrainTicket.Visible = true; pnMauTrainTicket1.Visible = true; fields = DataExtension.GetListColumns(GroupsColumns.VgnameColumn, GroupsColumns.IgidColumn, GroupsColumns.VgparamsColumn); condition = GroupsTSql.GetGroupsCondition(language, CodeApplications.TrainTicketColors, "0", " IGENABLE <> '2' "); orderby = GroupsColumns.IgorderColumn; DataTable dt = new DataTable(); dt = Groups.GetGroups(top, fields, condition, orderby); rblColors.Items.Clear(); rblColors1.Items.Clear(); for (int i = 0; i < dt.Rows.Count; i++) { rblColors.Items.Add(new ListItem("<span style='width:20px;height:20px;border:solid 1px #000;display:inline-block;background:#" + dt.Rows[i][GroupsColumns.VgparamsColumn].ToString() + "'><!----></span> " + dt.Rows[i][GroupsColumns.VgnameColumn].ToString(), dt.Rows[i][GroupsColumns.IgidColumn].ToString())); rblColors1.Items.Add(new ListItem("<span style='width:20px;height:20px;border:solid 1px #000;display:inline-block;background:#" + dt.Rows[i][GroupsColumns.VgparamsColumn].ToString() + "'><!----></span> " + dt.Rows[i][GroupsColumns.VgnameColumn].ToString(), dt.Rows[i][GroupsColumns.IgidColumn].ToString())); } } else { pnMauTrainTicket.Visible = false; pnMauTrainTicket1.Visible = false; } }
void GetCate() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(language, app, "", " IGENABLE <> '2' "); orderBy = " IGORDER ASC "; dt = Groups.GetGroups(top, fields, condition, orderBy); if (dt.Rows.Count > 0) { LtCates.Text += "<div id=\"CateOrder-0\" >"; LtCates.Text += DisplayCate(dt); LtCates.Text += "</div>"; } }
void GetCate() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(language, Modul, "", " IGENABLE <> '2' "); orderBy = DataExtension.GetListColumns(GroupsColumns.VgparamsColumn, GroupsColumns.IgorderColumn); dt = Groups.GetGroups(top, fields, condition, orderBy); if (dt.Rows.Count > 0) { LtCates.Text += "<div id=\"CateOrder-0\" >"; LtCates.Text += DisplayCate(dt); LtCates.Text += "</div>"; } }
void GetVehicle() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(lang, app, "", " IGENABLE <> '2' "); orderBy = GroupsColumns.IgorderColumn + "," + GroupsColumns.VgnameColumn; dt = Groups.GetGroups(top, fields, condition, orderBy); LtCates.Text = ""; if (dt.Rows.Count > 0) { LtCates.Text += "<div id=\"CateOrder-0\" >"; LtCates.Text += DisplayCate(dt); LtCates.Text += "</div>"; } }
void LayThoiGian() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(lang, CodeApplications.TourProperty, "", " IGENABLE <> '2' "); orderBy = GroupsColumns.IgorderColumn + "," + GroupsColumns.VgnameColumn; dt = Groups.GetGroups(top, fields, condition, orderBy); ddlDiemDen.Items.Clear(); ddlDiemDen.Items.Add(new ListItem(LanguageItemExtension.GetnLanguageItemTitleByName("Enter destination, City"), "")); for (int i = 0; i < dt.Rows.Count; i++) { ddlDiemDen.Items.Add(new ListItem(dt.Rows[i][GroupsColumns.VgnameColumn].ToString(), dt.Rows[i][GroupsColumns.IgidColumn].ToString())); } }
void GetCate() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(language, Modul, "", " IGENABLE <> '2' "); if (ddl_type_groupnews_show.SelectedIndex > 0) { condition = DataExtension.AndConditon( condition, GroupsTSql.GetGroupsByIgtotalitems(ddl_type_groupnews_show.SelectedValue)); } orderBy = " IGORDER ASC "; dt = Groups.GetGroups(top, fields, condition, orderBy); if (dt.Rows.Count > 0) { LtCates.Text += "<div id=\"CateOrder-0\" >"; LtCates.Text += DisplayCate(dt); LtCates.Text += "</div>"; } }
void GetAllModul() { DataTable dt = new DataTable(); fields = " * "; condition = GroupsTSql.GetGroupsCondition(language, app, hd_parent.Value, " IGENABLE <> '2' "); orderBy = " IGORDER ASC "; dt = Groups.GetGroups(top, fields, condition, orderBy); string str = ""; string CountChild = ""; if (dt.Rows.Count > 0) { str += "<div id=\"CateOrder-0\" >"; for (int i = 0; i < dt.Rows.Count; i++) { linkUpdate = "?uc=" + uc + "&app=" + app + "&suc=" + TypePage.update + "&igid=" + dt.Rows[i]["IGID"].ToString(); CountChild = GroupsExtension.CountChildCategory(dt.Rows[i]["IGID"].ToString(), ""); str += "<div id=\"Cate-" + dt.Rows[i]["IGID"].ToString() + "\">"; str += "<div class=\"FormatCellItem\">"; str += "<div class=\"pdCellItem\">"; str += "<div class=\"cot1 box-cb\"><input id=\"CbGroup_" + dt.Rows[i]["IGID"].ToString() + "\" type=\"checkbox\" onclick=\"CheckAllCheckBox('CbGroup_" + dt.Rows[i]["IGID"].ToString() + "',this)\" /></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot2\" align=\"left\">"; if (!CountChild.Equals("0")) { str += "<a id=\"showhide" + dt.Rows[i]["IGID"].ToString() + "\" href=\"javascript:void(0)\" class=\"IcoArrowShow0\" onclick=\"ShowHideGroup('" + dt.Rows[i]["IGID"].ToString() + "');\"> </a>"; } str += dt.Rows[i]["VGNAME"].ToString(); str += "<div class=\"cbh0\"><!----></div>"; str += "</div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot3\"><a id=\"nc_" + dt.Rows[i]["IGID"].ToString() + "\" href=\"javascript:UpdateMenuType('" + dt.Rows[i]["IGID"].ToString() + "')\" class=\"EnableIcon" + GetValueEnable(dt.Rows[i]["VGPARAMS"].ToString()) + "\"><!----></a></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot4\">" + GroupsExtension.CountChildCategory(dt.Rows[i]["IGID"].ToString(), "") + "</div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot5\"><input id=\"TbOrder" + dt.Rows[i]["IGID"].ToString() + "\" type=\"text\" value=\"" + dt.Rows[i]["IGORDER"].ToString() + "\" class=\"TextInBox box-stt\" onchange=\"UpdateOrderGroup('" + dt.Rows[i]["IGID"].ToString() + "','0','" + app + "')\" /></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot6\"><a id=\"nc" + dt.Rows[i]["IGID"].ToString() + "\" href=\"javascript:UpdateEnableGroup('" + dt.Rows[i]["IGID"].ToString() + "')\" class=\"EnableIcon" + dt.Rows[i]["IGENABLE"].ToString() + "\"> </a></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot7 box-cc\">"; str += "<a href=\"" + linkUpdate + "&psc=" + GetValueEnable(dt.Rows[i]["VGPARAMS"].ToString()) + "\"><span class='iconEdit'><!----></span></a>"; str += " "; str += "<a href=\"javascript:DeleteGroup('" + dt.Rows[i]["IGID"].ToString() + "','" + dt.Rows[i]["VGNAME"].ToString() + "')\"><span class='iconDelete'><!----></span></a>"; str += "</div>"; str += "<div class=\"cbh0\"><!----></div>"; str += "</div>"; str += "</div>"; igidParent = dt.Rows[i]["IGID"].ToString(); str += "<div id=\"" + dt.Rows[i]["IGID"].ToString() + "\" style=\"display:none\">"; str += GetSubCate(dt.Rows[i]["IGID"].ToString()); str += "</div>"; if (i != dt.Rows.Count - 1) { str += "<div class=\"PdSpaceRow\"><div class=\"SpaceRow\"><!----></div></div>"; } str += "</div>"; } str += "</div>"; } LtListMenus.Text = str; }
string GetAllModul() { string str = ""; if (igparentidCurrent.Equals("0")) { DataTable dt = new DataTable(); fields = "*"; condition = GroupsTSql.GetGroupsCondition(language, Modul, "", " IGENABLE <> '2' "); orderBy = " IGORDER ASC "; dt = Groups.GetGroups(top, fields, condition, orderBy); string CountChild = ""; if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { link = LinkUpdateCate(dt.Rows[i]["IGID"].ToString(), ""); CountChild = GroupsExtension.CountChildCategory(dt.Rows[i]["IGID"].ToString(), ""); str += "<div id=\"Cate-" + dt.Rows[i]["IGID"].ToString() + "\">"; str += "<div class=\"FormatCellItem\">"; str += "<div class=\"pdCellItem\">"; str += "<div class=\"cot1\"><input id=\"CbGroup_" + dt.Rows[i]["IGID"].ToString() + "\" type=\"checkbox\" onclick=\"CheckAllCheckBox('CbGroup_" + dt.Rows[i]["IGID"].ToString() + "',this)\" /></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot2\" align=\"left\">"; if (!CountChild.Equals("0")) { str += "<a id=\"showhide" + dt.Rows[i]["IGID"].ToString() + "\" href=\"javascript:void(0)\" class=\"IcoArrowShow0\" onclick=\"ShowHideGroup('" + dt.Rows[i]["IGID"].ToString() + "');\"> </a>"; } str += dt.Rows[i]["VGNAME"].ToString(); str += "<div class=\"cbh0\"><!----></div>"; str += "</div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot3\" align=\"center\">" + GroupsExtension.CountItemInGroups(dt.Rows[i]["IGID"].ToString()) + "</div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot4\" align=\"center\">" + SetPosition(dt.Rows[i]["VGPARAMS"].ToString()) + "</div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot5\" align=\"center\"><input id=\"TbOrder" + dt.Rows[i]["IGID"].ToString() + "\" type=\"text\" value=\"" + dt.Rows[i]["IGORDER"].ToString() + "\" class=\"TextInBox\" onchange=\"UpdateOrderGroupItem_Content('" + dt.Rows[i]["IGID"].ToString() + "','0')\" /></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot6\" align=\"center\"><a id=\"nc" + dt.Rows[i]["IGID"].ToString() + "\" href=\"javascript:UpdateEnableGroup('" + dt.Rows[i]["IGID"].ToString() + "')\" class=\"EnableIcon" + dt.Rows[i]["IGENABLE"].ToString() + "\"> </a></div>"; str += "<div class=\"splitc\">|</div>"; str += "<div class=\"cot7\">"; str += "<a href=\"" + link + "\"><span class='iconEdit'><!----></span></a>"; str += " "; str += "<a href=\"javascript:DeleteGroup('" + dt.Rows[i]["IGID"].ToString() + "','" + dt.Rows[i]["VGNAME"].ToString() + "')\"><span class='iconDelete'><!----></span></a>"; str += "</div>"; str += "<div class=\"cbh0\"><!----></div>"; str += "</div>"; str += "</div>"; str += "</div>"; igidParent = dt.Rows[i]["IGID"].ToString(); str += "<div id=\"" + dt.Rows[i]["IGID"].ToString() + "\" style=\"display:none\">"; str += GetSubCate(dt.Rows[i]["IGID"].ToString()); str += "</div>"; if (i != dt.Rows.Count - 1) { str += "<div class=\"PdSpaceRow\"><div class=\"SpaceRow\"><!----></div></div>"; } } } } else { str = GetSubCate(igparentidCurrent); } return(str); }