private void ExecuteSave() { DepositSlipLineViewModel deposit = new DepositSlipLineViewModel(); string jsondata = JsonConvert.SerializeObject(Entity); System.IO.File.WriteAllText($@"{OfflinePath}\{Entity.DepositVoucherNo}.abs", jsondata); }
private void CreateNewDepositVoucher() { Entity = new DepositSlipLineViewModel(); Entity.Date = DateTime.Today; //Entity.DepositVoucherNo = "123456"; for (int i = 0; i < 6; i++) { Entity.Lines.Add(new ChequeDepositVoucherLine() { Currency = "AED" }); } }