GIF89;a GIF89;a using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using BusinessLayer.Controllers; using Globals; public partial class Managers : BasePage { protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label ll; HtmlInputCheckBox ck; ll = (Label)e.Row.Cells[0].FindControl("LabBuff1"); ck = (HtmlInputCheckBox)e.Row.Cells[0].FindControl("Checkbox3"); ck.Value = ll.Text; ck.Attributes.Add("onclick", "javascript:Checkbox1_onclick(this,'" + HiddenField1.ClientID + "')"); string checkval = HiddenField1.Value; string[] archeck = checkval.Split(','); foreach (string i in archeck) { if (i != "") { if (i == ck.Value) { ck.Checked = true; } } } Label labl11; labl11 = (Label)e.Row.Cells[1].FindControl("labl1"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[2].FindControl("labl5"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[2].FindControl("labl2"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } labl11 = (Label)e.Row.Cells[3].FindControl("labl3"); if (labl11.Text == "") { labl11.Text = "-"; } else { labl11.Text = decimal.Parse(labl11.Text).ToString("0"); labl11.Font.Bold = true; labl11.ForeColor = InbestColor(labl11.Text); } } } protected void LinkButton1_Click(object sender, EventArgs e) { if (((LinkButton)sender).Text != "") { Page.Session.Add("ToManager_ManagerName", ((LinkButton)sender).Text); if (Page.Session["ToManager_ManagerName"] != null) Go("Manager.aspx"); } } protected void Page_Load(object sender, EventArgs e) { this.CurrentPage = CurrentPageId.Managers; Button2.OnClientClick = "if(getelementbyid('" + HiddenField1.ClientID + "').value == '') {alert('" + Resources.Common.LID_MESSAGE + "'); return false;} return true; "; LabelUpdText.Text = GetGlobalResourceObject("Common", "Updatedate").ToString(); LabelUpdDate.Text = PageUpdatedDate; } public void hlpButtAjax1_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.Managers_AvarageMark); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } public void hlpButtAjax2_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.Managers_IsraelMark); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } public void hlpButtAjax3_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.Managers_SolidMark); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } public void hlpButtAjax4_Load(object sender, EventArgs e) { ControllerArticle CtrlArticle = new ControllerArticle(); BusinessLayer.Entities.Article article = new BusinessLayer.Entities.Article(); article = CtrlArticle.Get((int)Globals.AJAXHelp.Managers_ForeignMark); ((Controls_HelpButtonAjax)sender).Text = "
" + article.Title + "

" + article.ShortText; } protected void LinkButton11_Click(object sender, EventArgs e) { if (sortTotal != null) { if (bool.Parse(sortTotal.Value)) { GridView1.Sort("Total", SortDirection.Descending); sortTotal.Value = "false"; } else { GridView1.Sort("Total", SortDirection.Ascending); sortTotal.Value = "true"; } } } protected void LinkButton2_Click(object sender, EventArgs e) { if (sortIsrael != null) { if (bool.Parse(sortIsrael.Value)) { GridView1.Sort("Israel", SortDirection.Descending); sortIsrael.Value = "false"; } else { GridView1.Sort("Israel", SortDirection.Ascending); sortIsrael.Value = "true"; } } } protected void LinkButton3_Click(object sender, EventArgs e) { if (sortsolid != null) { if (bool.Parse(sortsolid.Value)) { GridView1.Sort("solid", SortDirection.Descending); sortsolid.Value = "false"; } else { GridView1.Sort("solid", SortDirection.Ascending); sortsolid.Value = "true"; } } } protected void LinkButton4_Click(object sender, EventArgs e) { if (sortInternational != null) { if (bool.Parse(sortInternational.Value)) { GridView1.Sort("International", SortDirection.Descending); sortInternational.Value = "false"; } else { GridView1.Sort("International", SortDirection.Ascending); sortInternational.Value = "true"; } } } protected void Button2_Click(object sender, EventArgs e) { string[] aMsg = HiddenField1.Value.Split(','); string m_ids = ""; foreach (string m_msg in aMsg) { if (m_ids != "") { m_ids += ", " + m_msg; } else { m_ids += m_msg; } } Page.Session.Add("ToLid_MSG", m_ids); Go("Lid.aspx"); } }