public void FillFinYears() { try { DataTable Dt = new DataTable(); // string USERCODE = DdlUser.SelectedValue; string COMPANYCODE = DdlCompany.SelectedValue; Dt = COMPANYLogicLayer.GetAllFIN_YEARSDetialsForGrid(COMPANYCODE); GridYear.DataSource = Dt; GridYear.DataBind(); } catch (Exception) { throw; } }
private void GetFin_YearsByCompanyByUser() { try { DataTable Dt = new DataTable(); string USERCODE = DdlUser.SelectedValue; string COMPANYCODE = DdlCompany.SelectedValue; string BRANCHCODE = DdlBranch.SelectedValue; Dt = COMPANYLogicLayer.GetFIN_YEARSDetailUserWiseRightsAndCompanyWiseForGrid(USERCODE, COMPANYCODE); GridYear.DataSource = Dt; GridYear.DataBind(); } catch (Exception) { throw; } }