public static Int32 DeleteGroup(Int32 groupId)
        {
            GroupDSTableAdapter ta = new GroupDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Delete(groupId));
        }
        public static Int32 UpdateGroup(Int32 groupId, string groupName)
        {
            GroupDSTableAdapter ta = new GroupDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.Update(groupId, groupName));
        }
        public static GroupDS.GroupDSDataTable SelectGroup(Int32 groupId)
        {
            GroupDSTableAdapter ta = new GroupDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetData(groupId));
        }
        public static Int32 InsertGroup(string groupName)
        {
            GroupDSTableAdapter ta = new GroupDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(Convert.ToInt32(ta.InsertGroup(groupName)));
        }
        public static GroupDS.GroupDSDataTable GetGroupList(Int32 agentId, Int32 facilityId)
        {
            GroupDSTableAdapter ta = new GroupDSTableAdapter();

            ta.Connection.ConnectionString = UcConnection.ConnectionString;
            return(ta.GetGroupList(agentId, facilityId));
        }