SetMode() public method

public SetMode ( bool Simple, bool Select, bool New, bool Edit, bool Del ) : void
Simple bool
Select bool
New bool
Edit bool
Del bool
return void
Beispiel #1
0
 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();
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 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();
 }
Beispiel #5
0
 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();
 }
Beispiel #6
0
 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 ();
 }
Beispiel #7
0
 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 ();
 }
Beispiel #8
0
 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 ();
 }
Beispiel #9
0
 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 ();
 }
Beispiel #10
0
 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();
 }
Beispiel #11
0
 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();
 }
Beispiel #12
0
 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();
 }
Beispiel #13
0
 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();
 }
Beispiel #14
0
 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();
 }
Beispiel #15
0
 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();
 }
Beispiel #16
0
 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 ();
 }
Beispiel #17
0
 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 ();
 }
Beispiel #18
0
 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();
 }
Beispiel #19
0
 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 ();
 }
Beispiel #20
0
 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 ();
 }
Beispiel #21
0
 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 ();
 }
Beispiel #22
0
 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 ();
 }
Beispiel #23
0
 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 ();
 }
Beispiel #24
0
 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 ();
 }
Beispiel #25
0
 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 ();
 }
Beispiel #26
0
 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 ();
 }
Beispiel #27
0
 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();
 }
Beispiel #28
0
 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 ();
 }
Beispiel #29
0
 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 ();
 }
Beispiel #30
0
 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 ();
 }