protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget workwear.Views.Stock.NomenclatureView global::Stetic.BinContainer.Attach(this); this.Name = "workwear.Views.Stock.NomenclatureView"; // Container child workwear.Views.Stock.NomenclatureView.Gtk.Container+ContainerChild this.dialog1_VBox = new global::Gtk.VBox(); this.dialog1_VBox.Name = "dialog1_VBox"; this.dialog1_VBox.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox4 = new global::Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.buttonSave = new global::Gtk.Button(); this.buttonSave.CanFocus = true; this.buttonSave.Name = "buttonSave"; this.buttonSave.UseUnderline = true; this.buttonSave.Label = global::Mono.Unix.Catalog.GetString("Сохранить"); global::Gtk.Image w1 = new global::Gtk.Image(); w1.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-save", global::Gtk.IconSize.Menu); this.buttonSave.Image = w1; this.hbox4.Add(this.buttonSave); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.buttonSave])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.buttonCancel = new global::Gtk.Button(); this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = global::Mono.Unix.Catalog.GetString("Отменить"); global::Gtk.Image w3 = new global::Gtk.Image(); w3.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-revert-to-saved", global::Gtk.IconSize.Menu); this.buttonCancel.Image = w3; this.hbox4.Add(this.buttonCancel); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.buttonCancel])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.menuInternal = new global::QS.Widgets.MenuButton(); this.menuInternal.CanFocus = true; this.menuInternal.Name = "menuInternal"; this.menuInternal.UseUnderline = true; this.menuInternal.UseMarkup = false; this.menuInternal.LabelXAlign = 0F; global::Gtk.Image w5 = new global::Gtk.Image(); w5.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("workwear.icon.buttons.menu.png"); this.menuInternal.Image = w5; this.hbox4.Add(this.menuInternal); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.menuInternal])); w6.Position = 2; w6.Expand = false; w6.Fill = false; this.dialog1_VBox.Add(this.hbox4); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.dialog1_VBox[this.hbox4])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.table2 = new global::Gtk.Table(((uint)(7)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.ytextComment = new global::Gamma.GtkWidgets.yTextView(); this.ytextComment.CanFocus = true; this.ytextComment.Name = "ytextComment"; this.ytextComment.WrapMode = ((global::Gtk.WrapMode)(3)); this.GtkScrolledWindow.Add(this.ytextComment); this.table2.Add(this.GtkScrolledWindow); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table2[this.GtkScrolledWindow])); w9.TopAttach = ((uint)(6)); w9.BottomAttach = ((uint)(7)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; this.table2.Add(this.hbox2); global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table2[this.hbox2])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((global::Gtk.AttachOptions)(4)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.Yalign = 0F; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Комментарий:"); this.table2.Add(this.label1); global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table2[this.label1])); w11.TopAttach = ((uint)(6)); w11.BottomAttach = ((uint)(7)); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label7 = new global::Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 1F; this.label7.LabelProp = global::Mono.Unix.Catalog.GetString("Номенклатурный номер:"); this.table2.Add(this.label7); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table2[this.label7])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label8 = new global::Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 1F; this.label8.LabelProp = global::Mono.Unix.Catalog.GetString("Наименование<span foreground=\"red\">*</span>:"); this.label8.UseMarkup = true; this.table2.Add(this.label8); global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table2[this.label8])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label9 = new global::Gtk.Label(); this.label9.Name = "label9"; this.label9.Xalign = 1F; this.label9.LabelProp = global::Mono.Unix.Catalog.GetString("Тип номенклатуры<span foreground=\"red\">*</span>:"); this.label9.UseMarkup = true; this.table2.Add(this.label9); global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table2[this.label9])); w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.ycheckArchival = new global::Gamma.GtkWidgets.yCheckButton(); this.ycheckArchival.CanFocus = true; this.ycheckArchival.Name = "ycheckArchival"; this.ycheckArchival.Label = global::Mono.Unix.Catalog.GetString("Архивная"); this.ycheckArchival.DrawIndicator = true; this.ycheckArchival.UseUnderline = true; this.table2.Add(this.ycheckArchival); global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table2[this.ycheckArchival])); w15.TopAttach = ((uint)(5)); w15.BottomAttach = ((uint)(6)); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.XOptions = ((global::Gtk.AttachOptions)(4)); w15.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.ycomboClothesSex = new global::Gamma.Widgets.yEnumComboBox(); this.ycomboClothesSex.Name = "ycomboClothesSex"; this.ycomboClothesSex.ShowSpecialStateAll = false; this.ycomboClothesSex.ShowSpecialStateNot = false; this.ycomboClothesSex.UseShortTitle = false; this.ycomboClothesSex.DefaultFirst = false; this.table2.Add(this.ycomboClothesSex); global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table2[this.ycomboClothesSex])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((global::Gtk.AttachOptions)(4)); w16.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.yentryItemsType = new global::QS.Views.Control.EntityEntry(); this.yentryItemsType.Events = ((global::Gdk.EventMask)(256)); this.yentryItemsType.Name = "yentryItemsType"; this.table2.Add(this.yentryItemsType); global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table2[this.yentryItemsType])); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(2)); w17.XOptions = ((global::Gtk.AttachOptions)(4)); w17.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.yentryName = new global::Gamma.GtkWidgets.yEntry(); this.yentryName.CanFocus = true; this.yentryName.Name = "yentryName"; this.yentryName.IsEditable = true; this.yentryName.MaxLength = 240; this.yentryName.InvisibleChar = '●'; this.table2.Add(this.yentryName); global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table2[this.yentryName])); w18.TopAttach = ((uint)(1)); w18.BottomAttach = ((uint)(2)); w18.LeftAttach = ((uint)(1)); w18.RightAttach = ((uint)(2)); w18.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.yentryNumber = new global::Gamma.GtkWidgets.yEntry(); this.yentryNumber.CanFocus = true; this.yentryNumber.Name = "yentryNumber"; this.yentryNumber.IsEditable = true; this.yentryNumber.MaxLength = 240; this.yentryNumber.InvisibleChar = '●'; this.table2.Add(this.yentryNumber); global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table2[this.yentryNumber])); w19.TopAttach = ((uint)(2)); w19.BottomAttach = ((uint)(3)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((global::Gtk.AttachOptions)(4)); w19.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.ylabelClothesSex = new global::Gamma.GtkWidgets.yLabel(); this.ylabelClothesSex.Name = "ylabelClothesSex"; this.ylabelClothesSex.Xalign = 1F; this.ylabelClothesSex.LabelProp = global::Mono.Unix.Catalog.GetString("ylabel1"); this.table2.Add(this.ylabelClothesSex); global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.table2[this.ylabelClothesSex])); w20.TopAttach = ((uint)(3)); w20.BottomAttach = ((uint)(4)); w20.XOptions = ((global::Gtk.AttachOptions)(4)); w20.YOptions = ((global::Gtk.AttachOptions)(4)); this.dialog1_VBox.Add(this.table2); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.dialog1_VBox[this.table2])); w21.Position = 1; this.Add(this.dialog1_VBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.ycomboClothesSex.Hide(); this.ylabelClothesSex.Hide(); this.Show(); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget workwear.Views.Stock.CollectiveExpenseItemsView global::Stetic.BinContainer.Attach(this); this.Name = "workwear.Views.Stock.CollectiveExpenseItemsView"; // Container child workwear.Views.Stock.CollectiveExpenseItemsView.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Строки документа"); this.hbox2.Add(this.label1); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.buttonRefreshEmployees = new global::Gamma.GtkWidgets.yButton(); this.buttonRefreshEmployees.CanFocus = true; this.buttonRefreshEmployees.Name = "buttonRefreshEmployees"; this.buttonRefreshEmployees.UseUnderline = true; this.buttonRefreshEmployees.Label = global::Mono.Unix.Catalog.GetString("Перезаполнить документ"); global::Gtk.Image w2 = new global::Gtk.Image(); w2.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-redo", global::Gtk.IconSize.Menu); this.buttonRefreshEmployees.Image = w2; this.hbox2.Add(this.buttonRefreshEmployees); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.buttonRefreshEmployees])); w3.PackType = ((global::Gtk.PackType)(1)); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.vbox2.Add(this.hbox2); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.ytreeItems = new global::Gamma.GtkWidgets.yTreeView(); this.ytreeItems.CanFocus = true; this.ytreeItems.Name = "ytreeItems"; this.GtkScrolledWindow.Add(this.ytreeItems); this.vbox2.Add(this.GtkScrolledWindow); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.GtkScrolledWindow])); w6.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.buttonAdd = new global::Gamma.GtkWidgets.yButton(); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = global::Mono.Unix.Catalog.GetString("Добавить сотрудника"); global::Gtk.Image w7 = new global::Gtk.Image(); w7.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-add", global::Gtk.IconSize.Menu); this.buttonAdd.Image = w7; this.hbox1.Add(this.buttonAdd); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.buttonAdd])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.buttonRefreshEmployee = new global::Gamma.GtkWidgets.yButton(); this.buttonRefreshEmployee.CanFocus = true; this.buttonRefreshEmployee.Name = "buttonRefreshEmployee"; this.buttonRefreshEmployee.UseUnderline = true; this.buttonRefreshEmployee.Label = global::Mono.Unix.Catalog.GetString("Перезаполнить сотрудника"); global::Gtk.Image w9 = new global::Gtk.Image(); w9.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-redo", global::Gtk.IconSize.Menu); this.buttonRefreshEmployee.Image = w9; this.hbox1.Add(this.buttonRefreshEmployee); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.buttonRefreshEmployee])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.buttonDel = new global::QS.Widgets.MenuButton(); this.buttonDel.Sensitive = false; this.buttonDel.CanFocus = true; this.buttonDel.Name = "buttonDel"; this.buttonDel.UseUnderline = true; this.buttonDel.UseMarkup = false; this.buttonDel.LabelXAlign = 0F; this.buttonDel.Label = global::Mono.Unix.Catalog.GetString("Удалить"); global::Gtk.Image w11 = new global::Gtk.Image(); w11.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-remove", global::Gtk.IconSize.Menu); this.buttonDel.Image = w11; this.hbox1.Add(this.buttonDel); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.buttonDel])); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.buttonShowAllSize = new global::Gtk.Button(); this.buttonShowAllSize.Sensitive = false; this.buttonShowAllSize.CanFocus = true; this.buttonShowAllSize.Name = "buttonShowAllSize"; this.buttonShowAllSize.UseUnderline = true; this.buttonShowAllSize.Label = global::Mono.Unix.Catalog.GetString("Выбрать другой размер"); this.hbox1.Add(this.buttonShowAllSize); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.buttonShowAllSize])); w13.Position = 3; w13.Expand = false; w13.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.labelSum = new global::Gamma.GtkWidgets.yLabel(); this.labelSum.Name = "labelSum"; this.labelSum.Xalign = 1F; this.labelSum.LabelProp = global::Mono.Unix.Catalog.GetString("Количество:"); this.labelSum.UseMarkup = true; this.hbox1.Add(this.labelSum); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.labelSum])); w14.Position = 4; this.vbox2.Add(this.hbox1); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w15.Position = 2; w15.Expand = false; w15.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.buttonRefreshEmployees.Clicked += new global::System.EventHandler(this.OnButtonRefreshEmployeesClicked); this.buttonAdd.Clicked += new global::System.EventHandler(this.OnButtonAddClicked); this.buttonRefreshEmployee.Clicked += new global::System.EventHandler(this.OnButtonRefreshEmployeeClicked); this.buttonDel.Clicked += new global::System.EventHandler(this.OnButtonDelClicked); this.buttonShowAllSize.Clicked += new global::System.EventHandler(this.OnButtonShowAllSizeClicked); }