Exemple #1
0
    protected void cbExternalViewing_OnCheckedChanged(object sender, EventArgs e)
    {
        var cb = (CheckBox)sender;

        if (cb != null && !string.IsNullOrEmpty(cb.ToolTip))
        {
            var ID = Convert.ToInt32(cb.ToolTip);

            LPWeb.BLL.LoanConditions lcon = new LPWeb.BLL.LoanConditions();
            lcon.UpdateExternalViewing(ID, cb.Checked);

            BindGvList();
        }
    }
Exemple #2
0
    protected void linkDisableExV_OnClick(object sender, EventArgs e)
    {
        LPWeb.BLL.LoanConditions lcon = new LPWeb.BLL.LoanConditions();
        foreach (GridViewRow row in gridList.Rows)
        {
            if (row.RowType == DataControlRowType.DataRow)
            {
                CheckBox chkSelect = (CheckBox)row.FindControl("ckbSelect");

                if (chkSelect != null && chkSelect.Checked && !string.IsNullOrEmpty(chkSelect.ToolTip))
                {
                    var ID = Convert.ToInt32(chkSelect.ToolTip);


                    lcon.UpdateExternalViewing(ID, false);
                }
            }
        }

        BindGvList();
    }