forked from ddrilling/AsbCloudServer
Add UserRole related matrix defaults
This commit is contained in:
parent
d0d0200679
commit
4c19186158
4849
AsbCloudDb/Migrations/20220203045356_AddRoleRelatedMatrixDefaults.Designer.cs
generated
Normal file
4849
AsbCloudDb/Migrations/20220203045356_AddRoleRelatedMatrixDefaults.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,740 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class AddRoleRelatedMatrixDefaults : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_permission",
|
||||
columns: new[] { "id", "description", "name" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 240, "Разрешение редактировать Файлы категории 1 (Растворный сервис)", "File.edit1" },
|
||||
{ 241, "Разрешение редактировать Файлы категории 2 (Цементирование)", "File.edit2" },
|
||||
{ 242, "Разрешение редактировать Файлы категории 3 (ННБ)", "File.edit3" },
|
||||
{ 243, "Разрешение редактировать Файлы категории 4 (ГТИ)", "File.edit4" },
|
||||
{ 244, "Разрешение редактировать Файлы категории 5 (Документы по скважине)", "File.edit5" },
|
||||
{ 245, "Разрешение редактировать Файлы категории 6 (Супервайзер)", "File.edit6" },
|
||||
{ 246, "Разрешение редактировать Файлы категории 7 (Мастер)", "File.edit7" },
|
||||
{ 247, "Разрешение редактировать Файлы категории 8 (Долотный сервис)", "File.edit8" },
|
||||
{ 248, "Разрешение редактировать Файлы категории 9 (Буровой подрядчик)", "File.edit9" },
|
||||
{ 249, "Разрешение редактировать Файлы категории 10 (Сервис по заканчиванию скважины)", "File.edit10" },
|
||||
{ 250, "Разрешение редактировать Файлы категории 11 (Рапорт)", "File.edit11" },
|
||||
{ 251, "Разрешение редактировать Файлы категории 12", "File.edit12" },
|
||||
{ 252, "Разрешение редактировать Файлы категории 12", "File.edit13" },
|
||||
{ 253, "Разрешение редактировать Файлы категории 13", "File.edit14" },
|
||||
{ 254, "Разрешение редактировать Файлы категории 14", "File.edit15" },
|
||||
{ 255, "Разрешение редактировать Файлы категории 15", "File.edit16" },
|
||||
{ 256, "Разрешение редактировать Файлы категории 16", "File.edit17" },
|
||||
{ 257, "Разрешение редактировать Файлы категории 17", "File.edit18" },
|
||||
{ 258, "Разрешение редактировать Файлы категории 18", "File.edit19" },
|
||||
{ 259, "Разрешение редактировать Файлы категории 19", "File.edit20" },
|
||||
{ 260, "Разрешение редактировать Файлы категории 20", "File.edit21" },
|
||||
{ 261, "Разрешение редактировать Файлы категории 21", "File.edit22" },
|
||||
{ 262, "Разрешение редактировать Файлы категории 22", "File.edit23" },
|
||||
{ 263, "Разрешение редактировать Файлы категории 23", "File.edit24" },
|
||||
{ 264, "Разрешение редактировать Файлы категории 24", "File.edit25" },
|
||||
{ 265, "Разрешение редактировать Файлы категории 25", "File.edit26" },
|
||||
{ 266, "Разрешение редактировать Файлы категории 26", "File.edit27" },
|
||||
{ 267, "Разрешение редактировать Файлы категории 27", "File.edit28" },
|
||||
{ 268, "Разрешение редактировать Файлы категории 28", "File.edit29" },
|
||||
{ 269, "Разрешение редактировать Файлы категории 29", "File.edit30" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_relation_user_role_permission",
|
||||
columns: new[] { "id_permission", "id_user_role" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 126, 1116 },
|
||||
{ 212, 1202 },
|
||||
{ 219, 1210 },
|
||||
{ 232, 1219 },
|
||||
{ 234, 1221 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_user_role",
|
||||
columns: new[] { "id", "caption", "id_type" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1500, "Просмотр всего", 1 },
|
||||
{ 1501, "file.edit", 1 },
|
||||
{ 1502, "drillingProgram.edit", 1 },
|
||||
{ 2000, "Заказчик", 0 },
|
||||
{ 2001, "Супервайзер", 0 },
|
||||
{ 2002, "Буровой подрядчик", 0 },
|
||||
{ 2003, "Растворщик", 0 },
|
||||
{ 2004, "Телеметрист", 0 },
|
||||
{ 2005, "Долотный сервис", 0 },
|
||||
{ 2006, "ГТИ", 0 },
|
||||
{ 2007, "Цементирование", 0 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_relation_user_role_permission",
|
||||
columns: new[] { "id_permission", "id_user_role" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 213, 1501 },
|
||||
{ 214, 1501 },
|
||||
{ 207, 1502 },
|
||||
{ 208, 1502 },
|
||||
{ 204, 2000 },
|
||||
{ 205, 2000 },
|
||||
{ 245, 2000 },
|
||||
{ 244, 2001 },
|
||||
{ 245, 2001 },
|
||||
{ 237, 2002 },
|
||||
{ 238, 2002 },
|
||||
{ 244, 2002 },
|
||||
{ 246, 2002 },
|
||||
{ 216, 2003 },
|
||||
{ 217, 2003 },
|
||||
{ 240, 2003 },
|
||||
{ 204, 2004 },
|
||||
{ 205, 2004 },
|
||||
{ 216, 2004 },
|
||||
{ 217, 2004 },
|
||||
{ 242, 2004 },
|
||||
{ 204, 2005 },
|
||||
{ 205, 2005 },
|
||||
{ 247, 2005 },
|
||||
{ 204, 2006 },
|
||||
{ 205, 2006 },
|
||||
{ 243, 2006 },
|
||||
{ 204, 2007 },
|
||||
{ 205, 2007 },
|
||||
{ 241, 2007 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
columns: new[] { "id_user_role", "id_include_user_role" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2000, 1200 },
|
||||
{ 2000, 1201 },
|
||||
{ 2000, 1202 },
|
||||
{ 2000, 1204 },
|
||||
{ 2000, 1205 },
|
||||
{ 2000, 1206 },
|
||||
{ 2000, 1208 },
|
||||
{ 2000, 1210 },
|
||||
{ 2000, 1211 },
|
||||
{ 2000, 1213 },
|
||||
{ 2000, 1215 },
|
||||
{ 2000, 1217 },
|
||||
{ 2000, 1219 },
|
||||
{ 2000, 1220 },
|
||||
{ 2000, 1221 },
|
||||
{ 2000, 1500 },
|
||||
{ 2000, 1501 },
|
||||
{ 2000, 1502 },
|
||||
{ 2001, 1500 },
|
||||
{ 2001, 1501 },
|
||||
{ 2001, 1502 },
|
||||
{ 2002, 1500 },
|
||||
{ 2002, 1501 },
|
||||
{ 2002, 1502 },
|
||||
{ 2003, 1500 },
|
||||
{ 2003, 1501 },
|
||||
{ 2003, 1502 },
|
||||
{ 2004, 1500 },
|
||||
{ 2004, 1501 },
|
||||
{ 2004, 1502 },
|
||||
{ 2005, 1500 },
|
||||
{ 2005, 1501 },
|
||||
{ 2005, 1502 },
|
||||
{ 2006, 1500 },
|
||||
{ 2006, 1501 },
|
||||
{ 2006, 1502 },
|
||||
{ 2007, 1500 },
|
||||
{ 2007, 1501 },
|
||||
{ 2007, 1502 }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 248);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 249);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 250);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 251);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 252);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 253);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 254);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 255);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 256);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 257);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 258);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 259);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 260);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 261);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 262);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 263);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 264);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 265);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 266);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 267);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 268);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 269);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 126, 1116 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 212, 1202 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 219, 1210 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 232, 1219 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 234, 1221 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 213, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 214, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 207, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 208, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 204, 2000 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 205, 2000 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 245, 2000 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 244, 2001 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 245, 2001 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 237, 2002 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 238, 2002 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 244, 2002 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 246, 2002 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 216, 2003 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 217, 2003 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 240, 2003 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 204, 2004 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 205, 2004 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 216, 2004 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 217, 2004 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 242, 2004 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 204, 2005 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 205, 2005 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 247, 2005 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 204, 2006 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 205, 2006 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 243, 2006 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 204, 2007 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 205, 2007 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_permission",
|
||||
keyColumns: new[] { "id_permission", "id_user_role" },
|
||||
keyValues: new object[] { 241, 2007 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1200 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1201 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1202 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1204 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1205 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1206 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1208 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1210 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1211 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1213 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1215 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1217 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1219 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1220 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1221 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2000, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2001, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2001, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2001, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2002, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2002, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2002, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2003, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2003, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2003, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2004, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2004, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2004, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2005, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2005, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2005, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2006, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2006, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2006, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2007, 1500 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2007, 1501 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_relation_user_role_user_role",
|
||||
keyColumns: new[] { "id_user_role", "id_include_user_role" },
|
||||
keyValues: new object[] { 2007, 1502 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 240);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 241);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 242);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 243);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 244);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 245);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 246);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_permission",
|
||||
keyColumn: "id",
|
||||
keyValue: 247);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 1500);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 1501);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 1502);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2000);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2001);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2002);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2003);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2004);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2005);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2006);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_user_role",
|
||||
keyColumn: "id",
|
||||
keyValue: 2007);
|
||||
}
|
||||
}
|
||||
}
|
@ -1119,6 +1119,186 @@ namespace AsbCloudDb.Migrations
|
||||
Id = 239,
|
||||
Description = "Разрешение просматривать Операции по скважинам",
|
||||
Name = "WellOperation.get"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 240,
|
||||
Description = "Разрешение редактировать Файлы категории 1 (Растворный сервис)",
|
||||
Name = "File.edit1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 241,
|
||||
Description = "Разрешение редактировать Файлы категории 2 (Цементирование)",
|
||||
Name = "File.edit2"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 242,
|
||||
Description = "Разрешение редактировать Файлы категории 3 (ННБ)",
|
||||
Name = "File.edit3"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 243,
|
||||
Description = "Разрешение редактировать Файлы категории 4 (ГТИ)",
|
||||
Name = "File.edit4"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 244,
|
||||
Description = "Разрешение редактировать Файлы категории 5 (Документы по скважине)",
|
||||
Name = "File.edit5"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 245,
|
||||
Description = "Разрешение редактировать Файлы категории 6 (Супервайзер)",
|
||||
Name = "File.edit6"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 246,
|
||||
Description = "Разрешение редактировать Файлы категории 7 (Мастер)",
|
||||
Name = "File.edit7"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 247,
|
||||
Description = "Разрешение редактировать Файлы категории 8 (Долотный сервис)",
|
||||
Name = "File.edit8"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 248,
|
||||
Description = "Разрешение редактировать Файлы категории 9 (Буровой подрядчик)",
|
||||
Name = "File.edit9"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 249,
|
||||
Description = "Разрешение редактировать Файлы категории 10 (Сервис по заканчиванию скважины)",
|
||||
Name = "File.edit10"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 250,
|
||||
Description = "Разрешение редактировать Файлы категории 11 (Рапорт)",
|
||||
Name = "File.edit11"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 251,
|
||||
Description = "Разрешение редактировать Файлы категории 12",
|
||||
Name = "File.edit12"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 252,
|
||||
Description = "Разрешение редактировать Файлы категории 12",
|
||||
Name = "File.edit13"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 253,
|
||||
Description = "Разрешение редактировать Файлы категории 13",
|
||||
Name = "File.edit14"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 254,
|
||||
Description = "Разрешение редактировать Файлы категории 14",
|
||||
Name = "File.edit15"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 255,
|
||||
Description = "Разрешение редактировать Файлы категории 15",
|
||||
Name = "File.edit16"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 256,
|
||||
Description = "Разрешение редактировать Файлы категории 16",
|
||||
Name = "File.edit17"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 257,
|
||||
Description = "Разрешение редактировать Файлы категории 17",
|
||||
Name = "File.edit18"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 258,
|
||||
Description = "Разрешение редактировать Файлы категории 18",
|
||||
Name = "File.edit19"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 259,
|
||||
Description = "Разрешение редактировать Файлы категории 19",
|
||||
Name = "File.edit20"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 260,
|
||||
Description = "Разрешение редактировать Файлы категории 20",
|
||||
Name = "File.edit21"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 261,
|
||||
Description = "Разрешение редактировать Файлы категории 21",
|
||||
Name = "File.edit22"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 262,
|
||||
Description = "Разрешение редактировать Файлы категории 22",
|
||||
Name = "File.edit23"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 263,
|
||||
Description = "Разрешение редактировать Файлы категории 23",
|
||||
Name = "File.edit24"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 264,
|
||||
Description = "Разрешение редактировать Файлы категории 24",
|
||||
Name = "File.edit25"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 265,
|
||||
Description = "Разрешение редактировать Файлы категории 25",
|
||||
Name = "File.edit26"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 266,
|
||||
Description = "Разрешение редактировать Файлы категории 26",
|
||||
Name = "File.edit27"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 267,
|
||||
Description = "Разрешение редактировать Файлы категории 27",
|
||||
Name = "File.edit28"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 268,
|
||||
Description = "Разрешение редактировать Файлы категории 28",
|
||||
Name = "File.edit29"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 269,
|
||||
Description = "Разрешение редактировать Файлы категории 29",
|
||||
Name = "File.edit30"
|
||||
});
|
||||
});
|
||||
|
||||
@ -1321,6 +1501,11 @@ namespace AsbCloudDb.Migrations
|
||||
IdPermission = 117
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1116,
|
||||
IdPermission = 126
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1117,
|
||||
IdPermission = 125
|
||||
@ -1371,6 +1556,11 @@ namespace AsbCloudDb.Migrations
|
||||
IdPermission = 236
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1202,
|
||||
IdPermission = 212
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1203,
|
||||
IdPermission = 235
|
||||
@ -1426,6 +1616,11 @@ namespace AsbCloudDb.Migrations
|
||||
IdPermission = 230
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1210,
|
||||
IdPermission = 219
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1211,
|
||||
IdPermission = 203
|
||||
@ -1521,6 +1716,11 @@ namespace AsbCloudDb.Migrations
|
||||
IdPermission = 230
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1219,
|
||||
IdPermission = 232
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1220,
|
||||
IdPermission = 203
|
||||
@ -1544,6 +1744,161 @@ namespace AsbCloudDb.Migrations
|
||||
{
|
||||
IdUserRole = 1221,
|
||||
IdPermission = 220
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1221,
|
||||
IdPermission = 234
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1501,
|
||||
IdPermission = 214
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1501,
|
||||
IdPermission = 213
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1502,
|
||||
IdPermission = 207
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 1502,
|
||||
IdPermission = 208
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2000,
|
||||
IdPermission = 205
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2000,
|
||||
IdPermission = 204
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2000,
|
||||
IdPermission = 245
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2001,
|
||||
IdPermission = 244
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2001,
|
||||
IdPermission = 245
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2002,
|
||||
IdPermission = 244
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2002,
|
||||
IdPermission = 246
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2002,
|
||||
IdPermission = 237
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2002,
|
||||
IdPermission = 238
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2003,
|
||||
IdPermission = 240
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2003,
|
||||
IdPermission = 217
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2003,
|
||||
IdPermission = 216
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2004,
|
||||
IdPermission = 242
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2004,
|
||||
IdPermission = 217
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2004,
|
||||
IdPermission = 216
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2004,
|
||||
IdPermission = 205
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2004,
|
||||
IdPermission = 204
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2005,
|
||||
IdPermission = 247
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2005,
|
||||
IdPermission = 205
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2005,
|
||||
IdPermission = 204
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2006,
|
||||
IdPermission = 243
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2006,
|
||||
IdPermission = 205
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2006,
|
||||
IdPermission = 204
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2007,
|
||||
IdPermission = 241
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2007,
|
||||
IdPermission = 205
|
||||
},
|
||||
new
|
||||
{
|
||||
IdUserRole = 2007,
|
||||
IdPermission = 204
|
||||
});
|
||||
});
|
||||
|
||||
@ -1641,6 +1996,201 @@ namespace AsbCloudDb.Migrations
|
||||
{
|
||||
Id = 1218,
|
||||
IdInclude = 1217
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1200
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1201
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1202
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1204
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1205
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1206
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1208
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1210
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1211
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1213
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1215
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1217
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1219
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1220
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1221
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2001,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2001,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2001,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2002,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2002,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2002,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2003,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2003,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2003,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2004,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2004,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2004,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2005,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2005,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2005,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2006,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2006,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2006,
|
||||
IdInclude = 1502
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2007,
|
||||
IdInclude = 1500
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2007,
|
||||
IdInclude = 1501
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2007,
|
||||
IdInclude = 1502
|
||||
});
|
||||
});
|
||||
|
||||
@ -2909,6 +3459,72 @@ namespace AsbCloudDb.Migrations
|
||||
Id = 1221,
|
||||
Caption = "well.view",
|
||||
IdType = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 1500,
|
||||
Caption = "Просмотр всего",
|
||||
IdType = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 1501,
|
||||
Caption = "file.edit",
|
||||
IdType = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 1502,
|
||||
Caption = "drillingProgram.edit",
|
||||
IdType = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2000,
|
||||
Caption = "Заказчик",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2001,
|
||||
Caption = "Супервайзер",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2002,
|
||||
Caption = "Буровой подрядчик",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2003,
|
||||
Caption = "Растворщик",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2004,
|
||||
Caption = "Телеметрист",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2005,
|
||||
Caption = "Долотный сервис",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2006,
|
||||
Caption = "ГТИ",
|
||||
IdType = 0
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2007,
|
||||
Caption = "Цементирование",
|
||||
IdType = 0
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -312,6 +312,17 @@ namespace AsbCloudDb.Model
|
||||
new UserRole{ Id = 1219, Caption = "telemetry.view", IdType = 1},
|
||||
new UserRole{ Id = 1220, Caption = "telemetryAnalysis.view", IdType = 1},
|
||||
new UserRole{ Id = 1221, Caption = "well.view", IdType = 1},
|
||||
new UserRole{ Id = 1500, Caption = "Просмотр всего", IdType = 1},
|
||||
new UserRole{ Id = 1501, Caption = "file.edit", IdType = 1},
|
||||
new UserRole{ Id = 1502, Caption = "drillingProgram.edit", IdType = 1},
|
||||
new UserRole{ Id = 2000, Caption = "Заказчик", IdType = 0},
|
||||
new UserRole{ Id = 2001, Caption = "Супервайзер", IdType = 0},
|
||||
new UserRole{ Id = 2002, Caption = "Буровой подрядчик", IdType = 0},
|
||||
new UserRole{ Id = 2003, Caption = "Растворщик", IdType = 0},
|
||||
new UserRole{ Id = 2004, Caption = "Телеметрист", IdType = 0},
|
||||
new UserRole{ Id = 2005, Caption = "Долотный сервис", IdType = 0},
|
||||
new UserRole{ Id = 2006, Caption = "ГТИ", IdType = 0},
|
||||
new UserRole{ Id = 2007, Caption = "Цементирование", IdType = 0},
|
||||
});
|
||||
});
|
||||
|
||||
@ -334,6 +345,15 @@ namespace AsbCloudDb.Model
|
||||
new RelationUserRoleUserRole{ Id = 1214, IdInclude = 1213 },
|
||||
new RelationUserRoleUserRole{ Id = 1216, IdInclude = 1215 },
|
||||
new RelationUserRoleUserRole{ Id = 1218, IdInclude = 1217 },
|
||||
new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1200}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1201}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1202}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1204}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1205}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1206}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1208}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1210}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1211}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1213}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1215}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1217}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1219}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1220}, new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1221},
|
||||
new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2000, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2001, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2001, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2001, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2002, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2002, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2002, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2003, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2003, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2003, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2004, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2004, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2004, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2005, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2005, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2005, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2006, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2006, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2006, IdInclude = 1502 },
|
||||
new RelationUserRoleUserRole{ Id = 2007, IdInclude = 1500 },new RelationUserRoleUserRole{ Id = 2007, IdInclude = 1501 },new RelationUserRoleUserRole{ Id = 2007, IdInclude = 1502 },
|
||||
});
|
||||
});
|
||||
|
||||
@ -408,6 +428,36 @@ namespace AsbCloudDb.Model
|
||||
new Permission{ Id = 237, Name="WellOperation.delete", Description="Разрешение удалять Операции по скважинам"},
|
||||
new Permission{ Id = 238, Name="WellOperation.edit", Description="Разрешение редактировать Операции по скважинам"},
|
||||
new Permission{ Id = 239, Name="WellOperation.get", Description="Разрешение просматривать Операции по скважинам"},
|
||||
new Permission{ Id = 240, Name="File.edit1", Description="Разрешение редактировать Файлы категории 1 (Растворный сервис)"},
|
||||
new Permission{ Id = 241, Name="File.edit2", Description="Разрешение редактировать Файлы категории 2 (Цементирование)"},
|
||||
new Permission{ Id = 242, Name="File.edit3", Description="Разрешение редактировать Файлы категории 3 (ННБ)"},
|
||||
new Permission{ Id = 243, Name="File.edit4", Description="Разрешение редактировать Файлы категории 4 (ГТИ)"},
|
||||
new Permission{ Id = 244, Name="File.edit5", Description="Разрешение редактировать Файлы категории 5 (Документы по скважине)"},
|
||||
new Permission{ Id = 245, Name="File.edit6", Description="Разрешение редактировать Файлы категории 6 (Супервайзер)"},
|
||||
new Permission{ Id = 246, Name="File.edit7", Description="Разрешение редактировать Файлы категории 7 (Мастер)"},
|
||||
new Permission{ Id = 247, Name="File.edit8", Description="Разрешение редактировать Файлы категории 8 (Долотный сервис)"},
|
||||
new Permission{ Id = 248, Name="File.edit9", Description="Разрешение редактировать Файлы категории 9 (Буровой подрядчик)"},
|
||||
new Permission{ Id = 249, Name="File.edit10", Description="Разрешение редактировать Файлы категории 10 (Сервис по заканчиванию скважины)"},
|
||||
new Permission{ Id = 250, Name="File.edit11", Description="Разрешение редактировать Файлы категории 11 (Рапорт)"},
|
||||
new Permission{ Id = 251, Name="File.edit12", Description="Разрешение редактировать Файлы категории 12"},
|
||||
new Permission{ Id = 252, Name="File.edit13", Description="Разрешение редактировать Файлы категории 12"},
|
||||
new Permission{ Id = 253, Name="File.edit14", Description="Разрешение редактировать Файлы категории 13"},
|
||||
new Permission{ Id = 254, Name="File.edit15", Description="Разрешение редактировать Файлы категории 14"},
|
||||
new Permission{ Id = 255, Name="File.edit16", Description="Разрешение редактировать Файлы категории 15"},
|
||||
new Permission{ Id = 256, Name="File.edit17", Description="Разрешение редактировать Файлы категории 16"},
|
||||
new Permission{ Id = 257, Name="File.edit18", Description="Разрешение редактировать Файлы категории 17"},
|
||||
new Permission{ Id = 258, Name="File.edit19", Description="Разрешение редактировать Файлы категории 18"},
|
||||
new Permission{ Id = 259, Name="File.edit20", Description="Разрешение редактировать Файлы категории 19"},
|
||||
new Permission{ Id = 260, Name="File.edit21", Description="Разрешение редактировать Файлы категории 20"},
|
||||
new Permission{ Id = 261, Name="File.edit22", Description="Разрешение редактировать Файлы категории 21"},
|
||||
new Permission{ Id = 262, Name="File.edit23", Description="Разрешение редактировать Файлы категории 22"},
|
||||
new Permission{ Id = 263, Name="File.edit24", Description="Разрешение редактировать Файлы категории 23"},
|
||||
new Permission{ Id = 264, Name="File.edit25", Description="Разрешение редактировать Файлы категории 24"},
|
||||
new Permission{ Id = 265, Name="File.edit26", Description="Разрешение редактировать Файлы категории 25"},
|
||||
new Permission{ Id = 266, Name="File.edit27", Description="Разрешение редактировать Файлы категории 26"},
|
||||
new Permission{ Id = 267, Name="File.edit28", Description="Разрешение редактировать Файлы категории 27"},
|
||||
new Permission{ Id = 268, Name="File.edit29", Description="Разрешение редактировать Файлы категории 28"},
|
||||
new Permission{ Id = 269, Name="File.edit30", Description="Разрешение редактировать Файлы категории 29"},
|
||||
});
|
||||
});
|
||||
|
||||
@ -431,11 +481,11 @@ namespace AsbCloudDb.Model
|
||||
new RelationUserRolePermission{ IdUserRole = 1113, IdPermission = 105}, new RelationUserRolePermission{ IdUserRole = 1113, IdPermission = 123}, new RelationUserRolePermission{ IdUserRole = 1113, IdPermission = 120},
|
||||
new RelationUserRolePermission{ IdUserRole = 1114, IdPermission = 119}, new RelationUserRolePermission{ IdUserRole = 1114, IdPermission = 118}, new RelationUserRolePermission{ IdUserRole = 1114, IdPermission = 200},
|
||||
new RelationUserRolePermission{ IdUserRole = 1115, IdPermission = 223},
|
||||
new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 105}, new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 102}, new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 117},
|
||||
new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 105}, new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 102}, new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 117}, new RelationUserRolePermission{ IdUserRole = 1116, IdPermission = 126},
|
||||
new RelationUserRolePermission{ IdUserRole = 1117, IdPermission = 125}, new RelationUserRolePermission{ IdUserRole = 1117, IdPermission = 124},
|
||||
new RelationUserRolePermission{ IdUserRole = 1200, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1200, IdPermission = 230},
|
||||
new RelationUserRolePermission{ IdUserRole = 1201, IdPermission = 202}, new RelationUserRolePermission{ IdUserRole = 1201, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1201, IdPermission = 220},
|
||||
new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 220}, new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 236},
|
||||
new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 220}, new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 236}, new RelationUserRolePermission{ IdUserRole = 1202, IdPermission = 212},
|
||||
new RelationUserRolePermission{ IdUserRole = 1203, IdPermission = 235},
|
||||
new RelationUserRolePermission{ IdUserRole = 1204, IdPermission = 202}, new RelationUserRolePermission{ IdUserRole = 1204, IdPermission = 203},
|
||||
new RelationUserRolePermission{ IdUserRole = 1205, IdPermission = 215},
|
||||
@ -443,7 +493,7 @@ namespace AsbCloudDb.Model
|
||||
new RelationUserRolePermission{ IdUserRole = 1207, IdPermission = 205},
|
||||
new RelationUserRolePermission{ IdUserRole = 1208, IdPermission = 218},
|
||||
new RelationUserRolePermission{ IdUserRole = 1209, IdPermission = 217},
|
||||
new RelationUserRolePermission{ IdUserRole = 1210, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1210, IdPermission = 230},
|
||||
new RelationUserRolePermission{ IdUserRole = 1210, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1210, IdPermission = 230}, new RelationUserRolePermission{ IdUserRole = 1210, IdPermission = 219},
|
||||
new RelationUserRolePermission{ IdUserRole = 1211, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1211, IdPermission = 220}, new RelationUserRolePermission{ IdUserRole = 1211, IdPermission = 239},
|
||||
new RelationUserRolePermission{ IdUserRole = 1212, IdPermission = 238}, new RelationUserRolePermission{ IdUserRole = 1212, IdPermission = 237},
|
||||
new RelationUserRolePermission{ IdUserRole = 1213, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1213, IdPermission = 239}, new RelationUserRolePermission{ IdUserRole = 1213, IdPermission = 212},
|
||||
@ -452,9 +502,19 @@ namespace AsbCloudDb.Model
|
||||
new RelationUserRolePermission{ IdUserRole = 1216, IdPermission = 221},
|
||||
new RelationUserRolePermission{ IdUserRole = 1217, IdPermission = 226},
|
||||
new RelationUserRolePermission{ IdUserRole = 1218, IdPermission = 225}, new RelationUserRolePermission{ IdUserRole = 1218, IdPermission = 224},
|
||||
new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 206}, new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 230},
|
||||
new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 206}, new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 230}, new RelationUserRolePermission{ IdUserRole = 1219, IdPermission = 232},
|
||||
new RelationUserRolePermission{ IdUserRole = 1220, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1220, IdPermission = 228},
|
||||
new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 202}, new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 220},
|
||||
new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 202}, new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 203}, new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 220}, new RelationUserRolePermission{ IdUserRole = 1221, IdPermission = 234},
|
||||
new RelationUserRolePermission{ IdUserRole = 1501, IdPermission = 214}, new RelationUserRolePermission{ IdUserRole = 1501, IdPermission = 213},
|
||||
new RelationUserRolePermission{ IdUserRole = 1502, IdPermission = 207}, new RelationUserRolePermission{ IdUserRole = 1502, IdPermission = 208},
|
||||
new RelationUserRolePermission{ IdUserRole = 2000, IdPermission = 205}, new RelationUserRolePermission{ IdUserRole = 2000, IdPermission = 204}, new RelationUserRolePermission{ IdUserRole = 2000, IdPermission = 245},
|
||||
new RelationUserRolePermission{ IdUserRole = 2001, IdPermission = 244}, new RelationUserRolePermission{ IdUserRole = 2001, IdPermission = 245},
|
||||
new RelationUserRolePermission{ IdUserRole = 2002, IdPermission = 244}, new RelationUserRolePermission{ IdUserRole = 2002, IdPermission = 246}, new RelationUserRolePermission{ IdUserRole = 2002, IdPermission = 237}, new RelationUserRolePermission{ IdUserRole = 2002, IdPermission = 238},
|
||||
new RelationUserRolePermission{ IdUserRole = 2003, IdPermission = 240}, new RelationUserRolePermission{ IdUserRole = 2003, IdPermission = 217}, new RelationUserRolePermission{ IdUserRole = 2003, IdPermission = 216},
|
||||
new RelationUserRolePermission{ IdUserRole = 2004, IdPermission = 242}, new RelationUserRolePermission{ IdUserRole = 2004, IdPermission = 217}, new RelationUserRolePermission{ IdUserRole = 2004, IdPermission = 216}, new RelationUserRolePermission{ IdUserRole = 2004, IdPermission = 205}, new RelationUserRolePermission{ IdUserRole = 2004, IdPermission = 204},
|
||||
new RelationUserRolePermission{ IdUserRole = 2005, IdPermission = 247}, new RelationUserRolePermission{ IdUserRole = 2005, IdPermission = 205}, new RelationUserRolePermission{ IdUserRole = 2005, IdPermission = 204},
|
||||
new RelationUserRolePermission{ IdUserRole = 2006, IdPermission = 243}, new RelationUserRolePermission{ IdUserRole = 2006, IdPermission = 205}, new RelationUserRolePermission{ IdUserRole = 2006, IdPermission = 204},
|
||||
new RelationUserRolePermission{ IdUserRole = 2007, IdPermission = 241}, new RelationUserRolePermission{ IdUserRole = 2007, IdPermission = 205}, new RelationUserRolePermission{ IdUserRole = 2007, IdPermission = 204},
|
||||
});
|
||||
});
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user