public void DisplayMatchDetails(Customer customer) { MatchBL mbl = new MatchBL(); List <Persistence.Match> listm = new List <Persistence.Match>(); try { listm = mbl.GetListMatchDetail(); } catch (Exception) { Console.Write("Loi!! Nhan phim bat ki de tro lai man hinh dang nhap!"); Console.ReadKey(); m.LoginInterface(); } if (listm.Count != 0) { var table = new ConsoleTable("Ma Tran", "Ten Tran", "Gio Thi Dau", "Ngay Thi Dau", "San Van Dong"); foreach (var item in listm) { table.AddRow(item.MatchID, item.MatchName, item.MatchTime, String.Format("{0:dd/MM/yyyy}", item.MatchDay), item.MatchStadium); } table.Write(Format.Default); } }
public frmAdministrarMatch() { InitializeComponent(); aLogNeg = new AconsejadoBL(); cLogNeg = new ConsejeroBL(); mLogNeg = new MatchBL(); }
//private EspecialidadBL eLogicaNeg; public frmAdministrarAconsejados() { InitializeComponent(); this.Height = 750; modificarEstado(estado.INICIO); aLogicaNeg = new AconsejadoBL(); mLogicaNeg = new MatchBL(); }
public string GetPrevMatch(string MatchDate) { MatchBL MBL = new MatchBL(); MatchModel MModel = new MatchModel { MatchDate = MatchDate }; return(MBL.GetPrevMatchDate(MModel)); }
public frmAdministrarMatches() { InitializeComponent(); aLogNeg = new AconsejadoBL(); cLogNeg = new ConsejeroBL(); mLogNeg = new MatchBL(); modificarEstado(estado.INICIO); listaA = null; listaC = null; }
public frmMostrarMatches() { InitializeComponent(); mLogNeg = new MatchBL(); aLogNeg = new AconsejadoBL(); BindingList <Match> matches = mLogNeg.listarMatches(0); dgvMatches.AutoGenerateColumns = false; dgvMatches.DataSource = matches; }
public string MatchResult_Update(string Table) { if (Session["UserInfo"] == null) { return("2"); } string userInfo = Session["UserInfo"] as string; MatchBL MBL = new MatchBL(); MatchModel MModel = new MatchModel { MatchJson = Table, UserID = userInfo.Split('_')[0] }; return(MBL.MatchResult_Update(MModel)); }
protected void btnSave_Click(object sender, EventArgs e) { char separator = '_'; string[] idLocal = lblLocalTeam.ID.Split(separator); string[] idVisitor = lblVisitorTeam.ID.Split(separator); MatchBL matchBL = new MatchBL(); MatchDto matchDto = new MatchDto(); matchDto.Id = Convert.ToInt32(txtId.Text); matchDto.IdLocalTeam = Convert.ToInt32(idLocal[idLocal.Length - 1]); matchDto.IdVisitorTeam = Convert.ToInt32(idVisitor[idLocal.Length - 1]); matchDto.LocalTeamScore = string.IsNullOrEmpty(txtScoreLocalTeam.Text) ? null : (int?)Convert.ToInt32(txtScoreLocalTeam.Text); matchDto.VisitorTeamScore = string.IsNullOrEmpty(txtScoreVisitorTeam.Text) ? null : (int?)Convert.ToInt32(txtScoreVisitorTeam.Text); matchDto.PlayingDay = PlayingDay; matchDto.Played = matchDto.LocalTeamScore != null && matchDto.VisitorTeamScore != null ? true : false; matchDto.GroupId = GroupId; if (matchBL.UpdateMatch(matchDto)) { this.MatchUpdated(this, new EventArgs()); } }
private List <MatchDto> GetAllMatches() { MatchBL matchBL = new MatchBL(); return(matchBL.GetAllMatches()); }