本文整理汇总了C#中FakPlusz.Alapfunkciok.Tablainfo.Tartalmaktolt方法的典型用法代码示例。如果您正苦于以下问题:C# Tablainfo.Tartalmaktolt方法的具体用法?C# Tablainfo.Tartalmaktolt怎么用?C# Tablainfo.Tartalmaktolt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FakPlusz.Alapfunkciok.Tablainfo
的用法示例。
在下文中一共展示了Tablainfo.Tartalmaktolt方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ForceAdattolt
/// <summary>
/// adattabla utolso Select-jeinek kiadasa, minden valtozasjelzo torlese( azaz a Select utani allapot
/// helyreallitasa)
/// </summary>
/// <param name="tabinfo">
/// tablainformacio
/// </param>
/// <param name="force">
/// true: mindenkeppen
/// false: csak valtozas eseten
/// </param>
/// <returns></returns>
public Tablainfo ForceAdattolt(Tablainfo tabinfo, bool force)
{
bool kell = false;
if (!force && (tabinfo.Modositott || tabinfo.ModositasiHiba || tabinfo.Changed))
kell = true;
if (kell || force)
{
string conn = tabinfo.Adattabla.Connection;
DataView naploview = new DataView(tabinfo.NaploTabla);
if ((tabinfo.Modositott || force) && tabinfo.Tablanev != "VALTOZASNAPLO")
{
string adattablanev = "";
if (tabinfo.Leiroe)
adattablanev = tabinfo.TablaTag.Tablainfo.Tablanev;
naploview.RowFilter = "AZON='" + tabinfo.Azon + "' and TABLANEV='" + tabinfo.Tablanev + "'";
if (adattablanev != "")
naploview.RowFilter += " and ADATTABLANEV='" + adattablanev + "'";
for (int i = 0; i < naploview.Count; i++)
{
naploview[i].Row.Delete();
i--;
}
}
tabinfo.DataView.RowFilter = "";
tabinfo.Modositott = false;
tabinfo.ModositasiHiba = false;
tabinfo.Changed = false;
if (tabinfo.Azon == "LEIR")
tabinfo.Adattabla.LastSel = LeiroTag.Azonositok.Selectstring;
Select((DataTable)tabinfo.Adattabla, conn, tabinfo.Tablanev, tabinfo.Adattabla.LastSel + " ", tabinfo.OrderString, false);
if (tabinfo.AktualControlInfo != null && tabinfo.Azon != "LEIR" && _aktualcegconn != "")
{
tabinfo.Tartalmaktolt(true);
if (tabinfo.Tablanev != "TARTAL" && tabinfo.TermSzarm.Trim() == "T")
// {
// tabinfo.Tartalmaktolt(tabinfo.DataView.Count - 1);
tabinfo.ViewSorindex = 0;
// }
}
}
return (tabinfo);
}
示例2: AdattoltByAktid
/// <summary>
/// Termeszetes adattabla toltese id alapjan
/// </summary>
/// <param name="info">
/// toltendo adattabla tablainformacioja
/// </param>
public void AdattoltByAktid(Tablainfo info)
{
info.SelectString = " where " + info.IdentityColumnName + "='" + info.AktIdentity + "'";
info.Adattolt(Aktintervallum, true);
info.Tartalmaktolt();
}
示例3: Listazas
private void Listazas()
{
//if (VanDatum)
//{
FakUserInterface.SetUserSzamitasokKellSzamitasDatum(true);
FakUserInterface.SetUserSzamitasokDatumHatarok(Convert.ToDateTime(Datum1), Convert.ToDateTime(Datum2));
//}
//else
//{
// Datum1 = FakUserInterface.DatumToString(DateTime.Today);
// Datum2 = Datum1;
//}
prop = report.PrintOptions;
bool portop = true;
if (listae && Listainfok.Oszlopinfok.Mezoinfok.Count > 7 || !listae && 1 + Listainfok.Matrixpontinfok.Mezoinfok.Count * (Listainfok.Matrixpontinfok.OszlopokSzama + 1) > 6)
portop = false;
if (portop)
prop.PaperOrientation = PaperOrientation.Portrait;
else
prop.PaperOrientation = PaperOrientation.Landscape;
foreach (DataTable dt in dataset.Tables)
dt.Rows.Clear();
dr = null;
for (int i = 1; i < ig; i++)
{
DataView view = (DataView)osszesview[i];
DataTable table = view.Table;
if (view.Count != 0)
{
egysor = "";
bool first = true;
int count = 1;
for (int j = 0; j < view.Count; j++)
{
if (j != 0)
egysor += newline[0].ToString();
DataRow row = view[j].Row;
for (int k = 2; k < table.Columns.Count; k++)
{
if (i != 1)
{
if (first)
{
egysor += count.ToString();
count++;
first = false;
}
}
if (row[k].ToString() != "")
{
if (egysor != "")
egysor += " ";
egysor += row[k].ToString();
}
if (i != -1 && table.Columns[k].ColumnName == "ESVAGY" && row[k].ToString() == "")
first = true;
}
}
switch (i)
{
case 1:
parfeltetel = egysor;
break;
case 2:
parsormeghatarozas = egysor;
break;
case 3:
paroszlopmeghatarozas = egysor;
break;
}
}
}
elsotabinfo = Listainfok.ElsoTabinfo;
DataTable dt1 = dataset.DataTable2;
dr = dt1.NewRow();
fotabla = elsotabinfo.DataView;
OsszesBeallitandoId = Listainfok.OsszesBeallitandoId;
OsszesBeallitottIdErtek = Listainfok.OsszesBeallitottIdErtek;
tabinfok = Listainfok.Tablainfok;
int tablainfoindex = Listainfok.Tablainfok.IndexOf(elsotabinfo);
string tablanev = elsotabinfo.TablaTag.Azonositok.Szoveg;
elsotabinfo.Adattabla.Rows.Clear();
string selstring = elsotabinfo.GetTablainfoSelect(OsszesBeallitottIdErtek);
string orderstring = elsotabinfo.Sort;
ValtozasBeallit();
elsotabinfo.DataView.Sort = orderstring;
FakUserInterface.Select(fotabla.Table, FakUserInterface.AktualCegconn, fotabla.Table.TableName, selstring, "", false);
elsotabinfo.Tartalmaktolt();
if (!listae)
{
SorokSzama = Listainfok.Matrixpontinfok.SorokSzama;
OszlopokSzama = Listainfok.Matrixpontinfok.OszlopokSzama;
}
SaveFilterek = new string[tabinfok.Count];
SaveViewIndexek = new int[tabinfok.Count];
sorokszama = new int[tabinfok.Count];
int focount = fotabla.Table.Rows.Count;
bool folytassuk = focount != 0;
int rekszam = focount;
int feldrekszam = 0;
//.........这里部分代码省略.........