123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Ips.Library.Entity
- {
- public class IbsIdResult
- {
- public int No { get; set; }
- public int IbsId { get; set; }
- public IbsIdResult() { }
- public IbsIdResult(int no, int ibsid)
- {
- this.No = no;
- this.IbsId = ibsid;
- }
- public IbsIdResult(string result)
- {
- FromString(result);
- }
- public void FromString(string result)
- {
- if (string.IsNullOrWhiteSpace(result)) return;
- var items = result.Split(":".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
- if (items.Length > 1)
- {
- this.No = int.Parse(items[0]);
- this.IbsId = int.Parse(items[1]);
- }
- }
- public override string ToString()
- {
- return $"{No}:{IbsId}";
- }
- }
- }
|