예제 #1
0
        public PrestamosPendientesForm() : base()
        {
            service = ODataServiceContext.Instance;

            string serviceURL = ReadSetting("webServiceURL");

            if (string.IsNullOrEmpty(serviceURL))
            {
                // TODO: fix this
                serviceURL = "http://192.168.1.174:8080/odataexample/odata/appexample.svc/";
            }
            //com.carione
            bool rst = service.Connect <com.cairone.odataexample.ODataExample>(serviceURL);

            if (!rst)
            {
                return;
            }

            this.SetGridColumns(this.GenerateGridColumns());

            this.SetGridItems(this.LoadAllPrestamos());

            this.SetDefaultSkin(DEFAULT_SKIN);
        }
예제 #2
0
        public Paises() : base()
        {
            service = ODataServiceContext.Instance;

            //com.carione
            bool rst = service.Connect <com.cairone.odataexample.ODataExample>(ODATA_SERVICE_URL_JAVA);

            if (!rst)
            {
                return;
            }

            this.SetGridColumns(this.GenerateGridColumns());

            this.SetGridItems(this.LoadAllPaises());
        }
예제 #3
0
        public LocalidadesForm() : base()
        {
            service = ODataServiceContext.Instance;

            bool rst = service.Connect <com.cairone.odataexample.ODataExample>(WEB_SERVICE_URL);

            if (!rst)
            {
                return;
            }

            this.SetGridColumns(this.GenerateGridColumns());

            this.SetGridItems(this.LoadAllLocalidades());

            this.SetDefaultSkin(DEFAULT_SKIN);
        }