You are on page 1of 1

if (BillItemDgv.Rows[BillItemDgv.CurrentCell.RowIndex].Cells["ItemId"].Value !

=
null)
{
this.ItemObj.Reset();
this.ItemObj.Id =
BillItemDgv.Rows[BillItemDgv.CurrentCell.RowIndex].Cells["ItemId"].Value;
var ItemInfo = ItemObj.GetData(4);

if (ItemInfo != null && ItemInfo.Rows.Count == 1 &&


ItemInfo.Rows[0]["HasExpDate"] != DBNull.Value)
{
var HasExpDate = Convert.ToBoolean(ItemInfo.Rows[0]
["HasExpDate"]);
if (HasExpDate && ExpDateTxt != null)
;
}
}

//update TreeTbl set Kind=0 where Id in(select Distinct ParentId from TreeTbl)

You might also like