private void BindLanguages() { LanguageDS.LanguageDSDataTable dtLanguages = BllProxyLanguage.GetLanguageList(0); ddlLanguage.DataSource = dtLanguages.Rows; ddlLanguage.DataBind(); if (ddlLanguage.Items.Count > 0) { ddlLanguage.Items[0].Selected = true; } }
public string[] GetLanguages() { LanguageDS.LanguageDSDataTable dt = BllProxyLanguage.GetLanguageList(0); string[] ret = new string[dt.Rows.Count * 2]; int ret_i = 0; for (int i = 0; i < dt.Rows.Count; i++) { LanguageDS.LanguageDSRow row = dt[i]; ret[ret_i++] = row.language_id.ToString(); ret[ret_i++] = row.language_name; } return(ret); }
protected void setLanguage(Int32 _languageId) { this.clearMessage(); LanguageDS.LanguageDSDataTable dt = BllProxyLanguage.SelectLanguage(_languageId); if (dt.Rows.Count > 0) { lblLanguageName.Text = dt[0].language_name; setLanguageAgents(_languageId); } else { lblLanguageName.Text = "ERROR: " + languageId.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { ltMessage.Text = "Kiosk is closed"; FacilityDS.FacilityGroupDSDataTable dt = BllProxyFacilityGroup.GetAllFacilityGroups(this.FacilityId); FacilityDS.FacilityGroupDSRow[] rows = (FacilityDS.FacilityGroupDSRow[])dt.Select("facility_id is not NULL"); rptGroups.DataSource = rows; rptGroups.DataBind(); SkillDS.SkillDSDataTable dtSkills = BllProxySkill.GetSkillList(0); ddlSkill.DataSource = dtSkills.Rows; ddlSkill.DataBind(); if (ddlSkill.Items.Count > 0) { ddlSkill.Items[0].Selected = true; } LanguageDS.LanguageDSDataTable dtLanguages = BllProxyLanguage.GetLanguageList(0); ddlLanguage.DataSource = dtLanguages.Rows; ddlLanguage.DataBind(); if (ddlLanguage.Items.Count > 0) { ddlLanguage.Items[0].Selected = true; } //btnStart.Enabled = false; //rptGroups.Enabled = false; foreach (Control c in rptGroups.Items) { Button btn = (Button)c.FindControl("btnStart"); btn.Enabled = false; } pnlKioskInactive.Visible = false; pnlKioskOpen.Visible = false; pnlKioskClosed.Visible = true; Start(2); } }