public Push( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Push; m_loadBalancer = new LoadBalancer(); }
public Pull( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Pull; m_fairQueueing = new FairQueueing(); }
/// <summary> /// Create a new Req (Request) socket with the given parent Ctx, thread and socket id. /// </summary> /// <param name="parent">the Ctx to contain this socket</param> /// <param name="threadId">an integer thread-id for this socket to execute on</param> /// <param name="socketId">the socket-id for this socket</param> public Req( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_receivingReply = false; m_messageBegins = true; m_options.SocketType = ZmqSocketType.Req; }
public Rep( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_sendingReply = false; m_requestBegins = true; m_options.SocketType = ZmqSocketType.Rep; }
public Sub( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Sub; // Switch filtering messages on (as opposed to XSUB which where the filtering is off). m_options.Filter = true; }
/// <summary> /// Create a new Dealer socket that holds the prefetched message. /// </summary> public Dealer( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_prefetched = false; m_options.SocketType = ZmqSocketType.Dealer; m_fairQueueing = new FairQueueing(); m_loadBalancer = new LoadBalancer(); m_options.RecvIdentity = true; m_prefetchedMsg = new Msg(); m_prefetchedMsg.InitEmpty(); }
public MLineDimension(Ctx ctx, int GL_LineDimension_ID, Trx trxName) : base(ctx, GL_LineDimension_ID, trxName) { }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_C_SubAcct(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="dr">datarow</param> /// <param name="trxName">transaction</param> public MLocation(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="dr">data row</param> /// <param name="trxName">transaction</param> public MCommissionAmt(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_S_ResourceUnAvailable(Ctx ctx, IDataReader dr, Trx trxName) : base(ctx, dr, trxName) { }
/** Generate Payment for Single Cheque */ public string GenratePaymentHdr(Ctx ctx, int Record_Id, int paymentDocumentTypeId, Trx trxName) { StringBuilder _sql = new StringBuilder(); MVA027PostDatedCheck _pdc = new MVA027PostDatedCheck(ctx, Record_Id, trxName); ViennaAdvantage.Model.MPayment _payment = new ViennaAdvantage.Model.MPayment(ctx, 0, trxName); _payment.SetAD_Client_ID(_pdc.GetAD_Client_ID()); _payment.SetAD_Org_ID(_pdc.GetAD_Org_ID()); if (c_BankAccount_ID == 0) { _payment.SetC_BankAccount_ID(_pdc.GetC_BankAccount_ID()); } else { _payment.SetC_BankAccount_ID(c_BankAccount_ID); } _payment.SetDateTrx(_sysDate); // Set Today date in transaction Date. _payment.SetDateAcct(_pdc.GetVA027_CheckDate()); // In Case of Discounting PDC set Today date in Account Date. // _pdc.GetVA027_CheckDate() if (_pdc.IsVA027_DiscountingPDC()) { _payment.SetVA027_DiscountingPDC(true); } _payment.SetDescription(_pdc.GetVA027_Description()); if (_pdc.GetC_BPartner_ID() > 0) { _payment.SetC_BPartner_ID(_pdc.GetC_BPartner_ID()); _payment.SetC_BPartner_Location_ID(_pdc.GetC_BPartner_Location_ID()); } _payment.SetIsPrepayment(_pdc.IsVA027_IsPrepayment()); if (_pdc.GetC_Invoice_ID() > 0) { _payment.SetC_Invoice_ID(_pdc.GetC_Invoice_ID()); } if (_pdc.GetC_InvoicePaySchedule_ID() > 0) { _payment.SetC_InvoicePaySchedule_ID(_pdc.GetC_InvoicePaySchedule_ID()); } if (_pdc.GetC_Order_ID() > 0) { _payment.SetC_Order_ID(_pdc.GetC_Order_ID()); } if (_pdc.GetVA009_OrderPaySchedule_ID() > 0) { _payment.SetVA009_OrderPaySchedule_ID(_pdc.GetVA009_OrderPaySchedule_ID()); } if (_pdc.GetC_Charge_ID() > 0) { _payment.SetC_Charge_ID(_pdc.GetC_Charge_ID()); } if (_pdc.GetVA027_Payee() != null) { _payment.SetDescription(_pdc.GetVA027_Payee()); } _payment.SetC_Tax_ID(_pdc.GetC_Tax_ID()); _payment.SetTaxAmount(Math.Round(_pdc.GetTaxAmount(), 2)); _payment.SetPayAmt(Math.Round(_pdc.GetVA027_PayAmt(), 2)); _payment.SetC_Currency_ID(_pdc.GetC_Currency_ID()); _payment.SetDiscountAmt(Math.Round(_pdc.GetVA027_DiscountAmt(), 2)); _payment.SetWriteOffAmt(Math.Round(_pdc.GetVA027_WriteoffAmt(), 2)); _payment.SetVA009_PaymentMethod_ID(_pdc.GetVA009_PaymentMethod_ID()); _payment.SetCheckNo(_pdc.GetVA027_CheckNo()); _payment.SetCheckDate(_pdc.GetVA027_CheckDate()); _payment.SetValidMonths(_pdc.GetVA027_ValidMonth()); _payment.SetMicr(_pdc.GetVA027_MICR()); _payment.SetAccountNo(_pdc.GetVA027_AccountNo()); _payment.SetA_Name(_pdc.GetVA027_AccountName()); _payment.SetPDCType(_pdc.GetPDCType()); //_sql.Append("select docbasetype,c_doctype_id from C_doctype where c_doctype_id=" + _pdc.GetC_DocType_ID()); //_docBaseType = Util.GetValueOfString(DB.ExecuteScalar(_sql.ToString())); _sql.Clear(); //if (_docBaseType == "PDR") //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='ARR' AND IsActive='Y' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _docuType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString())); // _payment.SetC_DocType_ID(_docuType); // _sql.Clear(); //} //else //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='APP' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _documentType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString(), null, trxName)); // _payment.SetC_DocType_ID(_documentType); //} _payment.SetC_DocType_ID(paymentDocumentTypeId); _exeStatus = _payment.GetVA009_ExecutionStatus(); _payment.SetVA009_ExecutionStatus(_exeStatus = "I"); if (_payment.Save(trxName)) { _status = null; _status = _payment.CompleteIt(); } else { return("F"); } if (_status == "CO") { _payment.SetDocStatus("CO"); _pdc.SetVA027_PaymentStatus("1"); _payment.Set_Value("VA027_PostDatedCheck_ID", _pdc.GetVA027_PostDatedCheck_ID()); _payment.Save(trxName); } _pdc.SetC_Payment_ID(_payment.GetC_Payment_ID()); _pdc.SetVA027_PaymentGenerated(true); _pdc.SetVA027_GeneratePayment("Y"); if (!_pdc.Save(trxName)) { return("E"); } else { return("Success"); } }
public Pub(Ctx parent, int tid, int sid) : base(parent, tid, sid) { m_options.SocketType = ZmqSocketType.Pub; }
} // MSess /// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="rs">result set</param> /// <param name="trxName">transaction</param> public MSession(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { } // MSession
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_M_Cost(Ctx ctx, IDataReader dr, Trx trxName) : base(ctx, dr, trxName) { }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_M_Cost(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="dr">data row</param> /// <param name="trxName">transaction</param> public MWarehouse(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { }
public MLocator(Ctx ctx, IDataReader dr, Trx trxName) : base(ctx, dr, trxName) { }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="rs">result set</param> /// <param name="trxName">transaction</param> public MLocator(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }
public Pair( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Pair; }
public XSub( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Xsub; m_hasMessage = false; m_more = false; m_options.Linger = 0; m_fairQueueing = new FairQueueing(); m_distribution = new Distribution(); m_subscriptions = new Trie(); m_message = new Msg(); m_message.InitEmpty(); }
public override Mutator MutatorForDefaultValue() { return(new BoolMutator(this, Ctx.MkBool(default(bool)))); }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx"></param> /// <param name="idr"></param> /// <param name="trxName"></param> public MRequestProcessor(Ctx ctx, IDataReader idr, Trx trxName) : base(ctx, idr, trxName) { }
public override Mutator MutatorForDefaultValue() { return(new IntMutator(this, Ctx.MkBV(0, Sort.Size))); }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_S_ResourceUnAvailable(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }
public override Mutator MutatorForDefaultValue() { return(new BigIntMutator(this, Ctx.MkInt(0))); }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="dr">result set</param> /// <param name="trxName">transaction</param> public MLandedCost(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { }
public DocActionModel(Ctx ctx) { this.ctx = ctx; }
public AttachmentInfo CreateAttachmentEntries(List <AttFileInfo> _files, int AD_Attachment_ID, string folderKey, Ctx ctx, int AD_Table_ID, int Record_ID, string fileLocation, int newRecord_ID, bool IsDMSAttachment) { AttachmentInfo info = new AttachmentInfo(); MAttachment att = null; if (newRecord_ID > 0) //This is to copy old reocrd's attachment in new record. will work only in case of DMS.. { att = new MAttachment(ctx, 0, null); att.SetRecord_ID(newRecord_ID); } else { att = new MAttachment(ctx, AD_Attachment_ID, null); att.SetRecord_ID(Record_ID); } if (IsDMSAttachment && newRecord_ID == 0 && AD_Attachment_ID > 0) { DB.ExecuteQuery("DELETE FROM AD_AttachmentLine WHERE AD_Attachment_ID=" + AD_Attachment_ID, null, null); } att.SetAD_Table_ID(AD_Table_ID); att.SetAttFileInfo(_files); att.FolderKey = folderKey; att.SetFileLocation(fileLocation); att.SetIsFromHTML(true); att.Save(); info.AD_attachment_ID = att.GetAD_Attachment_ID(); info.Error = att.Error; return(info); }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_AD_OrgInfo(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }
/** Load Meta Data * @param ctx context * @return PO Info */ protected override POInfo InitPO(Ctx ctx) { POInfo poi = POInfo.GetPOInfo(ctx, Table_ID); return(poi); }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_AD_OrgInfo(Ctx ctx, IDataReader dr, Trx trxName) : base(ctx, dr, trxName) { }
/** Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public X_C_SubAcct(Ctx ctx, IDataReader dr, Trx trxName) : base(ctx, dr, trxName) { }
/// <summary> /// Standard Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="AD_WorkflowProcessor_ID">id</param> /// <param name="trxName">transaction</param> public MWorkflowProcessor(Ctx ctx, int AD_WorkflowProcessor_ID, Trx trxName) : base(ctx, AD_WorkflowProcessor_ID, trxName) { }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="dr">result set</param> /// <param name="trxName">transaction</param> public MWorkflowProcessor(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { }
public Stream( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_prefetched = false; m_identitySent = false; m_currentOut = null; m_moreOut = false; m_nextPeerId = s_random.Next(); m_options.SocketType = ZmqSocketType.Stream; m_fairQueueing = new FairQueueing(); m_prefetchedId = new Msg(); m_prefetchedId.InitEmpty(); m_prefetchedMsg = new Msg(); m_prefetchedMsg.InitEmpty(); m_outpipes = new Dictionary<byte[], Outpipe>(new ByteArrayEqualityComparer()); m_options.RawSocket = true; }
public XPub( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_options.SocketType = ZmqSocketType.Xpub; m_welcomeMessage = new Msg(); m_welcomeMessage.InitEmpty(); m_subscriptions = new MultiTrie(); m_distribution = new Distribution(); m_pendingMessages = new Queue<KeyValuePair<Msg, Pipe>>(); }
/// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="rs">result set</param> /// <param name="trxName">transaction</param> public MWFProcess(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { _state = new StateEngine(GetWFState()); _state.SetCtx(GetCtx()); }
/// <summary> /// Create a new Router instance with the given parent-Ctx, thread-id, and socket-id. /// </summary> /// <param name="parent">the Ctx that will contain this Router</param> /// <param name="threadId">the integer thread-id value</param> /// <param name="socketId">the integer socket-id value</param> public Router( Ctx parent, int threadId, int socketId) : base(parent, threadId, socketId) { m_nextPeerId = s_random.Next(); m_options.SocketType = ZmqSocketType.Router; m_fairQueueing = new FairQueueing(); m_prefetchedId = new Msg(); m_prefetchedId.InitEmpty(); m_prefetchedMsg = new Msg(); m_prefetchedMsg.InitEmpty(); m_anonymousPipes = new HashSet<Pipe>(); m_outpipes = new Dictionary<byte[], Outpipe>(new ByteArrayEqualityComparer()); m_options.RecvIdentity = true; }
/** Generate Payment for Multi Cheque Details */ public string GenratePaymentLine(Ctx ctx, int Record_Id, int paymentDocumentTypeId, Trx trxName) { StringBuilder _sql = new StringBuilder(); MVA027PostDatedCheck _pdc = new MVA027PostDatedCheck(ctx, Record_Id, trxName); String sql = "SELECT * FROM VA027_ChequeDetails WHERE VA027_PostDatedCheck_ID=" + Record_Id; DataSet _ds = new DataSet(); ViennaAdvantage.Model.MPayment _payment = null; _ds = DB.ExecuteDataset(sql.ToString(), null, trxName); int _count = _ds.Tables[0].Rows.Count; if (_ds != null && _ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < _ds.Tables[0].Rows.Count; i++) { MVA027ChequeDetails cd = new MVA027ChequeDetails(GetCtx(), Util.GetValueOfInt(_ds.Tables[0].Rows[i]["VA027_ChequeDetails_ID"]), Get_Trx()); if (cd.IsVA027_DiscountingPDC()) { if (Util.GetValueOfInt(_ds.Tables[0].Rows[i]["C_Payment_ID"]) == 0) { _sql.Clear(); _payment = new ViennaAdvantage.Model.MPayment(ctx, 0, trxName); _payment.SetAD_Client_ID(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["AD_Client_ID"])); _payment.SetAD_Org_ID(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["AD_Org_ID"])); if (c_BankAccount_ID == 0) { _payment.SetC_BankAccount_ID(_pdc.GetC_BankAccount_ID()); } else { _payment.SetC_BankAccount_ID(c_BankAccount_ID); } _payment.SetDateTrx(_sysDate); _payment.SetDateAcct(cd.GetVA027_CheckDate()); _payment.SetDescription(_pdc.GetVA027_Description()); _payment.SetIsPrepayment(_pdc.IsVA027_IsPrepayment()); if (_pdc.GetC_Charge_ID() > 0) { _payment.SetC_Charge_ID(_pdc.GetC_Charge_ID()); } _payment.SetVA027_DiscountingPDC(true); if (_pdc.GetVA027_Payee() != null) { _payment.SetDescription(_pdc.GetVA027_Payee()); } //added by arpit if (_pdc.GetC_BPartner_ID() > 0) { _payment.SetC_BPartner_ID(_pdc.GetC_BPartner_ID()); if (_pdc.GetC_BPartner_Location_ID() > 0) { _payment.SetC_BPartner_Location_ID(_pdc.GetC_BPartner_Location_ID()); } } //end here _payment.SetC_Tax_ID(_pdc.GetC_Tax_ID()); _payment.SetPayAmt(Math.Round(Util.GetValueOfDecimal(_ds.Tables[0].Rows[i]["VA027_ChequeAmount"]), 2)); _payment.SetC_Currency_ID(_pdc.GetC_Currency_ID()); _payment.SetDiscountAmt(Math.Round(_pdc.GetVA027_DiscountAmt(), 2)); _payment.SetWriteOffAmt(Math.Round(_pdc.GetVA027_WriteoffAmt(), 2)); _payment.SetVA009_PaymentMethod_ID(_pdc.GetVA009_PaymentMethod_ID()); _payment.SetCheckNo(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_CheckNo"])); _payment.SetCheckDate(Util.GetValueOfDateTime(_ds.Tables[0].Rows[i]["VA027_CheckDate"])); _payment.SetValidMonths(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["VA027_ValidMonth"])); _payment.SetMicr(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_MICR"])); _payment.SetAccountNo(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_AccountNo"])); _payment.SetA_Name(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_AccountName"])); _payment.SetPDCType(_pdc.GetPDCType()); //_sql.Append("select docbasetype,c_doctype_id from C_doctype where c_doctype_id=" + _pdc.GetC_DocType_ID()); //_docBaseType = Util.GetValueOfString(DB.ExecuteScalar(_sql.ToString())); _sql.Clear(); //if (_docBaseType == "PDR") //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='ARR' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _docuType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString())); // _payment.SetC_DocType_ID(_docuType); // _sql.Clear(); //} //else //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='APP' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _documentType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString(), null, trxName)); // _payment.SetC_DocType_ID(_documentType); // _sql.Clear(); //} _payment.SetC_DocType_ID(paymentDocumentTypeId); _exeStatus = _payment.GetVA009_ExecutionStatus(); _payment.SetVA009_ExecutionStatus(_exeStatus = "I"); if (_payment.Save(trxName)) { _status = null; _status = _payment.CompleteIt(); } else { return("F"); } if (_status == "CO") { _payment.SetDocStatus("CO"); _payment.Set_Value("VA027_PostDatedCheck_ID", _pdc.GetVA027_PostDatedCheck_ID()); if (_payment.Save(trxName)) { cqd = new MVA027ChequeDetails(ctx, Util.GetValueOfInt(_ds.Tables[0].Rows[i]["VA027_ChequeDetails_ID"]), trxName); cqd.SetC_Payment_ID(_payment.GetC_Payment_ID()); cqd.SetVA027_PaymentStatus("1"); if (cqd.Save(trxName)) { } } } } } else { if (Convert.ToDateTime(_ds.Tables[0].Rows[i]["VA027_CheckDate"]) <= _sysDate) { if (Util.GetValueOfInt(_ds.Tables[0].Rows[i]["C_Payment_ID"]) == 0) { _sql.Clear(); _payment = new ViennaAdvantage.Model.MPayment(ctx, 0, trxName); _payment.SetAD_Client_ID(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["AD_Client_ID"])); _payment.SetAD_Org_ID(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["AD_Org_ID"])); if (c_BankAccount_ID == 0) { _payment.SetC_BankAccount_ID(_pdc.GetC_BankAccount_ID()); } else { _payment.SetC_BankAccount_ID(c_BankAccount_ID); } _payment.SetDateTrx(_sysDate); _payment.SetDateAcct(cd.GetVA027_CheckDate()); _payment.SetDescription(_pdc.GetVA027_Description()); _payment.SetIsPrepayment(_pdc.IsVA027_IsPrepayment()); if (_pdc.GetC_Charge_ID() > 0) { _payment.SetC_Charge_ID(_pdc.GetC_Charge_ID()); } if (_pdc.GetVA027_Payee() != null) { _payment.SetDescription(_pdc.GetVA027_Payee()); } //added by arpit if (_pdc.GetC_BPartner_ID() > 0) { _payment.SetC_BPartner_ID(_pdc.GetC_BPartner_ID()); if (_pdc.GetC_BPartner_Location_ID() > 0) { _payment.SetC_BPartner_Location_ID(_pdc.GetC_BPartner_Location_ID()); } } //end here _payment.SetC_Tax_ID(_pdc.GetC_Tax_ID()); _payment.SetPayAmt(Math.Round(Util.GetValueOfDecimal(_ds.Tables[0].Rows[i]["VA027_ChequeAmount"]), 2)); _payment.SetC_Currency_ID(_pdc.GetC_Currency_ID()); _payment.SetDiscountAmt(Math.Round(_pdc.GetVA027_DiscountAmt(), 2)); _payment.SetWriteOffAmt(Math.Round(_pdc.GetVA027_WriteoffAmt(), 2)); _payment.SetVA009_PaymentMethod_ID(_pdc.GetVA009_PaymentMethod_ID()); _payment.SetCheckNo(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_CheckNo"])); _payment.SetCheckDate(Util.GetValueOfDateTime(_ds.Tables[0].Rows[i]["VA027_CheckDate"])); _payment.SetValidMonths(Util.GetValueOfInt(_ds.Tables[0].Rows[i]["VA027_ValidMonth"])); _payment.SetMicr(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_MICR"])); _payment.SetAccountNo(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_AccountNo"])); _payment.SetA_Name(Util.GetValueOfString(_ds.Tables[0].Rows[i]["VA027_AccountName"])); _payment.SetPDCType(_pdc.GetPDCType()); //_sql.Append("select docbasetype,c_doctype_id from C_doctype where c_doctype_id=" + _pdc.GetC_DocType_ID()); //_docBaseType = Util.GetValueOfString(DB.ExecuteScalar(_sql.ToString())); _sql.Clear(); //if (_docBaseType == "PDR") //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='ARR' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _docuType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString())); // _payment.SetC_DocType_ID(_docuType); // _sql.Clear(); //} //else //{ // _sql.Append("SELECT C_DocType_ID FROM C_DocType WHERE DocBaseType='APP' AND AD_Client_ID=" + ctx.GetAD_Client_ID()); // int _documentType = Util.GetValueOfInt(DB.ExecuteScalar(_sql.ToString(), null, trxName)); // _payment.SetC_DocType_ID(_documentType); // _sql.Clear(); //} _payment.SetC_DocType_ID(paymentDocumentTypeId); _exeStatus = _payment.GetVA009_ExecutionStatus(); _payment.SetVA009_ExecutionStatus(_exeStatus = "I"); if (_payment.Save(trxName)) { _status = null; _status = _payment.CompleteIt(); } else { return("F"); } if (_status == "CO") { _payment.SetDocStatus("CO"); _payment.Set_Value("VA027_PostDatedCheck_ID", _pdc.GetVA027_PostDatedCheck_ID()); if (_payment.Save(trxName)) { cqd = new MVA027ChequeDetails(ctx, Util.GetValueOfInt(_ds.Tables[0].Rows[i]["VA027_ChequeDetails_ID"]), trxName); cqd.SetC_Payment_ID(_payment.GetC_Payment_ID()); cqd.SetVA027_PaymentStatus("1"); if (cqd.Save(trxName)) { } } } } else { return("E"); } } else { return("F"); } } } } if (Util.GetValueOfInt(DB.ExecuteScalar("SELECT Count(VA027_ChequeDetails_ID) From VA027_ChequeDetails Where VA027_PostDatedCheck_ID=" + Record_Id + " AND VA027_PaymentStatus='1'", null, trxName)) == _count) { _pdc.SetVA027_PaymentStatus("1"); _pdc.SetVA027_PaymentGenerated(true); _pdc.SetVA027_GeneratePayment("Y"); if (!_pdc.Save(trxName)) { return("E"); } } return("Success"); }
} // get /// <summary> /// Load Constructor /// </summary> /// <param name="ctx">context</param> /// <param name="rs"></param> /// <param name="trxName">transaction</param> public MTreeNodeCMT(Ctx ctx, DataRow dr, Trx trxName) : base(ctx, dr, trxName) { //super(ctx, rs, trxName); } // MTreeNodeCMS
/** * Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public MProductCategory(Ctx ctx, DataRow rs, Trx trxName) : base(ctx, rs, trxName) { }