Пример #1
0
        public void DeepCopyFrom(OrderLocationKindInfo src)
        {
            System.Diagnostics.Debug.Assert(src != null);

            this.code        = src.Code;
            this.description = src.description;
        }
Пример #2
0
        public OrderProvisionInfo()
        {
            // [2016-03-31] 기본 발령 정보를 시험으로 생성 - by Gonzi
            //this.mode = BasisData.FindOrderModeInfoByCode(CAPLib.StatusType.Actual);
            this.mode        = BasisData.FindOrderModeInfoByCode(CAPLib.StatusType.Test);
            this.messageType = MsgType.Alert;
            this.scope       = ScopeType.Public;

            this.disaster          = new Disaster();
            this.disaster.Category = new DisasterCategory();
            this.disaster.Kind     = new DisasterKind();

            this.refType     = new OrderReferenceType();
            this.refRecordID = string.Empty;
            this.msgTextInfo = new SendingMsgTextInfo();

            this.targetRegions = new List <RegionDefinition>();
            this.targetSystems = new List <SASProfile>();
            this.circle        = new List <AdengGE.CircleInfo>();

            this.orderLocationKind = OrderLocationKind.Local;

            this.targetSystemsKinds = new List <SASKind>();

            this.tag = null;
        }
Пример #3
0
 public static string GetDisplayStringLocationKindName(OrderLocationKind locationKind)
 {
     if (!orderLocationKindInfo.ContainsKey(locationKind))
     {
         return("Unknown(" + locationKind.ToString() + ")");
     }
     return(orderLocationKindInfo[locationKind].Description);
 }
Пример #4
0
        public void DeepCopyFrom(OrderRecord src)
        {
            System.Diagnostics.Debug.Assert(src != null);

            this.capID            = src.capID;
            this.orderedTime      = src.orderedTime;
            this.orderMode        = src.OrderMode;
            this.locationKind     = src.locationKind;
            this.refType          = src.refType;
            this.refRecordID      = src.refRecordID;
            this.disasterKindCode = src.disasterKindCode;
            this.clearState       = src.clearState;
            this.capText          = src.capText;
        }
Пример #5
0
        public static OrderLocationKindInfo FindOrderLocationKindByKindCode(OrderLocationKind locationKind)
        {
            if (!orderLocationKindInfo.ContainsKey(locationKind))
            {
                OrderLocationKindInfo unknown = new OrderLocationKindInfo();
                unknown.Code        = OrderLocationKind.Unknown;
                unknown.Description = OrderLocationKind.Unknown.ToString();
                return(unknown);
            }

            OrderLocationKindInfo copy = new OrderLocationKindInfo();

            copy.DeepCopyFrom(orderLocationKindInfo[locationKind]);
            return(copy);
        }
Пример #6
0
 public OrderLocationKindInfo(OrderLocationKind code, string description)
 {
     this.code        = code;
     this.description = description;
 }
Пример #7
0
 public OrderLocationKindInfo()
 {
     this.code        = OrderLocationKind.Unknown;
     this.description = OrderLocationKind.Unknown.ToString();
 }