Commits

Mario César Señoranis Ayala committed 985b525

Realizando vista de Checkout

  • Participants
  • Parent commits 6e81c9f

Comments (0)

Files changed (10)

Mangos.Apps/Auth/User.cs

             
         }
 
+        public override string ToString ()
+        {
+            return string.Format("[{0} - {1}]", Username, FullName);
+        }
+
+        
         public User (string username, string password)
         {
             this.username = username;

Mangos.Apps/MangosApps.cs

                 typeof(Auth.Model),
                 typeof(Inventory.Category),
                 typeof(Inventory.Product),
-                typeof(Inventory.Supplier),
                 typeof(Inventory.Venue),
-                typeof(Inventory.VenuesProducts)
+                typeof(Inventory.VenuesProducts),
+                typeof(Sales.Client),
+            typeof(Sales.Invoice),
+                typeof(Sales.Order)
             );
         }
         

Mangos.Web/Controllers/ClientsController.cs

     using Castle.MonoRail.ActiveRecordSupport.Scaffold;
 
     [Scaffolding(typeof(Sales.Client))]
-    public class SalesController : Controller
+    public class ClientsController : Controller
     {
         
     }

Mangos/MainWindow.cs

             this.WebServerAction.Sensitive = true;
         }
         
-        if (this.user.hasPerms ("Auth"))
-        {
-            this.UserAction.Sensitive = true;
-        }
-        if (this.user.hasPerms ("Store"))
-        {
-            this.StoreAction.Sensitive = true;
-        }
-        if (this.user.hasPerms ("Inventory"))
-        {
-            this.InventoryAction.Sensitive = true;
-        }
+        this.LoadCheckout ();
     }
     
-    protected virtual void OnUserActionActivated (object sender, System.EventArgs e)
+    public void LoadCheckout ()
     {
-        Views.UsersView users_view = new Views.UsersView ();
+        Views.OrderView checkout_view = new Views.OrderView ();
         this.vbox1.Remove (alignment3);
-        this.vbox1.Add (users_view);
-        Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[users_view]));
+        this.vbox1.Add (checkout_view);
+        Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[checkout_view]));
         w4.Position = 2;
         w4.Expand = true;
-        users_view.Show ();
+        checkout_view.Show ();
         this.toolbar.Visible = true;
     }
     
         user.Groups.Add (g);
         user.Update ();
         
-        Auth.Model model = new Auth.Model ("Auth", "User");
+        Auth.Model model = new Auth.Model ("Sales", "Order");
         model.Create ();
         
-        model = new Auth.Model ("Auth", "Group");
+        model = new Auth.Model ("Sales", "Invoice");
         model.Create ();
         
-        model = new Auth.Model ("Auth", "Permission");
+        model = new Auth.Model ("Sales", "Client");
         model.Create ();
         
         Auth.Model obj = Auth.Model.FindByString ("Auth.User");
     
     protected virtual void OnPopularActionActivated (object sender, System.EventArgs e)
     {
-        this.PopulateProducts ();
+        //this.PopulateUser ();
     }
     
     

Mangos/Mangos.csproj

     <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <Reference Include="pango-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
   </ItemGroup>
   <ItemGroup>
     <EmbeddedResource Include="gtk-gui\gui.stetic">
     <Compile Include="Views\UsersView.cs" />
     <Compile Include="gtk-gui\Views.UsersView.cs" />
     <Compile Include="Views\OrderView.cs" />
-    <Compile Include="gtk-gui\Views.Checkout.cs" />
     <Compile Include="Views\InvoiceView.cs" />
     <Compile Include="gtk-gui\Views.InvoiceView.cs" />
+    <Compile Include="gtk-gui\Views.OrderView.cs" />
   </ItemGroup>
   <ItemGroup>
     <Content Include="app.desktop">

Mangos/Views/OrderView.cs

 
 
     [System.ComponentModel.ToolboxItem(true)]
-    public partial class Checkout : Gtk.Bin
+    public partial class OrderView : Gtk.Bin
     {
 
-        public Checkout ()
+        public OrderView ()
         {
             this.Build ();
         }

Mangos/gtk-gui/MainWindow.cs

     
     private Gtk.Action selectColorAction;
     
-    private Gtk.Action indexAction;
-    
-    private Gtk.Action indexAction1;
-    
-    private Gtk.Action UserAction;
-    
-    private Gtk.Action indexAction3;
-    
     private Gtk.Action quitAction;
     
     private Gtk.Action connectAction;
     
     private Gtk.Action InventoryAction;
     
-    private Gtk.Action StoreAction;
-    
     private Gtk.Action AccionesAction;
     
     private Gtk.Action PopularAction;
         this.selectColorAction.IsImportant = true;
         this.selectColorAction.ShortLabel = Mono.Unix.Catalog.GetString("Aplicaciones");
         w1.Add(this.selectColorAction, null);
-        this.indexAction = new Gtk.Action("indexAction", Mono.Unix.Catalog.GetString("Inventario"), null, "gtk-index");
-        this.indexAction.ShortLabel = Mono.Unix.Catalog.GetString("Inventario");
-        w1.Add(this.indexAction, null);
-        this.indexAction1 = new Gtk.Action("indexAction1", Mono.Unix.Catalog.GetString("Ventas"), null, "gtk-index");
-        this.indexAction1.ShortLabel = Mono.Unix.Catalog.GetString("Ventas");
-        w1.Add(this.indexAction1, null);
-        this.UserAction = new Gtk.Action("UserAction", Mono.Unix.Catalog.GetString("Usuarios"), null, "gtk-index");
-        this.UserAction.Sensitive = false;
-        this.UserAction.ShortLabel = Mono.Unix.Catalog.GetString("Usuarios");
-        w1.Add(this.UserAction, null);
-        this.indexAction3 = new Gtk.Action("indexAction3", Mono.Unix.Catalog.GetString("Grupos"), null, "gtk-index");
-        this.indexAction3.ShortLabel = Mono.Unix.Catalog.GetString("Grupos");
-        w1.Add(this.indexAction3, null);
         this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Salir"), null, "gtk-quit");
         this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Salir");
         w1.Add(this.quitAction, null);
         this.InventoryAction.Sensitive = false;
         this.InventoryAction.ShortLabel = Mono.Unix.Catalog.GetString("Inventario");
         w1.Add(this.InventoryAction, null);
-        this.StoreAction = new Gtk.Action("StoreAction", Mono.Unix.Catalog.GetString("Tienda"), null, "gtk-index");
-        this.StoreAction.Sensitive = false;
-        this.StoreAction.ShortLabel = Mono.Unix.Catalog.GetString("Tienda");
-        w1.Add(this.StoreAction, null);
         this.AccionesAction = new Gtk.Action("AccionesAction", Mono.Unix.Catalog.GetString("Acciones"), null, null);
         this.AccionesAction.ShortLabel = Mono.Unix.Catalog.GetString("Acciones");
         w1.Add(this.AccionesAction, null);
         this.vbox1 = new Gtk.VBox();
         this.vbox1.Name = "vbox1";
         // Container child vbox1.Gtk.Box+BoxChild
-        this.UIManager.AddUiFromString("<ui><menubar name='menubar'><menu name='propertiesAction' action='propertiesAction'><menuitem name='connectAction' action='connectAction'/><separator/><menuitem name='PreferencesAction' action='PreferencesAction'/><menuitem name='WebServerAction' action='WebServerAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='selectColorAction' action='selectColorAction'><menuitem name='UserAction' action='UserAction'/><menuitem name='InventoryAction' action='InventoryAction'/><menuitem name='StoreAction' action='StoreAction'/></menu><menu name='AccionesAction' action='AccionesAction'><menuitem name='PopularAction' action='PopularAction'/></menu><menu name='AyudaAction' action='AyudaAction'><menuitem name='helpAction' action='helpAction'/><menu name='dialogInfoAction' action='dialogInfoAction'><menuitem name='redoAction' action='redoAction'/><menuitem name='redoAction1' action='redoAction1'/><menuitem name='redoAction2' action='redoAction2'/><menuitem name='redoAction3' action='redoAction3'/></menu><menuitem name='aboutAction' action='aboutAction'/></menu></menubar></ui>");
+        this.UIManager.AddUiFromString("<ui><menubar name='menubar'><menu name='propertiesAction' action='propertiesAction'><menuitem name='connectAction' action='connectAction'/><separator/><menuitem name='PreferencesAction' action='PreferencesAction'/><menuitem name='WebServerAction' action='WebServerAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='AccionesAction' action='AccionesAction'><menuitem name='PopularAction' action='PopularAction'/></menu><menu name='AyudaAction' action='AyudaAction'><menuitem name='helpAction' action='helpAction'/><menu name='dialogInfoAction' action='dialogInfoAction'><menuitem name='redoAction' action='redoAction'/><menuitem name='redoAction1' action='redoAction1'/><menuitem name='redoAction2' action='redoAction2'/><menuitem name='redoAction3' action='redoAction3'/></menu><menuitem name='aboutAction' action='aboutAction'/></menu></menubar></ui>");
         this.menubar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar")));
         this.menubar.Name = "menubar";
         this.vbox1.Add(this.menubar);
         this.toolbar.Hide();
         this.Show();
         this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
-        this.UserAction.Activated += new System.EventHandler(this.OnUserActionActivated);
         this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
         this.connectAction.Activated += new System.EventHandler(this.OnConnectActionActivated);
         this.PreferencesAction.Activated += new System.EventHandler(this.OnPreferencesActionActivated);

Mangos/gtk-gui/Views.InvoiceView.cs

 // ------------------------------------------------------------------------------
 //  <autogenerated>
 //      This code was generated by a tool.
-//      Mono Runtime Version: 2.0.50727.1433
+//      
 // 
 //      Changes to this file may cause incorrect behavior and will be lost if 
 //      the code is regenerated.
     
     
     public partial class InvoiceView {
+        
+        protected virtual void Build() {
+            Stetic.Gui.Initialize(this);
+            // Widget Views.InvoiceView
+            Stetic.BinContainer.Attach(this);
+            this.Name = "Views.InvoiceView";
+            if ((this.Child != null)) {
+                this.Child.ShowAll();
+            }
+            this.Hide();
+        }
     }
 }

Mangos/gtk-gui/Views.OrderView.cs

+// ------------------------------------------------------------------------------
+//  <autogenerated>
+//      This code was generated by a tool.
+//      
+// 
+//      Changes to this file may cause incorrect behavior and will be lost if 
+//      the code is regenerated.
+//  </autogenerated>
+// ------------------------------------------------------------------------------
+
+namespace Views {
+    
+    
+    public partial class OrderView {
+        
+        private Gtk.HBox hbox1;
+        
+        private Gtk.VBox vbox4;
+        
+        private Gtk.ScrolledWindow GtkScrolledWindow2;
+        
+        private Gtk.TreeView treeview4;
+        
+        private Gtk.Label label3;
+        
+        private Gtk.HBox hbox2;
+        
+        private Gtk.Button button2;
+        
+        private Gtk.Notebook notebook1;
+        
+        private Gtk.VBox vbox1;
+        
+        private Gtk.Entry entry1;
+        
+        private Gtk.ScrolledWindow GtkScrolledWindow;
+        
+        private Gtk.TreeView treeview1;
+        
+        private Gtk.Label sidebar_text_product;
+        
+        private Gtk.Label label1;
+        
+        private Gtk.VBox vbox2;
+        
+        private Gtk.VBox vbox3;
+        
+        private Gtk.HBox hbox3;
+        
+        private Gtk.Entry entry2;
+        
+        private Gtk.Button button4;
+        
+        private Gtk.ScrolledWindow GtkScrolledWindow1;
+        
+        private Gtk.TreeView treeview2;
+        
+        private Gtk.Label sidebar_text_client;
+        
+        private Gtk.Label label2;
+        
+        protected virtual void Build() {
+            Stetic.Gui.Initialize(this);
+            // Widget Views.OrderView
+            Stetic.BinContainer.Attach(this);
+            this.Name = "Views.OrderView";
+            // Container child Views.OrderView.Gtk.Container+ContainerChild
+            this.hbox1 = new Gtk.HBox();
+            this.hbox1.Name = "hbox1";
+            this.hbox1.Spacing = 6;
+            // Container child hbox1.Gtk.Box+BoxChild
+            this.vbox4 = new Gtk.VBox();
+            this.vbox4.Name = "vbox4";
+            this.vbox4.Spacing = 6;
+            // Container child vbox4.Gtk.Box+BoxChild
+            this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
+            this.GtkScrolledWindow2.WidthRequest = 400;
+            this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
+            this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
+            // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
+            this.treeview4 = new Gtk.TreeView();
+            this.treeview4.CanFocus = true;
+            this.treeview4.Name = "treeview4";
+            this.GtkScrolledWindow2.Add(this.treeview4);
+            this.vbox4.Add(this.GtkScrolledWindow2);
+            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox4[this.GtkScrolledWindow2]));
+            w2.Position = 0;
+            // Container child vbox4.Gtk.Box+BoxChild
+            this.label3 = new Gtk.Label();
+            this.label3.HeightRequest = 100;
+            this.label3.Name = "label3";
+            this.label3.Xpad = 6;
+            this.label3.Ypad = 6;
+            this.label3.Xalign = 0F;
+            this.label3.Yalign = 0F;
+            this.label3.LabelProp = Mono.Unix.Catalog.GetString("{{description}}");
+            this.label3.UseMarkup = true;
+            this.label3.Wrap = true;
+            this.vbox4.Add(this.label3);
+            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox4[this.label3]));
+            w3.Position = 1;
+            w3.Expand = false;
+            w3.Fill = false;
+            // Container child vbox4.Gtk.Box+BoxChild
+            this.hbox2 = new Gtk.HBox();
+            this.hbox2.Name = "hbox2";
+            this.hbox2.Spacing = 6;
+            this.hbox2.BorderWidth = ((uint)(6));
+            // Container child hbox2.Gtk.Box+BoxChild
+            this.button2 = new Gtk.Button();
+            this.button2.CanFocus = true;
+            this.button2.Name = "button2";
+            this.button2.UseUnderline = true;
+            // Container child button2.Gtk.Container+ContainerChild
+            Gtk.Alignment w4 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
+            // Container child GtkAlignment.Gtk.Container+ContainerChild
+            Gtk.HBox w5 = new Gtk.HBox();
+            w5.Spacing = 2;
+            // Container child GtkHBox.Gtk.Container+ContainerChild
+            Gtk.Image w6 = new Gtk.Image();
+            w6.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
+            w5.Add(w6);
+            // Container child GtkHBox.Gtk.Container+ContainerChild
+            Gtk.Label w8 = new Gtk.Label();
+            w8.LabelProp = Mono.Unix.Catalog.GetString("_Facturar");
+            w8.UseUnderline = true;
+            w5.Add(w8);
+            w4.Add(w5);
+            this.button2.Add(w4);
+            this.hbox2.Add(this.button2);
+            Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.button2]));
+            w12.Position = 0;
+            w12.Expand = false;
+            w12.Fill = false;
+            this.vbox4.Add(this.hbox2);
+            Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox2]));
+            w13.Position = 2;
+            w13.Expand = false;
+            w13.Fill = false;
+            this.hbox1.Add(this.vbox4);
+            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox4]));
+            w14.Position = 0;
+            w14.Expand = false;
+            w14.Fill = false;
+            // Container child hbox1.Gtk.Box+BoxChild
+            this.notebook1 = new Gtk.Notebook();
+            this.notebook1.WidthRequest = 250;
+            this.notebook1.CanFocus = true;
+            this.notebook1.Name = "notebook1";
+            this.notebook1.CurrentPage = 1;
+            // Container child notebook1.Gtk.Notebook+NotebookChild
+            this.vbox1 = new Gtk.VBox();
+            this.vbox1.Name = "vbox1";
+            this.vbox1.Spacing = 6;
+            // Container child vbox1.Gtk.Box+BoxChild
+            this.entry1 = new Gtk.Entry();
+            this.entry1.CanFocus = true;
+            this.entry1.Name = "entry1";
+            this.entry1.IsEditable = true;
+            this.entry1.InvisibleChar = '•';
+            this.vbox1.Add(this.entry1);
+            Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.entry1]));
+            w15.Position = 0;
+            w15.Expand = false;
+            w15.Fill = false;
+            // Container child vbox1.Gtk.Box+BoxChild
+            this.GtkScrolledWindow = new Gtk.ScrolledWindow();
+            this.GtkScrolledWindow.Name = "GtkScrolledWindow";
+            this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
+            // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
+            this.treeview1 = new Gtk.TreeView();
+            this.treeview1.CanFocus = true;
+            this.treeview1.Name = "treeview1";
+            this.GtkScrolledWindow.Add(this.treeview1);
+            this.vbox1.Add(this.GtkScrolledWindow);
+            Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
+            w17.Position = 1;
+            // Container child vbox1.Gtk.Box+BoxChild
+            this.sidebar_text_product = new Gtk.Label();
+            this.sidebar_text_product.HeightRequest = 100;
+            this.sidebar_text_product.Name = "sidebar_text_product";
+            this.sidebar_text_product.Xpad = 6;
+            this.sidebar_text_product.Ypad = 6;
+            this.sidebar_text_product.Xalign = 0F;
+            this.sidebar_text_product.Yalign = 0F;
+            this.sidebar_text_product.LabelProp = Mono.Unix.Catalog.GetString("{{description}}");
+            this.sidebar_text_product.UseMarkup = true;
+            this.sidebar_text_product.Wrap = true;
+            this.vbox1.Add(this.sidebar_text_product);
+            Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.sidebar_text_product]));
+            w18.Position = 2;
+            w18.Expand = false;
+            w18.Fill = false;
+            this.notebook1.Add(this.vbox1);
+            // Notebook tab
+            this.label1 = new Gtk.Label();
+            this.label1.Name = "label1";
+            this.label1.LabelProp = Mono.Unix.Catalog.GetString("Productos");
+            this.notebook1.SetTabLabel(this.vbox1, this.label1);
+            this.label1.ShowAll();
+            // Container child notebook1.Gtk.Notebook+NotebookChild
+            this.vbox2 = new Gtk.VBox();
+            this.vbox2.Name = "vbox2";
+            this.vbox2.Spacing = 6;
+            // Container child vbox2.Gtk.Box+BoxChild
+            this.vbox3 = new Gtk.VBox();
+            this.vbox3.Name = "vbox3";
+            this.vbox3.Spacing = 6;
+            // Container child vbox3.Gtk.Box+BoxChild
+            this.hbox3 = new Gtk.HBox();
+            this.hbox3.Name = "hbox3";
+            this.hbox3.Spacing = 6;
+            // Container child hbox3.Gtk.Box+BoxChild
+            this.entry2 = new Gtk.Entry();
+            this.entry2.CanFocus = true;
+            this.entry2.Name = "entry2";
+            this.entry2.IsEditable = true;
+            this.entry2.InvisibleChar = '•';
+            this.hbox3.Add(this.entry2);
+            Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox3[this.entry2]));
+            w20.Position = 0;
+            // Container child hbox3.Gtk.Box+BoxChild
+            this.button4 = new Gtk.Button();
+            this.button4.CanFocus = true;
+            this.button4.Name = "button4";
+            this.button4.UseStock = true;
+            this.button4.UseUnderline = true;
+            this.button4.Label = "gtk-add";
+            this.hbox3.Add(this.button4);
+            Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox3[this.button4]));
+            w21.Position = 1;
+            w21.Expand = false;
+            w21.Fill = false;
+            this.vbox3.Add(this.hbox3);
+            Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3]));
+            w22.Position = 0;
+            w22.Expand = false;
+            w22.Fill = false;
+            // Container child vbox3.Gtk.Box+BoxChild
+            this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
+            this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
+            this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
+            // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
+            this.treeview2 = new Gtk.TreeView();
+            this.treeview2.CanFocus = true;
+            this.treeview2.Name = "treeview2";
+            this.GtkScrolledWindow1.Add(this.treeview2);
+            this.vbox3.Add(this.GtkScrolledWindow1);
+            Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow1]));
+            w24.Position = 1;
+            this.vbox2.Add(this.vbox3);
+            Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
+            w25.Position = 0;
+            // Container child vbox2.Gtk.Box+BoxChild
+            this.sidebar_text_client = new Gtk.Label();
+            this.sidebar_text_client.HeightRequest = 100;
+            this.sidebar_text_client.Name = "sidebar_text_client";
+            this.sidebar_text_client.Xpad = 6;
+            this.sidebar_text_client.Ypad = 6;
+            this.sidebar_text_client.Xalign = 0F;
+            this.sidebar_text_client.Yalign = 0F;
+            this.sidebar_text_client.LabelProp = Mono.Unix.Catalog.GetString("{{description}}");
+            this.sidebar_text_client.UseMarkup = true;
+            this.sidebar_text_client.Wrap = true;
+            this.vbox2.Add(this.sidebar_text_client);
+            Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox2[this.sidebar_text_client]));
+            w26.Position = 1;
+            w26.Expand = false;
+            w26.Fill = false;
+            this.notebook1.Add(this.vbox2);
+            Gtk.Notebook.NotebookChild w27 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox2]));
+            w27.Position = 1;
+            // Notebook tab
+            this.label2 = new Gtk.Label();
+            this.label2.Name = "label2";
+            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Clientes");
+            this.notebook1.SetTabLabel(this.vbox2, this.label2);
+            this.label2.ShowAll();
+            this.hbox1.Add(this.notebook1);
+            Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.hbox1[this.notebook1]));
+            w28.Position = 1;
+            w28.Expand = false;
+            w28.Fill = false;
+            this.Add(this.hbox1);
+            if ((this.Child != null)) {
+                this.Child.ShowAll();
+            }
+            this.Hide();
+        }
+    }
+}

Mangos/gtk-gui/gui.stetic

         <property name="ShortLabel" translatable="yes">Aplicaciones</property>
         <property name="StockId">gtk-select-color</property>
       </action>
-      <action id="indexAction">
-        <property name="Type">Action</property>
-        <property name="Label" translatable="yes">Inventario</property>
-        <property name="ShortLabel" translatable="yes">Inventario</property>
-        <property name="StockId">gtk-index</property>
-      </action>
-      <action id="indexAction1">
-        <property name="Type">Action</property>
-        <property name="Label" translatable="yes">Ventas</property>
-        <property name="ShortLabel" translatable="yes">Ventas</property>
-        <property name="StockId">gtk-index</property>
-      </action>
-      <action id="UserAction">
-        <property name="Type">Action</property>
-        <property name="Label" translatable="yes">Usuarios</property>
-        <property name="Sensitive">False</property>
-        <property name="ShortLabel" translatable="yes">Usuarios</property>
-        <property name="StockId">gtk-index</property>
-        <signal name="Activated" handler="OnUserActionActivated" />
-      </action>
-      <action id="indexAction3">
-        <property name="Type">Action</property>
-        <property name="Label" translatable="yes">Grupos</property>
-        <property name="ShortLabel" translatable="yes">Grupos</property>
-        <property name="StockId">gtk-index</property>
-      </action>
       <action id="quitAction">
         <property name="Type">Action</property>
         <property name="Label" translatable="yes">Salir</property>
         <property name="ShortLabel" translatable="yes">Inventario</property>
         <property name="StockId">gtk-index</property>
       </action>
-      <action id="StoreAction">
-        <property name="Type">Action</property>
-        <property name="Label" translatable="yes">Tienda</property>
-        <property name="Sensitive">False</property>
-        <property name="ShortLabel" translatable="yes">Tienda</property>
-        <property name="StockId">gtk-index</property>
-      </action>
       <action id="AccionesAction">
         <property name="Type">Action</property>
         <property name="Label" translatable="yes">Acciones</property>
                 <node type="Separator" />
                 <node type="Menuitem" action="quitAction" />
               </node>
-              <node type="Menu" action="selectColorAction">
-                <node type="Menuitem" action="UserAction" />
-                <node type="Menuitem" action="InventoryAction" />
-                <node type="Menuitem" action="StoreAction" />
-              </node>
               <node type="Menu" action="AccionesAction">
                 <node type="Menuitem" action="PopularAction" />
               </node>
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Bin" id="Views.Checkout" design-size="669 470">
+  <widget class="Gtk.Bin" id="Views.OrderView" design-size="669 470">
     <property name="MemberName" />
     <property name="Visible">False</property>
     <child>
                 <property name="Spacing">6</property>
                 <property name="BorderWidth">6</property>
                 <child>
-                  <widget class="Gtk.Button" id="button3">
-                    <property name="MemberName" />
-                    <property name="CanFocus">True</property>
-                    <property name="UseStock">True</property>
-                    <property name="Type">StockItem</property>
-                    <property name="StockId">gtk-delete</property>
-                    <property name="label">gtk-delete</property>
-                  </widget>
-                  <packing>
-                    <property name="Position">0</property>
-                    <property name="AutoSize">True</property>
-                    <property name="Expand">False</property>
-                    <property name="Fill">False</property>
-                  </packing>
-                </child>
-                <child>
                   <widget class="Gtk.Button" id="button2">
                     <property name="MemberName" />
                     <property name="CanFocus">True</property>
                     <property name="UseUnderline">True</property>
                   </widget>
                   <packing>
-                    <property name="Position">1</property>
-                    <property name="AutoSize">True</property>
-                    <property name="Expand">False</property>
-                    <property name="Fill">False</property>
-                  </packing>
-                </child>
-                <child>
-                  <widget class="Gtk.Button" id="button1">
-                    <property name="MemberName" />
-                    <property name="CanFocus">True</property>
-                    <property name="UseStock">True</property>
-                    <property name="Type">StockItem</property>
-                    <property name="StockId">gtk-print</property>
-                    <property name="label">gtk-print</property>
-                  </widget>
-                  <packing>
-                    <property name="Position">2</property>
+                    <property name="Position">0</property>
                     <property name="AutoSize">True</property>
                     <property name="Expand">False</property>
                     <property name="Fill">False</property>