Пример #1
0
        public void CopyValues(WorkReportResource source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);

            _oid_category   = source.OidCategory;
            _category       = source.Category;
            _resource       = source.Resource;
            _resource_id    = source.ResourceID;
            _work_report_id = source.WorkReportID;
            _expedient_id   = source.ExpedientID;
        }
Пример #2
0
        private void Fetch(IDataReader source)
        {
            _base.CopyValues(source);

            if (Childs)
            {
                if (nHMng.UseDirectSQL)
                {
                    WorkReportResource.DoLOCK(Session());
                    string      query  = WorkReportResources.SELECT(this);
                    IDataReader reader = nHMng.SQLNativeSelect(query);
                    _lines = WorkReportResources.GetChildList(SessionCode, reader);
                }
            }

            MarkOld();
        }