Example #1
0
 public int CompareTo(PayrollConcept conceptOther)
 {
     if (CountPendingCodes(TagPendingCodes, conceptOther.TagCode) != 0)
     {
         return(1);
     }
     else if (CountPendingCodes(conceptOther.TagPendingCodes, TagCode) != 0)
     {
         return(-1);
     }
     else if (CountSummaryCodes(SummaryCodes(), conceptOther.TagCode) != 0)
     {
         return(-1);
     }
     else if (CountSummaryCodes(conceptOther.SummaryCodes(), TagCode) != 0)
     {
         return(1);
     }
     else if (CalcCategory() == conceptOther.CalcCategory())
     {
         return(TagCode.CompareTo(conceptOther.TagCode));
     }
     else
     {
         return(CalcCategory().CompareTo(conceptOther.CalcCategory()));
     }
 }
Example #2
0
        public TagCodes GetTagCode()
        {
            var val = TagCodes.Unknown;

            if (TagCode != -1)
            {
                val = (TagCodes)Enum.Parse(val.GetType(), TagCode.ToString());
            }

            return(val);
        }
Example #3
0
 public static TagCode onmouseout(this TagCode tag, string value)
 {
     tag.OnMouseOut = value; return(tag);
 }
Example #4
0
 public static TagCode onmousemove(this TagCode tag, string value)
 {
     tag.OnMouseMove = value; return(tag);
 }
Example #5
0
 public static TagCode onmouseup(this TagCode tag, string value)
 {
     tag.OnMouseUp = value; return(tag);
 }
Example #6
0
 public static TagCode onmousedown(this TagCode tag, string value)
 {
     tag.OnMouseDown = value; return(tag);
 }
Example #7
0
 public static TagCode ondblclick(this TagCode tag, string value)
 {
     tag.OnDblClick = value; return(tag);
 }
Example #8
0
 public static TagCode dir(this TagCode tag, Dir value)
 {
     tag.Dir = value; return(tag);
 }
Example #9
0
 public static TagCode onkeypress(this TagCode tag, string value)
 {
     tag.OnKeyPress = value; return(tag);
 }
Example #10
0
 public static TagCode lang(this TagCode tag, LangCode value)
 {
     tag.Lang = value; return(tag);
 }
Example #11
0
 public static TagCode title(this TagCode tag, string value)
 {
     tag.Title = value; return(tag);
 }
Example #12
0
 public static TagCode @class(this TagCode tag, string value)
 {
     tag.Class = value; return(tag);
 }
Example #13
0
 public static TagCode id(this TagCode tag, string value)
 {
     tag.Id = value; return(tag);
 }
Example #14
0
 public static TagCode onkeyup(this TagCode tag, string value)
 {
     tag.OnKeyUp = value; return(tag);
 }
Example #15
0
 public static TagCode onkeydown(this TagCode tag, string value)
 {
     tag.OnKeyDown = value; return(tag);
 }
Example #16
0
 public static TagCode xmllang(this TagCode tag, string value)
 {
     tag.XmlLang = value; return(tag);
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="cmd">命令字</param>
 /// <param name="code">名称代码</param>
 /// <param name="dataValue">值</param>
 public ParamStruct(CommCMD cmd, TagCode code, object dataValue)
 {
     m_cmd   = cmd;
     m_code  = code;
     m_value = dataValue;
 }