예제 #1
0
        /// <summary>
        ///     отражает данные пропуска в панели информации
        /// </summary>
        /// <param name="permit"></param>
        private void ShowPermitInfo(Permit permit)
        {
            tboxPermitComment.Text = permit.GetComment(Database);
            tboxPermitCreator.Text = Permit.GetPlanAppointCreator(Database, permit.Id);

            dgvMoving.DataSource    = permit.GetMovingList(Database);
            dgvPointList.DataSource = permit.GetAllowedPointList(Database);
        }
예제 #2
0
        public string GetCreator(Database database)
        {
            //Permit permit = Permit.Load(database, PermitId);

            //return permit.Creator.ToString() + " (" + permit.CreateDate.ToShortDateString() + ")";

            return(Permit.GetPlanAppointCreator(database, PermitId));
        }
예제 #3
0
 internal string GetPlanAppointCreator(Database database)
 {
     return(Permit.GetPlanAppointCreator(database, PermitId));
 }