Ejemplo n.º 1
0
        public static DataTable getScreenList(String system, string prog)
        {
            try
            {
                SAPINT.Utils.ReadTable screenlist = new Utils.ReadTable(system);
                screenlist.TableName = "D020S";
                screenlist.AddField("PROG");
                screenlist.AddField("DNUM");
                // screenlist.AddField("DTXT");
                screenlist.AddCriteria(string.Format("PROG = '{0}'", prog));
                // screenlist.AddCriteria(string.Format("AND LANG = {0}", 1));
                screenlist.Run();

                return(screenlist.Result);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
        public static DataTable getScreenList(String system, string prog)
        {
            try
            {
                SAPINT.Utils.ReadTable screenlist = new Utils.ReadTable(system);
                screenlist.TableName = "D020S";
                screenlist.AddField("PROG");
                screenlist.AddField("DNUM");
                // screenlist.AddField("DTXT");
                screenlist.AddCriteria(string.Format("PROG = '{0}'", prog));
                // screenlist.AddCriteria(string.Format("AND LANG = {0}", 1));
                screenlist.Run();

                return screenlist.Result;
            }
            catch (Exception)
            {

                throw;
            }
        }