コード例 #1
0
        private void btnSaveEvent_Click(object sender, EventArgs e)
        {
            lbEventMsgAlert.Text = "";
            EventbindingSource1.EndEdit();
            dbc.SubmitChanges();
            lbEventMsgAlert.Text = "Save data completed.";

            //LoadRoomEvent
            LoadRoomEvent(0);
        }
コード例 #2
0
        private void btnEventAddNew_Click(object sender, EventArgs e)
        {
            EventbindingSource1.AddNew();
            mst_event newitem  = (mst_event)EventbindingSource1.Current;
            string    createBy = Program.CurrentUser.mut_username;
            DateTime  dtnow    = Program.GetServerDateTime();

            newitem.mvt_create_by   = createBy;
            newitem.mvt_create_date = dtnow;
            newitem.mvt_update_by   = createBy;
            newitem.mvt_update_date = dtnow;
        }