void DisplayOrg(int id)
    {
        var list = _bll.GetOrganizationList(string.Empty, "order by DisplayOrder");

        if (list == null)
        {
            return;
        }

        var orgInfo = list.FirstOrDefault(i => i.Id == id);

        if (orgInfo != null)
        {
            txtName.Text  = orgInfo.Name;
            txtDesc.Text  = orgInfo.Description;
            txtOrder.Text = orgInfo.DisplayOrder.ToString();

            lblCreatedBy.Text   = orgInfo.CreatedByName;
            lblCreatedDate.Text = orgInfo.CreatedDate.ToString();
            lblLastUpdBy.Text   = orgInfo.LastUpdByName;
            lblLastUpdDate.Text = orgInfo.LastUpdDate.ToString();
        }
    }
예제 #2
0
 private void bindOrg()
 {
     ddlOrg.DataSource = _orgBll.GetOrganizationList(string.Empty, "order by DisplayOrder Desc");
     ddlOrg.DataBind();
 }
예제 #3
0
 private void bindList()
 {
     GridView1.DataSource = _bll.GetOrganizationList(string.Empty, "order by DisplayOrder Desc");
     GridView1.DataBind();
 }