FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister  MasterVB.NET
Visual Basic 2005 .NET Forum
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Problems with DataTable
 
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Database Programming
View previous topic :: View next topic  
Message
Author
AlejandroR
Newbie
Joined: 20 Jul 2006
Posts: 11

PostPosted: Thu Jul 20, 2006 4:00 am    
Post subject: Problems with DataTable
Reply with quote

Hi Michael

I have a problem when I'm trying to pass a DataTable to my JS.
Maybe this can help to understand the problem.

When I'm using something like this in my server Method:

[AjaxPro.AjaxMethod]
public DataTable DevolverDatosCorrida(string pCorrida, string pEscenario, short pIdUsuario)
{
MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
MRPWrappers.EjecucionWrappers.
EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
pCorrida, pEscenario);
MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
(MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
//this is a datatable
return res.Result.Result;
}
In my res.value I received this (res.JSON):

"[[true,\"P1122\",\"Corrida 13/07\",new Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
\",\"Prue1 \",\"Escenario Prueba eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
\"]];/*"

So as you can see this is not a DataTable Why?

Well, now I'm trying something different:
I change my DataSet for a string type:

[AjaxPro.AjaxMethod]
public string DevolverDatosCorrida(string pCorrida, string pEscenario,
short pIdUsuario)
{
MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
MRPWrappers.EjecucionWrappers.
EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
pCorrida, pEscenario);
MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
(MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);

AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
string ajSer = aj.Serialize(res.Result.Result);
//this is an string
return ajSer;
}
In my JS I received this in my res.value:
"new Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",

new Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
\",\"Prue1 \",\"Escenario Prueba eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
\"]])"

so I can use an eval() for use my DataTable

dt = eval(res.value);

And all is perfect,

I don't know what could be happend, but when I use an old version 6.5.17.1 and all works fine.
Can u help me?



 

Back to top
View user's profile Send private message
Author
MichaelSchwarz
Intermediate
Joined: 11 Jul 2006
Posts: 252

PostPosted: Thu Jul 20, 2006 4:00 am    
Post subject:
Reply with quote

Hi, are you using the latest version? There was a bug with own DataTables.

Can you verify if this is fixed in current version?



On 7/19/06, Alejandro R <aravenna> wrote:
Quote:

Hi Michael

I have a problem when I'm trying to pass a DataTable to my JS.
Maybe this can help to understand the problem.

When I'm using something like this in my server Method:

[AjaxPro.AjaxMethod]
public DataTable DevolverDatosCorrida(string pCorrida, string
pEscenario, short pIdUsuario)
{
MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
MRPWrappers.EjecucionWrappers.
EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
pCorrida, pEscenario);
MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
(MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
//this is a datatable
return res.Result.Result;
}
In my res.value I received this (res.JSON):

"[[true,\"P1122\",\"Corrida 13/07\",new
Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
\",\"Prue1 \",\"Escenario Prueba
eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
\"]];/*"

So as you can see this is not a DataTable
Why?

Well, now I'm trying something different:
I change my DataSet for a string type:

[AjaxPro.AjaxMethod]
public string DevolverDatosCorrida(string pCorrida, string pEscenario,
short pIdUsuario)
{
MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
MRPWrappers.EjecucionWrappers.
EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
pCorrida, pEscenario);
MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
(MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);

AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
string ajSer = aj.Serialize(res.Result.Result);
//this is an string
return ajSer;
}
In my JS I received this in my res.value:
"new
Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",new
Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
\",\"Prue1 \",\"Escenario Prueba
eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
\"]])"

so I can use an eval() for use my DataTable

dt = eval(res.value);

And all is perfect,

I don't know what could be happend, but when I use an old version
6.5.17.1 and all works fine.
Can u help me?


>



--

Best regards | Schöne Grüße Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive MSN IM: passport


 

Back to top
View user's profile Send private message
Author
AlejandroR
Newbie
Joined: 20 Jul 2006
Posts: 11

PostPosted: Thu Jul 20, 2006 4:00 am    
Post subject:
Reply with quote

Yes Michael, I'm using your lastest version 6.7.19.1 and .Net framework 1.1 Regards Alejandro


Michael Schwarz wrote:
Quote:
Hi, are you using the latest version? There was a bug with own DataTables.

Can you verify if this is fixed in current version?



On 7/19/06, Alejandro R <aravenna> wrote:
>
> Hi Michael
>
> I have a problem when I'm trying to pass a DataTable to my JS.
> Maybe this can help to understand the problem.
>
> When I'm using something like this in my server Method:
>
> [AjaxPro.AjaxMethod]
> public DataTable DevolverDatosCorrida(string pCorrida, string
> pEscenario, short pIdUsuario)
> {
> MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> MRPWrappers.EjecucionWrappers.
> EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> pCorrida, pEscenario);
> MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> //this is a datatable
> return res.Result.Result;
> }
> In my res.value I received this (res.JSON):
>
> "[[true,\"P1122\",\"Corrida 13/07\",new
> Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
> \",\"Prue1 \",\"Escenario Prueba
> eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
> \"]];/*"
>
> So as you can see this is not a DataTable
> Why?
>
> Well, now I'm trying something different:
> I change my DataSet for a string type:
>
> [AjaxPro.AjaxMethod]
> public string DevolverDatosCorrida(string pCorrida, string pEscenario,
> short pIdUsuario)
> {
> MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> MRPWrappers.EjecucionWrappers.
> EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> pCorrida, pEscenario);
> MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
>
> AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
> string ajSer = aj.Serialize(res.Result.Result);
> //this is an string
> return ajSer;
> }
> In my JS I received this in my res.value:
> "new
> Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",new
> Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
> \",\"Prue1 \",\"Escenario Prueba
> eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
> \"]])"
>
> so I can use an eval() for use my DataTable
>
> dt = eval(res.value);
>
> And all is perfect,
>
> I don't know what could be happend, but when I use an old version
> 6.5.17.1 and all works fine.
> Can u help me?
>
>
> >
>


--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: passport




 

Back to top
View user's profile Send private message
Author
AlejandroR
Newbie
Joined: 20 Jul 2006
Posts: 11

PostPosted: Thu Jul 20, 2006 4:00 am    
Post subject:
Reply with quote

Yes Michael, I'm using your lastest version 6.7.19.1 and .Net framework 1.1 Regards Alejandro


Michael Schwarz wrote:
Quote:
Hi, are you using the latest version? There was a bug with own DataTables.

Can you verify if this is fixed in current version?



On 7/19/06, Alejandro R <aravenna> wrote:
>
> Hi Michael
>
> I have a problem when I'm trying to pass a DataTable to my JS.
> Maybe this can help to understand the problem.
>
> When I'm using something like this in my server Method:
>
> [AjaxPro.AjaxMethod]
> public DataTable DevolverDatosCorrida(string pCorrida, string
> pEscenario, short pIdUsuario)
> {
> MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> MRPWrappers.EjecucionWrappers.
> EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> pCorrida, pEscenario);
> MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> //this is a datatable
> return res.Result.Result;
> }
> In my res.value I received this (res.JSON):
>
> "[[true,\"P1122\",\"Corrida 13/07\",new
> Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
> \",\"Prue1 \",\"Escenario Prueba
> eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
> \"]];/*"
>
> So as you can see this is not a DataTable
> Why?
>
> Well, now I'm trying something different:
> I change my DataSet for a string type:
>
> [AjaxPro.AjaxMethod]
> public string DevolverDatosCorrida(string pCorrida, string pEscenario,
> short pIdUsuario)
> {
> MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> MRPWrappers.EjecucionWrappers.
> EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> pCorrida, pEscenario);
> MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
>
> AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
> string ajSer = aj.Serialize(res.Result.Result);
> //this is an string
> return ajSer;
> }
> In my JS I received this in my res.value:
> "new
> Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",new
> Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
> \",\"Prue1 \",\"Escenario Prueba
> eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
> \"]])"
>
> so I can use an eval() for use my DataTable
>
> dt = eval(res.value);
>
> And all is perfect,
>
> I don't know what could be happend, but when I use an old version
> 6.5.17.1 and all works fine.
> Can u help me?
>
>
> >
>


--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: passport




 

Back to top
View user's profile Send private message
Author
MichaelSchwarz
Intermediate
Joined: 11 Jul 2006
Posts: 252

PostPosted: Fri Jul 21, 2006 4:00 am    
Post subject:
Reply with quote

Can you write the content of the data table to an xml file including the schema and send it back to me?

Regards,
Michael


On 7/19/06, Alejandro R <aravenna> wrote:
Quote:

Yes Michael, I'm using your lastest version 6.7.19.1 and .Net framework
1.1
Regards
Alejandro


Michael Schwarz wrote:
> Hi, are you using the latest version? There was a bug with own DataTables.
>
> Can you verify if this is fixed in current version?
>
>
>
> On 7/19/06, Alejandro R <aravenna> wrote:
> >
> > Hi Michael
> >
> > I have a problem when I'm trying to pass a DataTable to my JS.
> > Maybe this can help to understand the problem.
> >
> > When I'm using something like this in my server Method:
> >
> > [AjaxPro.AjaxMethod]
> > public DataTable DevolverDatosCorrida(string pCorrida, string
> > pEscenario, short pIdUsuario)
> > {
> > MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> > MRPWrappers.EjecucionWrappers.
> > EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> > pCorrida, pEscenario);
> > MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> > (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> > Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> > //this is a datatable
> > return res.Result.Result;
> > }
> > In my res.value I received this (res.JSON):
> >
> > "[[true,\"P1122\",\"Corrida 13/07\",new
> > Date(Date.UTC(2006,6,14,14,41,2,687)),1,\"Supervisor de Summa
> > \",\"Prue1 \",\"Escenario Prueba
> > eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RF
> > \"]];/*"
> >
> > So as you can see this is not a DataTable
> > Why?
> >
> > Well, now I'm trying something different:
> > I change my DataSet for a string type:
> >
> > [AjaxPro.AjaxMethod]
> > public string DevolverDatosCorrida(string pCorrida, string pEscenario,
> > short pIdUsuario)
> > {
> > MRP.EjecucionMRPDevolverDatosConfiguracionActionRequest req =
> > MRPWrappers.EjecucionWrappers.
> > EjecucionMRPDevolverDatosConfiguracionRequestWrapper(
> > pCorrida, pEscenario);
> > MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse res =
> > (MRP.EjecucionMRPDevolverDatosConfiguracionActionResponse)
> > Generalidades.MBI.WrapperExecuteAction(req, pIdUsuario);
> >
> > AjaxPro.DataTableConverter aj = new AjaxPro.DataTableConverter();
> > string ajSer = aj.Serialize(res.Result.Result);
> > //this is an string
> > return ajSer;
> > }
> > In my JS I received this in my res.value:
> > "new
> > Ajax.Web.DataTable([[\"Existe\",\"System.Boolean\"],[\"Corrida_id\",\"System.String\"],[\"CorridaDescripcion\",\"System.String\"],[\"FechaCorrida\",\"System.DateTime\"],[\"Usuario_id\",\"System.Int16\"],[\"UsuarioDescripcion\",\"System.String\"],[\"Escenario_id\",\"System.String\"],[\"EscenarioDescripcion\",\"System.String\"],[\"EsEscenarioReal\",\"System.Boolean\"],[\"HorizontePlanificacion\",\"System.Int16\"],[\"CantidadDiasPasadosAIncluir\",\"System.Int16\"],[\"OrdenesFirmesAtrasadasConsideradasParaDisponible\",\"System.Boolean\"],[\"BarreraUnicaPlanificacionActiva\",\"System.Boolean\"],[\"BarreraPlanificacion\",\"System.Int16\"],[\"Adelantamiento\",\"System.Boolean\"],[\"DiasAdelantamiento\",\"System.Int16\"],[\"AdelantamientoSiempre\",\"System.Boolean\"],[\"AplicaMerma\",\"System.Boolean\"],[\"TamCuboTiempo\",\"System.Int16\"],[\"ConDatosSimulados\",\"System.Boolean\"],[\"Planta_id\",\"System.String\"],[\"TratoArticulosIndistintos\",\"System.String\"]],[[true,\"P7777\",\"12/7\",new
> > Date(Date.UTC(2006,6,12,15,58,22,523)),1,\"Supervisor de Summa
> > \",\"Prue1 \",\"Escenario Prueba
> > eje\",null,5,2,false,false,null,false,null,false,false,5,false,null,\"RC
> > \"]])"
> >
> > so I can use an eval() for use my DataTable
> >
> > dt = eval(res.value);
> >
> > And all is perfect,
> >
> > I don't know what could be happend, but when I use an old version
> > 6.5.17.1 and all works fine.
> > Can u help me?
> >
> >
> > >
> >
>
>
> --
> Best regards | Schöne Grüße
> Michael
>
> Microsoft MVP - Most Valuable Professional
> Microsoft MCAD - Certified Application Developer
>
> http://weblogs.asp.net/mschwarz/
> http://www.schwarz-interactive.de/
>
> Skype: callto:schwarz-interactive
> MSN IM: passport


>



--

Best regards | Schöne Grüße Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive MSN IM: passport


 

Back to top
View user's profile Send private message
Author
AlejandroR
Newbie
Joined: 20 Jul 2006
Posts: 11

PostPosted: Wed Jul 26, 2006 4:00 am    
Post subject:
Reply with quote

Hi Michael Sorry for the time...
Here is the xml and schema files


XML:

<?xml version="1.0" standalone="yes"?>
<EjecucionMRPDevolverDatosConfiguracionResponse xmlns="http://tempuri.org/EjecucionMRPDevolverDatosConfiguracionResponse.xsd">
<Result>
<Existe>true</Existe>
<Corrida_id>P1123</Corrida_id>
<CorridaDescripcion>Corrida 13/07</CorridaDescripcion>
<FechaCorrida>2006-07-24T19:06:33.1570000-03:00</FechaCorrida>
<Usuario_id>1</Usuario_id>
<UsuarioDescripcion>Supervisor de Summa
</UsuarioDescripcion>
<Escenario_id>Prue1 </Escenario_id>
<EscenarioDescripcion>Escenario Prueba eje</EscenarioDescripcion>
<HorizontePlanificacion>5</HorizontePlanificacion>
<CantidadDiasPasadosAIncluir>2</CantidadDiasPasadosAIncluir>

<OrdenesFirmesAtrasadasConsideradasParaDisponible>false</OrdenesFirmesAtrasadasConsideradasParaDisponible>

<BarreraUnicaPlanificacionActiva>false</BarreraUnicaPlanificacionActiva>
<Adelantamiento>false</Adelantamiento>
<AdelantamientoSiempre>false</AdelantamientoSiempre>
<AplicaMerma>false</AplicaMerma>
<TamCuboTiempo>5</TamCuboTiempo>
<ConDatosSimulados>false</ConDatosSimulados>
<TratoArticulosIndistintos>RF </TratoArticulosIndistintos>
</Result>
<Plantas>
<Planta_id>0001</Planta_id>
</Plantas>
</EjecucionMRPDevolverDatosConfiguracionResponse>


XSD:

<?xml version="1.0" standalone="yes"?>
<xs:schema id="EjecucionMRPDevolverDatosConfiguracionResponse"
targetNamespace="http://tempuri.org/EjecucionMRPDevolverDatosConfiguracionResponse.xsd"
xmlns:mstns="http://tempuri.org/EjecucionMRPDevolverDatosConfiguracionResponse.xsd"
xmlns="http://tempuri.org/EjecucionMRPDevolverDatosConfiguracionResponse.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="EjecucionMRPDevolverDatosConfiguracionResponse"
msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Result">
<xs:complexType>
<xs:sequence>
<xs:element name="Existe" type="xs:boolean" minOccurs="0"
/>
<xs:element name="Corrida_id" type="xs:string"
minOccurs="0" />
<xs:element name="CorridaDescripcion" type="xs:string"
minOccurs="0" />
<xs:element name="FechaCorrida" type="xs:dateTime"
minOccurs="0" />
<xs:element name="Usuario_id" type="xs:short"
minOccurs="0" />
<xs:element name="UsuarioDescripcion" type="xs:string"
minOccurs="0" />
<xs:element name="Escenario_id" type="xs:string"
minOccurs="0" />
<xs:element name="EscenarioDescripcion" type="xs:string"
minOccurs="0" />
<xs:element name="EsEscenarioReal" type="xs:boolean"
minOccurs="0" />
<xs:element name="HorizontePlanificacion" type="xs:short"
minOccurs="0" />
<xs:element name="CantidadDiasPasadosAIncluir"
type="xs:short" minOccurs="0" />
<xs:element name="OrdenesFirmesAtrasadasConsideradasParaDisponible"
type="xs:boolean" minOccurs="0" />
<xs:element name="BarreraUnicaPlanificacionActiva"
type="xs:boolean" minOccurs="0" />
<xs:element name="BarreraPlanificacion" type="xs:short"
minOccurs="0" />
<xs:element name="Adelantamiento" type="xs:boolean"
minOccurs="0" />
<xs:element name="DiasAdelantamiento" type="xs:short"
minOccurs="0" />
<xs:element name="AdelantamientoSiempre"
type="xs:boolean" minOccurs="0" />
<xs:element name="AplicaMerma" type="xs:boolean"
minOccurs="0" />
<xs:element name="TamCuboTiempo" type="xs:short"
minOccurs="0" />
<xs:element name="ConDatosSimulados" type="xs:boolean"
minOccurs="0" />
<xs:element name="Planta_id" type="xs:string"
minOccurs="0" />
<xs:element name="TratoArticulosIndistintos"
type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Plantas">
<xs:complexType>
<xs:sequence>
<xs:element name="Planta_id" type="xs:string"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>



 

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Database Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Archieve

Powered by phpBB © 2001, 2002 phpBB Group, used in Visual Basic 2005 .NET Forum

| Visual Basic .NET Forum | Online Recipe Archiver | Shareware Freeware PAD | Lowongan Kerja | Kamus Online | Health Supply | Digital Camera Review |
Orang Paling Keren

RSS