public Y_011(String txid, String connectionString, String acc_no, Decimal amount, String initPvg, String refno, String loginAc) { try { if (amount <= 0) { dberr.setError(Mnemonics.DbErrorCodes.TXERR_NEGATIVE_TRANSFER); this.result = dberr.getErrorDesc(connectionString); this.error = true; } else { this.initPvg = Convert.ToInt32(initPvg); dberr = new Data.Dber(); this.TXID = txid; this.changeAmount = amount; seq = new Sequence(TXID); this.loginAcc = loginAc; if (processTransaction(connectionString, acc_no, this.initPvg, loginAc) != 0) { this.error = true; } } } catch(Exception e) { this.error = true; result = e.Message.ToString(); } }
public Y_030(String txid, String connectionString, String ac1, String ac2, Decimal amount, String loginAc) { try { //this.error = "N"; dberr = new Data.Dber(); this.TXID = txid; // seq will generate and store transaction reference no. seq = new Sequence(TXID); this.changeAmount = amount; //processTransaction(connectionString, ac1, ac2, amount); /*if (!ac1.Equals(loginAc)) { newInitiator = true; }*/ if (processTransaction(connectionString, ac1, ac2, amount, loginAc) != 0) { this.error = true; } } catch(Exception e) { this.result = e.ToString(); this.error = true; } }
public Y_010(String txid, String connectionString, String acc_no) { try { this.TXID = txid; dberr = new Data.Dber(); // change to Data.Dber processTransaction(connectionString, acc_no, dberr); // seq will generate and store transaction reference no. seq = new Sequence(TXID); } catch(Exception e) { error = e.ToString(); } }
public Y_022(String txid, String connectionString, String acc_no, Decimal amount, String initPvg, String refno, String loginAc) { this.dberr = new Data.Dber(); try { if (amount <= 0) { dberr.setError(Mnemonics.DbErrorCodes.TXERR_NEGATIVE_TRANSFER); this.result = dberr.getErrorDesc(connectionString); this.error = true; } else { this.initPvg = Convert.ToInt32(initPvg); this.TXID = txid; this.changeAmount = amount; seq = new Sequence(TXID); this.loginAcc = loginAc; /*if (!acc_no.Equals(loginAc)) { newInitiator = true; }*/ if (processTransaction(connectionString, acc_no, this.initPvg, loginAc) != 0) { this.error = true; } //pvg = new Privilege(); // seq will generate and store transaction reference no. } } catch(Exception e) { this.error = true; result = e.ToString(); } }