Exemplo n.º 1
0
 private void setProperties(XmlNode rec)
 {
     this.record = base.loadRecord(rec);
     this.display = base.getNodeString(rec, "display");
     this.print = base.getNodeString(rec, "print");
     this.link = base.getNodeString(rec, "link");
     this.correlation = base.getNodeString(rec, "correlation");
     this.guide = base.getNodeString(rec, "guide");
     this.help = base.getNodeString(rec, "help");
 }
Exemplo n.º 2
0
 public override int selectRecord(int generation, out XmlNode recordNode)
 {
     int num = base.selectRecord(generation, out recordNode);
     if (num == 0)
     {
         this.record = base.loadRecord(recordNode);
         foreach (XmlNode node in recordNode.ChildNodes)
         {
             this.loadDivision(node);
         }
     }
     return num;
 }
Exemplo n.º 3
0
 public override int selectRecord(DateTime date, out XmlNode recordNode)
 {
     int num = base.selectRecord(date, out recordNode);
     if (num == 0)
     {
         this.record = base.loadRecord(recordNode);
         foreach (XmlNode node in recordNode.ChildNodes)
         {
             num = this.loadDivision(node);
             if (num < 0)
             {
                 return num;
             }
         }
     }
     return num;
 }
Exemplo n.º 4
0
 protected RecordAttribute loadRecord(XmlNode rec)
 {
     RecordAttribute attribute = new RecordAttribute();
     if (rec.Attributes["generation"] != null)
     {
         attribute.generation = int.Parse(rec.Attributes["generation"].Value);
     }
     attribute.jobcode = this.getAttributeString(rec, "jobcode");
     attribute.dispcode = this.getAttributeString(rec, "dispcode");
     attribute.titile1 = this.getAttributeString(rec, "title1");
     attribute.titile2 = this.getAttributeString(rec, "title2");
     attribute.attach = this.getAttributeBool(rec, "attach", false);
     attribute.validDate = this.GetValidDate(rec);
     attribute.barcode = this.getAttributeBool(rec, "barcode", false);
     string str = this.getAttributeString(rec, "confirm");
     int num = 1;
     if (str == num.ToString())
     {
         attribute.confirm = ConfirmType.TonnageTax;
     }
     else
     {
         int num2 = 2;
         if (str == num2.ToString())
         {
             attribute.confirm = ConfirmType.ContainerNo;
         }
         else
         {
             int num3 = 3;
             if (str == num3.ToString())
             {
                 attribute.confirm = ConfirmType.ShipInformation;
             }
             else
             {
                 int num4 = 4;
                 if (str == num4.ToString())
                 {
                     attribute.confirm = ConfirmType.Document;
                 }
                 else
                 {
                     attribute.confirm = ConfirmType.None;
                 }
             }
         }
     }
     if (this.getAttributeString(rec, "sign-flg") == "1")
     {
         attribute.signflg = 1;
         return attribute;
     }
     attribute.signflg = 0;
     return attribute;
 }