本文整理汇总了C#中FakPlusz.Alapfunkciok.Tablainfo.Beallit方法的典型用法代码示例。如果您正苦于以下问题:C# Tablainfo.Beallit方法的具体用法?C# Tablainfo.Beallit怎么用?C# Tablainfo.Beallit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FakPlusz.Alapfunkciok.Tablainfo
的用法示例。
在下文中一共展示了Tablainfo.Beallit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Frissites
private void Frissites(Tablainfo tabinfo, DataRow dr)
{
string funkcio = dr["FUNKCIO"].ToString();
string szint = dr["SZINT"].ToString();
string verid = dr["VERZIO_ID"].ToString();
if (!funkcio.Contains("VERSION"))
ForceAdattolt(tabinfo, true);
if (tabinfo.Tablanev.Contains("VERSION"))
{
string conn = tabinfo.Adattabla.Connection;
Versiontolt(szint, conn);
if (funkcio == "ADD" || funkcio == "TOROL")
{
if (szint == "C")
Cegadatok(Aktintervallum);
else
Rendszeradatok(Aktintervallum, szint, funkcio == "TOROL");
}
}
else
{
string tablanev = tabinfo.Tablanev;
TablainfoTag tag = tabinfo.TablaTag;
bool leiroe = tabinfo.Leiroe;
if (funkcio.Contains("VERSION"))
{
int[] verzioinfok = (int[])tabinfo.Verzioinfok.VersionIdCollection.ToArray(typeof(int));
if (funkcio == "DELETEVERSION")
{
tabinfo.AktVerzioId = verzioinfok[verzioinfok.Length - 2];
tabinfo.VerzioTerkepArray.RemoveAt(tabinfo.VerzioTerkepArray.Count - 1);
}
else
{
tabinfo.AktVerzioId = verzioinfok[verzioinfok.Length - 1];
tabinfo.VerzioTerkepArray.Add(tabinfo.AktVerzioId);
}
tabinfo.Adattabla.LastSel = tabinfo.SelectString + " and VERZIO_ID = " + tabinfo.AktVerzioId.ToString();
ForceAdattolt(tabinfo, true);
tabinfo.TablaTag.Azonositok.ToolTipText();
if (tabinfo.Osszefinfo != null)
tabinfo.Osszefinfo.InitKell = true;
return;
}
ForceAdattolt(tabinfo, true);
if (tabinfo.Tablanev == "BASE" && funkcio == "TOROL")
{
TablainfoTag termgyokertag = (TablainfoTag)GyokerTablainfoTagok[1];
foreach (TablainfoTag egytartaltag in termgyokertag.ChildTablainfoTagok)
{
if (egytartaltag.Azonositok.Szint == szint)
egytartaltag.Torolt = true;
}
return;
}
if (tabinfo.Azon == "LEIR")
{
foreach (Tablainfo egyinfo in Tablainfok)
{
egyinfo.LeiroTablainfo.Beallit();
egyinfo.LeiroTablainfo.Combobeallit();
}
return;
}
if (tabinfo.Leiroe)
{
if (tabinfo.TablaTag.Tablainfo.Adatfajta != "K")
{
tabinfo.Beallit();
tabinfo.Combobeallit();
}
else
KodtablakFrissitese(tabinfo);
Tablainfo adattablainfo = tabinfo.TablaTag.Tablainfo;
tabinfo.TablaTag.Tablainfo.Beallit();
tabinfo.TablaTag.Tablainfo.Combobeallit();
return;
}
if (tabinfo.Tablanev != "TARTAL" && tabinfo.Tablanev != "BASE")
{
tabinfo.Beallit();
tabinfo.Combobeallit();
Combokupdate(tabinfo.TablaTag);
if (tabinfo.Osszefinfo != null)
tabinfo.Osszefinfo.InitKell = true;
return;
}
if (tabinfo.Tablanev == "BASE")
{
string savfilt;
savfilt = tabinfo.DataView.RowFilter;
TablainfoTag newtag = null;
TablainfoTag newtartaltag = null;
tabinfo.DataView.RowFilter = "szint='" + szint + "'";
for (int i = 0; i < tabinfo.DataView.Count; i++)
{
DataRow dr1 = tabinfo.DataView[i].Row;
int rowindex = tabinfo.Adattabla.Rows.IndexOf(dr1);
if (funkcio == "ADD")
{
//.........这里部分代码省略.........
示例2: TablainfoTagIni
private void TablainfoTagIni(AdatTabla dt, int sorindex, Tablainfo tabinfo, TablainfoTag eredetitag, TablainfoTag parenttag, FakUserInterface fak, bool forditott)
{
termtablae = false;
_fak = fak;
_fak.ProgressRefresh();
_adattabla = dt;
_sorindex = sorindex;
_tabinfo = tabinfo;
_parenttag = parenttag;
_forditott = forditott;
if (_node == null)
_node = new TreeNode();
DataRow dr = null;
if (sorindex != -1)
{
dr = dt.Rows[sorindex];
if (dt.Columns.IndexOf("SORREND") != -1)
_sorrend = Convert.ToInt32(dr["SORREND"].ToString());
}
if (tabinfo == null || forditott && eredetitag._fordtag == null)
{
_azonositok = new Azonositok(this, dr, _sorindex, dt.TableName, fak);
string szint = _azonositok.Szint;
if (!"RUC".Contains(szint))
fak.Szintstring = szint;
_leiroazonositok = new Azonositok(this, dr, _sorindex, dt.TableName, fak, true);
fak.ProgressRefresh();
switch (dt.TableName)
{
case "LEIRO":
_azonositok.Szoveg = "Leiró tábla";
_leirotabinfo = new Tablainfo(dt, sorindex, this, _leiroazonositok, fak, true);
_leirotabinfo.NaploTablainfo = _fak.NaploTablainfok[0];
_leirotabinfo.NaploTabla = _fak.NaploTablak[0];
_leirotabinfo.Init(true);
_tabinfo = new Tablainfo(this, _azonositok, _fak);
_tabinfo.NaploTablainfo = _fak.NaploTablainfok[0];
_tabinfo.LeiroTablainfo = _leirotabinfo;
_tabinfo.Adattabla = _leirotabinfo.Adattabla;
_tabinfo.Adattabla.Tablainfo = _tabinfo;
_tabinfo.Beallit();
_tabinfo.LeiroVizsg();
if (_azonositok.Azon == "LEIR")
_tabinfo.Adattabla.LastSel = _azonositok.Selectstring;
break;
case "BASE":
if (sorindex == -1) // BASE sajatmaga
{
_azonositok.Szoveg = "BASE tábla";
AdatTabla leirotabla = new AdatTabla("LEIRO");
_leirotabinfo = new Tablainfo(leirotabla, -1, this, _leiroazonositok, fak, true);
_leirotabinfo.NaploTablainfo = _fak.NaploTablainfok[0];
_leirotabinfo.NaploTabla = _fak.NaploTablak[0];
_leirotabinfo.Init(false);
_tabinfo = new Tablainfo(dt, sorindex, this, _azonositok, _fak, false);
_tabinfo.NaploTablainfo = _fak.NaploTablainfok[0];
_tabinfo.LeiroTablainfo = _leirotabinfo;
_tabinfo.Init(false);
_tabinfo.LeiroVizsg();
_fak.Combokupdate(this);
}
else if (_azonositok.Tablanev != "" && !forditott)
{
fak.ProgressRefresh();
AdatTabla tartaltabla = new AdatTabla("TARTAL");
AdatTabla leirotabla = new AdatTabla("LEIRO");
_leirotabinfo = new Tablainfo(leirotabla, -1, this, _leiroazonositok, fak, true);
_leirotabinfo.NaploTablainfo = _fak.NaploTablainfok[0];
_leirotabinfo.NaploTabla = _fak.NaploTablak[0];
_leirotabinfo.Init(true);
_tabinfo = new Tablainfo(tartaltabla, -1, this, _azonositok, fak);
_tabinfo.LeiroTablainfo = _leirotabinfo;
_tabinfo.Init(true);
_tabinfo.LeiroVizsg();
if (!fak.BajVan)
{
for (int i = 0; i < tartaltabla.Rows.Count; i++)
{
fak.ProgressRefresh();
DataRow dr1 = tartaltabla.Rows[i];
owner = dr1["OWNER"].ToString();
bool kell = false;
if (fak.Alkalmazas == "TERVEZO" || owner == fak.AlkalmazasId || owner == fak.Alkalmazas)
kell = true;
else
{
char[] vesszo = new char[1];
vesszo[0] = Convert.ToChar(",");
string[] userek = dr1["USEREK"].ToString().Split(vesszo);
if (owner == "" && userek[0] == "")
kell = true;
else
{
for (int j = 0; j < userek.Length; j++)
{
if (userek[j] != "" && userek[j] == fak.Alkalmazas)
{
kell = true;
break;
}
//.........这里部分代码省略.........
示例3: OkUpdateUtan
/// <summary>
/// Tabla sikeres update-je utan vegrehajtando funkciok
/// </summary>
/// <param name="tablainfo"></param>
private void OkUpdateUtan(Tablainfo tablainfo)
{
string filter;
string sort = "";
string szint = "";
if (tablainfo.Tablanev != "VALTOZASNAPLO" && tablainfo.Tablanev != "USERLOG")
{
string adattablanev = "";
if (tablainfo.Leiroe)
adattablanev = tablainfo.TablaTag.Tablainfo.Tablanev;
ValtozasRogzit(tablainfo.NaploTablainfo, tablainfo.NaploTabla, tablainfo.Azon, tablainfo.Tablanev, adattablanev);
}
if (tablainfo.Tablanev == "VALTOZASNAPLO" || tablainfo.Tablanev == "USERLOG")
{
tablainfo.Adattabla.Rows.Clear();
tablainfo.Modositott = false;
tablainfo.Changed = false;
return;
}
tablainfo.Rogzitett = true;
Verzioinfok verinfo = null;
TablainfoTag tag = tablainfo.TablaTag;
bool leiroe = tablainfo.Leiroe;
if (!leiroe)
{
if (tablainfo.Tablanev.Contains("VERSION"))
{
szint = tablainfo.Szint;
string conn = tablainfo.Adattabla.Connection;
verinfo = _verzioinfok[szint];
int aktid = verinfo.AktVerzioId;
Versiontolt(szint, conn);
if (aktid != verinfo.AktVerzioId)
{
if (szint == "C")
Cegadatok(Aktintervallum);
else
Rendszeradatok(Aktintervallum, szint, verinfo.Delete);
verinfo.Delete = false;
}
}
}
tablainfo.Modositott = false;
tablainfo.Changed = false;
filter = tablainfo.DataView.RowFilter;
ForceAdattolt(tablainfo, true);
if (tablainfo.Tablanev == "BASE")
tablainfo.DataView.RowFilter = filter;
if (tablainfo.Osszefinfo != null)
tablainfo.Osszefinfo.InitKell = true;
bool torolt = true;
if (leiroe || tablainfo.Azon == "LEIR" || tablainfo.Tablanev == "BASE" || tablainfo.Tablanev == "TARTAL")
torolt = false;
else if (tablainfo.ParentTag.Tablainfo.ToroltTagok.Count == 0 || tablainfo.ParentTag.Tablainfo.ToroltTagok.IndexOf(tablainfo) == 0)
torolt = false;
if (!torolt)
{
if (tablainfo.Azon != "LEIR" && tablainfo.Tablanev != "BASE" && !leiroe)
Combokupdate(tag);
if (leiroe)
{
if (tablainfo.TablaTag.Tablainfo.Adatfajta != "K")
{
tablainfo.Beallit();
tablainfo.Combobeallit();
}
else
KodtablakFrissitese(tablainfo);
Tablainfo adattablainfo = tablainfo.TablaTag.Tablainfo;
if (adattablainfo.Tablanev == "TARTAL" || "RU".Contains(adattablainfo.Szint) || _aktualcegconn != "")
{
tablainfo.TablaTag.Tablainfo.Beallit();
tablainfo.TablaTag.Tablainfo.Combobeallit();
}
}
if (!leiroe)
{
if (tablainfo.Tablanev == "BASE")
{
TablainfoTag newtag = null;
TablainfoTag newtartaltag = null;
TartalomjegyzekbolTorol(tablainfo, false);
filter = tablainfo.DataView.RowFilter;
sort = tablainfo.DataView.Sort;
tablainfo.DataView.RowFilter = "";
tablainfo.DataView.Sort = "SORSZAM DESC";
DataRow dr = tablainfo.DataView[0].Row;
int rowindex = tablainfo.Adattabla.Rows.IndexOf(dr);
szint = dr["SZINT"].ToString();
string azon = dr["AZON"].ToString().Trim();
if (azon.Length < 4)
{
int beszursorrend = Convert.ToInt32(dr["SORREND"].ToString()) + 1;
DataRow newrow = tablainfo.Ujsor();
newrow["AZON"] = azon + "T";
newrow["PARENT"] = dr["SORSZAM"];
//.........这里部分代码省略.........