Beispiel #1
0
        public bool deleteExpHed(DsPSMS.ST_EXP_HEDRow dr, out string msg)
        {
            bool isOk = true;

            if (dr == null)
            {
                msg = "data is empty ";
                return(false);
            }
            try
            {
                Open();
                expDb.deleteExpHed(dr);
                msg = "Deleted";
            }
            catch
            {
                msg = "error has occure when delete data";
                return(false);
            }
            finally
            {
                Close();
            }

            return(isOk);
        }
Beispiel #2
0
        public bool SaveExpHedInfo(DsPSMS.ST_EXP_HEDRow dr, out string msg)
        {
            bool isOk = true;

            if (dr == null)
            {
                msg = "data is empty ";
                return(false);
            }
            try
            {
                Open();
                int result = expDb.insertExpanseHed(dr);
                msg = "Inserted";
            }
            catch
            {
                msg = "error occurs when inserting the expanse head data";
                return(false);
            }
            finally
            {
                Close();
            }

            return(isOk);
        }