init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Resources;
|
||||
using Kreta.Web.Helpers;
|
||||
using Kreta.Web.Models;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class BaseImportExportModel : UploadFileModel
|
||||
{
|
||||
public int ImportMuvelet { get; set; }
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectList => EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value).ToSelectListItemList(selectedValue: (int)ImportMuveletEnum.Insert);
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectListWithoutDelete => EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value).ToSelectListItemList(new List<string> { ((int)ImportMuveletEnum.DeleteAndInsert).ToString() }, (int)ImportMuveletEnum.Insert);
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectListOnlyInsertAndUpdate => EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value).ToSelectListItemList(new List<string> { ((int)ImportMuveletEnum.DeleteAndInsert).ToString(), ((int)ImportMuveletEnum.Insert).ToString() }, (int)ImportMuveletEnum.InsertAndUpdate);
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectListOnlyInsert => EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value).ToSelectListItemList(new List<string> { ((int)ImportMuveletEnum.DeleteAndInsert).ToString(), ((int)ImportMuveletEnum.InsertAndUpdate).ToString() }, (int)ImportMuveletEnum.Insert);
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectListOnlyInsertAndDelete => GetDeleteAndInsertWithNonImported(EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value)).ToSelectListItemList(new List<string> { ((int)ImportMuveletEnum.InsertAndUpdate).ToString() }, (int)ImportMuveletEnum.Insert);
|
||||
|
||||
public List<SelectListItem> ImportMuveletSelectListWithDeleteNonImported => GetDeleteAndInsertWithNonImported(EnumExtensions.EnumToDictionary<ImportMuveletEnum>(ClaimData.SelectedTanevID.Value)).ToSelectListItemList(selectedValue: (int)ImportMuveletEnum.Insert);
|
||||
|
||||
private Dictionary<string, string> GetDeleteAndInsertWithNonImported(Dictionary<string, string> dict)
|
||||
{
|
||||
var ret = new Dictionary<string, string>(dict)
|
||||
{
|
||||
[ImportMuveletEnum.DeleteAndInsert.AsInt().ToString()] = ImportExportCommonResource.ImportTipusEnumDeleteAndInsertImported
|
||||
};
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class CimImportItemListModel
|
||||
{
|
||||
public List<CimImportItemModel> ImportItemModelList { get; set; } = new List<CimImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class CimImportItemModel
|
||||
{
|
||||
public string FelhasznaloElotag { get; set; }
|
||||
|
||||
public string FelhasznaloVezeteknev { get; set; }
|
||||
|
||||
public string FelhasznaloKeresztnev { get; set; }
|
||||
|
||||
public string GondviseloNev { get; set; }
|
||||
|
||||
public string GondviseloRokonsagiFokNev { get; set; }
|
||||
|
||||
public string TipusNev { get; set; }
|
||||
|
||||
public string Iranyitoszam { get; set; }
|
||||
|
||||
public string Telepules { get; set; }
|
||||
|
||||
public string Kozterulet { get; set; }
|
||||
|
||||
public string KozteruletJellegNev { get; set; }
|
||||
|
||||
public string Hazszam { get; set; }
|
||||
|
||||
public string Emelet { get; set; }
|
||||
|
||||
public string Ajto { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class CsoportImportItemListModel
|
||||
{
|
||||
public List<CsoportImportItemModel> ImportItemModelList { get; set; } = new List<CsoportImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class CsoportImportItemModel
|
||||
{
|
||||
public string Nev { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class EmailImportItemListModel
|
||||
{
|
||||
public List<EmailImportItemModel> ImportItemModelList { get; set; } = new List<EmailImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class EmailImportItemModel
|
||||
{
|
||||
public string FelhasznaloElotag { get; set; }
|
||||
|
||||
public string FelhasznaloVezeteknev { get; set; }
|
||||
|
||||
public string FelhasznaloKeresztnev { get; set; }
|
||||
|
||||
public string GondviseloNev { get; set; }
|
||||
|
||||
public string GondviseloRokonsagiFokNev { get; set; }
|
||||
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
public string TipusNev { get; set; }
|
||||
|
||||
public string IsAlapertelmezett { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class ImportInfoSummaryListModel
|
||||
{
|
||||
public List<ImportInfoSummaryModel> ImportInfoSummaryModelList { get; set; } = new List<ImportInfoSummaryModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class ImportInfoSummaryModel
|
||||
{
|
||||
public string ImportName { get; set; }
|
||||
|
||||
public string InsertRowCount { get; set; }
|
||||
|
||||
public string UpdateRowCount { get; set; }
|
||||
|
||||
public string DeleteRowCount { get; set; }
|
||||
|
||||
public string UnchangedRowCount { get; set; }
|
||||
|
||||
public string InvalidRowCount { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class OsztalyImportItemListModel
|
||||
{
|
||||
public List<OsztalyImportItemModel> ImportItemModelList { get; set; } = new List<OsztalyImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class OsztalyImportItemModel
|
||||
{
|
||||
public string Nev { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class TantargyImportItemListModel
|
||||
{
|
||||
public List<TantargyImportItemModel> ImportItemModelList { get; set; } = new List<TantargyImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class TantargyImportItemModel
|
||||
{
|
||||
public string Nev { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class TelefonImportItemListModel
|
||||
{
|
||||
public List<TelefonImportItemModel> ImportItemModelList { get; set; } = new List<TelefonImportItemModel>();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Enums.ManualEnums.ImportExport;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
{
|
||||
public class TelefonImportItemModel
|
||||
{
|
||||
public string FelhasznaloElotag { get; set; }
|
||||
|
||||
public string FelhasznaloVezeteknev { get; set; }
|
||||
|
||||
public string FelhasznaloKeresztnev { get; set; }
|
||||
|
||||
public string GondviseloNev { get; set; }
|
||||
|
||||
public string GondviseloRokonsagiFokNev { get; set; }
|
||||
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public string TipusNev { get; set; }
|
||||
|
||||
public string IsAlapertelmezett { get; set; }
|
||||
|
||||
public int Operation { get; set; }
|
||||
public string OperationText => Operation.GetDisplayName<ImportItemOperationEnum>(ClaimData.SelectedTanevID.Value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue