You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
361 lines
7.8 KiB
C#
361 lines
7.8 KiB
C#
/**
|
|
* Autogenerated by Thrift Compiler (0.9.0)
|
|
*
|
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
* @generated
|
|
*/
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.IO;
|
|
using Thrift;
|
|
using Thrift.Collections;
|
|
using System.Runtime.Serialization;
|
|
using Thrift.Protocol;
|
|
using Thrift.Transport;
|
|
|
|
|
|
#if !SILVERLIGHT
|
|
[Serializable]
|
|
#endif
|
|
public partial class Order : TBase
|
|
{
|
|
private string _est;
|
|
private string _order_code;
|
|
private string _prod_code;
|
|
private string _prod_desc;
|
|
private string _quantity;
|
|
private string _upquantity;
|
|
private string _outwarehousequantity;
|
|
private string _downquantity;
|
|
private string _down_line;
|
|
|
|
public string Est
|
|
{
|
|
get
|
|
{
|
|
return _est;
|
|
}
|
|
set
|
|
{
|
|
__isset.est = true;
|
|
this._est = value;
|
|
}
|
|
}
|
|
|
|
public string Order_code
|
|
{
|
|
get
|
|
{
|
|
return _order_code;
|
|
}
|
|
set
|
|
{
|
|
__isset.order_code = true;
|
|
this._order_code = value;
|
|
}
|
|
}
|
|
|
|
public string Prod_code
|
|
{
|
|
get
|
|
{
|
|
return _prod_code;
|
|
}
|
|
set
|
|
{
|
|
__isset.prod_code = true;
|
|
this._prod_code = value;
|
|
}
|
|
}
|
|
|
|
public string Prod_desc
|
|
{
|
|
get
|
|
{
|
|
return _prod_desc;
|
|
}
|
|
set
|
|
{
|
|
__isset.prod_desc = true;
|
|
this._prod_desc = value;
|
|
}
|
|
}
|
|
|
|
public string Quantity
|
|
{
|
|
get
|
|
{
|
|
return _quantity;
|
|
}
|
|
set
|
|
{
|
|
__isset.quantity = true;
|
|
this._quantity = value;
|
|
}
|
|
}
|
|
|
|
public string Upquantity
|
|
{
|
|
get
|
|
{
|
|
return _upquantity;
|
|
}
|
|
set
|
|
{
|
|
__isset.upquantity = true;
|
|
this._upquantity = value;
|
|
}
|
|
}
|
|
|
|
public string Outwarehousequantity
|
|
{
|
|
get
|
|
{
|
|
return _outwarehousequantity;
|
|
}
|
|
set
|
|
{
|
|
__isset.outwarehousequantity = true;
|
|
this._outwarehousequantity = value;
|
|
}
|
|
}
|
|
|
|
public string Downquantity
|
|
{
|
|
get
|
|
{
|
|
return _downquantity;
|
|
}
|
|
set
|
|
{
|
|
__isset.downquantity = true;
|
|
this._downquantity = value;
|
|
}
|
|
}
|
|
|
|
public string Down_line
|
|
{
|
|
get
|
|
{
|
|
return _down_line;
|
|
}
|
|
set
|
|
{
|
|
__isset.down_line = true;
|
|
this._down_line = value;
|
|
}
|
|
}
|
|
|
|
|
|
public Isset __isset;
|
|
#if !SILVERLIGHT
|
|
[Serializable]
|
|
#endif
|
|
public struct Isset {
|
|
public bool est;
|
|
public bool order_code;
|
|
public bool prod_code;
|
|
public bool prod_desc;
|
|
public bool quantity;
|
|
public bool upquantity;
|
|
public bool outwarehousequantity;
|
|
public bool downquantity;
|
|
public bool down_line;
|
|
}
|
|
|
|
public Order() {
|
|
}
|
|
|
|
public void Read (TProtocol iprot)
|
|
{
|
|
TField field;
|
|
iprot.ReadStructBegin();
|
|
while (true)
|
|
{
|
|
field = iprot.ReadFieldBegin();
|
|
if (field.Type == TType.Stop) {
|
|
break;
|
|
}
|
|
switch (field.ID)
|
|
{
|
|
case 1:
|
|
if (field.Type == TType.String) {
|
|
Est = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 2:
|
|
if (field.Type == TType.String) {
|
|
Order_code = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 3:
|
|
if (field.Type == TType.String) {
|
|
Prod_code = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 4:
|
|
if (field.Type == TType.String) {
|
|
Prod_desc = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 5:
|
|
if (field.Type == TType.String) {
|
|
Quantity = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 6:
|
|
if (field.Type == TType.String) {
|
|
Upquantity = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 7:
|
|
if (field.Type == TType.String) {
|
|
Outwarehousequantity = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 8:
|
|
if (field.Type == TType.String) {
|
|
Downquantity = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
case 9:
|
|
if (field.Type == TType.String) {
|
|
Down_line = iprot.ReadString();
|
|
} else {
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
}
|
|
break;
|
|
default:
|
|
TProtocolUtil.Skip(iprot, field.Type);
|
|
break;
|
|
}
|
|
iprot.ReadFieldEnd();
|
|
}
|
|
iprot.ReadStructEnd();
|
|
}
|
|
|
|
public void Write(TProtocol oprot) {
|
|
TStruct struc = new TStruct("Order");
|
|
oprot.WriteStructBegin(struc);
|
|
TField field = new TField();
|
|
if (Est != null && __isset.est) {
|
|
field.Name = "est";
|
|
field.Type = TType.String;
|
|
field.ID = 1;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Est);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Order_code != null && __isset.order_code) {
|
|
field.Name = "order_code";
|
|
field.Type = TType.String;
|
|
field.ID = 2;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Order_code);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Prod_code != null && __isset.prod_code) {
|
|
field.Name = "prod_code";
|
|
field.Type = TType.String;
|
|
field.ID = 3;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Prod_code);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Prod_desc != null && __isset.prod_desc) {
|
|
field.Name = "prod_desc";
|
|
field.Type = TType.String;
|
|
field.ID = 4;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Prod_desc);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Quantity != null && __isset.quantity) {
|
|
field.Name = "quantity";
|
|
field.Type = TType.String;
|
|
field.ID = 5;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Quantity);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Upquantity != null && __isset.upquantity) {
|
|
field.Name = "upquantity";
|
|
field.Type = TType.String;
|
|
field.ID = 6;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Upquantity);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Outwarehousequantity != null && __isset.outwarehousequantity) {
|
|
field.Name = "outwarehousequantity";
|
|
field.Type = TType.String;
|
|
field.ID = 7;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Outwarehousequantity);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Downquantity != null && __isset.downquantity) {
|
|
field.Name = "downquantity";
|
|
field.Type = TType.String;
|
|
field.ID = 8;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Downquantity);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
if (Down_line != null && __isset.down_line) {
|
|
field.Name = "down_line";
|
|
field.Type = TType.String;
|
|
field.ID = 9;
|
|
oprot.WriteFieldBegin(field);
|
|
oprot.WriteString(Down_line);
|
|
oprot.WriteFieldEnd();
|
|
}
|
|
oprot.WriteFieldStop();
|
|
oprot.WriteStructEnd();
|
|
}
|
|
|
|
public override string ToString() {
|
|
StringBuilder sb = new StringBuilder("Order(");
|
|
sb.Append("Est: ");
|
|
sb.Append(Est);
|
|
sb.Append(",Order_code: ");
|
|
sb.Append(Order_code);
|
|
sb.Append(",Prod_code: ");
|
|
sb.Append(Prod_code);
|
|
sb.Append(",Prod_desc: ");
|
|
sb.Append(Prod_desc);
|
|
sb.Append(",Quantity: ");
|
|
sb.Append(Quantity);
|
|
sb.Append(",Upquantity: ");
|
|
sb.Append(Upquantity);
|
|
sb.Append(",Outwarehousequantity: ");
|
|
sb.Append(Outwarehousequantity);
|
|
sb.Append(",Downquantity: ");
|
|
sb.Append(Downquantity);
|
|
sb.Append(",Down_line: ");
|
|
sb.Append(Down_line);
|
|
sb.Append(")");
|
|
return sb.ToString();
|
|
}
|
|
|
|
}
|
|
|