create a website

επιλογές

bpr.net (Γενικά)

Ερωτήσεις

To BPR.NET είναι η εφαρμογή που αναπτύχθηκε για να καλύπτει ΄'γενικά χαρακτηριστικά" εφαρμογών.

* Παραμετροποιείται με  κώδικα c# για όλες τις φόρμες της εφαρμογής χρησιμοποιόντας το CodeDOM. Μερικά παραδείγματα κώδικα μέσα στο bpr.net παεριγράφονται παρακάτω.

Αποτελείται απο συγκεκριμένη δομή υπακατάλογοι και αρχεία (dll, cs, κα).

Παραδείγματα κώδικα μέσα στο BPR.NET

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DesktopBusiness;
using accountsClassLibrary;
using templates;
using alphaFrameWork;

public class MegaSoftClass
{

public void main(DesktopBusiness.CallForms.CallSynFrm This)
{
SetPropertiesValuesToFormControls(This);
}

private void SetPropertiesValuesToFormControls(Control obj)
{
foreach (Control ctrl in obj.Controls)
{
try
{
string t = ctrl.GetType().Name;
switch (t)
{
case "DataGridView":
if (ctrl.Name.Equals("DataGrid"))
{
((DataGridView)ctrl).Columns["DOY"].DisplayIndex = 3;
((DataGridView)ctrl).Columns["WebSite"].DisplayIndex = 4;
((DataGridView)ctrl).Columns["CategoryDescription"].DisplayIndex = 12;
((DataGridView)ctrl).Columns["PhoneNo"].DisplayIndex = 5;
((DataGridView)ctrl).Columns["Line"].DisplayIndex = 6;
}
break;
default:
SetPropertiesValuesToFormControls(ctrl);
break;
}
}
catch (Exception e) { MessageBox.Show(e.Message, ctrl.Name); }
}
}
}

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DesktopBusiness;
using accountsClassLibrary;
using templates;
using alphaFrameWork;

public class MegaSoftClass
{

public void main(DesktopBusiness.MForms.frmSynFl This)
{
SetPropertiesValuesToFormControls(This);
}

private void SetPropertiesValuesToFormControls(Control obj)
{

foreach (Control ctrl in obj.Controls)
{
try
{
TableLayoutPanel tp = new TableLayoutPanel();
string t = ctrl.GetType().Name;
switch (t)
{
case "megaText":
if (ctrl.Name.Equals("megaText_WebSite")){ ((templates.UserControls.megaText)ctrl).Text_Label = "ΑΜΚΑ";
tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(0, 1)); }
if (ctrl.Name.Equals("megaText_DOY")) { ((templates.UserControls.megaText)ctrl).Text_Label = "Πατρώνυμο";
tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(1, 1)); }
if (ctrl.Name.Equals("megaText_PhoneNo")) tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(0, 2));
if (ctrl.Name.Equals("megaText_Line")) { ((templates.UserControls.megaText)ctrl).Text_Label = "Τηλέφωνο 2";
tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(1, 2)); }
if (ctrl.Name.Equals("megaText_Address")) tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(0, 3));
if (ctrl.Name.Equals("megaText_AFM")) tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(0, 4));
if (ctrl.Name.Equals("megaText_Category")) tp.SetCellPosition(ctrl, new TableLayoutPanelCellPosition(1, 5));
break;
case "megaFind":
break;
case "megaDate":
break;
case "megaCombo":
if (ctrl.Name.Equals("megaCombo_PriceList")) ((templates.UserControls.megaCombo)ctrl).Text_Label = "Ταμείο";
break;
default:
if (ctrl.Name.Equals("tableLayoutPanel2")) tp = ((TableLayoutPanel)ctrl);
SetPropertiesValuesToFormControls(ctrl);
break;
}
}
catch (Exception e) { MessageBox.Show(e.Message, ctrl.Name); }
}
}
}

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using congress;
using BOCongress;
using templates;
using alphaFrameWork;


public class MegaSoftClass
{

private congress.CallForms.CallParticipations me;
public void main(congress.CallForms.CallParticipations This)
{
me = This;
CustomizeControls();
}
private void CustomizeControls()
{
me.DataGrid.DefaultCellStyle.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.GraphicsUnit.Pixel);
}


using System;
using System.Collections.Generic;
using System.Windows.Forms;
using congress;
using BOCongress;
using templates;
using alphaFrameWork;

public class MegaSoftClass
{

private congress.MForms.frmParticipations me;
public void main(congress.MForms.frmParticipations This)
{
me = This;
CustomizeMenu();
}

private void CustomizeMenu()
{
ToolStripMenuItem menuView1000 = new ToolStripMenuItem("Νέα επαφή");
menuView1000.Click += (object sender, EventArgs e) =>
{
me.NewSynFl();
};

ToolStripMenuItem menuView1001 = new ToolStripMenuItem("Save");
menuView1001.Click += (object sender, EventArgs e) =>
{
me.UpdateBtn();
};

me.menu.Items.AddRange(new ToolStripItem[] { menuView1000, menuView1001 });

}


© Copyright 2018 ΜέγαSoft Πληροφορική ΑΕ - All Rights Reserved