Beispiel #1
0
 private void ShowsysTwoColumnTables()
 {
     try
     {
         _objTwoColumnTables = new TwoColumnTables();
         _objTwoColumnTables.RelatedUserRoleID = Convert.ToInt32(Session["relatedUserRoleID"].ToString());
         _objTwoColumnTables.EntrySystem       = "A";
         EmployeeSetup objEmployeeSetup = new EmployeeSetup();
         objEmployeeSetup.CompanyID    = LoginUserInformation.CompanyID;
         objEmployeeSetup.EmployeeID   = LoginUserInformation.EmployeeCode;
         _objTwoColumnTablesController = new TwoColumnTablesController();
         DataTable dtTablesName = _objTwoColumnTablesController.GetRecord(_connectionString, _objTwoColumnTables, objEmployeeSetup);
         grdTableName.DataSource = null;
         grdTableName.DataBind();
         if (dtTablesName.Rows.Count > 0)
         {
             grdTableName.DataSource = dtTablesName;
             grdTableName.DataBind();
         }
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }
 private void ShowRecord()
 {
     try
     {
         _objTwoColumnTablesController = new TwoColumnTablesController();
         DataTable dtRecord = _objTwoColumnTablesController.GetRecord(_connectionString);
         grdTwoColumnTables.DataSource = null;
         grdTwoColumnTables.DataBind();
         if (dtRecord.Rows.Count > 0)
         {
             grdTwoColumnTables.DataSource = dtRecord;
             grdTwoColumnTables.DataBind();
         }
     }
     catch (Exception msgException)
     {
         throw msgException;
     }
 }