Пример #1
0
 //private void UpdRow(long RowID)
 //{
 //    if (Master.AccessType == "R")
 //        return;
 //    var oCoach = new CSBC.Components.Season.clsCoaches();
 //    try
 //    {
 //        oCoach.SeasonID = Master.SeasonId;
 //        oCoach.PeopleID = (int)Session["PeopleID"];
 //        oCoach.ShirtSize = cmbSizes.Text;
 //        if (txtCoachPhone.Text != "")
 //        {
 //            oCoach.CoachPhone = txtCoachPhone.Text;
 //        }
 //        else
 //        {
 //            oCoach.CoachPhone = "";
 //        }
 //        //oCoach.UPDCoach(CompanyId, RowID) Add routine!!!!!
 //    }
 //    catch (Exception ex)
 //    {
 //        Session["ErrorMSG"] = "UpdRow::" + ex.Message;
 //    }
 //    finally
 //    {
 //        oCoach = null;
 //    }
 //}
 private void LoadComments(long CoachID)
 {
     var oComments = new CSBC.Components.Website.ClsComments();
     DataTable rsData = default(DataTable);
     try
     {
         rsData = oComments.GetRecords(0, CoachId, "C", Master.CompanyId);
         if ((rsData != null))
         {
             for (int I = 0; I <= rsData.Rows.Count - 1; I++)
             {
                 txtComments.Text = txtComments.Text + " " + rsData.Rows[I]["Comment"].ToString();// Constants.vbCrLf;
             }
         }
         //Session.Add("LinkName", txtFirstName.Text & ", " & txtLastName.Text())
     }
     catch (Exception ex)
     {
         lblError.Text = "LoadComments::" + ex.Message;
     }
     finally
     {
         oComments = null;
         //Session.Add("LinkName", txtLastName.Text)
     }
 }
Пример #2
0
 private void LoadComments(long RowID)
 {
     var oComments = new CSBC.Components.Website.ClsComments();
     DataTable rsData = default(DataTable);
     txtComments.Text = "";
     try
     {
         rsData = oComments.GetRecords(0, Master.SponsorProfileId, "S", Master.CompanyId);
         if ((rsData != null))
         {
             for (int I = 0; I <= rsData.Rows.Count - 1; I++)
             {
                 txtComments.Text = txtComments.Text + " " + rsData.Rows[I]["Comment"].ToString();
             }
         }
     }
     catch (Exception ex)
     {
         lblError.Text = "LoadComments::" + ex.Message;
     }
     finally
     {
         oComments = null;
     }
 }
Пример #3
0
 private void LoadComments(long peopleId)
 {
     var oComments = new CSBC.Components.Website.ClsComments();
     DataTable rsData = default(DataTable);
     try
     {
         rsData = oComments.GetRecords(peopleId, "P", Master.CompanyId);
         if ((rsData != null))
         {
             for (int I = 0; I <= rsData.Rows.Count - 1; I++)
             {
                 txtComments.Text = txtComments.Text + " " + rsData.Rows[I]["Comment"];
             }
         }
         Session.Add("LinkName", txtFirstName.Text + ", " + txtLastName.Text);
     }
     catch (Exception ex)
     {
         lblError.Text = "LoadComments::" + ex.Message;
     }
     finally
     {
         oComments = null;
         Session.Add("LinkName", txtLastName.Text);
     }
 }