partial void Updateglobal_session_t(global_session_t instance);
partial void Deleteglobal_session_t(global_session_t instance);
partial void Insertglobal_session_t(global_session_t instance);
private void detach_global_session_ts1(global_session_t entity) { this.SendPropertyChanging(); entity.personal_info_t1 = null; }
private void attach_global_session_ts(global_session_t entity) { this.SendPropertyChanging(); entity.personal_info_t = this; }
public void OpenGlobalSession() { var cs = new ChangeShift(true); cs.ShowDialog(); _currentGlobalSession = GetOpenedSession(); _clentsList = DataBaseClass.Instancedb().GetListOfAllClientsPerSessionT(); _currentDaySessionList = GetExactGlobalSession(_currentGlobalSession.daily_id, _clentsList); }
public void AddNewGlobalSession(string adminId, string operatorId, DateTime date) { var db = new dbDataContext(); lock (db) { var lastAdmin = GetUserInfoByPersonId( GetGlobalSessionByDailyId(GetLastOpenedGlobalSessionDailyId()).administrator_id).name; Table<global_session_t> gst = db.GetTable<global_session_t>(); var globSess = new global_session_t { administrator_id = adminId, start_session = date, end_session = date }; if (operatorId != "no operator") { globSess.operator_id = operatorId; } MakeLogInRecord(DateTime.Now, GetUserInfoByPersonId(globSess.administrator_id).name, GetUserInfoByPersonId(globSess.administrator_id).position, lastAdmin); gst.InsertOnSubmit(globSess); db.SubmitChanges(); } }