public SetMode ( bool Simple, bool Select, bool New, bool Edit, bool Del ) : void | ||
Simple | bool | |
Select | bool | |
New | bool | |
Edit | bool | |
Del | bool | |
리턴 | void |
protected void OnAction2Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(false,false,true,true,true); winref.FillList("doc_types","Тип документа", "Типы документов"); winref.Show(); winref.Run(); winref.Destroy(); }
protected virtual void OnButtonEventLesseeEditClicked(object sender, System.EventArgs e) { Reference LesseeSelect = new Reference(); LesseeSelect.SetMode(false,true,false,true,false); LesseeSelect.FillList("lessees","Арендатор", "Арендаторы"); LesseeSelect.Show(); int result = LesseeSelect.Run(); if((ResponseType)result == ResponseType.Ok) { EventLessee_id = LesseeSelect.SelectedID; entryEventLessee.Text = LesseeSelect.SelectedName; entryEventLessee.TooltipText = LesseeSelect.SelectedName; } LesseeSelect.Destroy(); }
protected void OnButtonMarkEditClicked(object sender, EventArgs e) { Reference MarkSelect = new Reference(); MarkSelect.SetMode(true,true,true,true,false); MarkSelect.FillList("marks","Марка автомобиля", "Марки автомобилей"); MarkSelect.Show(); int result = MarkSelect.Run(); if((ResponseType)result == ResponseType.Ok) { Mark_id = MarkSelect.SelectedID; entryMark.Text = MarkSelect.SelectedName; } MarkSelect.Destroy(); TestCanSave(); }
protected void OnButtonAccountableEditClicked(object sender, EventArgs e) { Reference AccountableSelect = new Reference(); AccountableSelect.SetMode(true,true,true,true,false); AccountableSelect.FillList("employees","Сотрудник", "Сотрудники"); AccountableSelect.Show(); int result = AccountableSelect.Run(); if((ResponseType)result == ResponseType.Ok) { Accountable_id = AccountableSelect.SelectedID; AccountableNull = false; entryAccountable.Text = AccountableSelect.SelectedName; entryAccountable.TooltipText = AccountableSelect.SelectedName; UpdateSlips (); } AccountableSelect.Destroy(); }
protected void OnButtonLesseeEditClicked(object sender, EventArgs e) { Reference LesseeSelect = new Reference(); LesseeSelect.SetMode(false,true,true,true,false); LesseeSelect.FillList("lessees","Арендатор", "Арендаторы"); LesseeSelect.Show(); int result = LesseeSelect.Run(); if((ResponseType)result == ResponseType.Ok) { LesseeId = LesseeSelect.SelectedID; LesseeisNull = false; entryLessee.Text = LesseeSelect.SelectedName; entryLessee.TooltipText = LesseeSelect.SelectedName; } LesseeSelect.Destroy(); TestCanSave(); }
protected void OnButtonContractorEditClicked(object sender, EventArgs e) { Reference ContractorSelect = new Reference(); ContractorSelect.SetMode(true,true,true,true,false); ContractorSelect.FillList("contractors","Контрагент", "Контрагенты"); ContractorSelect.Show(); int result = ContractorSelect.Run(); if((ResponseType)result == ResponseType.Ok) { Contractor_id = ContractorSelect.SelectedID; ContractorNull = false; //buttonContactOpen.Sensitive = true; entryContractor.Text = ContractorSelect.SelectedName; entryContractor.TooltipText = ContractorSelect.SelectedName; } ContractorSelect.Destroy(); TestCanSave (); }
protected virtual void OnAction7Activated(object sender, System.EventArgs e) { Reference winref = new Reference (true); winref.SetMode (true, false, true, true, true); winref.FillList ("place_types", "Тип места", "Типы мест"); winref.Show (); winref.Run (); winref.Destroy (); }
protected virtual void OnAction5Activated(object sender, System.EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("classes", "Тип события", "Типы событий"); winref.Show (); winref.Run (); winref.Destroy (); }
protected virtual void OnAction3Activated(object sender, System.EventArgs e) { Reference winref = new Reference (); winref.SetMode (false, false, true, true, true); winref.FillList ("contact_persons", "Контактное лицо", "Контактные лица"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnAction7Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(false, false, true, true, true); winref.FillList("status", "Статус заказа", "Статусы заказа"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction6Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(false, false, true, true, true); winref.FillList("stocks", "Склад", "Склады"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction5Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(true, false, true, true, true); winref.FillList("manufacturers", "Производитель", "Производители"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction4Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(false, false, true, true, true); winref.SqlSelect = "SELECT models.id, models.name, marks.name as mark FROM @tablename " + "LEFT JOIN marks ON marks.id = models.mark_id ORDER BY mark, name"; winref.Columns.Insert(1, new Reference.ColumnInfo("Марка", "{2}", true)); winref.Columns[2].Name = "Модель"; winref.FillList("models","Модель автомобиля", "Модели автомобилей"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction3Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(true, false, true, true, true); winref.FillList("marks","Марка автомобиля", "Марки автомобилей"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction10Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(false, false, true, true, true); winref.OrdinalField = "ordinal"; winref.SqlSelect += " ORDER BY ordinal"; winref.FillList("services", "Вид работы", "Виды работ"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction25Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("income_items", "Статья дохода", "Статьи доходов"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnAction27Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("employees", "Сотрудник", "Сотрудники"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnAction9Activated(object sender, EventArgs e) { Reference winref = new Reference(); winref.SetMode(true, false, true, true, true); winref.FillList("glass", "Стекло", "Виды стёкл"); winref.Show(); winref.Run(); winref.Destroy(); }
protected void OnAction41Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (false, false, true, true, true); winref.FillList ("meter_types", "Тип счётчика", "Типы счётчиков"); winref.Show (); winref.Run (); winref.Destroy (); }
protected virtual void OnAction10Activated(object sender, System.EventArgs e) { Reference winref = new Reference (); winref.SetMode (false, false, true, true, true); winref.FillList ("lessees", "Арендатор", "Арендаторы"); winref.Show (); winref.Run (); winref.Destroy (); }
protected virtual void OnAction6Activated(object sender, System.EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("goods", "Группа товаров", "Группы товаров"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnAction15Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("organizations", "Организация", "Организации"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnProvidersActionActivated(object sender, EventArgs e) { Reference winProviders = new Reference (); winProviders.SetMode (true, false, true, true, true); winProviders.FillList ("service_providers", "Поставщик", "Поставщики услуг"); winProviders.Show (); winProviders.Run (); winProviders.Destroy (); }
protected void OnAction17Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (false, false, true, true, true); winref.FillList ("services", "Услуга", "Услуги"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnButtonExpenseClicked(object sender, EventArgs e) { Reference ExpenseSelect = new Reference(); ExpenseSelect.SetMode(true,true,true,true,false); ExpenseSelect.FillList("expense_items","Статья расходов", "Статьи расходов"); ExpenseSelect.Show(); int result = ExpenseSelect.Run(); if((ResponseType)result == ResponseType.Ok) { Expense_id = ExpenseSelect.SelectedID; ExpenseNull = false; entryExpense.Text = ExpenseSelect.SelectedName; entryExpense.TooltipText = ExpenseSelect.SelectedName; } ExpenseSelect.Destroy(); TestCanSave (); }
protected void OnAction18Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("units", "Единица", "Единицы измерения"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnButtonGoodsEditClicked(object sender, System.EventArgs e) { Reference GoodsSelect = new Reference(); GoodsSelect.SetMode(true,true,true,true,false); GoodsSelect.FillList("goods","Группа товаров", "Товары"); GoodsSelect.Show(); int result = GoodsSelect.Run(); if((ResponseType)result == ResponseType.Ok) { Goods_id = GoodsSelect.SelectedID; GoodsNull = false; entryGoods.Text = GoodsSelect.SelectedName; entryGoods.TooltipText = GoodsSelect.SelectedName; } GoodsSelect.Destroy(); }
protected void OnAction19Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (false, false, true, true, true); winref.FillList ("cash", "Касса", "Кассы"); winref.Show (); winref.Run (); winref.Destroy (); }
protected void OnButtonParentEditClicked(object sender, EventArgs e) { Reference MeterSelect = new Reference(); MeterSelect.SetMode(false, true, false, false, false); MeterSelect.SqlSelect = "SELECT meters.id, meters.name, meter_types.name as type FROM meters " + "LEFT JOIN meter_types ON meters.meter_type_id = meter_types.id " + "WHERE meters.disabled = FALSE "; MeterSelect.Columns.Add (new Reference.ColumnInfo ("Тип счётчика", "{2}")); MeterSelect.FillList("meters", "Счётчики", "Счётчик"); MeterSelect.Show(); int result = MeterSelect.Run(); if((ResponseType)result == ResponseType.Ok) { ParentId = MeterSelect.SelectedID; entryParent.Text = MeterSelect.SelectedName; } MeterSelect.Destroy (); }
protected void OnAction21Activated(object sender, EventArgs e) { Reference winref = new Reference (); winref.SetMode (true, false, true, true, true); winref.FillList ("contractors", "Контрагент", "Контрагенты"); winref.Show (); winref.Run (); winref.Destroy (); }