Beispiel #1
0
 partial void Updateglobal_session_t(global_session_t instance);
Beispiel #2
0
 partial void Deleteglobal_session_t(global_session_t instance);
Beispiel #3
0
 partial void Insertglobal_session_t(global_session_t instance);
Beispiel #4
0
		private void detach_global_session_ts1(global_session_t entity)
		{
			this.SendPropertyChanging();
			entity.personal_info_t1 = null;
		}
Beispiel #5
0
		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);
        }
Beispiel #7
0
        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();
            }
        }