本文整理汇总了C#中bycar.DataAccess.GetSpareGroup方法的典型用法代码示例。如果您正苦于以下问题:C# DataAccess.GetSpareGroup方法的具体用法?C# DataAccess.GetSpareGroup怎么用?C# DataAccess.GetSpareGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bycar.DataAccess
的用法示例。
在下文中一共展示了DataAccess.GetSpareGroup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadItem
public void LoadItem(string name)
{
_groupName = name;
DataAccess da = new DataAccess();
spare_group b = da.GetSpareGroup(name);
edtName.Text = b.name;
edtDescr.Text = b.description;
}
示例2: OfferingAdd
private void OfferingAdd(int SpareID)
{
SpareInSpareIncomeView sisi = new SpareInSpareIncomeView();
if (Income.currency == null)
Income.currencyReference.Load();
sisi.num = offerings.Count + 1;
sisi.CurrencyID = Income.currency.id;
sisi.description = "";
sisi.Markup = 0;
sisi.PIn = 1;
sisi.PInBasic = 1;
sisi.POut = 1;
sisi.POutBasic = 1;
sisi.QIn = 1;
sisi.QRest = 1;
sisi.S = 1;
sisi.SBasic = 1;
DataAccess db = new DataAccess();
sisi.SpareID = SpareID;
SpareView sv = db.GetSpareView(SpareID);
sisi.SpareName = sv.name;
sisi.SpareCode = sv.code;
sisi.SpareCodeShatem = sv.codeShatem;
sisi.BrandName = sv.BrandName;
sisi.SpareIncomeID = Income.id;
sisi.VatRateName = "0%";
sisi.GroupName = db.GetSpareGroup(sv.GroupID).name;
sisi.ParentGroupName = db.GetSpareGroup(sv.spare_group1_id.Value).name;
offerings.Add(sisi);
}