예제 #1
0
        /// <summary>
        /// 转化为可保存的字符串
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            if (S_RotateSpeed > 0)
            {
                builder.Append("SRS" + NAME_VALUE_LINK + S_RotateSpeed + PARA_LINK);
            }

            if (S_InjectionTime > 0)
            {
                builder.Append("SIT" + NAME_VALUE_LINK + S_InjectionTime + PARA_LINK);
            }

            if (R_InjectionQuantity != null)
            {
                builder.Append("RIQ" + NAME_VALUE_LINK + R_InjectionQuantity.ToString() + PARA_LINK);
            }

            if (R_RackTravel != null)
            {
                builder.Append("RRT" + NAME_VALUE_LINK + R_RackTravel.ToString() + PARA_LINK);
            }

            if (R_Asymmetry > 0)
            {
                builder.Append("RA" + NAME_VALUE_LINK + R_Asymmetry.ToString() + PARA_LINK);
            }

            return(builder.ToString());
        }
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            builder.Append("ID" + Connect + Id.ToString() + Seperater);

            if (StartWork != null)
            {
                builder.Append("SW" + Connect + StartWork.ToString() + Seperater);
            }

            if (IdlingWork != null)
            {
                builder.Append("IW" + Connect + IdlingWork.ToString() + Seperater);
            }

            if (IdlingBreak != null)
            {
                builder.Append("IB" + Connect + IdlingBreak.ToString() + Seperater);
            }


            if (ReviseBegin != null)
            {
                builder.Append("RB" + Connect + ReviseBegin.ToString() + Seperater);
            }


            if (ReviseWork != null)
            {
                builder.Append("RW" + Connect + ReviseWork.ToString() + Seperater);
            }


            if (ReviseEnd != null)
            {
                builder.Append("RE" + Connect + ReviseEnd.ToString() + Seperater);
            }

            if (DemWork != null)
            {
                builder.Append("DW" + Connect + DemWork.ToString() + Seperater);
            }

            if (AdjWork != null)
            {
                builder.Append("AW" + Connect + AdjWork.ToString() + Seperater);
            }

            if (HighBreak != null)
            {
                builder.Append("HB" + Connect + HighBreak.ToString() + Seperater);
            }


            if (Tem != null)
            {
                builder.Append("T" + Connect + Tem.ToString() + Seperater);
            }

            if (EquCode != null)
            {
                builder.Append("EC" + Connect + EquCode.ToString() + Seperater);
            }

            if (EquType != null)
            {
                builder.Append("ET" + Connect + EquType.ToString() + Seperater);
            }

            if (HDate != null)
            {
                builder.Append("HD" + Connect + HDate.ToString() + Seperater);
            }

            if (HTime != null)
            {
                builder.Append("HT" + Connect + HTime.ToString() + Seperater);
            }

            builder.Append("IP" + Connect + IsPass.ToString());

            return(builder.ToString());
        }