コード例 #1
0
ファイル: Coaches1.aspx.cs プロジェクト: rsalit/CSBC
 //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
ファイル: Sponsors1.aspx.cs プロジェクト: rsalit/CSBC
 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
ファイル: People1.aspx.cs プロジェクト: rsalit/CSBC
 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);
     }
 }