コード例 #1
0
ファイル: Notice.cs プロジェクト: mwkim0402/Team1_MES2
        private void dgv_Notice_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                Notice_Service service = new Notice_Service();

                txt_Title.Text = dgv_Notice.Rows[e.RowIndex].Cells[0].Value.ToString();
                txt_Name.Text  = dgv_Notice.Rows[e.RowIndex].Cells[1].Value.ToString();
                txt_date.Text  = dgv_Notice.Rows[e.RowIndex].Cells[2].Value.ToString();
                List <Notice_Vo> vo = service.GetNotice(txt_Title.Text);

                txt_Des.Text = vo[0].Description.ToString();
                ////vo.Title =                      txt_Title.Text;
                ////vo.Ins_Emp =                 txt_Name.Text;
                ////vo.Notice_Date =             txt_Name.Text;
                ////vo.Description =             txt_Des.Text;


                //  txt_Name.Text = vo.Ins_Emp;
                //   txt_Name.Text = vo.Notice_Date;
                //  txt_Des.Text = vo.Description;
            }
            catch
            {
            }
        }
コード例 #2
0
ファイル: Notice.cs プロジェクト: mwkim0402/Team1_MES2
        private void LoadNList()
        {
            Notice_Service service = new Notice_Service();

            NList = service.NoticeList();
        }