Exemplo n.º 1
0
        //------------------------------------------------------------------------

        private static string Convert(MyTotalEcmrs input, Function f, ref int i)
        {
            return(string.Join("\n", new List <string> {
                string.Format("{0}var {1} = tx.{2}", Indent(i), input.Alias, input.Input),
                string.Format("{0}.map(function (ecmr) {{", Indent(i + 1)),
                string.Format("{0}return ecmr.goods.length;", Indent(i + 2)),
                string.Format("{0}}}).reduce(function (prev, curr) {{", Indent(i + 1)),
                string.Format("{0}return prev + curr;", Indent(i + 2)),
                string.Format("{0}}});", Indent(i))
            }));
        }
Exemplo n.º 2
0
 public VMtotalEcmrs(MyTotalEcmrs root, VMfunction parent) : base(root, parent)
 {
     //this.CommandSetInput = new DelegateCommand(() => this.Input = this.Parent.SelectVar());
 }