Beispiel #1
0
        public static OrganizationDataModel GetOrganizationBelong(int orderID)
        {
            OrganizationDataModel model = new OrganizationDataModel();

            model.Create(GetOrderDataByID(orderID).OrganizationBelong);
            return(model);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public OrganizationInfo(int id)
        {
            var data = OrganizationModule.GetOrganizationDataByID(id);

            if (data == null)
            {
                return;
            }
            ID        = data.ID;
            dataModel = new OrganizationDataModel();
            dataModel.Create(ID);
        }