public static DemoOrder Contract2Biz(DemoOrderData data)
		{
			if (data == null) return null;

			return new DemoOrder()
			{
				ID = data.ID,
				Subject = data.Subject,
				OrderID = data.OrderID,
				Content = data.Content,
				Amount = data.Amount,
				Create_Time = data.Create_Time,
				CreatorID = data.CreatorID,
				CreatorName = data.CreatorName,
				Currency = data.Currency,
				Payable = data.Payable
			};
		}
Exemple #2
0
        public static DemoOrder Contract2Biz(DemoOrderData data)
        {
            if (data == null)
            {
                return(null);
            }

            return(new DemoOrder()
            {
                ID = data.ID,
                Subject = data.Subject,
                OrderID = data.OrderID,
                Content = data.Content,
                Amount = data.Amount,
                Create_Time = data.Create_Time,
                CreatorID = data.CreatorID,
                CreatorName = data.CreatorName,
                Currency = data.Currency,
                Payable = data.Payable
            });
        }
 public void Update(DemoOrderData data)
 {
     DemoOrderDAO.Instance.Update(DemoOrderAdapter.Contract2Biz(data));
 }
		public void Update(DemoOrderData data)
		{
			DemoOrderDAO.Instance.Update(DemoOrderAdapter.Contract2Biz(data));
		}