本文整理汇总了C#中EFDal.IstekTablosundanPaketNoIdDon方法的典型用法代码示例。如果您正苦于以下问题:C# EFDal.IstekTablosundanPaketNoIdDon方法的具体用法?C# EFDal.IstekTablosundanPaketNoIdDon怎么用?C# EFDal.IstekTablosundanPaketNoIdDon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFDal
的用法示例。
在下文中一共展示了EFDal.IstekTablosundanPaketNoIdDon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetIDPaketKapsamindakiler
protected string GetIDPaketKapsamindakiler()
{
EFDal ed = new EFDal();
string strID = "";
string key = "";
foreach (Telerik.Web.UI.GridDataItem dataItem in rdgvIstektenAramaSonuclari.MasterTableView.Items)
{
key = dataItem.GetDataKeyValue("ISTID").ToString();
if (dataItem.Selected == true)
{
if (ed.IstekTablosundanPaketNoIdDon(int.Parse(key)) > 0)
{
strID += ","+ dataItem.GetDataKeyValue("ISTID").ToString();
}
}
}
if (strID.Length > 0)
{
strID = strID.Remove(0, 1);
}
else
{
strID = "";
}
return strID;
//throw new ArgumentNullException("Id Not found");
}
示例2: GetID
//PaketKapsaminda olmayanları dönecek
private string GetID()
{
using (Service1Client proxy = new Service1Client())
{
string key = "";
string strID = "";
EFDal ed = new EFDal();
int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
string arrVirgulleAyrilmiIstIdler = proxy.OnaylananFaturaNoIcerigiIstIdleriniDon((short)BolgeKodu, lblFaturaNo.Text);
string[] IstIdler = arrVirgulleAyrilmiIstIdler.Split(',');
foreach (var item in IstIdler)
{
//key = item;
if (ed.IstekTablosundanPaketNoIdDon(int.Parse(item)) <= 0)
{
strID += "," + item;
}
}
if (strID.Length > 0)
{
strID = strID.Remove(0, 1);
}
else
{
strID = "";
}
return strID;
}
//EFDal ed = new EFDal();
//string strID = "";
//string key = "";
//foreach (Telerik.Web.UI.GridDataItem dataItem in grdFaturaIcerigi.MasterTableView.Items)
//{
// key = dataItem["ISTID"].Text;
// if (ed.IstekTablosundanPaketNoIdDon(int.Parse(key)) <= 0)
// {
// strID += "," + dataItem["ISTID"].Text;
// }
//}
//if (strID.Length > 0)
//{
// strID = strID.Remove(0, 1);
//}
//else
//{
// strID = "";
//}
//return strID;
}