/// <summary> /// This method is used to save Netbanking payment details. /// </summary> /// <param name="Info"></param> public static void SavePaymnetNet(PaymentModeNetInfo Info) { try { clsParameterCollection ParameterCollection = new clsParameterCollection(); ParameterCollection.ProcedureName = "BS_Sales_PaymentModeNetBanking"; ParameterCollection.Add(new clsParameter("@AccountHolderName", Info.AccountHolderName)); ParameterCollection.Add(new clsParameter("@BankName", Info.BankName)); ParameterCollection.Add(new clsParameter("@TransactionAmount", Info.Amount)); ParameterCollection.Add(new clsParameter("@UTRcode", Info.UTRCode)); ParameterCollection.Add(new clsParameter("@STID", Info.STID)); DataAccess.ExecuteNonQuerySp(ParameterCollection); } catch (Exception Ex) { if (!Ex.Message.Contains("User Define:")) BL_Exception.WriteLog(Ex); throw Ex; } }
/// <summary> /// This method is used to save sold vouchers dertails nand Netbanking cheque payement details. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSaveNet_Click(object sender, EventArgs e) { try { //SaveCustomerInfo(); string STID = SaveVouchers(); PaymentModeNetInfo NetInfo = new PaymentModeNetInfo(); NetInfo.AccountHolderName = txtAccountHolder.Text; NetInfo.BankName = drpNetbank.SelectedValue; NetInfo.Amount = int.Parse(txtTransactionAmount.Text); NetInfo.UTRCode = txtUTR.Text; NetInfo.STID = STID; BL_Sales.SavePaymnetNet(NetInfo); SalesParentObj.BindGrid(); } catch (Exception EX) { } }