Exemple #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.MessageBody     serial_MessageBody     = serial_Class as FpmlSerializedCSharp.MessageBody;
            FpmlSerializedCSharp.GridCalculation serial_GridCalculation = serial_MessageBody.GridCalculation_;

            this.inst_code_ = serial_GridCalculation.Inst_code_.ValueStr;

            this.inst_name_ = serial_GridCalculation.Inst_name_.ValueStr;

            this.inst_type_ = serial_GridCalculation.Inst_type_.ValueStr;

            this.para_refDate_ = StringConverter.xmlDateToDateTime(serial_GridCalculation.Para_refDate_.ValueStr);

            FpmlSerializedCSharp.ProductInnerXml serial_productInnerXml = serial_GridCalculation.ProductInnerXml_;
            string productInnerXmltype = serial_productInnerXml.Excel_type_.ValueStr;

            this.productInnerXmlViewModel_ = ProductInnerXmlViewModel.CreateProductInnerXml(productInnerXmltype);
            this.productInnerXmlViewModel_.setFromSerial(serial_productInnerXml);
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.MessageBody serial_MessageBody = serial_Class as FpmlSerializedCSharp.MessageBody;
     FpmlSerializedCSharp.GridCalculation serial_GridCalculation = serial_MessageBody.GridCalculation_;
 
     this.inst_code_ = serial_GridCalculation.Inst_code_.ValueStr;
     
     this.inst_name_ = serial_GridCalculation.Inst_name_.ValueStr;
     
     this.inst_type_ = serial_GridCalculation.Inst_type_.ValueStr;
     
     this.para_refDate_ = StringConverter.xmlDateToDateTime(serial_GridCalculation.Para_refDate_.ValueStr);
     
     FpmlSerializedCSharp.ProductInnerXml serial_productInnerXml = serial_GridCalculation.ProductInnerXml_;
     string productInnerXmltype = serial_productInnerXml.Excel_type_.ValueStr;
     this.productInnerXmlViewModel_ = ProductInnerXmlViewModel.CreateProductInnerXml(productInnerXmltype);
     this.productInnerXmlViewModel_.setFromSerial(serial_productInnerXml);
     
 }