Пример #1
0
		public static OutputData Search(int ID)
		{
			OutputData cur = null;
			try
            {
                String SQL = String.Format("SELECT OutputID, Title, Subject, AdditionalInfo FROM ResearchOutput WHERE OutputID = '{0}';", ID);
                ArrayList List = RISReader.GetFirstRow(SQL);
				cur = new OutputData(List);
            }
			catch(Exception e)
			{
			}
			return cur;
		}
Пример #2
0
        private void dtgROList_CellClick(object sender, EventArgs e)
        {
            try
            {
                int pos = dtgROList.CurrentRow.Index;

                    if (pos < ResearchOutput.OutputDT.Rows.Count)
                    {
                        int OutputID = int.Parse(dtgROList.CurrentRow.Cells[0].Value.ToString());

                        SelectedSeachRO = new OutputData(dtgROList.CurrentRow.Cells[0].Value.ToString(), dtgROList.CurrentRow.Cells[1].Value.ToString(), 
                            dtgROList.CurrentRow.Cells[3].Value.ToString(), dtgROList.CurrentRow.Cells[4].Value.ToString());
                        grbROSelected.DataContext = null;
                        grbROSelected.DataContext = SelectedSeachRO;
                    }
                
            }
            catch (Exception ex)
            {
            }

        }