コード例 #1
0
        protected void btn_Pay_Click(object sender, EventArgs e)
        {
            DAL_Access_Supplier_Votech obj = new DAL_Access_Supplier_Votech();

            //insert into local DB
            obj.companyPaySupplier(tb_PaymentDate.Text, tb_ChequeNo.Text, Convert.ToInt32(tb_PaymentAmount.Text), tb_Payee.Text, tb_Memo.Text, Convert.ToInt32(tb_InvoiceNum.Text));
            Response.Write("<script>alert('Successfully Paid!');</script>");

            //insert into supplier DB
            obj.PaySupplier(tb_PaymentDate.Text, tb_ChequeNo.Text, Convert.ToInt32(tb_PaymentAmount.Text), tb_Payee.Text, tb_Memo.Text, Convert.ToInt32(tb_InvoiceNum.Text));
        }
コード例 #2
0
        public int PaySupplier(string PaymentDate, string ChequeNo, decimal PaymentAmount, string Payee, string Memo, int InvoiceNum)
        {
            DAL_Access_Supplier_Votech obj = new DAL_Access_Supplier_Votech();

            return(obj.PaySupplier(PaymentDate, ChequeNo, PaymentAmount, Payee, Memo, InvoiceNum));
        }