using System; using System.Collections.Generic; using System.Linq; using System.Text; using MMDAL.DTO.DutyTable; using MMDAL.DTO.ItemParty; using MMDAL.DTO.PriceList; using MMDAL.DTO.TaxTable; namespace MMDAL.DTO.Item { public class ItemDetailsDTO { private int itemid; private string itemcode; private string itemname; private int skuid = -1; private string skuname; private int uomid = -1; private string uomcode; private string uomname; private int rateperuomid = -1; private string rateperuomcode; private string rateperuomname; private int itemuomsetid = -1; private double itemstock; private int materialaccountid = -1; private string materialaccountcode; private string materialaccountname; private int itemaccountid = -1; private string itemaccountcode; private string itemaccountname; private int itemaccountbillallocationtype; private int itemaccountgroupid = -1; private int itemtollerancetype; //TolleranceType private double itemtollerancevalue; //TolleranceValue private double itemrate; private int currencyid = -1; private string currencycode; private string currencyname; private double itemcurrencyconversion; private int itemisfreeapplicable; private int itemisbatchstock; private int itemisuniquebatch; private int itemispackingsdetailsrequired; private int itempackid = -1; private string itempackname; private int itempackconversiontype; private double itempackconversionfactor; private string formreceived; private string formissued; private int isformreceived; private int isformissued; private int itemtaxtableid = -1; private int itemdutytableid = -1; private int itemisskuapplicable; private int itemdefaultskuid = -1; private string itemdefaultskuname; private Int16 itemleadtime; private int itempricecategoryid = -1; private string itempricecategoryname; private int itemratetype; private double itempurchasecost; private List itempartychargesdto = new List(); private TaxTableDTO taxtabledto = new TaxTableDTO(); private DutyTableDTO dutytabledto = new DutyTableDTO(); private PriceListDetailDTO pricelistdetaildto = new PriceListDetailDTO(); private string itemdefaultcmsid; private string imageurl; private int isstockposting; //isstockposting private int storeid; private string storecode; private string storename; private int stockskuid; private string stockskucode; private string stockskuname; private int stockouid; private string stockoucode; private string stockouname; private double itemrejectedstock; private double itemreworkstock; private double itemotherstock; private int itempartydetailid; //ItemPartyDetailId private DutyTableDTO gstdutytabledto = new DutyTableDTO(); private List historydocumentdto = new List(); private int binid; private string binnumber; private int consumptionitemaccountid; private string consumptionitemaccountname; //tax //duty //charges (from MITEMPARTYCHARGES) public int ItemId { get { return itemid; } set { itemid = value; } } public string ItemCode { get { return itemcode; } set { itemcode = value; } } public string ItemName { get { return itemname; } set { itemname = value; } } public int SKUId { get { return skuid; } set { skuid = value; } } public string SKUName { get { return skuname; } set { skuname = value; } } public int UOMId { get { return uomid; } set { uomid = value; } } public string UOMCode { get { return uomcode; } set { uomcode = value; } } public string UOMName { get { return uomname; } set { uomname = value; } } public int RatePerUOMId { get { return rateperuomid; } set { rateperuomid = value; } } public string RatePerUOMCode { get { return rateperuomcode; } set { rateperuomcode = value; } } public string RatePerUOMName { get { return rateperuomname; } set { rateperuomname = value; } } public int ItemUOMSetId { get { return itemuomsetid; } set { itemuomsetid = value; } } public double ItemStock { get { return itemstock; } set { itemstock = value; } } public int MaterialAccountId { get { return materialaccountid; } set { materialaccountid = value; } } public string MaterialAccountCode { get { return materialaccountcode; } set { materialaccountcode = value; } } public string MaterialAccountName { get { return materialaccountname; } set { materialaccountname = value; } } public int ItemAccountId { get { return itemaccountid; } set { itemaccountid = value; } } public string ItemAccountCode { get { return itemaccountcode; } set { itemaccountcode = value; } } public string ItemAccountName { get { return itemaccountname; } set { itemaccountname = value; } } public int ItemAccountBillAllocationType { get { return itemaccountbillallocationtype; } set { itemaccountbillallocationtype = value; } } public int ItemAccountGroupId { get { return itemaccountgroupid; } set { itemaccountgroupid = value; } } public int ItemTolleranceType { get { return itemtollerancetype; } set { itemtollerancetype = value; } } public double ItemTolleranceValue { get { return itemtollerancevalue; } set { itemtollerancevalue = value; } } public double ItemRate { get { return itemrate; } set { itemrate = value; } } public int CurrencyId { get { return currencyid; } set { currencyid = value; } } public string CurrencyCode { get { return currencycode; } set { currencycode = value; } } public string CurrencyName { get { return currencyname; } set { currencyname = value; } } public double ItemCurrencyConversion { get { return itemcurrencyconversion; } set { itemcurrencyconversion = value; } } public int ItemIsFreeApplicable { get { return itemisfreeapplicable; } set { itemisfreeapplicable = value; } } public int ItemIsBatchStock { get { return itemisbatchstock; } set { itemisbatchstock = value; } } public int ItemIsUniqueBatch { get { return itemisuniquebatch; } set { itemisuniquebatch = value; } } public int ItemIsPackingsDetailsRequired { get { return itemispackingsdetailsrequired; } //ItemIsPackingsDetailsRequired set { itemispackingsdetailsrequired = value; } //ItemIsPackingsDetailsRequired } public int ItemPackId { get { return itempackid; } set { itempackid = value; } } public string ItemPackName { get { return itempackname; } set { itempackname = value; } } public int ItemPackConversiontype { get { return itempackconversiontype; } set { itempackconversiontype = value; } } public double ItemPackConversionFactor { get { return itempackconversionfactor; } set { itempackconversionfactor = value; } } public int ItemTaxTableId { get { return itemtaxtableid; } set { itemtaxtableid = value; } } public int ItemDutyTableId { get { return itemdutytableid; } set { itemdutytableid = value; } } public string FormReceived { get { return formreceived; } set { formreceived = value; } } public string FormIssued { get { return formissued; } set { formissued = value; } } public int IsFormReceived { get { return isformreceived; } set { isformreceived = value; } } public int IsFormIssued { get { return isformissued; } set { isformissued = value; } } public int ItemIsSKUApplicable { get { return itemisskuapplicable; } set { itemisskuapplicable = value; } } public int ItemDefaultSKUId { get { return itemdefaultskuid; } set { itemdefaultskuid = value; } } public string ItemDefaultSKUName { get { return itemdefaultskuname; } set { itemdefaultskuname = value; } } public Int16 ItemLeadTime { get { return itemleadtime; } set { itemleadtime = value; } } public int ItemRateType { get { return itemratetype; } set { itemratetype = value; } } public double ItemPurchaseCost { get { return itempurchasecost; } set { itempurchasecost = value; } } public int ItemPriceCategoryId { get { return itempricecategoryid; } set { itempricecategoryid = value; } } public string ItemPriceCategoryName { get { return itempricecategoryname; } set { itempricecategoryname = value; } } public List ItemPartyChargesDTO { get { return itempartychargesdto; } set { itempartychargesdto = value; } } public TaxTableDTO TaxTableDTO { get { return taxtabledto; } set { taxtabledto = value; } } public DutyTableDTO DutyTableDTO { get { return dutytabledto; } set { dutytabledto = value; } } public PriceListDetailDTO PriceListDetailDTO { get { return pricelistdetaildto; } set { pricelistdetaildto = value; } } public string ItemDefaultCmsId { get { return itemdefaultcmsid; } set { itemdefaultcmsid = value; } } public string ImageUrl { get { return imageurl; } set { imageurl = value; } } public int IsStockPosting { get { return isstockposting; } //IsStockPosting set { isstockposting = value; } //IsStockPosting } public int StoreId { get { return storeid; } set { storeid = value; } } public string StoreCode { get { return storecode; } set { storecode = value; } } public string StoreName { get { return storename; } set { storename = value; } } public int StockSkuId { get { return stockskuid; } set { stockskuid = value; } } public string StockSkuCode { get { return stockskucode; } set { stockskucode = value; } } public string StockSkuName { get { return stockskuname; } set { stockskuname = value; } } public int StockOuId { get { return stockouid; } set { stockouid = value; } } public string StockOuCode { get { return stockoucode; } set { stockoucode = value; } } public string StockOuName { get { return stockouname; } set { stockouname = value; } } public double ItemRejectedStock { get { return itemrejectedstock; } set { itemrejectedstock = value; } } public double ItemReworkStock { get { return itemreworkstock; } set { itemreworkstock = value; } } public double ItemOtherStock { get { return itemotherstock; } set { itemotherstock = value; } } private int modeofpayment = 2; public int ModeOfPayment { get { return modeofpayment; } set { modeofpayment = value; } } private string partyreferencenumber = ""; private DateTime partyreferencedate; public string PartyReferenceNumber { get { return partyreferencenumber; } set { partyreferencenumber = value; } } public DateTime PartyReferenceDate { get { return partyreferencedate; } set { partyreferencedate = value; } } public int ItemPartyDetailId { get { return itempartydetailid; } set { itempartydetailid = value; } } public DutyTableDTO GSTDutyTableDTO { get { return gstdutytabledto; } set { gstdutytabledto = value; } } private int gsttableid; public int GSTTableId { get { return gsttableid; } set { gsttableid = value; } } private int gsttariffid; public int GSTTariffId { get { return gsttariffid; } set { gsttariffid = value; } } private string gsttariffcode; public string GSTTariffCode { get { return gsttariffcode; } set { gsttariffcode = value; } } private int stockuomid; private string stockuomcode; private string stockuomname; public int StockUOMId { get { return stockuomid; } set { stockuomid = value; } } public string StockUOMCode { get { return stockuomcode; } set { stockuomcode = value; } } public string StockUOMName { get { return stockuomname; } set { stockuomname = value; } } private decimal itemweight; public decimal ItemWeight { get { return itemweight; } set { itemweight = value; } } //private IList itemaddon = new List(); --------->POCO FOLDER //public virtual IList ItemAddon //{ // get { return itemaddon; } // set { itemaddon = value; } //} private List tempprices = new List(); public List TempPrices { get { return tempprices; } set { tempprices = value; } } public List HistoryDocumentDTO { get { return historydocumentdto; } set { historydocumentdto = value; } } private decimal productionqty; public decimal ProductionQty { get { return productionqty; } set { productionqty = value; } } private int lotid = -1; private string lotnumber; public int LotId { get { return lotid; } set { lotid = value; } } public string LotNumber { get { return lotnumber; } set { lotnumber = value; } } private decimal packquantity; private decimal quantity; private int packsetid = -1; public decimal PackQuantity { get { return packquantity; } set { packquantity = value; } } public decimal Quantity { get { return quantity; } set { quantity = value; } } public int PackSetId { get { return packsetid; } set { packsetid = value; } } private byte isnontransacted; public byte IsNonTransacted { get { return isnontransacted; } //isnontransacted set { isnontransacted = value; } //isnontransacted } private byte uomnoofdecimals; private byte stockuomnoofdecimals; public byte UOMNoOfDecimals { get { return uomnoofdecimals; } //uomnoofdecimals set { uomnoofdecimals = value; } //uomnoofdecimals } public byte StockUOMNoOfDecimals { get { return stockuomnoofdecimals; } //uomnoofdecimals set { stockuomnoofdecimals = value; } //uomnoofdecimals } private decimal maxdiscpercentage; public decimal MaxDiscPercentage { get { return maxdiscpercentage; } //MaxDiscPercentage set { maxdiscpercentage = value; } //MaxDiscPercentage } private int qualityparametersetid = -1; public int QualityParameterSetId { get { return qualityparametersetid; } //qualityparametersetid set { qualityparametersetid = value; } //qualityparametersetid } private List bomitempicklistdtos = new List(); public List BomItemPicklistDTOs { get { return bomitempicklistdtos; } set { bomitempicklistdtos = value; } } private double stockpositiontotalquantity; private double stockpositionreservedquantity; private double stockpositionreservedfor; private double stockpositionreservedothers; private double stockpositionopenquantity; private double stockpositionavailablequantity; public double StockPositionTotalQuantity { get { return stockpositiontotalquantity; } //StockPositionTotalQuantity set { stockpositiontotalquantity = value; } //stockpositiontotalquantity } public double StockPositionReservedQuantity { get { return stockpositionreservedquantity; } //StockPositionReservedQuantity set { stockpositionreservedquantity = value; } //StockPositionReservedQuantity } public double StockPositionReservedFor { get { return stockpositionreservedfor; } //StockPositionReservedFor set { stockpositionreservedfor = value; } //StockPositionReservedFor } public double StockPositionReservedOthers { get { return stockpositionreservedothers; } //StockPositionReservedOthers set { stockpositionreservedothers = value; } //StockPositionReservedOthers } public double StockPositionOpenQuantity { get { return stockpositionopenquantity; } //StockPositionOpenQuantity set { stockpositionopenquantity = value; } //StockPositionOpenQuantity } public double StockPositionAvailableQuantity { get { return stockpositionavailablequantity; } //StockPositionAvailableQuantity set { stockpositionavailablequantity = value; } //StockPositionAvailableQuantity } private string itemcomment = ""; public string ItemComment { get { return itemcomment; } set { itemcomment = value; } } private decimal skunetweight; public decimal SKUNetWeight { get { return skunetweight; } set { skunetweight = value; } } private byte isprepaid; private Int16 noofperiods; private int deferalplanid; private int sizesetid; public byte IsPrepaid { get { return isprepaid; } set { isprepaid = value; } } public Int16 NoOfPeriods { get { return noofperiods; } set { noofperiods = value; } } public int DeferalPlanId { get { return deferalplanid; } set { deferalplanid = value; } } public int SizeSetId { get { return sizesetid; } set { sizesetid = value; } } private byte itemisexpirytrackingrequired; //IsExpirytrackingRequired public byte ItemIsExpirytrackingRequired { get { return itemisexpirytrackingrequired; } //IsExpirytrackingRequired set { itemisexpirytrackingrequired = value; } //IsExpirytrackingRequired } private int itemaliasid = -1; public int ItemAliasId { get { return itemaliasid; } //mrprate set { itemaliasid = value; } //mrprate } public int BinId { get { return binid; } set { binid = value; } } public string BinNumber { get { return binnumber; } set { binnumber = value; } } ///////////////////////////////// /// private string itemdescription; private string itemcategoryname; private string itemsubcategoryname; private string itemcount; private string itemcontent; private string itemconstruction; private string itemweave; private decimal itemwidth; private string itemcolour; private decimal itemgsm; private string itemfinish; private decimal packingpendingquantity; public string ItemDescription { get { return itemdescription; } set { itemdescription = value; } } public string ItemCategoryName { get { return itemcategoryname; } set { itemcategoryname = value; } } public string ItemSubCategoryName { get { return itemsubcategoryname; } set { itemsubcategoryname = value; } } public string ItemCount { get { return itemcount; } set { itemcount = value; } } public string ItemContent { get { return itemcontent; } set { itemcontent = value; } } public string ItemConstruction { get { return itemconstruction; } set { itemconstruction = value; } } public string ItemWeave { get { return itemweave; } set { itemweave = value; } } public decimal ItemWidth { get { return itemwidth; } set { itemwidth = value; } } public string ItemColour { get { return itemcolour; } set { itemcolour = value; } } public decimal ItemGSM { get { return itemgsm; } set { itemgsm = value; } } public string ItemFinish { get { return itemfinish; } set { itemfinish = value; } } public decimal PackingPendingQuantity { get { return packingpendingquantity; } set { packingpendingquantity = value; } } private int l1id = -1; private string l1code; private string l1name; private int l2id = -1; private string l2code; private string l2name; private int l3id = -1; private string l3code; private string l3name; private int l4id = -1; private string l4code; private string l4name; private int l5id = -1; private string l5code; private string l5name; public int L1Id { get { return l1id; } set { l1id = value; } } public string L1Code { get { return l1code; } set { l1code = value; } } public string L1Name { get { return l1name; } set { l1name = value; } } public int L2Id { get { return l2id; } set { l2id = value; } } public string L2Code { get { return l2code; } set { l2code = value; } } public string L2Name { get { return l2name; } set { l2name = value; } } public int L3Id { get { return l3id; } set { l3id = value; } } public string L3Code { get { return l3code; } set { l3code = value; } } public string L3Name { get { return l3name; } set { l3name = value; } } public int L4Id { get { return l4id; } set { l4id = value; } } public string L4Code { get { return l4code; } set { l4code = value; } } public string L4Name { get { return l4name; } set { l4name = value; } } public int L5Id { get { return l5id; } set { l5id = value; } } public string L5Code { get { return l5code; } set { l5code = value; } } public string L5Name { get { return l5name; } set { l5name = value; } } public int ConsumptionItemAccountId { get { return consumptionitemaccountid; } set { consumptionitemaccountid = value; } } public string ConsumptionItemAccountName { get { return consumptionitemaccountname; } set { consumptionitemaccountname = value; } } } }