public static OrganizationDataModel GetOrganizationBelong(int orderID) { OrganizationDataModel model = new OrganizationDataModel(); model.Create(GetOrderDataByID(orderID).OrganizationBelong); return(model); }
public static OrganizationDataModel GetOrderBelongModel(int orderID) { var id = GetOrderDataByID(orderID).OrganizationBelong; OrganizationDataModel model = new OrganizationDataModel(); if (!model.Create(id)) { Debug.LogError("Get OrganizationModel Fail OrderID=" + orderID); } return(model); }
public OrganizationInfo(int id) { var data = OrganizationModule.GetOrganizationDataByID(id); if (data == null) { return; } ID = data.ID; dataModel = new OrganizationDataModel(); dataModel.Create(ID); }
public OrderItemBase(int orderID) { var data = OrderModule.GetOrderDataByID(orderID); if (data == null) { return; } OrderID = data.OrderID; belongDataModel = OrderModule.GetOrganizationBelong(OrderID); dataModel = new OrderDataModel(); dataModel.Create(OrderID); typeInfo = OrderModule.GetOrderTypeInfo(data); orderState = OrderState.Create; OrderTime = data.TimeLimit; remainTime = OrderTime; rewardData = OrderModule.Instance.GetOrderRewardData(data); appearData = OrderModule.Instance.GetOrderAppearData(data.OrderID); disAppearData = OrderModule.Instance.GetOrderDisAppearData(data.OrderID); }
public override void ChangeAction(BaseDataModel model) { _model = (OrganizationDataModel)model; InitElement(); }