public static ListItem GetListItem(EGovPublicApplyRemarkType type, bool selected) { var item = new ListItem(GetText(type), GetValue(type)); if (selected) { item.Selected = true; } return(item); }
public GovPublicApplyRemarkInfo(int remarkID, int publishmentSystemID, int applyID, EGovPublicApplyRemarkType remarkType, string remark, int departmentID, string userName, DateTime addDate) { this.remarkID = remarkID; this.publishmentSystemID = publishmentSystemID; this.applyID = applyID; this.remarkType = remarkType; this.remark = remark; this.departmentID = departmentID; this.userName = userName; this.addDate = addDate; }
public GovPublicApplyRemarkInfo() { remarkID = 0; publishmentSystemID = 0; applyID = 0; remarkType = EGovPublicApplyRemarkType.Accept; remark = string.Empty; departmentID = 0; userName = string.Empty; addDate = DateTime.Now; }
public static bool Equals(EGovPublicApplyRemarkType type, string typeStr) { if (string.IsNullOrEmpty(typeStr)) { return(false); } if (string.Equals(GetValue(type).ToLower(), typeStr.ToLower())) { return(true); } return(false); }
public static string GetText(EGovPublicApplyRemarkType type) { if (type == EGovPublicApplyRemarkType.Accept) { return("受理"); } else if (type == EGovPublicApplyRemarkType.SwitchTo) { return("转办"); } else if (type == EGovPublicApplyRemarkType.Comment) { return("批示"); } else if (type == EGovPublicApplyRemarkType.Redo) { return("要求返工"); } else { throw new Exception(); } }
public static string GetValue(EGovPublicApplyRemarkType type) { if (type == EGovPublicApplyRemarkType.Accept) { return("Accept"); } else if (type == EGovPublicApplyRemarkType.SwitchTo) { return("SwitchTo"); } else if (type == EGovPublicApplyRemarkType.Comment) { return("Comment"); } else if (type == EGovPublicApplyRemarkType.Redo) { return("Redo"); } else { throw new Exception(); } }
public static bool Equals(string typeStr, EGovPublicApplyRemarkType type) { return(Equals(type, typeStr)); }