2026-07-13 18:32:45 +06:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.Formatters;
|
|
|
|
|
|
using System;
|
2026-07-07 18:14:18 +06:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.MobileApp;
|
2026-07-06 18:43:46 +06:00
|
|
|
|
|
|
|
|
|
|
public class MarketHeirarchyByEmpResponse
|
|
|
|
|
|
{
|
2026-07-07 18:14:18 +06:00
|
|
|
|
public MarketHeirarchyByEmpResponse()
|
|
|
|
|
|
{
|
|
|
|
|
|
Companies = new List<EmpCompanyResponse>();
|
|
|
|
|
|
SalesOrgs = new List<SalesOrgResponse>();
|
|
|
|
|
|
DistributionChannels = new List<DistibutionChannleResponse>();
|
|
|
|
|
|
Regions = new List<RegionResponse>();
|
|
|
|
|
|
Areas = new List<AreaResponse>();
|
|
|
|
|
|
Teritories = new List<TeritoryResponse>();
|
|
|
|
|
|
Plants = new List<PlantResponse>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IList<EmpCompanyResponse> Companies { get; set; }
|
|
|
|
|
|
public IList<SalesOrgResponse> SalesOrgs { get; set; }
|
|
|
|
|
|
public IList<DistibutionChannleResponse> DistributionChannels { get; set; }
|
|
|
|
|
|
public IList<RegionResponse> Regions { get; set; }
|
|
|
|
|
|
public IList<AreaResponse> Areas { get; set; }
|
|
|
|
|
|
public IList<TeritoryResponse> Teritories { get; set; }
|
|
|
|
|
|
public IList<PlantResponse> Plants { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class EmpCompanyResponse
|
|
|
|
|
|
{
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string CompanyName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class SalesOrgResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public string SalesOrgName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class DistibutionChannleResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string DistributorChannelCode { get; set; }
|
|
|
|
|
|
public string DistributorChannelName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class RegionResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string RegionCode { get; set; }
|
|
|
|
|
|
public string RegionName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class AreaResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public string RegionCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string AreaCode { get; set; }
|
|
|
|
|
|
public string AreaName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
2026-07-06 18:43:46 +06:00
|
|
|
|
|
2026-07-07 18:14:18 +06:00
|
|
|
|
public class TeritoryResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public string RegionCode { get; set; }
|
|
|
|
|
|
public string AreaCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string TeritoryCode { get; set; }
|
|
|
|
|
|
public string TeritoryName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class PlantResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string CompanyCode { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string PlantCode { get; set; }
|
|
|
|
|
|
public string PlantName { get; set; }
|
2026-07-06 18:43:46 +06:00
|
|
|
|
}
|
2026-07-07 18:14:18 +06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class GetBrandResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string BrandCode { get; set; } = string.Empty;
|
|
|
|
|
|
public string BrandName { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class GetMaterialResponse
|
|
|
|
|
|
{
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
|
|
public string MaterialCode { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
public string TypeCode { get; set; }
|
|
|
|
|
|
public string TypeName { get; set; }
|
|
|
|
|
|
public string GroupCode { get; set; }
|
|
|
|
|
|
public string GroupName { get; set; }
|
|
|
|
|
|
public string BaseUnitMeasurement { get; set; }
|
|
|
|
|
|
public string SalesUnitMeasurement { get; set; }
|
|
|
|
|
|
public decimal UnitConversionValue { get; set; }
|
|
|
|
|
|
public string BrandCode { get; set; }
|
|
|
|
|
|
public string BrandName { get; set; }
|
|
|
|
|
|
public string SalesOrg { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-13 17:37:58 +06:00
|
|
|
|
public class GetMaterialPriceResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public string CustomerCode { get; set; }
|
|
|
|
|
|
public string MaterialCode { get; set; }
|
|
|
|
|
|
public decimal BasePrice { get; set; }
|
2026-07-27 16:09:14 +06:00
|
|
|
|
public decimal? VatValue { get; set; }
|
|
|
|
|
|
public string? VatCalculationType { get; set; }
|
2026-07-13 17:37:58 +06:00
|
|
|
|
}
|
2026-07-07 18:14:18 +06:00
|
|
|
|
|
|
|
|
|
|
public class GetCustomerResponse
|
|
|
|
|
|
{
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string CustomerCode { get; set; }
|
|
|
|
|
|
public string CustomerName { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
public string AccountGroupCode { get; set; }
|
|
|
|
|
|
public string AccountGroupDescription { get; set; }
|
|
|
|
|
|
public string DistributionChannelCode { get; set; }
|
|
|
|
|
|
public string DistributionChannelName { get; set; }
|
|
|
|
|
|
public string DivisionCode { get; set; }
|
|
|
|
|
|
public string DivisionName { get; set; }
|
|
|
|
|
|
public string MobileNumber { get; set; }
|
|
|
|
|
|
public string EmailAddress { get; set; }
|
|
|
|
|
|
public string TaxNumber { get; set; }
|
2026-08-03 18:24:18 +06:00
|
|
|
|
public string? SalesGroupCode { get; set; }
|
|
|
|
|
|
public string? SalesGroupName { get; set; }
|
|
|
|
|
|
public string? CustomerGroupCode { get; set; }
|
|
|
|
|
|
public string? CustomerGroupName { get; set; }
|
|
|
|
|
|
public string? CustomerPriceGroupCode { get; set; }
|
|
|
|
|
|
public string? CustomerPriceGroupName { get; set; }
|
|
|
|
|
|
public string? PaymentTermCode { get; set; }
|
2026-07-08 14:51:20 +06:00
|
|
|
|
public string SalesOrgCode { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
public string TeritoryCode { get; set; }
|
|
|
|
|
|
public string PlantCode { get; set; }
|
2026-07-12 12:44:45 +06:00
|
|
|
|
public bool IsCreditCustomer { get; set; }
|
|
|
|
|
|
public decimal CreditLimit { get; set; }
|
|
|
|
|
|
public decimal CreditBalance { get; set; }
|
|
|
|
|
|
public decimal CreditAvailable => CreditLimit - CreditBalance;
|
|
|
|
|
|
public decimal CreditOverdue { get; set; }
|
2026-07-08 18:15:24 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class GetAttendanceByEmpResponse
|
|
|
|
|
|
{
|
2026-07-09 18:53:22 +06:00
|
|
|
|
public DateTime? AttendanceDate { get; set; }
|
2026-07-08 18:15:24 +06:00
|
|
|
|
public string EmployeeNumber { get; set; }
|
2026-07-09 18:53:22 +06:00
|
|
|
|
public TimeSpan? CheckInTime { get; set; }
|
2026-07-08 18:15:24 +06:00
|
|
|
|
public string? CheckInLatitude { get; set; }
|
|
|
|
|
|
public string? CheckInLongitude { get; set; }
|
|
|
|
|
|
public string? CheckInLocationName { get; set; }
|
2026-07-09 18:53:22 +06:00
|
|
|
|
public TimeSpan? CheckOutTime { get; set; }
|
2026-07-08 18:15:24 +06:00
|
|
|
|
public string? CheckOutLatitude { get; set; }
|
|
|
|
|
|
public string? CheckOutLongitude { get; set; }
|
|
|
|
|
|
public string? CheckOutLocationName { get; set; }
|
2026-07-09 18:53:22 +06:00
|
|
|
|
public bool? IsCheckIn => CheckInTime.HasValue ? true : false;
|
|
|
|
|
|
public bool? IsCheckOut => CheckOutTime.HasValue ? true : false;
|
2026-07-12 18:27:00 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetDiscountResponse
|
|
|
|
|
|
{
|
2026-07-30 11:35:10 +06:00
|
|
|
|
public string? SalesOrgCode { get; set; }
|
2026-07-13 17:37:58 +06:00
|
|
|
|
public string DiscountCode { get; set; }
|
|
|
|
|
|
public string DiscountName { get; set; }
|
2026-07-30 11:35:10 +06:00
|
|
|
|
public string? DistributorChannelCode { get; set; }
|
|
|
|
|
|
public string? DistributorChannelName { get; set; }
|
|
|
|
|
|
public DiscountTypeEnum DiscountType { get; set; }
|
2026-07-12 18:27:00 +06:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetDiscountMaterialResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string DiscountCode { get; set; }
|
2026-07-13 17:37:58 +06:00
|
|
|
|
public string CustomerCode { get; set; }
|
2026-07-30 11:35:10 +06:00
|
|
|
|
public string? MaterialCode { get; set; }
|
2026-07-12 18:27:00 +06:00
|
|
|
|
public string UnitOfMeasurement { get; set; }
|
|
|
|
|
|
public string CalculationType { get; set; }
|
2026-07-30 11:35:10 +06:00
|
|
|
|
public decimal Threshold { get; set; }
|
2026-07-12 18:27:00 +06:00
|
|
|
|
public decimal DiscountValue { get; set; }
|
|
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
public DateTime EndDate { get; set; }
|
2026-07-13 18:32:45 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetFOCResponse
|
|
|
|
|
|
{
|
2026-08-02 15:58:59 +06:00
|
|
|
|
public string? SalesOrgcCode { get; set; }
|
2026-07-13 18:32:45 +06:00
|
|
|
|
public string FOCCode { get; set; }
|
|
|
|
|
|
public string FOCName { get; set; }
|
2026-08-02 15:58:59 +06:00
|
|
|
|
public string? DistributorChannelCode { get; set; }
|
|
|
|
|
|
public string? DistributorChannelName { get; set; }
|
2026-07-13 18:32:45 +06:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetFOCMaterialResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string FOCCode { get; set; }
|
|
|
|
|
|
public string CustomerCode { get; set; }
|
|
|
|
|
|
public string MaterialCode { get; set; }
|
2026-07-27 11:03:25 +06:00
|
|
|
|
public string? UnitOfMeasurement { get; set; }
|
|
|
|
|
|
public decimal? MinimumOrderQty { get; set; }
|
|
|
|
|
|
public decimal? ForQuantity { get; set; }
|
|
|
|
|
|
public decimal? FreeQty { get; set; }
|
|
|
|
|
|
public string? FOCUnitOfMeasurement { get; set; }
|
2026-07-13 18:32:45 +06:00
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
public DateTime EndDate { get; set; }
|
2026-07-14 12:18:46 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class GetPaymentTermResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public int PaymentTermId { get; set; }
|
|
|
|
|
|
public string PaymentTermCode { get; set; }
|
|
|
|
|
|
public string PaymentTermDescription { get; set; }
|
|
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public DateTime StartDate { get; set; }
|
|
|
|
|
|
public DateTime EndDate { get; set; }
|
|
|
|
|
|
public string PaymentTermType { get; set; }
|
2026-07-19 16:05:07 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetMaterialStockReponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string PlantCode { get;set; }
|
|
|
|
|
|
public string MaterialCode { get; set; }
|
|
|
|
|
|
public decimal AvailableStock { get; set; }
|
2026-07-23 15:13:45 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetPasswordPolicyResponse
|
|
|
|
|
|
{
|
2026-07-26 18:04:49 +06:00
|
|
|
|
public int? MinLength { get; set; }
|
|
|
|
|
|
public int? MaxLength { get; set; }
|
2026-07-23 18:25:50 +06:00
|
|
|
|
public bool IsUppercase { get; set; }
|
|
|
|
|
|
public bool IsLowercase { get; set; }
|
|
|
|
|
|
public bool IsNumber { get; set; }
|
|
|
|
|
|
public bool IsSpecialCharacter { get; set; }
|
2026-07-26 18:04:49 +06:00
|
|
|
|
public int? PasswordLife { get; set; }
|
2026-07-07 18:14:18 +06:00
|
|
|
|
}
|