コード例 #1
0
        /// <summary>
        /// Code to fetch list projects from database and bind to grid control
        /// </summary>
        public void BindData()
        {
            try
            {
                logger.Info("Transaction Started");
                ObjBProject.GetProjectList(ObjEProject);
                logger.Info("Transaction Completed");

                logger.Info("Grid Binding Started");
                dtPRojectList = ObjEProject.dtProjectList;
                gcProjectSearch.DataSource = dtPRojectList;
                logger.Info("Grid Binding completed");
            }
            catch (Exception ex)
            {
                if (Utility._IsGermany == true)
                {
                    throw new Exception("Die Projektübersicht konnte nicht generiert werden");
                }
                else
                {
                    throw new Exception("Failed to retreive the Project List");
                }
            }
        }
コード例 #2
0
 private void BindData()
 {
     try
     {
         ObjBProject.GetProjectList(ObjEProject);
         dtPRojectList = ObjEProject.dtProjectList;
         if (txtKundeName.Text != string.Empty)
         {
             txtKundeName_EditValueChanged(null, null);
         }
         if (txtProjectNr.Text != string.Empty)
         {
             txtProjectNr_EditValueChanged(null, null);
         }
         else
         {
             dgProjectSearch.DataSource = dtPRojectList;
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Failed to retreive the Project List");
     }
 }