public void CreateNewVoucher(int newItemId, string itemDescr) { clsVItems.open(newItemId); clsVoucher.open(0); clsVoucher.CreateNewRow(); clsVoucher.TrxDate = dtDefault; clsVoucher.VoucherItemID = newItemId; clsVoucher.Amount = clsVItems.DefaultAmount; clsVoucher.Infants = clsHH.Infants; clsVoucher.Youth = clsHH.Youth; clsVoucher.Teens = clsHH.Teens; clsVoucher.Eighteen = clsHH.Eighteens; clsVoucher.Adults = clsHH.Adults; clsVoucher.Seniors = clsHH.Seniors; clsVoucher.TotalFamily = clsHH.TotalFamily; clsVoucher.HouseholdID = curHHID; clsVoucher.Homeless = clsHH.Homeless; clsVoucher.Disabled = clsHH.Disabled; clsVoucher.Zipcode = clsHH.Zipcode; clsVoucher.InCityLimits = clsHH.InCityLimits; clsVoucher.Created = DateTime.Now; clsVoucher.CreatedBy = CCFBGlobal.dbUserName; clsVoucher.ClientType = clsHH.ClientType; clsVoucher.SpecialDiet = clsHH.SpecialDiet; fillEditFields(itemDescr); }
public void CreateNewVoucher() { clsVoucher.open(0); clsVoucher.CreateNewRow(); clsVoucher.Infants = clsHH.Infants; clsVoucher.Youth = clsHH.Youth; clsVoucher.Teens = clsHH.Teens; clsVoucher.Eighteen = clsHH.Eighteens; clsVoucher.Adults = clsHH.Adults; clsVoucher.Seniors = clsHH.Seniors; clsVoucher.TotalFamily = clsHH.TotalFamily; clsVoucher.HouseholdID = curHHID; clsVoucher.Homeless = clsHH.Homeless; clsVoucher.Disabled = clsHH.Disabled; clsVoucher.Zipcode = clsHH.Zipcode; clsVoucher.InCityLimits = clsHH.InCityLimits; clsVoucher.Created = DateTime.Now; clsVoucher.CreatedBy = CCFBGlobal.dbUserName; clsVoucher.ClientType = clsHH.ClientType; fillEditFields(); }