Model1.edmx 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="Хранилище KadroviYshotModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="Childrens">
  9. <Key>
  10. <PropertyRef Name="IdChildren" />
  11. </Key>
  12. <Property Name="IdChildren" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="IdEmployee" Type="int" />
  14. <Property Name="Type" Type="nvarchar" MaxLength="50" />
  15. <Property Name="FullName" Type="nvarchar(max)" />
  16. <Property Name="DateBirth" Type="date" />
  17. </EntityType>
  18. <EntityType Name="Dolzhnosts">
  19. <Key>
  20. <PropertyRef Name="IdDolzhnost" />
  21. </Key>
  22. <Property Name="IdDolzhnost" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  23. <Property Name="NameDolzhnost" Type="nvarchar" MaxLength="50" />
  24. <Property Name="Salary" Type="money" />
  25. </EntityType>
  26. <EntityType Name="Educations">
  27. <Key>
  28. <PropertyRef Name="IdEducation" />
  29. </Key>
  30. <Property Name="IdEducation" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  31. <Property Name="Establishment" Type="nvarchar" MaxLength="50" />
  32. <Property Name="YearEnding" Type="int" />
  33. <Property Name="Qualification" Type="nvarchar" MaxLength="50" />
  34. <Property Name="Speciality" Type="nvarchar" MaxLength="50" />
  35. </EntityType>
  36. <EntityType Name="Employees">
  37. <Key>
  38. <PropertyRef Name="IdEmployee" />
  39. </Key>
  40. <Property Name="IdEmployee" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="Surname" Type="nvarchar" MaxLength="50" />
  42. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  43. <Property Name="Otchestvo" Type="nvarchar" MaxLength="50" />
  44. <Property Name="DateBirth" Type="date" />
  45. <Property Name="IdDolzhnost" Type="int" />
  46. <Property Name="IdFamilyStatus" Type="int" />
  47. <Property Name="AddressResidence" Type="nvarchar(max)" />
  48. <Property Name="Telephone" Type="nvarchar" MaxLength="50" />
  49. <Property Name="DateReceipt" Type="date" />
  50. <Property Name="IdEducation" Type="int" />
  51. <Property Name="IdChildren" Type="int" />
  52. <Property Name="IdMilitaryDuty" Type="int" />
  53. </EntityType>
  54. <EntityType Name="FamilyStatuses">
  55. <Key>
  56. <PropertyRef Name="IdFamilyStatus" />
  57. </Key>
  58. <Property Name="IdFamilyStatus" Type="int" Nullable="false" />
  59. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  60. </EntityType>
  61. <EntityType Name="MilitaryDuties">
  62. <Key>
  63. <PropertyRef Name="IdMilitaryDuty" />
  64. </Key>
  65. <Property Name="IdMilitaryDuty" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  66. <Property Name="MilitaryIdNumber" Type="int" />
  67. <Property Name="AccountingGroup" Type="nvarchar" MaxLength="50" />
  68. <Property Name="MilitaryRank" Type="nvarchar" MaxLength="50" />
  69. <Property Name="Profile" Type="nvarchar" MaxLength="50" />
  70. <Property Name="ReserveRank" Type="nvarchar" MaxLength="50" />
  71. <Property Name="DateReceipt" Type="date" />
  72. <Property Name="DateWithdrawal" Type="date" />
  73. <Property Name="Base" Type="nvarchar" MaxLength="50" />
  74. <Property Name="SpecialAccount" Type="bit" />
  75. <Property Name="MilitaryRegistrationNumber" Type="int" />
  76. <Property Name="MilitaryPositionCode" Type="int" />
  77. </EntityType>
  78. <EntityType Name="OrdersDismissal">
  79. <Key>
  80. <PropertyRef Name="IdDismissal" />
  81. </Key>
  82. <Property Name="IdDismissal" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  83. <Property Name="IdEmployee" Type="int" />
  84. <Property Name="DateApproval" Type="date" />
  85. <Property Name="Grounds" Type="nvarchar" MaxLength="50" />
  86. </EntityType>
  87. <EntityType Name="OrdersEmployment">
  88. <Key>
  89. <PropertyRef Name="IdAcceptanceWork" />
  90. </Key>
  91. <Property Name="IdAcceptanceWork" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  92. <Property Name="IdEmployee" Type="int" />
  93. <Property Name="IdStaffingTable" Type="int" />
  94. <Property Name="IdDolzhnost" Type="int" />
  95. <Property Name="DateApproval" Type="date" />
  96. </EntityType>
  97. <EntityType Name="Roles">
  98. <Key>
  99. <PropertyRef Name="IdRole" />
  100. </Key>
  101. <Property Name="IdRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  102. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  103. </EntityType>
  104. <EntityType Name="StaffingTables">
  105. <Key>
  106. <PropertyRef Name="IdStaffingTable" />
  107. </Key>
  108. <Property Name="IdStaffingTable" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  109. <Property Name="IdEmployee" Type="int" />
  110. <Property Name="IdSubdivision" Type="int" />
  111. </EntityType>
  112. <EntityType Name="Subdivisions">
  113. <Key>
  114. <PropertyRef Name="IdSubdivision" />
  115. </Key>
  116. <Property Name="IdSubdivision" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  117. <Property Name="NameSubdivision" Type="nvarchar" MaxLength="50" />
  118. </EntityType>
  119. <EntityType Name="sysdiagrams">
  120. <Key>
  121. <PropertyRef Name="diagram_id" />
  122. </Key>
  123. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  124. <Property Name="principal_id" Type="int" Nullable="false" />
  125. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  126. <Property Name="version" Type="int" />
  127. <Property Name="definition" Type="varbinary(max)" />
  128. </EntityType>
  129. <EntityType Name="Users">
  130. <Key>
  131. <PropertyRef Name="IdUser" />
  132. </Key>
  133. <Property Name="IdUser" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  134. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  135. <Property Name="Login" Type="nvarchar" MaxLength="50" />
  136. <Property Name="Password" Type="nvarchar" MaxLength="50" />
  137. <Property Name="IdRole" Type="int" />
  138. </EntityType>
  139. <!--Ошибки, обнаруженные при создании:
  140. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.Dolzhnost" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  141. <EntityType Name="Dolzhnost">
  142. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  143. <Property Name="Оклад" Type="money" />
  144. </EntityType>-->
  145. <!--Ошибки, обнаруженные при создании:
  146. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmployeeInformation" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  147. <EntityType Name="EmployeeInformation">
  148. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  149. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  150. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  151. <Property Name="Дата рождение" Type="date" />
  152. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  153. <Property Name="Адресс" Type="nvarchar(max)" />
  154. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  155. <Property Name="Дата принятия" Type="date" />
  156. <Property Name="Дети" Type="nvarchar(max)" />
  157. <Property Name="Семейный статус" Type="nvarchar" MaxLength="50" />
  158. <Property Name="Учебное учереждение" Type="nvarchar" MaxLength="50" />
  159. <Property Name="Номер военника" Type="int" />
  160. </EntityType>-->
  161. <!--Ошибки, обнаруженные при создании:
  162. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmployeesFired" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  163. <EntityType Name="EmployeesFired">
  164. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  165. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  166. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  167. <Property Name="Дата рождения" Type="date" />
  168. <Property Name="Дата утверждения" Type="date" />
  169. <Property Name="Основания" Type="nvarchar" MaxLength="50" />
  170. </EntityType>-->
  171. <!--Ошибки, обнаруженные при создании:
  172. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmploymentAgreement" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  173. <EntityType Name="EmploymentAgreement">
  174. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  175. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  176. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  177. <Property Name="Дата рождения" Type="date" />
  178. <Property Name="Адрес проживания" Type="nvarchar(max)" />
  179. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  180. <Property Name="Дата принятия на работу" Type="date" />
  181. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  182. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  183. <Property Name="Оклад" Type="money" />
  184. </EntityType>-->
  185. <!--Ошибки, обнаруженные при создании:
  186. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.StaffingTable" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  187. <EntityType Name="StaffingTable">
  188. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  189. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  190. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  191. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  192. <Property Name="Дата рождения" Type="date" />
  193. <Property Name="Адрес проживания" Type="nvarchar(max)" />
  194. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  195. <Property Name="Принят на работу" Type="date" />
  196. </EntityType>-->
  197. <!--Ошибки, обнаруженные при создании:
  198. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.Subdivision" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  199. <EntityType Name="Subdivision">
  200. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  201. </EntityType>-->
  202. <Association Name="FK_Childrens_Employees">
  203. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  204. <End Role="Childrens" Type="Self.Childrens" Multiplicity="*" />
  205. <ReferentialConstraint>
  206. <Principal Role="Employees">
  207. <PropertyRef Name="IdEmployee" />
  208. </Principal>
  209. <Dependent Role="Childrens">
  210. <PropertyRef Name="IdEmployee" />
  211. </Dependent>
  212. </ReferentialConstraint>
  213. </Association>
  214. <Association Name="FK_Employees_Dolzhnosts">
  215. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  216. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  217. <ReferentialConstraint>
  218. <Principal Role="Dolzhnosts">
  219. <PropertyRef Name="IdDolzhnost" />
  220. </Principal>
  221. <Dependent Role="Employees">
  222. <PropertyRef Name="IdDolzhnost" />
  223. </Dependent>
  224. </ReferentialConstraint>
  225. </Association>
  226. <Association Name="FK_Employees_Educations">
  227. <End Role="Educations" Type="Self.Educations" Multiplicity="0..1" />
  228. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  229. <ReferentialConstraint>
  230. <Principal Role="Educations">
  231. <PropertyRef Name="IdEducation" />
  232. </Principal>
  233. <Dependent Role="Employees">
  234. <PropertyRef Name="IdEducation" />
  235. </Dependent>
  236. </ReferentialConstraint>
  237. </Association>
  238. <Association Name="FK_Employees_FamilyStatuses">
  239. <End Role="FamilyStatuses" Type="Self.FamilyStatuses" Multiplicity="0..1" />
  240. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  241. <ReferentialConstraint>
  242. <Principal Role="FamilyStatuses">
  243. <PropertyRef Name="IdFamilyStatus" />
  244. </Principal>
  245. <Dependent Role="Employees">
  246. <PropertyRef Name="IdFamilyStatus" />
  247. </Dependent>
  248. </ReferentialConstraint>
  249. </Association>
  250. <Association Name="FK_Employees_MilitaryDuties">
  251. <End Role="MilitaryDuties" Type="Self.MilitaryDuties" Multiplicity="0..1" />
  252. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  253. <ReferentialConstraint>
  254. <Principal Role="MilitaryDuties">
  255. <PropertyRef Name="IdMilitaryDuty" />
  256. </Principal>
  257. <Dependent Role="Employees">
  258. <PropertyRef Name="IdMilitaryDuty" />
  259. </Dependent>
  260. </ReferentialConstraint>
  261. </Association>
  262. <Association Name="FK_OrdersDismissal_Employees">
  263. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  264. <End Role="OrdersDismissal" Type="Self.OrdersDismissal" Multiplicity="*" />
  265. <ReferentialConstraint>
  266. <Principal Role="Employees">
  267. <PropertyRef Name="IdEmployee" />
  268. </Principal>
  269. <Dependent Role="OrdersDismissal">
  270. <PropertyRef Name="IdEmployee" />
  271. </Dependent>
  272. </ReferentialConstraint>
  273. </Association>
  274. <Association Name="FK_OrdersEmployment_Dolzhnosts">
  275. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  276. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  277. <ReferentialConstraint>
  278. <Principal Role="Dolzhnosts">
  279. <PropertyRef Name="IdDolzhnost" />
  280. </Principal>
  281. <Dependent Role="OrdersEmployment">
  282. <PropertyRef Name="IdDolzhnost" />
  283. </Dependent>
  284. </ReferentialConstraint>
  285. </Association>
  286. <Association Name="FK_OrdersEmployment_Employees1">
  287. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  288. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  289. <ReferentialConstraint>
  290. <Principal Role="Employees">
  291. <PropertyRef Name="IdEmployee" />
  292. </Principal>
  293. <Dependent Role="OrdersEmployment">
  294. <PropertyRef Name="IdEmployee" />
  295. </Dependent>
  296. </ReferentialConstraint>
  297. </Association>
  298. <Association Name="FK_OrdersEmployment_StaffingTables">
  299. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="0..1" />
  300. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  301. <ReferentialConstraint>
  302. <Principal Role="StaffingTables">
  303. <PropertyRef Name="IdStaffingTable" />
  304. </Principal>
  305. <Dependent Role="OrdersEmployment">
  306. <PropertyRef Name="IdStaffingTable" />
  307. </Dependent>
  308. </ReferentialConstraint>
  309. </Association>
  310. <Association Name="FK_StaffingTables_Subdivisions">
  311. <End Role="Subdivisions" Type="Self.Subdivisions" Multiplicity="0..1" />
  312. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="*" />
  313. <ReferentialConstraint>
  314. <Principal Role="Subdivisions">
  315. <PropertyRef Name="IdSubdivision" />
  316. </Principal>
  317. <Dependent Role="StaffingTables">
  318. <PropertyRef Name="IdSubdivision" />
  319. </Dependent>
  320. </ReferentialConstraint>
  321. </Association>
  322. <Association Name="FK_Users_Roles">
  323. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  324. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  325. <ReferentialConstraint>
  326. <Principal Role="Roles">
  327. <PropertyRef Name="IdRole" />
  328. </Principal>
  329. <Dependent Role="Users">
  330. <PropertyRef Name="IdRole" />
  331. </Dependent>
  332. </ReferentialConstraint>
  333. </Association>
  334. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  335. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  336. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  337. <Parameter Name="owner_id" Type="int" Mode="In" />
  338. <Parameter Name="version" Type="int" Mode="In" />
  339. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  340. </Function>
  341. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  342. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  343. <Parameter Name="owner_id" Type="int" Mode="In" />
  344. <Parameter Name="version" Type="int" Mode="In" />
  345. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  346. </Function>
  347. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  348. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  349. <Parameter Name="owner_id" Type="int" Mode="In" />
  350. </Function>
  351. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  352. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  353. <Parameter Name="owner_id" Type="int" Mode="In" />
  354. </Function>
  355. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  356. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  357. <Parameter Name="owner_id" Type="int" Mode="In" />
  358. </Function>
  359. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  360. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  361. <Parameter Name="owner_id" Type="int" Mode="In" />
  362. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  363. </Function>
  364. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  365. <EntityContainer Name="Хранилище KadroviYshotModelContainer">
  366. <EntitySet Name="Childrens" EntityType="Self.Childrens" Schema="dbo" store:Type="Tables" />
  367. <EntitySet Name="Dolzhnosts" EntityType="Self.Dolzhnosts" Schema="dbo" store:Type="Tables" />
  368. <EntitySet Name="Educations" EntityType="Self.Educations" Schema="dbo" store:Type="Tables" />
  369. <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
  370. <EntitySet Name="FamilyStatuses" EntityType="Self.FamilyStatuses" Schema="dbo" store:Type="Tables" />
  371. <EntitySet Name="MilitaryDuties" EntityType="Self.MilitaryDuties" Schema="dbo" store:Type="Tables" />
  372. <EntitySet Name="OrdersDismissal" EntityType="Self.OrdersDismissal" Schema="dbo" store:Type="Tables" />
  373. <EntitySet Name="OrdersEmployment" EntityType="Self.OrdersEmployment" Schema="dbo" store:Type="Tables" />
  374. <EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
  375. <EntitySet Name="StaffingTables" EntityType="Self.StaffingTables" Schema="dbo" store:Type="Tables" />
  376. <EntitySet Name="Subdivisions" EntityType="Self.Subdivisions" Schema="dbo" store:Type="Tables" />
  377. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  378. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  379. <AssociationSet Name="FK_Childrens_Employees" Association="Self.FK_Childrens_Employees">
  380. <End Role="Employees" EntitySet="Employees" />
  381. <End Role="Childrens" EntitySet="Childrens" />
  382. </AssociationSet>
  383. <AssociationSet Name="FK_Employees_Dolzhnosts" Association="Self.FK_Employees_Dolzhnosts">
  384. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  385. <End Role="Employees" EntitySet="Employees" />
  386. </AssociationSet>
  387. <AssociationSet Name="FK_Employees_Educations" Association="Self.FK_Employees_Educations">
  388. <End Role="Educations" EntitySet="Educations" />
  389. <End Role="Employees" EntitySet="Employees" />
  390. </AssociationSet>
  391. <AssociationSet Name="FK_Employees_FamilyStatuses" Association="Self.FK_Employees_FamilyStatuses">
  392. <End Role="FamilyStatuses" EntitySet="FamilyStatuses" />
  393. <End Role="Employees" EntitySet="Employees" />
  394. </AssociationSet>
  395. <AssociationSet Name="FK_Employees_MilitaryDuties" Association="Self.FK_Employees_MilitaryDuties">
  396. <End Role="MilitaryDuties" EntitySet="MilitaryDuties" />
  397. <End Role="Employees" EntitySet="Employees" />
  398. </AssociationSet>
  399. <AssociationSet Name="FK_OrdersDismissal_Employees" Association="Self.FK_OrdersDismissal_Employees">
  400. <End Role="Employees" EntitySet="Employees" />
  401. <End Role="OrdersDismissal" EntitySet="OrdersDismissal" />
  402. </AssociationSet>
  403. <AssociationSet Name="FK_OrdersEmployment_Dolzhnosts" Association="Self.FK_OrdersEmployment_Dolzhnosts">
  404. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  405. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  406. </AssociationSet>
  407. <AssociationSet Name="FK_OrdersEmployment_Employees1" Association="Self.FK_OrdersEmployment_Employees1">
  408. <End Role="Employees" EntitySet="Employees" />
  409. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  410. </AssociationSet>
  411. <AssociationSet Name="FK_OrdersEmployment_StaffingTables" Association="Self.FK_OrdersEmployment_StaffingTables">
  412. <End Role="StaffingTables" EntitySet="StaffingTables" />
  413. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  414. </AssociationSet>
  415. <AssociationSet Name="FK_StaffingTables_Subdivisions" Association="Self.FK_StaffingTables_Subdivisions">
  416. <End Role="Subdivisions" EntitySet="Subdivisions" />
  417. <End Role="StaffingTables" EntitySet="StaffingTables" />
  418. </AssociationSet>
  419. <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
  420. <End Role="Roles" EntitySet="Roles" />
  421. <End Role="Users" EntitySet="Users" />
  422. </AssociationSet>
  423. </EntityContainer>
  424. </Schema>
  425. </edmx:StorageModels>
  426. <!-- CSDL content -->
  427. <edmx:ConceptualModels>
  428. <Schema Namespace="KadroviYshotModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  429. <EntityType Name="Childrens">
  430. <Key>
  431. <PropertyRef Name="IdChildren" />
  432. </Key>
  433. <Property Name="IdChildren" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  434. <Property Name="IdEmployee" Type="Int32" />
  435. <Property Name="Type" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  436. <Property Name="FullName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  437. <Property Name="DateBirth" Type="DateTime" Precision="0" />
  438. <NavigationProperty Name="Employees" Relationship="Self.FK_Childrens_Employees" FromRole="Childrens" ToRole="Employees" />
  439. </EntityType>
  440. <EntityType Name="Dolzhnosts">
  441. <Key>
  442. <PropertyRef Name="IdDolzhnost" />
  443. </Key>
  444. <Property Name="IdDolzhnost" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  445. <Property Name="NameDolzhnost" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  446. <Property Name="Salary" Type="Decimal" Precision="19" Scale="4" />
  447. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Dolzhnosts" FromRole="Dolzhnosts" ToRole="Employees" />
  448. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_Dolzhnosts" FromRole="Dolzhnosts" ToRole="OrdersEmployment" />
  449. </EntityType>
  450. <EntityType Name="Educations">
  451. <Key>
  452. <PropertyRef Name="IdEducation" />
  453. </Key>
  454. <Property Name="IdEducation" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  455. <Property Name="Establishment" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  456. <Property Name="YearEnding" Type="Int32" />
  457. <Property Name="Qualification" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  458. <Property Name="Speciality" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  459. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Educations" FromRole="Educations" ToRole="Employees" />
  460. </EntityType>
  461. <EntityType Name="Employees">
  462. <Key>
  463. <PropertyRef Name="IdEmployee" />
  464. </Key>
  465. <Property Name="IdEmployee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  466. <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  467. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  468. <Property Name="Otchestvo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  469. <Property Name="DateBirth" Type="DateTime" Precision="0" />
  470. <Property Name="IdDolzhnost" Type="Int32" />
  471. <Property Name="IdFamilyStatus" Type="Int32" />
  472. <Property Name="AddressResidence" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  473. <Property Name="Telephone" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  474. <Property Name="DateReceipt" Type="DateTime" Precision="0" />
  475. <Property Name="IdEducation" Type="Int32" />
  476. <Property Name="IdChildren" Type="Int32" />
  477. <Property Name="IdMilitaryDuty" Type="Int32" />
  478. <NavigationProperty Name="Childrens" Relationship="Self.FK_Childrens_Employees" FromRole="Employees" ToRole="Childrens" />
  479. <NavigationProperty Name="Dolzhnosts" Relationship="Self.FK_Employees_Dolzhnosts" FromRole="Employees" ToRole="Dolzhnosts" />
  480. <NavigationProperty Name="Educations" Relationship="Self.FK_Employees_Educations" FromRole="Employees" ToRole="Educations" />
  481. <NavigationProperty Name="FamilyStatuses" Relationship="Self.FK_Employees_FamilyStatuses" FromRole="Employees" ToRole="FamilyStatuses" />
  482. <NavigationProperty Name="MilitaryDuties" Relationship="Self.FK_Employees_MilitaryDuties" FromRole="Employees" ToRole="MilitaryDuties" />
  483. <NavigationProperty Name="OrdersDismissal" Relationship="Self.FK_OrdersDismissal_Employees" FromRole="Employees" ToRole="OrdersDismissal" />
  484. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_Employees1" FromRole="Employees" ToRole="OrdersEmployment" />
  485. </EntityType>
  486. <EntityType Name="FamilyStatuses">
  487. <Key>
  488. <PropertyRef Name="IdFamilyStatus" />
  489. </Key>
  490. <Property Name="IdFamilyStatus" Type="Int32" Nullable="false" />
  491. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  492. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_FamilyStatuses" FromRole="FamilyStatuses" ToRole="Employees" />
  493. </EntityType>
  494. <EntityType Name="MilitaryDuties">
  495. <Key>
  496. <PropertyRef Name="IdMilitaryDuty" />
  497. </Key>
  498. <Property Name="IdMilitaryDuty" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  499. <Property Name="MilitaryIdNumber" Type="Int32" />
  500. <Property Name="AccountingGroup" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  501. <Property Name="MilitaryRank" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  502. <Property Name="Profile" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  503. <Property Name="ReserveRank" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  504. <Property Name="DateReceipt" Type="DateTime" Precision="0" />
  505. <Property Name="DateWithdrawal" Type="DateTime" Precision="0" />
  506. <Property Name="Base" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  507. <Property Name="SpecialAccount" Type="Boolean" />
  508. <Property Name="MilitaryRegistrationNumber" Type="Int32" />
  509. <Property Name="MilitaryPositionCode" Type="Int32" />
  510. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_MilitaryDuties" FromRole="MilitaryDuties" ToRole="Employees" />
  511. </EntityType>
  512. <EntityType Name="OrdersDismissal">
  513. <Key>
  514. <PropertyRef Name="IdDismissal" />
  515. </Key>
  516. <Property Name="IdDismissal" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  517. <Property Name="IdEmployee" Type="Int32" />
  518. <Property Name="DateApproval" Type="DateTime" Precision="0" />
  519. <Property Name="Grounds" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  520. <NavigationProperty Name="Employees" Relationship="Self.FK_OrdersDismissal_Employees" FromRole="OrdersDismissal" ToRole="Employees" />
  521. </EntityType>
  522. <EntityType Name="OrdersEmployment">
  523. <Key>
  524. <PropertyRef Name="IdAcceptanceWork" />
  525. </Key>
  526. <Property Name="IdAcceptanceWork" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  527. <Property Name="IdEmployee" Type="Int32" />
  528. <Property Name="IdStaffingTable" Type="Int32" />
  529. <Property Name="IdDolzhnost" Type="Int32" />
  530. <Property Name="DateApproval" Type="DateTime" Precision="0" />
  531. <NavigationProperty Name="Dolzhnosts" Relationship="Self.FK_OrdersEmployment_Dolzhnosts" FromRole="OrdersEmployment" ToRole="Dolzhnosts" />
  532. <NavigationProperty Name="Employees" Relationship="Self.FK_OrdersEmployment_Employees1" FromRole="OrdersEmployment" ToRole="Employees" />
  533. <NavigationProperty Name="StaffingTables" Relationship="Self.FK_OrdersEmployment_StaffingTables" FromRole="OrdersEmployment" ToRole="StaffingTables" />
  534. </EntityType>
  535. <EntityType Name="Roles">
  536. <Key>
  537. <PropertyRef Name="IdRole" />
  538. </Key>
  539. <Property Name="IdRole" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  540. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  541. <NavigationProperty Name="Users" Relationship="Self.FK_Users_Roles" FromRole="Roles" ToRole="Users" />
  542. </EntityType>
  543. <EntityType Name="StaffingTables">
  544. <Key>
  545. <PropertyRef Name="IdStaffingTable" />
  546. </Key>
  547. <Property Name="IdStaffingTable" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  548. <Property Name="IdEmployee" Type="Int32" />
  549. <Property Name="IdSubdivision" Type="Int32" />
  550. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_StaffingTables" FromRole="StaffingTables" ToRole="OrdersEmployment" />
  551. <NavigationProperty Name="Subdivisions" Relationship="Self.FK_StaffingTables_Subdivisions" FromRole="StaffingTables" ToRole="Subdivisions" />
  552. </EntityType>
  553. <EntityType Name="Subdivisions">
  554. <Key>
  555. <PropertyRef Name="IdSubdivision" />
  556. </Key>
  557. <Property Name="IdSubdivision" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  558. <Property Name="NameSubdivision" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  559. <NavigationProperty Name="StaffingTables" Relationship="Self.FK_StaffingTables_Subdivisions" FromRole="Subdivisions" ToRole="StaffingTables" />
  560. </EntityType>
  561. <EntityType Name="sysdiagrams">
  562. <Key>
  563. <PropertyRef Name="diagram_id" />
  564. </Key>
  565. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  566. <Property Name="principal_id" Type="Int32" Nullable="false" />
  567. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  568. <Property Name="version" Type="Int32" />
  569. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  570. </EntityType>
  571. <EntityType Name="Users">
  572. <Key>
  573. <PropertyRef Name="IdUser" />
  574. </Key>
  575. <Property Name="IdUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  576. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  577. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  578. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  579. <Property Name="IdRole" Type="Int32" />
  580. <NavigationProperty Name="Roles" Relationship="Self.FK_Users_Roles" FromRole="Users" ToRole="Roles" />
  581. </EntityType>
  582. <Association Name="FK_Childrens_Employees">
  583. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  584. <End Role="Childrens" Type="Self.Childrens" Multiplicity="*" />
  585. <ReferentialConstraint>
  586. <Principal Role="Employees">
  587. <PropertyRef Name="IdEmployee" />
  588. </Principal>
  589. <Dependent Role="Childrens">
  590. <PropertyRef Name="IdEmployee" />
  591. </Dependent>
  592. </ReferentialConstraint>
  593. </Association>
  594. <Association Name="FK_Employees_Dolzhnosts">
  595. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  596. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  597. <ReferentialConstraint>
  598. <Principal Role="Dolzhnosts">
  599. <PropertyRef Name="IdDolzhnost" />
  600. </Principal>
  601. <Dependent Role="Employees">
  602. <PropertyRef Name="IdDolzhnost" />
  603. </Dependent>
  604. </ReferentialConstraint>
  605. </Association>
  606. <Association Name="FK_OrdersEmployment_Dolzhnosts">
  607. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  608. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  609. <ReferentialConstraint>
  610. <Principal Role="Dolzhnosts">
  611. <PropertyRef Name="IdDolzhnost" />
  612. </Principal>
  613. <Dependent Role="OrdersEmployment">
  614. <PropertyRef Name="IdDolzhnost" />
  615. </Dependent>
  616. </ReferentialConstraint>
  617. </Association>
  618. <Association Name="FK_Employees_Educations">
  619. <End Role="Educations" Type="Self.Educations" Multiplicity="0..1" />
  620. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  621. <ReferentialConstraint>
  622. <Principal Role="Educations">
  623. <PropertyRef Name="IdEducation" />
  624. </Principal>
  625. <Dependent Role="Employees">
  626. <PropertyRef Name="IdEducation" />
  627. </Dependent>
  628. </ReferentialConstraint>
  629. </Association>
  630. <Association Name="FK_Employees_FamilyStatuses">
  631. <End Role="FamilyStatuses" Type="Self.FamilyStatuses" Multiplicity="0..1" />
  632. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  633. <ReferentialConstraint>
  634. <Principal Role="FamilyStatuses">
  635. <PropertyRef Name="IdFamilyStatus" />
  636. </Principal>
  637. <Dependent Role="Employees">
  638. <PropertyRef Name="IdFamilyStatus" />
  639. </Dependent>
  640. </ReferentialConstraint>
  641. </Association>
  642. <Association Name="FK_Employees_MilitaryDuties">
  643. <End Role="MilitaryDuties" Type="Self.MilitaryDuties" Multiplicity="0..1" />
  644. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  645. <ReferentialConstraint>
  646. <Principal Role="MilitaryDuties">
  647. <PropertyRef Name="IdMilitaryDuty" />
  648. </Principal>
  649. <Dependent Role="Employees">
  650. <PropertyRef Name="IdMilitaryDuty" />
  651. </Dependent>
  652. </ReferentialConstraint>
  653. </Association>
  654. <Association Name="FK_OrdersDismissal_Employees">
  655. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  656. <End Role="OrdersDismissal" Type="Self.OrdersDismissal" Multiplicity="*" />
  657. <ReferentialConstraint>
  658. <Principal Role="Employees">
  659. <PropertyRef Name="IdEmployee" />
  660. </Principal>
  661. <Dependent Role="OrdersDismissal">
  662. <PropertyRef Name="IdEmployee" />
  663. </Dependent>
  664. </ReferentialConstraint>
  665. </Association>
  666. <Association Name="FK_OrdersEmployment_Employees1">
  667. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  668. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  669. <ReferentialConstraint>
  670. <Principal Role="Employees">
  671. <PropertyRef Name="IdEmployee" />
  672. </Principal>
  673. <Dependent Role="OrdersEmployment">
  674. <PropertyRef Name="IdEmployee" />
  675. </Dependent>
  676. </ReferentialConstraint>
  677. </Association>
  678. <Association Name="FK_OrdersEmployment_StaffingTables">
  679. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="0..1" />
  680. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  681. <ReferentialConstraint>
  682. <Principal Role="StaffingTables">
  683. <PropertyRef Name="IdStaffingTable" />
  684. </Principal>
  685. <Dependent Role="OrdersEmployment">
  686. <PropertyRef Name="IdStaffingTable" />
  687. </Dependent>
  688. </ReferentialConstraint>
  689. </Association>
  690. <Association Name="FK_Users_Roles">
  691. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  692. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  693. <ReferentialConstraint>
  694. <Principal Role="Roles">
  695. <PropertyRef Name="IdRole" />
  696. </Principal>
  697. <Dependent Role="Users">
  698. <PropertyRef Name="IdRole" />
  699. </Dependent>
  700. </ReferentialConstraint>
  701. </Association>
  702. <Association Name="FK_StaffingTables_Subdivisions">
  703. <End Role="Subdivisions" Type="Self.Subdivisions" Multiplicity="0..1" />
  704. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="*" />
  705. <ReferentialConstraint>
  706. <Principal Role="Subdivisions">
  707. <PropertyRef Name="IdSubdivision" />
  708. </Principal>
  709. <Dependent Role="StaffingTables">
  710. <PropertyRef Name="IdSubdivision" />
  711. </Dependent>
  712. </ReferentialConstraint>
  713. </Association>
  714. <EntityContainer Name="KadroviYshotEntities" annotation:LazyLoadingEnabled="true">
  715. <EntitySet Name="Childrens" EntityType="Self.Childrens" />
  716. <EntitySet Name="Dolzhnosts" EntityType="Self.Dolzhnosts" />
  717. <EntitySet Name="Educations" EntityType="Self.Educations" />
  718. <EntitySet Name="Employees" EntityType="Self.Employees" />
  719. <EntitySet Name="FamilyStatuses" EntityType="Self.FamilyStatuses" />
  720. <EntitySet Name="MilitaryDuties" EntityType="Self.MilitaryDuties" />
  721. <EntitySet Name="OrdersDismissal" EntityType="Self.OrdersDismissal" />
  722. <EntitySet Name="OrdersEmployment" EntityType="Self.OrdersEmployment" />
  723. <EntitySet Name="Roles" EntityType="Self.Roles" />
  724. <EntitySet Name="StaffingTables" EntityType="Self.StaffingTables" />
  725. <EntitySet Name="Subdivisions" EntityType="Self.Subdivisions" />
  726. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  727. <EntitySet Name="Users" EntityType="Self.Users" />
  728. <AssociationSet Name="FK_Childrens_Employees" Association="Self.FK_Childrens_Employees">
  729. <End Role="Employees" EntitySet="Employees" />
  730. <End Role="Childrens" EntitySet="Childrens" />
  731. </AssociationSet>
  732. <AssociationSet Name="FK_Employees_Dolzhnosts" Association="Self.FK_Employees_Dolzhnosts">
  733. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  734. <End Role="Employees" EntitySet="Employees" />
  735. </AssociationSet>
  736. <AssociationSet Name="FK_OrdersEmployment_Dolzhnosts" Association="Self.FK_OrdersEmployment_Dolzhnosts">
  737. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  738. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  739. </AssociationSet>
  740. <AssociationSet Name="FK_Employees_Educations" Association="Self.FK_Employees_Educations">
  741. <End Role="Educations" EntitySet="Educations" />
  742. <End Role="Employees" EntitySet="Employees" />
  743. </AssociationSet>
  744. <AssociationSet Name="FK_Employees_FamilyStatuses" Association="Self.FK_Employees_FamilyStatuses">
  745. <End Role="FamilyStatuses" EntitySet="FamilyStatuses" />
  746. <End Role="Employees" EntitySet="Employees" />
  747. </AssociationSet>
  748. <AssociationSet Name="FK_Employees_MilitaryDuties" Association="Self.FK_Employees_MilitaryDuties">
  749. <End Role="MilitaryDuties" EntitySet="MilitaryDuties" />
  750. <End Role="Employees" EntitySet="Employees" />
  751. </AssociationSet>
  752. <AssociationSet Name="FK_OrdersDismissal_Employees" Association="Self.FK_OrdersDismissal_Employees">
  753. <End Role="Employees" EntitySet="Employees" />
  754. <End Role="OrdersDismissal" EntitySet="OrdersDismissal" />
  755. </AssociationSet>
  756. <AssociationSet Name="FK_OrdersEmployment_Employees1" Association="Self.FK_OrdersEmployment_Employees1">
  757. <End Role="Employees" EntitySet="Employees" />
  758. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  759. </AssociationSet>
  760. <AssociationSet Name="FK_OrdersEmployment_StaffingTables" Association="Self.FK_OrdersEmployment_StaffingTables">
  761. <End Role="StaffingTables" EntitySet="StaffingTables" />
  762. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  763. </AssociationSet>
  764. <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
  765. <End Role="Roles" EntitySet="Roles" />
  766. <End Role="Users" EntitySet="Users" />
  767. </AssociationSet>
  768. <AssociationSet Name="FK_StaffingTables_Subdivisions" Association="Self.FK_StaffingTables_Subdivisions">
  769. <End Role="Subdivisions" EntitySet="Subdivisions" />
  770. <End Role="StaffingTables" EntitySet="StaffingTables" />
  771. </AssociationSet>
  772. <FunctionImport Name="sp_alterdiagram">
  773. <Parameter Name="diagramname" Mode="In" Type="String" />
  774. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  775. <Parameter Name="version" Mode="In" Type="Int32" />
  776. <Parameter Name="definition" Mode="In" Type="Binary" />
  777. </FunctionImport>
  778. <FunctionImport Name="sp_creatediagram">
  779. <Parameter Name="diagramname" Mode="In" Type="String" />
  780. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  781. <Parameter Name="version" Mode="In" Type="Int32" />
  782. <Parameter Name="definition" Mode="In" Type="Binary" />
  783. </FunctionImport>
  784. <FunctionImport Name="sp_dropdiagram">
  785. <Parameter Name="diagramname" Mode="In" Type="String" />
  786. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  787. </FunctionImport>
  788. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(KadroviYshotModel.sp_helpdiagramdefinition_Result)">
  789. <Parameter Name="diagramname" Mode="In" Type="String" />
  790. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  791. </FunctionImport>
  792. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(KadroviYshotModel.sp_helpdiagrams_Result)">
  793. <Parameter Name="diagramname" Mode="In" Type="String" />
  794. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  795. </FunctionImport>
  796. <FunctionImport Name="sp_renamediagram">
  797. <Parameter Name="diagramname" Mode="In" Type="String" />
  798. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  799. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  800. </FunctionImport>
  801. <FunctionImport Name="sp_upgraddiagrams" />
  802. </EntityContainer>
  803. <ComplexType Name="sp_helpdiagramdefinition_Result">
  804. <Property Type="Int32" Name="version" Nullable="true" />
  805. <Property Type="Binary" Name="definition" Nullable="true" />
  806. </ComplexType>
  807. <ComplexType Name="sp_helpdiagrams_Result">
  808. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  809. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  810. <Property Type="Int32" Name="ID" Nullable="false" />
  811. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  812. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  813. </ComplexType>
  814. </Schema>
  815. </edmx:ConceptualModels>
  816. <!-- C-S mapping content -->
  817. <edmx:Mappings>
  818. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  819. <EntityContainerMapping StorageEntityContainer="Хранилище KadroviYshotModelContainer" CdmEntityContainer="KadroviYshotEntities">
  820. <EntitySetMapping Name="Childrens">
  821. <EntityTypeMapping TypeName="KadroviYshotModel.Childrens">
  822. <MappingFragment StoreEntitySet="Childrens">
  823. <ScalarProperty Name="IdChildren" ColumnName="IdChildren" />
  824. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  825. <ScalarProperty Name="Type" ColumnName="Type" />
  826. <ScalarProperty Name="FullName" ColumnName="FullName" />
  827. <ScalarProperty Name="DateBirth" ColumnName="DateBirth" />
  828. </MappingFragment>
  829. </EntityTypeMapping>
  830. </EntitySetMapping>
  831. <EntitySetMapping Name="Dolzhnosts">
  832. <EntityTypeMapping TypeName="KadroviYshotModel.Dolzhnosts">
  833. <MappingFragment StoreEntitySet="Dolzhnosts">
  834. <ScalarProperty Name="IdDolzhnost" ColumnName="IdDolzhnost" />
  835. <ScalarProperty Name="NameDolzhnost" ColumnName="NameDolzhnost" />
  836. <ScalarProperty Name="Salary" ColumnName="Salary" />
  837. </MappingFragment>
  838. </EntityTypeMapping>
  839. </EntitySetMapping>
  840. <EntitySetMapping Name="Educations">
  841. <EntityTypeMapping TypeName="KadroviYshotModel.Educations">
  842. <MappingFragment StoreEntitySet="Educations">
  843. <ScalarProperty Name="IdEducation" ColumnName="IdEducation" />
  844. <ScalarProperty Name="Establishment" ColumnName="Establishment" />
  845. <ScalarProperty Name="YearEnding" ColumnName="YearEnding" />
  846. <ScalarProperty Name="Qualification" ColumnName="Qualification" />
  847. <ScalarProperty Name="Speciality" ColumnName="Speciality" />
  848. </MappingFragment>
  849. </EntityTypeMapping>
  850. </EntitySetMapping>
  851. <EntitySetMapping Name="Employees">
  852. <EntityTypeMapping TypeName="KadroviYshotModel.Employees">
  853. <MappingFragment StoreEntitySet="Employees">
  854. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  855. <ScalarProperty Name="Surname" ColumnName="Surname" />
  856. <ScalarProperty Name="Name" ColumnName="Name" />
  857. <ScalarProperty Name="Otchestvo" ColumnName="Otchestvo" />
  858. <ScalarProperty Name="DateBirth" ColumnName="DateBirth" />
  859. <ScalarProperty Name="IdDolzhnost" ColumnName="IdDolzhnost" />
  860. <ScalarProperty Name="IdFamilyStatus" ColumnName="IdFamilyStatus" />
  861. <ScalarProperty Name="AddressResidence" ColumnName="AddressResidence" />
  862. <ScalarProperty Name="Telephone" ColumnName="Telephone" />
  863. <ScalarProperty Name="DateReceipt" ColumnName="DateReceipt" />
  864. <ScalarProperty Name="IdEducation" ColumnName="IdEducation" />
  865. <ScalarProperty Name="IdChildren" ColumnName="IdChildren" />
  866. <ScalarProperty Name="IdMilitaryDuty" ColumnName="IdMilitaryDuty" />
  867. </MappingFragment>
  868. </EntityTypeMapping>
  869. </EntitySetMapping>
  870. <EntitySetMapping Name="FamilyStatuses">
  871. <EntityTypeMapping TypeName="KadroviYshotModel.FamilyStatuses">
  872. <MappingFragment StoreEntitySet="FamilyStatuses">
  873. <ScalarProperty Name="IdFamilyStatus" ColumnName="IdFamilyStatus" />
  874. <ScalarProperty Name="Name" ColumnName="Name" />
  875. </MappingFragment>
  876. </EntityTypeMapping>
  877. </EntitySetMapping>
  878. <EntitySetMapping Name="MilitaryDuties">
  879. <EntityTypeMapping TypeName="KadroviYshotModel.MilitaryDuties">
  880. <MappingFragment StoreEntitySet="MilitaryDuties">
  881. <ScalarProperty Name="IdMilitaryDuty" ColumnName="IdMilitaryDuty" />
  882. <ScalarProperty Name="MilitaryIdNumber" ColumnName="MilitaryIdNumber" />
  883. <ScalarProperty Name="AccountingGroup" ColumnName="AccountingGroup" />
  884. <ScalarProperty Name="MilitaryRank" ColumnName="MilitaryRank" />
  885. <ScalarProperty Name="Profile" ColumnName="Profile" />
  886. <ScalarProperty Name="ReserveRank" ColumnName="ReserveRank" />
  887. <ScalarProperty Name="DateReceipt" ColumnName="DateReceipt" />
  888. <ScalarProperty Name="DateWithdrawal" ColumnName="DateWithdrawal" />
  889. <ScalarProperty Name="Base" ColumnName="Base" />
  890. <ScalarProperty Name="SpecialAccount" ColumnName="SpecialAccount" />
  891. <ScalarProperty Name="MilitaryRegistrationNumber" ColumnName="MilitaryRegistrationNumber" />
  892. <ScalarProperty Name="MilitaryPositionCode" ColumnName="MilitaryPositionCode" />
  893. </MappingFragment>
  894. </EntityTypeMapping>
  895. </EntitySetMapping>
  896. <EntitySetMapping Name="OrdersDismissal">
  897. <EntityTypeMapping TypeName="KadroviYshotModel.OrdersDismissal">
  898. <MappingFragment StoreEntitySet="OrdersDismissal">
  899. <ScalarProperty Name="IdDismissal" ColumnName="IdDismissal" />
  900. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  901. <ScalarProperty Name="DateApproval" ColumnName="DateApproval" />
  902. <ScalarProperty Name="Grounds" ColumnName="Grounds" />
  903. </MappingFragment>
  904. </EntityTypeMapping>
  905. </EntitySetMapping>
  906. <EntitySetMapping Name="OrdersEmployment">
  907. <EntityTypeMapping TypeName="KadroviYshotModel.OrdersEmployment">
  908. <MappingFragment StoreEntitySet="OrdersEmployment">
  909. <ScalarProperty Name="IdAcceptanceWork" ColumnName="IdAcceptanceWork" />
  910. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  911. <ScalarProperty Name="IdStaffingTable" ColumnName="IdStaffingTable" />
  912. <ScalarProperty Name="IdDolzhnost" ColumnName="IdDolzhnost" />
  913. <ScalarProperty Name="DateApproval" ColumnName="DateApproval" />
  914. </MappingFragment>
  915. </EntityTypeMapping>
  916. </EntitySetMapping>
  917. <EntitySetMapping Name="Roles">
  918. <EntityTypeMapping TypeName="KadroviYshotModel.Roles">
  919. <MappingFragment StoreEntitySet="Roles">
  920. <ScalarProperty Name="IdRole" ColumnName="IdRole" />
  921. <ScalarProperty Name="Name" ColumnName="Name" />
  922. </MappingFragment>
  923. </EntityTypeMapping>
  924. </EntitySetMapping>
  925. <EntitySetMapping Name="StaffingTables">
  926. <EntityTypeMapping TypeName="KadroviYshotModel.StaffingTables">
  927. <MappingFragment StoreEntitySet="StaffingTables">
  928. <ScalarProperty Name="IdStaffingTable" ColumnName="IdStaffingTable" />
  929. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  930. <ScalarProperty Name="IdSubdivision" ColumnName="IdSubdivision" />
  931. </MappingFragment>
  932. </EntityTypeMapping>
  933. </EntitySetMapping>
  934. <EntitySetMapping Name="Subdivisions">
  935. <EntityTypeMapping TypeName="KadroviYshotModel.Subdivisions">
  936. <MappingFragment StoreEntitySet="Subdivisions">
  937. <ScalarProperty Name="IdSubdivision" ColumnName="IdSubdivision" />
  938. <ScalarProperty Name="NameSubdivision" ColumnName="NameSubdivision" />
  939. </MappingFragment>
  940. </EntityTypeMapping>
  941. </EntitySetMapping>
  942. <EntitySetMapping Name="sysdiagrams">
  943. <EntityTypeMapping TypeName="KadroviYshotModel.sysdiagrams">
  944. <MappingFragment StoreEntitySet="sysdiagrams">
  945. <ScalarProperty Name="name" ColumnName="name" />
  946. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  947. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  948. <ScalarProperty Name="version" ColumnName="version" />
  949. <ScalarProperty Name="definition" ColumnName="definition" />
  950. </MappingFragment>
  951. </EntityTypeMapping>
  952. </EntitySetMapping>
  953. <EntitySetMapping Name="Users">
  954. <EntityTypeMapping TypeName="KadroviYshotModel.Users">
  955. <MappingFragment StoreEntitySet="Users">
  956. <ScalarProperty Name="IdUser" ColumnName="IdUser" />
  957. <ScalarProperty Name="Name" ColumnName="Name" />
  958. <ScalarProperty Name="Login" ColumnName="Login" />
  959. <ScalarProperty Name="Password" ColumnName="Password" />
  960. <ScalarProperty Name="IdRole" ColumnName="IdRole" />
  961. </MappingFragment>
  962. </EntityTypeMapping>
  963. </EntitySetMapping>
  964. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище KadroviYshotModel.sp_alterdiagram" />
  965. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище KadroviYshotModel.sp_creatediagram" />
  966. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище KadroviYshotModel.sp_dropdiagram" />
  967. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище KadroviYshotModel.sp_helpdiagramdefinition">
  968. <ResultMapping>
  969. <ComplexTypeMapping TypeName="KadroviYshotModel.sp_helpdiagramdefinition_Result">
  970. <ScalarProperty Name="version" ColumnName="version" />
  971. <ScalarProperty Name="definition" ColumnName="definition" />
  972. </ComplexTypeMapping>
  973. </ResultMapping>
  974. </FunctionImportMapping>
  975. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище KadroviYshotModel.sp_helpdiagrams">
  976. <ResultMapping>
  977. <ComplexTypeMapping TypeName="KadroviYshotModel.sp_helpdiagrams_Result">
  978. <ScalarProperty Name="Database" ColumnName="Database" />
  979. <ScalarProperty Name="Name" ColumnName="Name" />
  980. <ScalarProperty Name="ID" ColumnName="ID" />
  981. <ScalarProperty Name="Owner" ColumnName="Owner" />
  982. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  983. </ComplexTypeMapping>
  984. </ResultMapping>
  985. </FunctionImportMapping>
  986. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище KadroviYshotModel.sp_renamediagram" />
  987. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище KadroviYshotModel.sp_upgraddiagrams" />
  988. </EntityContainerMapping>
  989. </Mapping>
  990. </edmx:Mappings>
  991. </edmx:Runtime>
  992. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  993. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  994. <Connection>
  995. <DesignerInfoPropertySet>
  996. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  997. </DesignerInfoPropertySet>
  998. </Connection>
  999. <Options>
  1000. <DesignerInfoPropertySet>
  1001. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  1002. <DesignerProperty Name="EnablePluralization" Value="false" />
  1003. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  1004. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  1005. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  1006. </DesignerInfoPropertySet>
  1007. </Options>
  1008. <!-- Diagram content (shape and connector positions) -->
  1009. <Diagrams></Diagrams>
  1010. </Designer>
  1011. </edmx:Edmx>