示例#1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            try
            {
                DataSet dsResult = new DataSet();
                BizEntry = new BIZ.Entry();
                BizEntry = PopulateEntryBizLayer(BizEntry);
                dsResult = BizEntry.GetReleasePointDetails();

                if (dsResult.Tables.Count > 0)
                {
                    if (dsResult.Tables[0].Rows.Count > 0)
                    {
                        DataRow dr = dsResult.Tables[0].Rows[0];
                        lblLiberationPoint.Text = dr["LocationName"].ToString();
                        lblReleaseDate.Text     = dr["DateRelease"].ToString();
                        lblCoordinates.Text     = dr["Coordinates"].ToString();
                        lblEclockEntry.Text     = dr["TotalEntry"].ToString();
                        RaceReleasePointID      = (Int64)dr["RaceReleasePointID"];
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(BIZ.Common.CustomError(ex.Message), "Error");
            }
        }
示例#2
0
        private void btnGetRaceInfo_Click(object sender, EventArgs e)
        {
            try
            {
                DataSet dsResult = new DataSet();
                BizEntry = new BIZ.Entry();
                BizEntry = PopulateEntryBizLayer(BizEntry);
                dsResult = BizEntry.GetReleasePointDetails();

                if (dsResult.Tables.Count > 0)
                {
                    if (dsResult.Tables[0].Rows.Count > 0)
                    {
                        DataRow dr = dsResult.Tables[0].Rows[0];
                        txtMinimumSpeed.Text = dr["MinSpeed"].ToString();
                        txtReleaseTime.Text  = "NOT RELEASE";
                        if (dr["ReleaseTime"].ToString() != "")
                        {
                            txtReleaseTime.Text = dr["ReleaseTime"].ToString();
                        }
                        txtStopTimeFrom.Text     = dr["StopTimeFrom"].ToString();
                        txtStopTimeTo.Text       = dr["StopTimeTo"].ToString();
                        txtCutoff.Text           = dr["CutOff"].ToString();
                        txtDistance.Text         = dr["Distance"].ToString();
                        txtNoOfEntry.Text        = dr["TotalEntry"].ToString();
                        txtEclockRaceResult.Text = dr["TotalEclockResult"].ToString();
                        txtTotalSMSClock.Text    = dr["TotalSMSResult"].ToString();
                        RaceReleasePointID       = (Int64)dr["RaceReleasePointID"];
                        GetRaceInfo = true;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(BIZ.Common.CustomError(ex.Message), "Error");
            }
        }