Exemplo n.º 1
0
        public bool InsertInquire_Seller(InquireVO iVO)
        {
            string query = "InsertInquire_Seller";

            SqlParameter[] sqlp = { new SqlParameter("Inquire_type",  iVO.Inquire_type), new SqlParameter("Inquire_Id",   iVO.InquireID),
                                    new SqlParameter("Inquire_title", iVO.InquireTitle), new SqlParameter("Inquire_body", iVO.InquireBody),
                                    new SqlParameter("Inquire_image", iVO.InquireImage) };
            try
            {
                return(conn.SendExqueteQuery(query, sqlp));
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        private void btnInsertInquire_Click(object sender, EventArgs e)
        {
            InquireVO iVo = new InquireVO(this.cmbInquireType.Text, this.txtInquireTitle.Text, this.txtInquireBody.Text, imgPath, Form1.CompanyNo);

            iDao.InsertInquire_Seller(iVo);
        }