public override string GetCommand()
        {
            string commandList    = GetCommandList();
            string commandContent = "{open_dialog_by_option, " + optionDialogInfo.TemplateId + ", [" + commandList + "]}";

            return(CommandTemplate.Replace("{0}", PreUniqueId.ToString()).Replace("{1}", PageIndex.ToString()).Replace("{2}", CommandIndex.ToString()).Replace("{3}", string.IsNullOrEmpty(PrevCommand) ? "" : "%% 执行:\"" + PrevCommand + "\"的操作").Replace("{4}", commandContent));
        }
Ejemplo n.º 2
0
        public override string GetCommand()
        {
            string commandContent = "{close_dialog}";

            return(CommandTemplate.Replace("{0}", PreUniqueId.ToString()).Replace("{1}", PageIndex.ToString()).Replace("{2}", CommandIndex.ToString()).Replace("{3}", string.IsNullOrEmpty(PrevCommand) ? "" : "%% 执行:\"" + PrevCommand + "\"的操作").Replace("{4}", commandContent));
        }
Ejemplo n.º 3
0
 public override string GetBeforeCommand()
 {
     return(BeforeCommandTempate.Replace("{0}", PreUniqueId.ToString()).Replace("{1}", PageIndex.ToString()).Replace("{2}", CommandIndex.ToString()).Replace("{3}", "true"));
 }
        public override string GetBeforeCommand()
        {
            string rules = string.IsNullOrEmpty(optionDialogInfo.Rules) ? "true" : optionDialogInfo.Rules;

            return(BeforeCommandTempate.Replace("{0}", PreUniqueId.ToString()).Replace("{1}", PageIndex.ToString()).Replace("{2}", CommandIndex.ToString()).Replace("{3}", rules));
        }
Ejemplo n.º 5
0
        public override string GetCommand()
        {
            string commandContent = string.Format("{{open_dialog_by_message, {0}, {1}, {2}, {3}}}", messageDialogInfo.Comment, UniqueId, PageIndex + 1, CommandIndex);

            return(CommandTemplate.Replace("{0}", PreUniqueId.ToString()).Replace("{1}", PageIndex.ToString()).Replace("{2}", CommandIndex.ToString()).Replace("{3}", string.IsNullOrEmpty(PrevCommand) ? "" : "%% 执行:\"" + PrevCommand + "\"的操作").Replace("{4}", commandContent));
        }