public ViewData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence, string kind)
        {
            Kind = kind;

            ID     = refView.ID + "_" + Kind.ToLower();
            Parent = classData;

            RefView   = refView;
            RefAction = refAction;

            Data = new Dictionary <string, object>();

            Data["name"]     = Name;
            Data["sequence"] = sequence;
        }
        public ViewData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence, string kind)
        {
            Kind = kind;

            ID = refView.ID + "_" + Kind.ToLower();
            Parent = classData;

            RefView = refView;
            RefAction = refAction;

            Data = new Dictionary<string, object>();

            Data["name"] = Name;
            Data["sequence"] = sequence;
        }
 public CalendarData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Calendar")
 {
     //
 }
 public SearchData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Search")
 {
     //
 }
Ejemplo n.º 5
0
 public KanbanData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Kanban")
 {
     //
 }
 public GanttData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Gantt")
 {
     //
 }
        public static string addAct(ActData actData)
        {
            string render = "<act_window\r\n";

            render += "\t\t\tid=\"" + actData.ID + "\"\r\n";
            render += "\t\t\tname=\"" + (string)actData.Data["name"] + "\"\r\n";
            render += "\t\t\tres_model=\"" + (string)actData.Data["res_model"] + "\"\r\n";
            render += "\t\t\tsrc_model=\"" + (string)actData.Data["src_model"] + "\"\r\n";
            render += "\t\t\tview_mode=\"" + (string)actData.Data["view_mode"] + "\"\r\n";
            render += "\t\t\tcontext=\"" + (string)actData.Data["context1"] + "\"\r\n";
            render += "\t\t\tdomain=\"" + (string)actData.Data["domain"] + "\"\r\n";
            render += "\t\t/>\r\n\r\n";

            render += "\t\t<record model=\"ir.actions.act_window\" id=\"" + actData.ID + "\">\r\n";
            render += "\t\t\t<field name=\"name\">" + (string)actData.Data["name"] + "</field>\r\n";
            render += "\t\t\t<field name=\"context\">" + (string)actData.Data["context2"] + "</field>\r\n";
            render += "\t\t</record>\r\n\r\n\r\n\t\t";

            render = "";

            return render;
        }
Ejemplo n.º 8
0
 public TreeData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Tree")
 {
     //
 }
 public SearchData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Search")
 {
     //
 }
 public KanbanData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Kanban")
 {
     //
 }
 public CalendarData(ActData refView, ActionData refAction, string Name, ClassData classData, string sequence)
     : base(refView, refAction, Name, classData, sequence, "Calendar")
 {
     //
 }