private void IniUiBizCommands(XReader reader, UiBiz biz) { biz.DataValues = getDataValues(reader, "DataValues\\DataValue"); biz.TrimCommands = getCommands(reader, "TrimCommands\\Command"); biz.VerifyCommands = getCommands(reader, "VerifyCommands\\Command"); biz.ExcuteCommand = getCommands(reader, "ExcuteCommands\\Command").FirstOrDefault(); }
/// <summary> /// 获取配置的执行接口参数 /// </summary> /// <param name="biz"></param> /// <param name="param"></param> /// <returns></returns> protected CommandParam getCommandParam(UiBiz biz, Dictionary <string, object> param) { CommandParam result = new CommandParam(); result.DbHelper = manager.DbHelper; result.UiBiz = biz; if (param != null) { result.UiParam = param; } result.McUIManager = manager; result.SysParam.UserId = new ParamKeyValue(biz.UserField, this.Data.User.UserId); return(result); }
private void IniCommands(UiBiz biz) { IniCommands(biz.TrimCommands); IniCommands(biz.VerifyCommands); biz.ExcuteCommand.Ini(); }