Esempio n. 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()));
     }
 }
Esempio n. 2
0
        public TagCodes GetTagCode()
        {
            var val = TagCodes.Unknown;

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

            return(val);
        }
Esempio n. 3
0
 public static TagCode onmouseout(this TagCode tag, string value)
 {
     tag.OnMouseOut = value; return(tag);
 }
Esempio n. 4
0
 public static TagCode onmousemove(this TagCode tag, string value)
 {
     tag.OnMouseMove = value; return(tag);
 }
Esempio n. 5
0
 public static TagCode onmouseup(this TagCode tag, string value)
 {
     tag.OnMouseUp = value; return(tag);
 }
Esempio n. 6
0
 public static TagCode onmousedown(this TagCode tag, string value)
 {
     tag.OnMouseDown = value; return(tag);
 }
Esempio n. 7
0
 public static TagCode ondblclick(this TagCode tag, string value)
 {
     tag.OnDblClick = value; return(tag);
 }
Esempio n. 8
0
 public static TagCode dir(this TagCode tag, Dir value)
 {
     tag.Dir = value; return(tag);
 }
Esempio n. 9
0
 public static TagCode onkeypress(this TagCode tag, string value)
 {
     tag.OnKeyPress = value; return(tag);
 }
Esempio n. 10
0
 public static TagCode lang(this TagCode tag, LangCode value)
 {
     tag.Lang = value; return(tag);
 }
Esempio n. 11
0
 public static TagCode title(this TagCode tag, string value)
 {
     tag.Title = value; return(tag);
 }
Esempio n. 12
0
 public static TagCode @class(this TagCode tag, string value)
 {
     tag.Class = value; return(tag);
 }
Esempio n. 13
0
 public static TagCode id(this TagCode tag, string value)
 {
     tag.Id = value; return(tag);
 }
Esempio n. 14
0
 public static TagCode onkeyup(this TagCode tag, string value)
 {
     tag.OnKeyUp = value; return(tag);
 }
Esempio n. 15
0
 public static TagCode onkeydown(this TagCode tag, string value)
 {
     tag.OnKeyDown = value; return(tag);
 }
Esempio n. 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;
 }