public static DO.Order ConverFrom_BO_To_DoOrder(BO.Order other)
        {
            DO.Order tmp = new DO.Order();
            tmp.CloseDate       = other.CloseDate;
            tmp.GuestRequestKey = other.GuestRequestKey;
            tmp.HostingUnitKey  = other.HostingUnitKey;
            tmp.Key             = other.KeyOrder;
            tmp.OrderDate       = other.OrderDate;
            tmp.SentDate        = other.SentDate;
            tmp.Status          = (DO.StatusOrder)other.Status;
            tmp.TotalPrice      = other.TotalPrice;


            return(tmp);
        }
 public static BO.Order ConverFrom_DO_To_BoOrder(DO.Order other)
 {
     BO.Order tmp = new BO.Order();
     tmp.CloseDate       = other.CloseDate;
     tmp.GuestRequestKey = other.GuestRequestKey;
     tmp.HostingUnitKey  = other.HostingUnitKey;
     tmp.KeyOrder        = other.Key;
     tmp.OrderDate       = other.OrderDate;
     tmp.SentDate        = other.SentDate;
     tmp.Status          = (BO.StatusOrder)other.Status;
     tmp.TotalPrice      = other.TotalPrice;
     tmp.unit            = instance.GetHoustingUinit(other.HostingUnitKey);
     tmp.HostId          = (instance.GetHoustingUinit(other.HostingUnitKey)).Owner;
     tmp.NameClient      = other.NameClient;
     return(tmp);
 }
 public static DO.Order Conv_BO_To_DO(BO.Order item)
 {
     DO.Order temp = new DO.Order();
     temp.CloseDate       = item.CloseDate;
     temp.GuestRequestKey = item.GuestRequestKey;
     temp.HostingUnitKey  = item.HostingUnitKey;
     temp.Key             = item.Key;
     temp.OrderDate       = item.OrderDate;
     temp.SentDate        = item.SentDate;
     temp.Status          = (DO.OrderStatus)item.Status;
     temp.TotalPrice      = item.TotalPrice;
     temp.CliendId        = item.ClientId;
     temp.ClientName      = item.ClientName;
     temp.Commission      = item.Commission;
     temp.HostId          = item.HostId;
     return(temp);
 }
Exemplo n.º 4
0
 public static BO.Order Conv_DO_To_BO(DO.Order item)
 {
     BO.Order temp = new BO.Order();
     temp.CloseDate       = item.CloseDate;
     temp.GuestRequestKey = item.GuestRequestKey;
     temp.HostingUnitKey  = item.HostingUnitKey;
     temp.Key             = item.Key;
     temp.OrderDate       = item.OrderDate;
     temp.SentDate        = item.SentDate;
     temp.Status          = (BO.OrderStatus)item.Status;
     temp.TotalPrice      = item.TotalPrice;
     //temp.unit = Instance.GetHoustingUinit(item.HostingUnitKey);
     temp.HostId     = (Instance.GetHoustingUinit(item.HostingUnitKey)).HostId;
     temp.ClientName = item.ClientName;
     temp.ClientId   = item.CliendId;
     temp.Commission = item.Commission;
     return(temp);
 }
Exemplo n.º 5
0
 public static DO.Order CastingToDO_Order(BO.Order order)
 {
     DO.Order dOrder = new DO.Order()
     {
         CloseDate       = order.CloseDate,
         OrderDate       = order.OrderDate,
         GuestRequestKey = order.GuestRequest.GuestRequestKey,
         SentDate        = order.SentDate,
         Commission      = order.Commission,
         HostingUnitKey  = order.HostingUnit.Key,
         CliendID        = order.GuestRequest.ClientID,
         Status          = (DO.Order_Status)order.Status,
         HostID          = order.HostID,
         Key             = order.Key,
         TotalCost       = order.TotalCost
     };
     return(dOrder);
 }
Exemplo n.º 6
0
 public static BO.Order CastingToBO_Order(DO.Order order)
 {
     BO.Order bOrder = new BO.Order()
     {
         CloseDate       = order.CloseDate,
         OrderDate       = order.OrderDate,
         GuestRequest    = imp.GetGuestRequest(order.GuestRequestKey),
         SentDate        = order.SentDate,
         Commission      = order.Commission,
         HostingUnit     = imp.GetHostingUnit(order.HostingUnitKey),
         ClientFirstName = imp.GetPerson(order.CliendID).FirstName,
         ClientLastName  = imp.GetPerson(order.CliendID).LastName,
         Status          = (BO.Order_Status)order.Status,
         HostID          = order.HostID,
         Key             = order.Key,
         TotalCost       = order.TotalCost
     };
     return(bOrder);
 }