public void ValidateCode(string actionType, string id, ValidateCodeTemplate template) { if (ValidateCodeManager.HasValidateCode(actionType) == false) { return; } string tip; ValidateCodeType validateCodeType = ValidateCodeManager.GetValidateCodeTypeByAction(actionType); if (validateCodeType == null) { return; } tip = validateCodeType.Tip; if (id == null) { id = string.Empty; } bool disableIme = validateCodeType.DisableIme; string inputName = string.Format(Consts.ValidateCode_InputName, actionType, id); string imageUrl = ValidateCodeManager.GetValidateCodeImageUrl(actionType, false, id); template(inputName, tip, imageUrl, disableIme); }
public void ValidateCode(string actionType, string id, ValidateCodeTemplate template) { if (ValidateCodeManager.HasValidateCode(actionType) == false) return; string tip; ValidateCodeType validateCodeType = ValidateCodeManager.GetValidateCodeTypeByAction(actionType); if (validateCodeType == null) return; tip = validateCodeType.Tip; if (id == null) id = string.Empty; bool disableIme = validateCodeType.DisableIme; string inputName = string.Format(Consts.ValidateCode_InputName, actionType, id); string imageUrl = ValidateCodeManager.GetValidateCodeImageUrl(actionType, false, id); template(inputName, tip, imageUrl, disableIme); }
public void ValidateCode(string actionType, ValidateCodeTemplate template) { ValidateCode(actionType, null, template); }