public Appeal(Trademark TM, TM_Status LastDecision) //insert { InitializeComponent(); givenTM = TM; prevTMStatus = LastDecision; txtTMId.Text = TM.TMNo; txtTMName.Text = TM.TMName; dtpDepositDt.Value = TM.DepositDt; dtpDepositTime.Value = TM.DepositDt; if (LastDecision.StatusId == 3) { rbPartiallyRejected.Checked = true; } else if (LastDecision.StatusId == 4) { rbPartiallyRejected.Checked = true; } txtDecisionNo.Text = LastDecision.DecisionNo; dtpPublicationDate.Value = LastDecision.DecisionPublDt; isInsert = true; frmAttachments = new SampleFiles(); }
private void tsmiFiles_Click(object sender, EventArgs e) { if (gridView1.SelectedRowsCount > 0 && gridView1.GetSelectedRows()[0] >= 0) { int Id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["Id"]).ToString()); TM_Status tms = tmStatusList.Where(i => i.Id == Id).First(); if (tms.StatusId == 2 || tms.StatusId == 3 || tms.StatusId == 4 || tms.StatusId == 5 || tms.StatusId == 6) { SampleFiles frmFiles = new SampleFiles(tms.Id); if (frmFiles.filesCnt > 0) { frmFiles.btnAddFiles.Enabled = false; frmFiles.btnRemoveFile.Enabled = false; frmFiles.btnRemoveAll.Enabled = false; frmFiles.btnSave.Enabled = false; frmFiles.ShowDialog(); } else { MessageBox.Show("Δεν υπάρχουν καταχωρημένα αρχεία!"); } } else { MessageBox.Show("Δεν υπάρχουν καταχωρημένα αρχεία!"); } } }
private void tsmiFiles_Click(object sender, EventArgs e) { int Id = Convert.ToInt32(dgvStatusViewer.SelectedRows[0].Cells["st_Id"].Value.ToString()); TM_Status tms = tmStatusList.Where(i => i.Id == Id).First(); if (tms.StatusId == 2 || tms.StatusId == 3 || tms.StatusId == 4 || tms.StatusId == 5 || tms.StatusId == 6) { SampleFiles frmFiles = new SampleFiles(tms.Id); if (frmFiles.filesCnt > 0) { frmFiles.btnAddFiles.Enabled = false; frmFiles.btnRemoveFile.Enabled = false; frmFiles.btnRemoveAll.Enabled = false; frmFiles.btnSave.Enabled = false; frmFiles.ShowDialog(); } else { MessageBox.Show("Δεν υπάρχουν καταχωρημένα αρχεία!"); } } else { MessageBox.Show("Δεν υπάρχουν καταχωρημένα αρχεία!"); } }
public Decision(Trademark TM) //insert { InitializeComponent(); givenTM = TM; txtTMId.Text = TM.TMNo; txtTMName.Text = TM.TMName; dtpDepositDt.Value = TM.DepositDt; dtpDepositTime.Value = TM.DepositDt; isInsert = true; frmAttachments = new SampleFiles(); }
public Termination(Trademark TM, TM_Status LastDecision, TM_Status TMS) //update { InitializeComponent(); givenTM = TM; prevTMStatus = LastDecision; givenTMS = TMS; txtTMId.Text = TM.TMNo; txtTMName.Text = TM.TMName; dtpDepositDt.Value = TM.DepositDt; dtpDepositTime.Value = TM.DepositDt; if (LastDecision.StatusId == 3) { rbPartiallyRejected.Checked = true; } else if (LastDecision.StatusId == 4) { rbPartiallyRejected.Checked = true; } txtDecisionNo.Text = LastDecision.DecisionNo; dtpPublicationDate.Value = LastDecision.DecisionPublDt; isInsert = false; OldRecord = TMS; TempRecUpdId = TMS.Id; if (TMS.TermDt != null) { dtpTerminationDt.Value = (DateTime)TMS.TermDt; } txtTermCompany.Text = TMS.TermCompany; txtDescription.Text = TMS.Remarks; frmAttachments = new SampleFiles(TempRecUpdId); }
public Decision(Trademark TM, TM_Status TMS) //update { InitializeComponent(); givenTM = TM; givenTMS = TMS; txtTMId.Text = TM.TMNo; txtTMName.Text = TM.TMName; dtpDepositDt.Value = TM.DepositDt; dtpDepositTime.Value = TM.DepositDt; isInsert = false; OldRecord = TMS; TempRecUpdId = TMS.Id; if (TMS.StatusId == 2) //2 Εγκριτική { rbApproved.Checked = true; } else if (TMS.StatusId == 3) //3 Μερικώς Απορ. { rbPartiallyRejected.Checked = true; } else if (TMS.StatusId == 4) //4 Ολικώς Απορ. { rbTotallyRejected.Checked = true; } txtDecisionNo.Text = TMS.DecisionNo; dtpPublicationDate.Value = TMS.DecisionPublDt; txtDescription.Text = TMS.Remarks; frmAttachments = new SampleFiles(TempRecUpdId); }