Esempio n. 1
0
        public returnGetBusRole GetBusRole(int ID)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IBusRole.IBusRole obj = new RBSR_AUFW.DB.IBusRole.IBusRole(dbconn);
            return(obj.GetBusRole(ID));
        }
Esempio n. 2
0
        public int NewBusRole(string Name, string Description, int SubProcessID)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IBusRole.IBusRole obj = new RBSR_AUFW.DB.IBusRole.IBusRole(dbconn);
            return(obj.NewBusRole(Name, Description, SubProcessID));
        }
Esempio n. 3
0
        public returnListBusRoleBySubProcess[] ListBusRoleBySubProcess(int?maxRowsToReturn, string extendedCriteria, string[] extendedParameters, string extendedSortOrder, int SubProcessID)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IBusRole.IBusRole obj = new RBSR_AUFW.DB.IBusRole.IBusRole(dbconn);
            return(obj.ListBusRoleBySubProcess(maxRowsToReturn, extendedCriteria, extendedParameters, extendedSortOrder, SubProcessID));
        }
Esempio n. 4
0
        public int SetBusRole(int ID, string Name, string Description, int SubProcessID, string Abbrev)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IBusRole.IBusRole obj = new RBSR_AUFW.DB.IBusRole.IBusRole(dbconn);
            return(obj.SetBusRole(ID, Name, Description, SubProcessID, Abbrev));
        }
Esempio n. 5
0
        protected void AssignTemporaryDirectory(RBSR_AUFW.DB.IBusRole.IBusRole obj)
        {
            string wsAppData = HttpContext.Current.Server.MapPath(".") + "\\App_Data";

            if (!Directory.Exists(wsAppData))
            {
                Directory.CreateDirectory(wsAppData);
            }
            obj.TempDir = wsAppData;
        }