Example #1
0
 private void GetIncomeHeader()
 {
     try
     {
         IncomeHeadBLL _incomeHeadbll = new IncomeHeadBLL();
         string        OCODE          = ((SessionUser)Session["SessionUser"]).OCode;
         var           row            = _incomeHeadbll.GetIncomeHead(OCODE).ToList();
         if (row.Count > 0)
         {
             grdIncomeHead.DataSource = row.ToList();
             grdIncomeHead.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
 private void GetHeaderes()
 {
     try
     {
         IncomeHeadBLL _incomeHeadbll = new IncomeHeadBLL();
         string        OCODE          = ((SessionUser)Session["SessionUser"]).OCode;
         var           row            = _incomeHeadbll.GetIncomeHead(OCODE).ToList();
         if (row.Count > 0)
         {
             drpIncomeHead.DataSource     = row.ToList();
             drpIncomeHead.DataTextField  = "IncomeHeader";
             drpIncomeHead.DataValueField = "IncomeHeaderID";
             drpIncomeHead.DataBind();
             drpIncomeHead.Items.Insert(0, new ListItem("--Select--"));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }