object fmReestr_New: TfmReestr_New
  Left = 245
  Top = 107
  Width = 718
  Height = 543
  Caption = 'Организации'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  Position = poScreenCenter
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Visible = True
  MainDataSet = dmDaic.cdsOrganization_View
  AutoActiveDS = true
  OnClose = FormClose
  PixelsPerInch = 96
  TextHeight = 13

  object cbOrganization: TControlBar
    Left = 0
    Top = 0
    Width = 710
    Height = 50
    Align = alTop
    AutoDock = False
    AutoDrag = False
    AutoSize = True
    TabOrder = 0

    object tbOrganization: TToolBar
      Left = 11
      Top = 2
      Width = 670
      Height = 45
      AutoSize = True
      ButtonHeight = 68
      ButtonWidth = 112
      Caption = ''
      Flat = True
      Images = ilReestr
      ParentShowHint = False
      ShowCaptions = True
      ShowHint = True
      TabOrder = 0

      object tbFind: TDeloToolButton
        Left = 0
        Top = 0
        AutoSize = True
        Caption = 'Поиск'
        ImageIndex = 0
	DataSet = dmDaic.cdsOrganization_View
        FunctionName = 'FilterDataSet'
      FunctionParameters =
        <
        item
            ParamType = 7
        end
        item
            ParamValue = 'fmFindOrganization'
            ParamType = 4
        end
        item
            ParamValue = '$$DELO$$\source_d\Find_Org._d'
            ParamType = 4
        end
        >
      end

      object tbSep1: TToolButton
        Left = 55
        Top = 0
        Width = 8
        Caption = ''
        ImageIndex = 5
        Style = tbsSeparator
      end

      object tbPrint: TDeloToolButton
        Left = 63
        Top = 0
        AutoSize = True
        Caption = 'Печать'
        ImageIndex = 1
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'PrintSimpleDataSet'
      FunctionParameters =
        <
        item
            ParamType = 7
        end
        item
            ParamValue = 'Перечень организаций'
            ParamType = 4
        end
        >
      end

      object tbSep2: TToolButton
        Left = 118
        Top = 0
        Width = 8
        Caption = ''
        ImageIndex = 5
        Style = tbsSeparator
      end

      object tbAddOrg: TDeloToolButton
        Left = 126
        Top = 0
        AutoSize = True
        Caption = 'Добавить'
        ImageIndex = 2
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'ModifySimpleRecordMaster'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          item
              ParamValue = 'ID'
              ParamType = 4
          end
          item
              ParamValue = 'Organization'
              ParamType = 4
          end
          item
              ParamValue = 'fmEditOrganization'
              ParamType = 4
          end
          item
              ParamValue = '$$DELO$$\source_d\Edit_Org._d'
              ParamType = 4
          end
          item
              ParamValue = 'Добавить новую организацию'
              ParamType = 4
          end
          item
            ParamType = 4
            ParamValue = 'ID'
          end
          item
            ParamType = 4
            ParamValue = ''
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          item
            ParamType = 4
            ParamValue = 'select * from organization where id=$$NEW_ID$$'
          end

          >
      end

      object tbEditOrg: TDeloToolButton
        Left = 187
        Top = 0
        AutoSize = True
        Caption = 'Изменить'
        ImageIndex = 3
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
            ParamType = 0
            ParamValue = '1'
          end
          item
              ParamValue = 'ID'
              ParamType = 4
          end
          item
              ParamValue = 'Organization'
              ParamType = 4
          end
          item
              ParamValue = 'fmEditOrganization'
              ParamType = 4
          end
          item
              ParamValue = '$$DELO$$\source_d\Edit_Org._d'
              ParamType = 4
          end
          item
              ParamValue = 'Изменить данный об организации'
              ParamType = 4
          end
          item
            ParamType = 4
            ParamValue = 'ID'
          end
          item
            ParamType = 4
            ParamValue = ''
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          >
      end

      object tbSep3: TDeloToolButton
        Left = 303
        Top = 0
        Width = 8
        Caption = 'ToolButton4'
        ImageIndex = 5
        Style = tbsSeparator
      end

      object tbFirst: TDeloToolButton
        Left = 311
        Top = 0
        AutoSize = True
        Caption = #1050' '#1087#1077#1088#1074#1086#1081
        ImageIndex = 4
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '-2'
              ParamType = 0
          end
          >
      end
      object tbPrev: TDeloToolButton
        Left = 368
        Top = 0
        AutoSize = True
        Caption = #1050' '#1087#1088#1077#1076#1099#1076#1091#1097#1077#1081
        ImageIndex = 5
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '-1'
              ParamType = 0
          end
          >
      end
      object tbNext: TDeloToolButton
        Left = 453
        Top = 0
        AutoSize = True
        Caption = #1050' '#1089#1083#1077#1076#1091#1097#1077#1081
        ImageIndex = 6
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '1'
              ParamType = 0
          end
          >
      end
      object tbLast: TDeloToolButton
        Left = 524
        Top = 0
        AutoSize = True
        Caption = #1050' '#1087#1086#1089#1083#1077#1076#1085#1077#1081
        ImageIndex = 7
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '2'
              ParamType = 0
          end
          >
      end
      object tbRefresh: TDeloToolButton
        Left = 599
        Top = 0
        AutoSize = True
        Caption = #1054#1073#1085#1086#1074#1080#1090#1100
        ImageIndex = 8
	DataSet = dmDaic.cdsOrganization_View
	FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '0'
              ParamType = 0
          end
          >
      end
    end
  end

  object dbgReestr: TDeloDBGrid
    Left = 0
    Top = 78
    Width = 318
    Height = 438
    Align = alClient
    Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection,  dgCancelOnExit]
    TabOrder = 1
    TitleFont.Charset = DEFAULT_CHARSET
    TitleFont.Color = clWindowText
    TitleFont.Height = -11
    TitleFont.Name = 'MS Sans Serif'
    TitleFont.Style = [fsBold]
    DataSource = dmDaic.dsOrganization_View
    PopupMenu = pmOrganization
  end

  object Spl: TSplitter
    Left = 318
    Top = 78
    Width = 3
    Height = 438
    Align = AlRight
    Cursor = crHSplit
  end

  object PageControl1: TPageControl
    Left = 321
    Top = 78
    Width = 389
    Height = 438
    ActivePage = tsView
    Align = alRight
    TabIndex = 0
    TabOrder = 2
    object tsView: TTabSheet
      Caption = #1048#1085#1092#1086#1088#1084#1072#1094#1080#1103
      object dbrInfo: TDeloDBRichEdit
        Left = 0
        Top = 0
        Width = 381
        Height = 410
        Align = alClient
	ReadOnly = true
        DataSource = dmDaic.dsOrg_Preview
        FileDescription = '$$DELO$$objects.rtf'
        TabOrder = 0
      end
    end
    object tsRebuild: TTabSheet
      Caption = #1056#1077#1086#1088#1075#1072#1085#1080#1079#1072#1094#1080#1103
      ImageIndex = 1
      object dbgRebuild: TDeloDBGrid
        Left = 0
        Top = 0
        Width = 381
        Height = 410
        Align = alClient
        TabOrder = 0
	Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection,  dgCancelOnExit]
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        DataSource = dmDaic.dsRebuild_Org
        PopupMenu = pmRebuild_Org
      end
    end
    object tsDocs: TTabSheet
      Caption = #1044#1086#1082#1091#1084#1077#1085#1090#1099
      ImageIndex = 2
      object dbgDocs: TDeloDBGrid
        Left = 0
        Top = 0
        Width = 381
        Height = 410
        Align = alClient
        TabOrder = 0
	Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection,  dgCancelOnExit]
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        DataSource = dmDaic.dsOrg_Docs
        PopupMenu = pmOrg_Docs
      end
    end
  end

  object ilReestr: TDeloImageList
    Height = 24
    Width = 24
    Left = 680
    Top = 8
    XMLFile = '$$DELO$$images.xml'
  end

  object ilPopup_Org: TDeloImageList
    Height = 16
    Width = 16
    Left = 500
    Top = 8
    XMLFile = '$$DELO$$\source_d\popup_org_img.xml'
  end


  object pmRebuild_Org: TDeloPopupMenu
    Left = 56
    Top = 376
    Images = ilPopup_Org
    DataSource = dmDaic.dsRebuild_Org
    object mnAddRebuild: TDeloMenuItem
      Caption = 'Добавить'
      Imageindex = 2
      FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsRebuild'
        end
        item
          ParamType = 0
          ParamValue = '0'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = 'REBUILD_ORG'
        end
        item
          ParamType = 4
          ParamValue = 'fmRebuild_Org'
        end
        item
          ParamType = 4
          ParamValue = '$$DELO$$\source_d\Rebuild_Org._d'
        end
        item
          ParamType = 4
          ParamValue = 'Добавьте сведения о переименовании'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = ''
        end
        item
          ParamType = 0
          ParamValue = '1'
        end
      >
    end
    object mnEditRebuild: TDeloMenuItem
      Caption = 'Изменить'
      Imageindex = 3
      FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsRebuild'
        end
        item
          ParamType = 0
          ParamValue = '0'
        end

        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = 'REBUILD_ORG'
        end
        item
          ParamType = 4
          ParamValue = 'fmRebuild_Org'
        end
        item
          ParamType = 4
          ParamValue = '$$DELO$$\source_d\Rebuild_Org._d'
        end
        item
          ParamType = 4
          ParamValue = 'Добавьте сведения о переименовании'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = ''
        end
      >
    end
    object mnDeleteRebuild: TDeloMenuItem
      Caption = 'Удалить'
      Imageindex = 5
      FunctionName = 'DeleteSimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsRebuild'
        end
        item
          ParamType = 4
          ParamValue = 'Удалить сведения о переименовании?'
        end
      >
    end

	object mnRefreshRebuild: TDeloMenuItem
      Caption = 'Обновить'
      Imageindex = 10
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '0'
              ParamType = 0
          end
          >
    end

  end
  
  object pmOrg_Docs: TDeloPopupMenu
    Left = 368
    Top = 376
    Images = ilPopup_Org
    DataSource = dmDaic.dsOrg_Docs
    object mnAddDoc: TDeloMenuItem
      imageindex = 2
      Caption = 'Добавить'
      FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsOrg_Docs'
        end
        item
          ParamType = 0
          ParamValue = '0'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = 'ORG_DOCS'
        end
        item
          ParamType = 4
          ParamValue = 'fmOrg_Docs'
        end
        item
          ParamType = 4
          ParamValue = '$$DELO$$\source_d\Org_Docs._d'
        end
        item
          ParamType = 4
          ParamValue = 'Добавьте сведения о документах'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = ''
        end
      >
    end
    object mnEditDoc: TDeloMenuItem
      Caption = 'Изменить'
      imageindex = 3
      FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsOrg_Docs'
        end
        item
          ParamType = 0
          ParamValue = '1'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = 'ORG_DOCS'
        end
        item
          ParamType = 4
          ParamValue = 'fmOrg_Docs'
        end
        item
          ParamType = 4
          ParamValue = '$$DELO$$\source_d\Org_Docs._d'
        end
        item
          ParamType = 4
          ParamValue = 'Изменение сведений о документах'
        end
        item
          ParamType = 4
          ParamValue = 'ID'
        end
        item
          ParamType = 4
          ParamValue = ''
        end
      >
    end
    object mnDeleteDoc: TDeloMenuItem
      Caption = 'Удалить'
      imageindex = 5
      FunctionName = 'DeleteSimpleRecord'
      FunctionParameters =
      <
        item
          ParamType = 7
          ParamValue = 'dsOrg_Docs'
        end
        item
          ParamType = 4
          ParamValue = 'Удалить сведения о документах?'
        end
      >
    end
	object mnRefreshDoc: TDeloMenuItem
      Caption = 'Обновить'
      Imageindex = 10
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '0'
              ParamType = 0
          end
          >
    end

  end

  object pmOrganization: TDeloPopupMenu
    Left = 368
    Top = 376
    Images = ilPopup_Org
    DataSource = dmDaic.dsOrganization_View

    object mnFindOrg: TDeloMenuItem
      Caption = 'Фильтр'
	ImageIndex = 0
      FunctionName = 'FilterDataSet'
      FunctionParameters =
        <
        item
            ParamType = 7
        end
        item
            ParamValue = 'fmFindOrganization'
            ParamType = 4
        end
        item
            ParamValue = '$$DELO$$\source_d\Find_Org._d'
            ParamType = 4
        end
        >
    end

    object TMenuItem
      Caption = '-'
    end

    object mnPrintOrg: TDeloMenuItem
      Caption = 'Печать списка'
      ImageIndex = 1
      FunctionName = 'PrintSimpleDataSet'
      FunctionParameters =
        <
        item
            ParamType = 7
        end
        item
            ParamValue = 'Перечень организаций'
            ParamType = 4
        end
        >
    end

    object TMenuItem
      Caption = '-'
    end

    object mnAddOrg: TDeloMenuItem
      Caption = 'Добавить'
	ImageIndex = 2
      FunctionName = 'ModifySimpleRecordMaster'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          item
              ParamValue = 'ID'
              ParamType = 4
          end
          item
              ParamValue = 'Organization'
              ParamType = 4
          end
          item
              ParamValue = 'fmEditOrganization'
              ParamType = 4
          end
          item
              ParamValue = '$$DELO$$\source_d\Edit_Org._d'
              ParamType = 4
          end
          item
              ParamValue = 'Добавить новую организацию'
              ParamType = 4
          end
          item
            ParamType = 4
            ParamValue = 'ID'
          end
          item
            ParamType = 4
            ParamValue = ''
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          item
            ParamType = 4
            ParamValue = 'select * from organization where id=$$NEW_ID$$'
          end

          >
    end

    object mnEditOrg: TDeloMenuItem
      Caption = 'Изменить'
      ImageIndex = 3
      FunctionName = 'ModifySimpleRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
            ParamType = 0
            ParamValue = '1'
          end
          item
              ParamValue = 'ID'
              ParamType = 4
          end
          item
              ParamValue = 'Organization'
              ParamType = 4
          end
          item
              ParamValue = 'fmEditOrganization'
              ParamType = 4
          end
          item
              ParamValue = '$$DELO$$\source_d\Edit_Org._d'
              ParamType = 4
          end
          item
              ParamValue = 'Изменить данные об организации'
              ParamType = 4
          end
          item
            ParamType = 4
            ParamValue = 'ID'
          end
          item
            ParamType = 4
            ParamValue = ''
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          >
    end
    
    

    object mnDeleteOrg: TDeloMenuItem
      Caption = 'Удалить'
      ImageIndex = 5
      FunctionName = 'DeleteDetailRecord'
      FunctionParameters =
      <
        item
          ParamType = 4
          ParamValue = 'dmDaic'
        end
        item
          ParamType = 4
          ParamValue = 'cdsOrg_Info'
        end
        item
          ParamType = 7
        end
      >
    end
   
   object TMenuItem
      Caption = '-'
    end

    object mnRenameOrg: TDeloMenuItem
      Caption = 'Переименовать'
      ImageIndex = 4
      FunctionName = 'ModifySimpleRecordProc'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
            ParamType = 0
            ParamValue = '1'
          end
          item
              ParamValue = 'ID'
              ParamType = 4
          end
          item
              ParamValue = 'Organization'
              ParamType = 4
          end
          item
              ParamValue = 'fmEditOrganization'
              ParamType = 4
          end
          item
              ParamValue = '$$DELO$$\source_d\Edit_Org._d'
              ParamType = 4
          end
          item
              ParamValue = 'Добавить новую организацию'
              ParamType = 4
          end
          item
            ParamType = 4
            ParamValue = 'ID'
          end
          item
            ParamType = 4
            ParamValue = ''
          end
          item
            ParamType = 0
            ParamValue = '0'
          end
          item
            ParamType = 4
            ParamValue = 'SP'
          end
          >
    end

   object TMenuItem
      Caption = '-'
    end

    object mnFirstOrg: TDeloMenuItem
      Caption = 'К первой записи'
      ImageIndex = 6
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '-2'
              ParamType = 0
          end
          >
    end

    object mnPrevOrg: TDeloMenuItem
      Caption = 'К предыдущей записи'
      ImageIndex = 7
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '-1'
              ParamType = 0
          end
          >
    end

    object mnNextOrg: TDeloMenuItem
      Caption = 'К следующей записи'
      ImageIndex = 8
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '1'
              ParamType = 0
          end
          >
    end

    object mnLastOrg: TDeloMenuItem
      Caption = 'К последней записи'
      ImageIndex = 9
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
             ParamType = 7
          end
          item
              ParamValue = '2'
              ParamType = 0
          end
          >
    end

    object mnRefreshOrg: TDeloMenuItem
      Caption = 'Обновить'
      ImageIndex = 10
      FunctionName = 'GoRecord'
      FunctionParameters =
          <
          item
              ParamType = 7
          end
          item
              ParamValue = '0'
              ParamType = 0
          end
          >
    end

  end

end
