Exemple #1
0
        public string GetNameForCode(String MachineCode)
        {
            try
            {
                SqlParameter[] paramList = new SqlParameter[] {
                    new SqlParameter("@MachineCode", MachineCode)
                };

                return(Execute.RunSP_String(Connection, "SPGET_Machine_NameForCode", paramList));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
        }
Exemple #2
0
        public string GetNameByID(long ActID)
        {
            try
            {
                SqlParameter[] paramList = new SqlParameter[] {
                    new SqlParameter("@MainActID", ActID)
                };


                return(Execute.RunSP_String(Connection, "SPGET_MainActivityNameByID", paramList));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex);
            }
        }