using BookingWeb.DB.Model; using BookingWeb.Models; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BookingWeb.Helper { public static class ChangeLogHelper { public static List Compare(OP_LOG src, OP_LOG dest) { List list = new List(); if (src.Module == OpLogModule.Order.ToString()) { var modelSrc = JsonConvert.DeserializeObject(src.JsonValue); var modelDest = JsonConvert.DeserializeObject(dest.JsonValue); //if (modelSrc.ORDNO != modelDest.ORDNO) //{ // list.Add(new ChangeLog() // { // Field = "ORDNO", // Title = Resources.LangAll.LabelORDNO, // SrcValue = modelSrc.ORDNO, // DestValue = modelDest.ORDNO // }); //} if (modelSrc.BSSTATUS != modelDest.BSSTATUS) { list.Add(new ChangeLog() { Field = "BSSTATUS", Title = Resources.LangAll.LabelBSSTATUS, SrcValue = modelSrc.BSSTATUS, DestValue = modelDest.BSSTATUS }); } if (modelSrc.MBLNO != modelDest.MBLNO) { list.Add(new ChangeLog() { Field = "MBLNO", Title = Resources.LangAll.LabelMBLNO, SrcValue = modelSrc.MBLNO, DestValue = modelDest.MBLNO }); } if (modelSrc.CONTRACTNO != modelDest.CONTRACTNO) { list.Add(new ChangeLog() { Field = "CONTRACTNO", Title = Resources.LangAll.LabelCONTRACTNO, SrcValue = modelSrc.CONTRACTNO, DestValue = modelDest.CONTRACTNO }); } if (modelSrc.SHIPPER != modelDest.SHIPPER) { list.Add(new ChangeLog() { Field = "SHIPPER", Title = Resources.LangAll.LabelSHIPPER, SrcValue = modelSrc.SHIPPER, DestValue = modelDest.SHIPPER }); } if (modelSrc.CONSIGNEE != modelDest.CONSIGNEE) { list.Add(new ChangeLog() { Field = "CONSIGNEE", Title = Resources.LangAll.LabelCONSIGNEE, SrcValue = modelSrc.CONSIGNEE, DestValue = modelDest.CONSIGNEE }); } if (modelSrc.NOTIFYPARTY != modelDest.NOTIFYPARTY) { list.Add(new ChangeLog() { Field = "NOTIFYPARTY", Title = Resources.LangAll.LabelNOTIFYPARTY, SrcValue = modelSrc.NOTIFYPARTY, DestValue = modelDest.NOTIFYPARTY }); } if (modelSrc.YARD != modelDest.YARD) { list.Add(new ChangeLog() { Field = "YARD", Title = Resources.LangAll.LabelYARD, SrcValue = modelSrc.YARD, DestValue = modelDest.YARD }); } if (modelSrc.VESSELID != modelDest.VESSELID) { list.Add(new ChangeLog() { Field = "VESSELID", Title = Resources.LangAll.LabelVESSELID, SrcValue = modelSrc.VESSELID, DestValue = modelDest.VESSELID }); } if (modelSrc.VESSEL != modelDest.VESSEL) { list.Add(new ChangeLog() { Field = "VESSEL", Title = Resources.LangAll.LabelVESSEL, SrcValue = modelSrc.VESSEL, DestValue = modelDest.VESSEL }); } if (modelSrc.VOYNO != modelDest.VOYNO) { list.Add(new ChangeLog() { Field = "VOYNO", Title = Resources.LangAll.LabelVOYNO, SrcValue = modelSrc.VOYNO, DestValue = modelDest.VOYNO }); } if (modelSrc.ETD != modelDest.ETD) { list.Add(new ChangeLog() { Field = "ETD", Title = Resources.LangAll.LabelETD, SrcValue = modelSrc.ETD, DestValue = modelDest.ETD }); } if (modelSrc.PLACERECEIPTID != modelDest.PLACERECEIPTID) { list.Add(new ChangeLog() { Field = "PLACERECEIPTID", Title = Resources.LangAll.LabelPLACERECEIPTID, SrcValue = modelSrc.PLACERECEIPTID, DestValue = modelDest.PLACERECEIPTID }); } if (modelSrc.PLACERECEIPT != modelDest.PLACERECEIPT) { list.Add(new ChangeLog() { Field = "PLACERECEIPT", Title = Resources.LangAll.LabelPLACERECEIPT, SrcValue = modelSrc.PLACERECEIPT, DestValue = modelDest.PLACERECEIPT }); } if (modelSrc.PORTLOADID != modelDest.PORTLOADID) { list.Add(new ChangeLog() { Field = "PORTLOADID", Title = Resources.LangAll.LabelPORTLOADID, SrcValue = modelSrc.PORTLOADID, DestValue = modelDest.PORTLOADID }); } if (modelSrc.PORTLOAD != modelDest.PORTLOAD) { list.Add(new ChangeLog() { Field = "PORTLOAD", Title = Resources.LangAll.LabelPORTLOAD, SrcValue = modelSrc.PORTLOAD, DestValue = modelDest.PORTLOAD }); } if (modelSrc.PORTDISCHARGEID != modelDest.PORTDISCHARGEID) { list.Add(new ChangeLog() { Field = "PORTDISCHARGEID", Title = Resources.LangAll.LabelPORTDISCHARGEID, SrcValue = modelSrc.PORTDISCHARGEID, DestValue = modelDest.PORTDISCHARGEID }); } if (modelSrc.PORTDISCHARGE != modelDest.PORTDISCHARGE) { list.Add(new ChangeLog() { Field = "PORTDISCHARGE", Title = Resources.LangAll.LabelPORTDISCHARGE, SrcValue = modelSrc.PORTDISCHARGE, DestValue = modelDest.PORTDISCHARGE }); } if ( modelSrc.PLACEDELIVERYID != modelDest.PLACEDELIVERYID) { list.Add(new ChangeLog() { Field = "PLACEDELIVERYID", Title = Resources.LangAll.LabelPLACEDELIVERYID, SrcValue = modelSrc.PLACEDELIVERYID, DestValue = modelDest.PLACEDELIVERYID }); } if (modelSrc.PLACEDELIVERY != modelDest.PLACEDELIVERY) { list.Add(new ChangeLog() { Field = "PLACEDELIVERY", Title = Resources.LangAll.LabelPLACEDELIVERY, SrcValue = modelSrc.PLACEDELIVERY, DestValue = modelDest.PLACEDELIVERY }); } if (modelSrc.DESTINATIONID != modelDest.DESTINATIONID) { list.Add(new ChangeLog() { Field = "DESTINATIONID", Title = Resources.LangAll.LabelDESTINATIONID, SrcValue = modelSrc.DESTINATIONID, DestValue = modelDest.DESTINATIONID }); } if (modelSrc.DESTINATION != modelDest.DESTINATION) { list.Add(new ChangeLog() { Field = "DESTINATION", Title = Resources.LangAll.LabelDESTINATION, SrcValue = modelSrc.DESTINATION, DestValue = modelDest.DESTINATION }); } if (modelSrc.NOBILL != modelDest.NOBILL) { list.Add(new ChangeLog() { Field = "NOBILL", Title = Resources.LangAll.LabelNOBILL, SrcValue = modelSrc.NOBILL, DestValue = modelDest.NOBILL }); } if (modelSrc.COPYNOBILLL != modelDest.COPYNOBILLL) { list.Add(new ChangeLog() { Field = "COPYNOBILLL", Title = Resources.LangAll.LabelCOPYNOBILLL, SrcValue = modelSrc.COPYNOBILLL, DestValue = modelDest.COPYNOBILLL }); } if (modelSrc.ISSUETYPE != modelDest.ISSUETYPE) { list.Add(new ChangeLog() { Field = "ISSUETYPE", Title = Resources.LangAll.LabelISSUETYPE, SrcValue = modelSrc.ISSUETYPE, DestValue = modelDest.ISSUETYPE }); } if (modelSrc.ISSUEPLACEID != modelDest.ISSUEPLACEID) { list.Add(new ChangeLog() { Field = "ISSUEPLACEID", Title = Resources.LangAll.LabelISSUEPLACEID, SrcValue = modelSrc.ISSUEPLACEID, DestValue = modelDest.ISSUEPLACEID }); } if (modelSrc.ISSUEPLACE != modelDest.ISSUEPLACE) { list.Add(new ChangeLog() { Field = "ISSUEPLACE", Title = Resources.LangAll.LabelISSUEPLACE, SrcValue = modelSrc.ISSUEPLACE, DestValue = modelDest.ISSUEPLACE }); } if (modelSrc.BLFRT != modelDest.BLFRT) { list.Add(new ChangeLog() { Field = "BLFRT", Title = Resources.LangAll.LabelBLFRT, SrcValue = modelSrc.BLFRT, DestValue = modelDest.BLFRT }); } if (modelSrc.PREPARDAT != modelDest.PREPARDAT) { list.Add(new ChangeLog() { Field = "PREPARDAT", Title = Resources.LangAll.LabelPREPARDAT, SrcValue = modelSrc.PREPARDAT, DestValue = modelDest.PREPARDAT }); } if (modelSrc.PAYABLEAT != modelDest.PAYABLEAT) { list.Add(new ChangeLog() { Field = "PAYABLEAT", Title = Resources.LangAll.LabelPAYABLEAT, SrcValue = modelSrc.PAYABLEAT, DestValue = modelDest.PAYABLEAT }); } if (modelSrc.SERVICE != modelDest.SERVICE) { list.Add(new ChangeLog() { Field = "SERVICE", Title = Resources.LangAll.LabelSERVICE, SrcValue = modelSrc.SERVICE, DestValue = modelDest.SERVICE }); } if (modelSrc.MARKS != modelDest.MARKS) { list.Add(new ChangeLog() { Field = "MARKS", Title = Resources.LangAll.LabelMARKS, SrcValue = modelSrc.MARKS, DestValue = modelDest.MARKS }); } if (modelSrc.HSCODE != modelDest.HSCODE) { list.Add(new ChangeLog() { Field = "HSCODE", Title = Resources.LangAll.LabelHSCODE, SrcValue = modelSrc.HSCODE, DestValue = modelDest.HSCODE }); } if (modelSrc.DESCRIPTION != modelDest.DESCRIPTION) { list.Add(new ChangeLog() { Field = "DESCRIPTION", Title = Resources.LangAll.LabelDESCRIPTION, SrcValue = modelSrc.DESCRIPTION, DestValue = modelDest.DESCRIPTION }); } if (modelSrc.PKGS != modelDest.PKGS) { list.Add(new ChangeLog() { Field = "PKGS", Title = Resources.LangAll.LabelPKGS, SrcValue = modelSrc.PKGS, DestValue = modelDest.PKGS }); } if (modelSrc.KINDPKGS != modelDest.KINDPKGS) { list.Add(new ChangeLog() { Field = "KINDPKGS", Title = Resources.LangAll.LabelKINDPKGS, SrcValue = modelSrc.KINDPKGS, DestValue = modelDest.KINDPKGS }); } if (modelSrc.KGS != modelDest.KGS) { list.Add(new ChangeLog() { Field = "KGS", Title = Resources.LangAll.LabelKGS, SrcValue = modelSrc.KGS, DestValue = modelDest.KGS }); } if (modelSrc.CBM != modelDest.CBM) { list.Add(new ChangeLog() { Field = "CBM", Title = Resources.LangAll.LabelCBM, SrcValue = modelSrc.CBM, DestValue = modelDest.CBM }); } if (modelSrc.CNTRTOTAL != modelDest.CNTRTOTAL) { list.Add(new ChangeLog() { Field = "CNTRTOTAL", Title = Resources.LangAll.LabelCNTRTOTAL, SrcValue = modelSrc.CNTRTOTAL, DestValue = modelDest.CNTRTOTAL }); } if (modelSrc.CARRIER != modelDest.CARRIER) { list.Add(new ChangeLog() { Field = "CARRIER", Title = Resources.LangAll.LabelCARRIER, SrcValue = modelSrc.CARRIER, DestValue = modelDest.CARRIER }); } if (modelSrc.CARGOID != modelDest.CARGOID) { list.Add(new ChangeLog() { Field = "CARGOID", Title = Resources.LangAll.LabelCARGOID, SrcValue = modelSrc.CARGOID, DestValue = modelDest.CARGOID }); } if (modelSrc.DCLASS != modelDest.DCLASS) { list.Add(new ChangeLog() { Field = "DCLASS", Title = Resources.LangAll.LabelDCLASS, SrcValue = modelSrc.DCLASS, DestValue = modelDest.DCLASS }); } if (modelSrc.DUNNO != modelDest.DUNNO) { list.Add(new ChangeLog() { Field = "DUNNO", Title = Resources.LangAll.LabelDUNNO, SrcValue = modelSrc.DUNNO, DestValue = modelDest.DUNNO }); } if (modelSrc.DPAGE != modelDest.DPAGE) { list.Add(new ChangeLog() { Field = "DPAGE", Title = Resources.LangAll.LabelDPAGE, SrcValue = modelSrc.DPAGE, DestValue = modelDest.DPAGE }); } if (modelSrc.DLABEL != modelDest.DLABEL) { list.Add(new ChangeLog() { Field = "DLABEL", Title = Resources.LangAll.LabelDLABEL, SrcValue = modelSrc.DLABEL, DestValue = modelDest.DLABEL }); } if (modelSrc.LINKMAN != modelDest.LINKMAN) { list.Add(new ChangeLog() { Field = "LINKMAN", Title = Resources.LangAll.LabelLINKMAN, SrcValue = modelSrc.LINKMAN, DestValue = modelDest.LINKMAN }); } if (modelSrc.TEMPID != modelDest.TEMPID) { list.Add(new ChangeLog() { Field = "TEMPID", Title = Resources.LangAll.LabelTEMPID, SrcValue = modelSrc.TEMPID, DestValue = modelDest.TEMPID }); } if (modelSrc.TEMPSET != modelDest.TEMPSET) { list.Add(new ChangeLog() { Field = "TEMPSET", Title = Resources.LangAll.LabelTEMPSET, SrcValue = modelSrc.TEMPSET, DestValue = modelDest.TEMPSET }); } if (modelSrc.REEFERF != modelDest.REEFERF) { list.Add(new ChangeLog() { Field = "REEFERF", Title = Resources.LangAll.LabelREEFERF, SrcValue = modelSrc.REEFERF, DestValue = modelDest.REEFERF }); } if (modelSrc.HUMIDITY != modelDest.HUMIDITY) { list.Add(new ChangeLog() { Field = "HUMIDITY", Title = Resources.LangAll.LabelHUMIDITY, SrcValue = modelSrc.HUMIDITY, DestValue = modelDest.HUMIDITY }); } if (modelSrc.ISCONTAINERSOC != modelDest.ISCONTAINERSOC) { list.Add(new ChangeLog() { Field = "ISCONTAINERSOC", Title = Resources.LangAll.LabelISCONTAINERSOC, SrcValue = modelSrc.ISCONTAINERSOC, DestValue = modelDest.ISCONTAINERSOC }); } if (modelSrc.REMARK != modelDest.REMARK) { list.Add(new ChangeLog() { Field = "REMARK", Title = Resources.LangAll.LabelREMARK, SrcValue = modelSrc.REMARK, DestValue = modelDest.REMARK }); } } else if (src.Module == OpLogModule.Confirm.ToString()) { var modelSrc = JsonConvert.DeserializeObject(src.JsonValue); var modelDest = JsonConvert.DeserializeObject(dest.JsonValue); if (modelSrc.ORDNO != null && modelDest.ORDNO != null && modelSrc.ORDNO != modelDest.ORDNO) { list.Add(new ChangeLog() { Field = "ORDNO", Title = Resources.LangAll.LabelORDNO, SrcValue = modelSrc.ORDNO, DestValue = modelDest.ORDNO }); } if (modelSrc.BSSTATUS != modelDest.BSSTATUS) { list.Add(new ChangeLog() { Field = "BSSTATUS", Title = Resources.LangAll.LabelBSSTATUS, SrcValue = modelSrc.BSSTATUS, DestValue = modelDest.BSSTATUS }); } if (modelSrc.MBLNO != modelDest.MBLNO) { list.Add(new ChangeLog() { Field = "MBLNO", Title = Resources.LangAll.LabelMBLNO, SrcValue = modelSrc.MBLNO, DestValue = modelDest.MBLNO }); } if (modelSrc.CONTRACTNO != modelDest.CONTRACTNO) { list.Add(new ChangeLog() { Field = "CONTRACTNO", Title = Resources.LangAll.LabelCONTRACTNO, SrcValue = modelSrc.CONTRACTNO, DestValue = modelDest.CONTRACTNO }); } if (modelSrc.SHIPPER != modelDest.SHIPPER) { list.Add(new ChangeLog() { Field = "SHIPPER", Title = Resources.LangAll.LabelSHIPPER, SrcValue = modelSrc.SHIPPER, DestValue = modelDest.SHIPPER }); } if (modelSrc.CONSIGNEE != modelDest.CONSIGNEE) { list.Add(new ChangeLog() { Field = "CONSIGNEE", Title = Resources.LangAll.LabelCONSIGNEE, SrcValue = modelSrc.CONSIGNEE, DestValue = modelDest.CONSIGNEE }); } if (modelSrc.NOTIFYPARTY != modelDest.NOTIFYPARTY) { list.Add(new ChangeLog() { Field = "NOTIFYPARTY", Title = Resources.LangAll.LabelNOTIFYPARTY, SrcValue = modelSrc.NOTIFYPARTY, DestValue = modelDest.NOTIFYPARTY }); } if (modelSrc.YARD != modelDest.YARD) { list.Add(new ChangeLog() { Field = "YARD", Title = Resources.LangAll.LabelYARD, SrcValue = modelSrc.YARD, DestValue = modelDest.YARD }); } if (modelSrc.VESSELID != modelDest.VESSELID) { list.Add(new ChangeLog() { Field = "VESSELID", Title = Resources.LangAll.LabelVESSELID, SrcValue = modelSrc.VESSELID, DestValue = modelDest.VESSELID }); } if (modelSrc.VESSEL != modelDest.VESSEL) { list.Add(new ChangeLog() { Field = "VESSEL", Title = Resources.LangAll.LabelVESSEL, SrcValue = modelSrc.VESSEL, DestValue = modelDest.VESSEL }); } if (modelSrc.VOYNO != modelDest.VOYNO) { list.Add(new ChangeLog() { Field = "VOYNO", Title = Resources.LangAll.LabelVOYNO, SrcValue = modelSrc.VOYNO, DestValue = modelDest.VOYNO }); } if (modelSrc.ETD != modelDest.ETD) { list.Add(new ChangeLog() { Field = "ETD", Title = Resources.LangAll.LabelETD, SrcValue = modelSrc.ETD, DestValue = modelDest.ETD }); } if (modelSrc.PLACERECEIPTID != modelDest.PLACERECEIPTID) { list.Add(new ChangeLog() { Field = "PLACERECEIPTID", Title = Resources.LangAll.LabelPLACERECEIPTID, SrcValue = modelSrc.PLACERECEIPTID, DestValue = modelDest.PLACERECEIPTID }); } if (modelSrc.PLACERECEIPT != modelDest.PLACERECEIPT) { list.Add(new ChangeLog() { Field = "PLACERECEIPT", Title = Resources.LangAll.LabelPLACERECEIPT, SrcValue = modelSrc.PLACERECEIPT, DestValue = modelDest.PLACERECEIPT }); } if (modelSrc.PORTLOADID != modelDest.PORTLOADID) { list.Add(new ChangeLog() { Field = "PORTLOADID", Title = Resources.LangAll.LabelPORTLOADID, SrcValue = modelSrc.PORTLOADID, DestValue = modelDest.PORTLOADID }); } if (modelSrc.PORTLOAD != modelDest.PORTLOAD) { list.Add(new ChangeLog() { Field = "PORTLOAD", Title = Resources.LangAll.LabelPORTLOAD, SrcValue = modelSrc.PORTLOAD, DestValue = modelDest.PORTLOAD }); } if (modelSrc.PORTDISCHARGEID != modelDest.PORTDISCHARGEID) { list.Add(new ChangeLog() { Field = "PORTDISCHARGEID", Title = Resources.LangAll.LabelPORTDISCHARGEID, SrcValue = modelSrc.PORTDISCHARGEID, DestValue = modelDest.PORTDISCHARGEID }); } if (modelSrc.PORTDISCHARGE != modelDest.PORTDISCHARGE) { list.Add(new ChangeLog() { Field = "PORTDISCHARGE", Title = Resources.LangAll.LabelPORTDISCHARGE, SrcValue = modelSrc.PORTDISCHARGE, DestValue = modelDest.PORTDISCHARGE }); } if (modelSrc.PLACEDELIVERYID != modelDest.PLACEDELIVERYID) { list.Add(new ChangeLog() { Field = "PLACEDELIVERYID", Title = Resources.LangAll.LabelPLACEDELIVERYID, SrcValue = modelSrc.PLACEDELIVERYID, DestValue = modelDest.PLACEDELIVERYID }); } if (modelSrc.PLACEDELIVERY != modelDest.PLACEDELIVERY) { list.Add(new ChangeLog() { Field = "PLACEDELIVERY", Title = Resources.LangAll.LabelPLACEDELIVERY, SrcValue = modelSrc.PLACEDELIVERY, DestValue = modelDest.PLACEDELIVERY }); } if (modelSrc.DESTINATIONID != modelDest.DESTINATIONID) { list.Add(new ChangeLog() { Field = "DESTINATIONID", Title = Resources.LangAll.LabelDESTINATIONID, SrcValue = modelSrc.DESTINATIONID, DestValue = modelDest.DESTINATIONID }); } if (modelSrc.DESTINATION != modelDest.DESTINATION) { list.Add(new ChangeLog() { Field = "DESTINATION", Title = Resources.LangAll.LabelDESTINATION, SrcValue = modelSrc.DESTINATION, DestValue = modelDest.DESTINATION }); } if (modelSrc.NOBILL != modelDest.NOBILL) { list.Add(new ChangeLog() { Field = "NOBILL", Title = Resources.LangAll.LabelNOBILL, SrcValue = modelSrc.NOBILL, DestValue = modelDest.NOBILL }); } if (modelSrc.COPYNOBILLL != modelDest.COPYNOBILLL) { list.Add(new ChangeLog() { Field = "COPYNOBILLL", Title = Resources.LangAll.LabelCOPYNOBILLL, SrcValue = modelSrc.COPYNOBILLL, DestValue = modelDest.COPYNOBILLL }); } if (modelSrc.ISSUETYPE != modelDest.ISSUETYPE) { list.Add(new ChangeLog() { Field = "ISSUETYPE", Title = Resources.LangAll.LabelISSUETYPE, SrcValue = modelSrc.ISSUETYPE, DestValue = modelDest.ISSUETYPE }); } if (modelSrc.ISSUEPLACEID != modelDest.ISSUEPLACEID) { list.Add(new ChangeLog() { Field = "ISSUEPLACEID", Title = Resources.LangAll.LabelISSUEPLACEID, SrcValue = modelSrc.ISSUEPLACEID, DestValue = modelDest.ISSUEPLACEID }); } if (modelSrc.ISSUEPLACE != modelDest.ISSUEPLACE) { list.Add(new ChangeLog() { Field = "ISSUEPLACE", Title = Resources.LangAll.LabelISSUEPLACE, SrcValue = modelSrc.ISSUEPLACE, DestValue = modelDest.ISSUEPLACE }); } if (modelSrc.BLFRT != modelDest.BLFRT) { list.Add(new ChangeLog() { Field = "BLFRT", Title = Resources.LangAll.LabelBLFRT, SrcValue = modelSrc.BLFRT, DestValue = modelDest.BLFRT }); } if (modelSrc.PREPARDAT != modelDest.PREPARDAT) { list.Add(new ChangeLog() { Field = "PREPARDAT", Title = Resources.LangAll.LabelPREPARDAT, SrcValue = modelSrc.PREPARDAT, DestValue = modelDest.PREPARDAT }); } if (modelSrc.PAYABLEAT != modelDest.PAYABLEAT) { list.Add(new ChangeLog() { Field = "PAYABLEAT", Title = Resources.LangAll.LabelPAYABLEAT, SrcValue = modelSrc.PAYABLEAT, DestValue = modelDest.PAYABLEAT }); } if (modelSrc.SERVICE != modelDest.SERVICE) { list.Add(new ChangeLog() { Field = "SERVICE", Title = Resources.LangAll.LabelSERVICE, SrcValue = modelSrc.SERVICE, DestValue = modelDest.SERVICE }); } if (modelSrc.MARKS != modelDest.MARKS) { list.Add(new ChangeLog() { Field = "MARKS", Title = Resources.LangAll.LabelMARKS, SrcValue = modelSrc.MARKS, DestValue = modelDest.MARKS }); } if (modelSrc.HSCODE != modelDest.HSCODE) { list.Add(new ChangeLog() { Field = "HSCODE", Title = Resources.LangAll.LabelHSCODE, SrcValue = modelSrc.HSCODE, DestValue = modelDest.HSCODE }); } if (modelSrc.DESCRIPTION != modelDest.DESCRIPTION) { list.Add(new ChangeLog() { Field = "DESCRIPTION", Title = Resources.LangAll.LabelDESCRIPTION, SrcValue = modelSrc.DESCRIPTION, DestValue = modelDest.DESCRIPTION }); } if (modelSrc.PKGS != modelDest.PKGS) { list.Add(new ChangeLog() { Field = "PKGS", Title = Resources.LangAll.LabelPKGS, SrcValue = modelSrc.PKGS, DestValue = modelDest.PKGS }); } if (modelSrc.KINDPKGS != modelDest.KINDPKGS) { list.Add(new ChangeLog() { Field = "KINDPKGS", Title = Resources.LangAll.LabelKINDPKGS, SrcValue = modelSrc.KINDPKGS, DestValue = modelDest.KINDPKGS }); } if (modelSrc.KGS != modelDest.KGS) { list.Add(new ChangeLog() { Field = "KGS", Title = Resources.LangAll.LabelKGS, SrcValue = modelSrc.KGS, DestValue = modelDest.KGS }); } if (modelSrc.CBM != modelDest.CBM) { list.Add(new ChangeLog() { Field = "CBM", Title = Resources.LangAll.LabelCBM, SrcValue = modelSrc.CBM, DestValue = modelDest.CBM }); } if (modelSrc.CNTRTOTAL != modelDest.CNTRTOTAL) { list.Add(new ChangeLog() { Field = "CNTRTOTAL", Title = Resources.LangAll.LabelCNTRTOTAL, SrcValue = modelSrc.CNTRTOTAL, DestValue = modelDest.CNTRTOTAL }); } if (modelSrc.CARRIER != modelDest.CARRIER) { list.Add(new ChangeLog() { Field = "CARRIER", Title = Resources.LangAll.LabelCARRIER, SrcValue = modelSrc.CARRIER, DestValue = modelDest.CARRIER }); } if (modelSrc.CARGOID != modelDest.CARGOID) { list.Add(new ChangeLog() { Field = "CARGOID", Title = Resources.LangAll.LabelCARGOID, SrcValue = modelSrc.CARGOID, DestValue = modelDest.CARGOID }); } if (modelSrc.DCLASS != modelDest.DCLASS) { list.Add(new ChangeLog() { Field = "DCLASS", Title = Resources.LangAll.LabelDCLASS, SrcValue = modelSrc.DCLASS, DestValue = modelDest.DCLASS }); } if (modelSrc.DUNNO != modelDest.DUNNO) { list.Add(new ChangeLog() { Field = "DUNNO", Title = Resources.LangAll.LabelDUNNO, SrcValue = modelSrc.DUNNO, DestValue = modelDest.DUNNO }); } if (modelSrc.DPAGE != modelDest.DPAGE) { list.Add(new ChangeLog() { Field = "DPAGE", Title = Resources.LangAll.LabelDPAGE, SrcValue = modelSrc.DPAGE, DestValue = modelDest.DPAGE }); } if (modelSrc.DLABEL != modelDest.DLABEL) { list.Add(new ChangeLog() { Field = "DLABEL", Title = Resources.LangAll.LabelDLABEL, SrcValue = modelSrc.DLABEL, DestValue = modelDest.DLABEL }); } if (modelSrc.LINKMAN != modelDest.LINKMAN) { list.Add(new ChangeLog() { Field = "LINKMAN", Title = Resources.LangAll.LabelLINKMAN, SrcValue = modelSrc.LINKMAN, DestValue = modelDest.LINKMAN }); } if (modelSrc.TEMPID != modelDest.TEMPID) { list.Add(new ChangeLog() { Field = "TEMPID", Title = Resources.LangAll.LabelTEMPID, SrcValue = modelSrc.TEMPID, DestValue = modelDest.TEMPID }); } if (modelSrc.TEMPSET != modelDest.TEMPSET) { list.Add(new ChangeLog() { Field = "TEMPSET", Title = Resources.LangAll.LabelTEMPSET, SrcValue = modelSrc.TEMPSET, DestValue = modelDest.TEMPSET }); } if (modelSrc.REEFERF != modelDest.REEFERF) { list.Add(new ChangeLog() { Field = "REEFERF", Title = Resources.LangAll.LabelREEFERF, SrcValue = modelSrc.REEFERF, DestValue = modelDest.REEFERF }); } if (modelSrc.HUMIDITY != modelDest.HUMIDITY) { list.Add(new ChangeLog() { Field = "HUMIDITY", Title = Resources.LangAll.LabelHUMIDITY, SrcValue = modelSrc.HUMIDITY, DestValue = modelDest.HUMIDITY }); } if (modelSrc.ISCONTAINERSOC != modelDest.ISCONTAINERSOC) { list.Add(new ChangeLog() { Field = "ISCONTAINERSOC", Title = Resources.LangAll.LabelISCONTAINERSOC, SrcValue = modelSrc.ISCONTAINERSOC, DestValue = modelDest.ISCONTAINERSOC }); } if (modelSrc.REMARK != modelDest.REMARK) { list.Add(new ChangeLog() { Field = "REMARK", Title = Resources.LangAll.LabelREMARK, SrcValue = modelSrc.REMARK, DestValue = modelDest.REMARK }); } } return list; } } }