public bool AddFailRecord(int fail, String reporter, String description, String PO, String model, String material, String line, int equip)
        {
            try
            {
                SP_Processing.MySqlConn msqlcon = new SP_Processing.MySqlConn("vnmsrv601_PTR");
                int i = msqlcon.ExecSProc("[amevn_InsertFailRecord]", failure, reporter, description, PO, model, material, line, equip);

                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }
        public bool Add( )
        {
            bool result = false;

            SP_Processing.MySqlConn msqlcon = new SP_Processing.MySqlConn("vnmsrv601_PTR");
            string a = msqlcon.ExecSProcDS("[amevn_InsertFailRecord]", failure, reporter, description, PO, model, material, line, equip).Tables[0].Rows[0][0].ToString();

            if (a == "OK")
            {
                return(true);
            }
            else
            {
                return(false);
            }

            //DBaction db = new DBaction();
            //result = AddFailRecord(this.failure, this.reporter, this.description, this.PO, this.model, this.material, this.line, this.equip);
            //db.Close();
            return(result);
        }