Exemplo n.º 1
0
        public static t_facility_reservation getSingle(string code)
        {
            t_facility_reservation res = new t_facility_reservation();

            using (var dbc = new DBConnect())
            {
                res = dbc.t_facility_reservation.SingleOrDefault(x => x.facility_reservation_code == code);
            }
            return(res);
        }
Exemplo n.º 2
0
        private void d_schedule_list_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (!mod.chackMessage("選択行の編集"))
            {
                return;
            }
            else
            {
                DialogResult result = Utile.Message.showMessageOKCancel("I03006");
                if (result == DialogResult.Cancel)
                {
                    return;
                }
            }

            //ヘッダー行を選択した場合
            if (e.RowIndex == -1)
            {
                return;
            }

            facility_reservation = DB.t_facility_reservation.getSingle(sescheduleFrList[e.RowIndex]);
            PageRefresh();
        }