Example #1
0
        public void CreateFlowTrack(Flow flow, string eventCode)
        {
            FlowTrack flowTrack = new FlowTrack();

            CloneHelper.CopyProperty(flow, flowTrack, FlowHead2FlowTrackCloneFields);
            flowTrack.BillFrom           = flow.BillFrom != null ? flow.BillFrom.Code : string.Empty;
            flowTrack.BillTo             = flow.BillTo != null ? flow.BillTo.Code : string.Empty;
            flowTrack.Carrier            = flow.Carrier != null ? flow.Carrier.Code : string.Empty;
            flowTrack.CarrierBillAddress = flow.CarrierBillAddress != null ? flow.CarrierBillAddress.Code : string.Empty;
            flowTrack.CreateUser         = flow.CreateUser != null ? flow.CreateUser.Code : string.Empty;
            flowTrack.LocationFrom       = flow.LocationFrom != null ? flow.LocationFrom.Code : string.Empty;
            flowTrack.LocationTo         = flow.LocationTo != null ? flow.LocationTo.Code : string.Empty;
            flowTrack.Currency           = flow.Currency != null ? flow.Currency.Code : string.Empty;
            flowTrack.LastModifyUser     = flow.LastModifyUser.Code;
            flowTrack.LastModifyDate     = DateTime.Now;
            flowTrack.PartyFrom          = flow.PartyFrom != null ? flow.PartyFrom.Code : string.Empty;
            flowTrack.PartyTo            = flow.PartyTo != null ? flow.PartyTo.Code : string.Empty;
            flowTrack.PriceListFrom      = flow.PriceListFrom != null ? flow.PriceListFrom.Code : string.Empty;
            flowTrack.PriceListTo        = flow.PriceListTo != null ? flow.PriceListTo.Code : string.Empty;
            flowTrack.ReturnRouting      = flow.ReturnRouting != null ? flow.ReturnRouting.Code : string.Empty;
            flowTrack.Routing            = flow.Routing != null ? flow.Routing.Code : string.Empty;
            flowTrack.ShipFrom           = flow.ShipFrom != null ? flow.ShipFrom.Code : string.Empty;
            flowTrack.ShipTo             = flow.ShipTo != null ? flow.ShipTo.Code : string.Empty;
            flowTrack.EventCode          = eventCode;

            this.CreateFlowTrack(flowTrack);
        }
Example #2
0
        public FlowTrackNode(FlowTrack data)
            : base(data.Name)
        {
            _Data = data;

            foreach (int cmd in _Data.Data)
            {
                Nodes.Add(new TreeNode(cmd.ToString("X8")));
            }
        }
 public virtual void UpdateFlowTrack(FlowTrack entity)
 {
     entityDao.UpdateFlowTrack(entity);
 }
 public virtual void DeleteFlowTrack(FlowTrack entity)
 {
     entityDao.DeleteFlowTrack(entity);
 }
 public virtual void CreateFlowTrack(FlowTrack entity)
 {
     entityDao.CreateFlowTrack(entity);
 }
Example #6
0
 public virtual void DeleteFlowTrack(FlowTrack entity)
 {
     Delete(entity);
 }
Example #7
0
 public virtual void UpdateFlowTrack(FlowTrack entity)
 {
     Update(entity);
 }
Example #8
0
 public virtual void CreateFlowTrack(FlowTrack entity)
 {
     Create(entity);
 }
 public virtual void UpdateFlowTrack(FlowTrack entity)
 {
     Update(entity);
 }
Example #10
0
        public void CreateFlowTrack(Flow flow,string eventCode)
        {
            FlowTrack flowTrack = new FlowTrack();
            CloneHelper.CopyProperty(flow, flowTrack, FlowHead2FlowTrackCloneFields);
            flowTrack.BillFrom = flow.BillFrom != null ? flow.BillFrom.Code : string.Empty;
            flowTrack.BillTo = flow.BillTo != null ? flow.BillTo.Code : string.Empty;
            flowTrack.Carrier = flow.Carrier != null ? flow.Carrier.Code : string.Empty;
            flowTrack.CarrierBillAddress = flow.CarrierBillAddress != null ? flow.CarrierBillAddress.Code : string.Empty;
            flowTrack.CreateUser = flow.CreateUser != null ? flow.CreateUser.Code : string.Empty;
            flowTrack.LocationFrom = flow.LocationFrom != null ? flow.LocationFrom.Code : string.Empty;
            flowTrack.LocationTo = flow.LocationTo != null ? flow.LocationTo.Code : string.Empty;
            flowTrack.Currency = flow.Currency != null ? flow.Currency.Code : string.Empty;
            flowTrack.LastModifyUser = flow.LastModifyUser.Code;
            flowTrack.LastModifyDate = DateTime.Now;
            flowTrack.PartyFrom = flow.PartyFrom != null ? flow.PartyFrom.Code : string.Empty;
            flowTrack.PartyTo = flow.PartyTo != null ? flow.PartyTo.Code : string.Empty;
            flowTrack.PriceListFrom = flow.PriceListFrom != null ? flow.PriceListFrom.Code : string.Empty;
            flowTrack.PriceListTo = flow.PriceListTo != null ? flow.PriceListTo.Code : string.Empty;
            flowTrack.ReturnRouting = flow.ReturnRouting != null ? flow.ReturnRouting.Code : string.Empty;
            flowTrack.Routing = flow.Routing != null ? flow.Routing.Code : string.Empty;
            flowTrack.ShipFrom = flow.ShipFrom != null ? flow.ShipFrom.Code : string.Empty;
            flowTrack.ShipTo = flow.ShipTo != null ? flow.ShipTo.Code : string.Empty;
            flowTrack.EventCode = eventCode;

            this.CreateFlowTrack(flowTrack);
        }
 public virtual void DeleteFlowTrack(FlowTrack entity)
 {
     Delete(entity);
 }
 public virtual void CreateFlowTrack(FlowTrack entity)
 {
     Create(entity);
 }
Example #13
0
 public virtual void DeleteFlowTrack(FlowTrack entity)
 {
     entityDao.DeleteFlowTrack(entity);
 }
Example #14
0
 public virtual void UpdateFlowTrack(FlowTrack entity)
 {
     entityDao.UpdateFlowTrack(entity);
 }
Example #15
0
 public virtual void CreateFlowTrack(FlowTrack entity)
 {
     entityDao.CreateFlowTrack(entity);
 }