private void ShowIssueDayForm(LoadMWH loadMWH, int year, int month, TypeView typeView, string tracker) { string text = ""; if (typeView == TypeView.LoadIssueDWH) { text = "План на "; if (loadMWH.item != null) { text = loadMWH.item.Name + " " + tracker + " план на "; } } if (typeView == TypeView.LoadTimeDWH) { text = "Факт на "; if (loadMWH.item != null) { text = loadMWH.item.Name + " " + tracker + " факт на "; } } issueMonthForm = new IssueDayForm(loadMWH, manager, year, month, typeView, typeViewSelect, tracker); manager.Update += issueMonthForm.UpdateIssueInfo; DateTime dateText = new DateTime(year, month, 1); issueMonthForm.Text = text + dateText.ToString("MMMM yyyy"); issueMonthForm.Show(); }
private void ShowIssueDayForm(LoadUser loadUser, TypeView typeView) { string text = "Просроченные задачи специалиста "; //if (typeView == TypeView.LoadIssueDWH) // text = "Запланировано на "; //if (typeView == TypeView.LoadTimeDWH) // text = "Факт на "; issueMonthForm = new IssueDayForm(loadUser, manager, typeView, typeViewSelect, ""); manager.Update += issueMonthForm.UpdateIssueInfo; //DateTime dateText = new DateTime(year, month, 1); issueMonthForm.Text = text + loadUser.user.LastName + " " + loadUser.user.FirstName; issueMonthForm.Show(); }
private void ShowIssueDayForm(LoadProject loadProject, TypeView typeView) { string text = "Просроченные задачи по проекту "; //if (typeView == TypeView.LoadIssueDWH) // text = "Запланировано на "; //if (typeView == TypeView.LoadTimeDWH) // text = "Факт на "; issueMonthForm = new IssueDayForm(loadProject, manager, typeView, typeViewSelect, ""); manager.Update += issueMonthForm.UpdateIssueInfo; //DateTime dateText = new DateTime(year, month, 1); issueMonthForm.Text = text + loadProject.userProject.Name; issueMonthForm.Show(); }
private void listLoadDWH_ColumnClick(object sender, ColumnClickEventArgs e) { IssueDayForm issueMonthForm; switch (typeView) { case TypeView.LoadIssueDWH: issueMonthForm = new IssueDayForm(loadMWH, manager, this.year, this.month, TypeView.LoadShortIssueDWH, this.typeViewSelect, this.tracker); manager.Update += issueMonthForm.UpdateIssueInfo; issueMonthForm.Text = this.Text; issueMonthForm.Show(); break; case TypeView.LoadTimeDWH: issueMonthForm = new IssueDayForm(loadMWH, manager, this.year, this.month, TypeView.LoadShortTimeDWH, this.typeViewSelect, this.tracker); manager.Update += issueMonthForm.UpdateIssueInfo; issueMonthForm.Text = this.Text; issueMonthForm.Show(); break; } }